c587e449ae54bec57042451a54e1c5665b7657db
[platform/upstream/make.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU make 4.1.
4 #
5 # Report bugs to <bug-make@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202   if (eval "$as_required") 2>/dev/null; then :
203   as_have_required=yes
204 else
205   as_have_required=no
206 fi
207   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214   IFS=$as_save_IFS
215   test -z "$as_dir" && as_dir=.
216   as_found=:
217   case $as_dir in #(
218          /*)
219            for as_base in sh bash ksh sh5; do
220              # Try only shells that exist, to save several forks.
221              as_shell=$as_dir/$as_base
222              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224   CONFIG_SHELL=$as_shell as_have_required=yes
225                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226   break 2
227 fi
228 fi
229            done;;
230        esac
231   as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235   CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240       if test "x$CONFIG_SHELL" != x; then :
241   export CONFIG_SHELL
242              # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250   *v*x* | *x*v* ) as_opts=-vx ;;
251   *v* ) as_opts=-v ;;
252   *x* ) as_opts=-x ;;
253   * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno; then :
263   $as_echo "$0: This script requires a shell more modern than all"
264   $as_echo "$0: the shells that I found on your system."
265   if test x${ZSH_VERSION+set} = xset ; then
266     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268   else
269     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274   fi
275   exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293   { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302   return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310   set +e
311   as_fn_set_status $1
312   exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321   case $as_dir in #(
322   -*) as_dir=./$as_dir;;
323   esac
324   test -d "$as_dir" || eval $as_mkdir_p || {
325     as_dirs=
326     while :; do
327       case $as_dir in #(
328       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329       *) as_qdir=$as_dir;;
330       esac
331       as_dirs="'$as_qdir' $as_dirs"
332       as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334          X"$as_dir" : 'X\(//\)[^/]' \| \
335          X"$as_dir" : 'X\(//\)$' \| \
336          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339             s//\1/
340             q
341           }
342           /^X\(\/\/\)[^/].*/{
343             s//\1/
344             q
345           }
346           /^X\(\/\/\)$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\).*/{
351             s//\1/
352             q
353           }
354           s/.*/./; q'`
355       test -d "$as_dir" && break
356     done
357     test -z "$as_dirs" || eval "mkdir $as_dirs"
358   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368   test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377   eval 'as_fn_append ()
378   {
379     eval $1+=\$2
380   }'
381 else
382   as_fn_append ()
383   {
384     eval $1=\$$1\$2
385   }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394   eval 'as_fn_arith ()
395   {
396     as_val=$(( $* ))
397   }'
398 else
399   as_fn_arith ()
400   {
401     as_val=`expr "$@" || test $? -eq 1`
402   }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413   as_status=$1; test $as_status -eq 0 && as_status=1
414   if test "$4"; then
415     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417   fi
418   $as_echo "$as_me: error: $2" >&2
419   as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
424   as_expr=expr
425 else
426   as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430   as_basename=basename
431 else
432   as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436   as_dirname=dirname
437 else
438   as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443          X"$0" : 'X\(//\)$' \| \
444          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446     sed '/^.*\/\([^/][^/]*\)\/*$/{
447             s//\1/
448             q
449           }
450           /^X\/\(\/\/\)$/{
451             s//\1/
452             q
453           }
454           /^X\/\(\/\).*/{
455             s//\1/
456             q
457           }
458           s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468   as_lineno_1=$LINENO as_lineno_1a=$LINENO
469   as_lineno_2=$LINENO as_lineno_2a=$LINENO
470   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
473   sed -n '
474     p
475     /[$]LINENO/=
476   ' <$as_myself |
477     sed '
478       s/[$]LINENO.*/&-/
479       t lineno
480       b
481       :lineno
482       N
483       :loop
484       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485       t loop
486       s/-\n.*//
487     ' >$as_me.lineno &&
488   chmod +x "$as_me.lineno" ||
489     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492   # already done that, so ensure we don't try to do so again and fall
493   # in an infinite loop.  This has already happened in practice.
494   _as_can_reexec=no; export _as_can_reexec
495   # Don't try to exec as it changes $[0], causing all sort of problems
496   # (the dirname of $[0] is not the place where we might find the
497   # original and so on.  Autoconf is especially sensitive to this).
498   . "./$as_me.lineno"
499   # Exit status is that of the last command.
500   exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506   case `echo 'xy\c'` in
507   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
508   xy)  ECHO_C='\c';;
509   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
510        ECHO_T=' ';;
511   esac;;
512 *)
513   ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518   rm -f conf$$.dir/conf$$.file
519 else
520   rm -f conf$$.dir
521   mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524   if ln -s conf$$.file conf$$ 2>/dev/null; then
525     as_ln_s='ln -s'
526     # ... but there are two gotchas:
527     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529     # In both cases, we have to default to `cp -pR'.
530     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531       as_ln_s='cp -pR'
532   elif ln conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s=ln
534   else
535     as_ln_s='cp -pR'
536   fi
537 else
538   as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544   as_mkdir_p='mkdir -p "$as_dir"'
545 else
546   test -d ./-p && rmdir ./-p
547   as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='GNU make'
582 PACKAGE_TARNAME='make'
583 PACKAGE_VERSION='4.1'
584 PACKAGE_STRING='GNU make 4.1'
585 PACKAGE_BUGREPORT='bug-make@gnu.org'
586 PACKAGE_URL='http://www.gnu.org/software/make/'
587
588 ac_unique_file="vpath.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 #  include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #  include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 gt_needs=
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 WINDOWSENV_FALSE
630 WINDOWSENV_TRUE
631 MAKE_HOST
632 USE_LOCAL_GLOB_FALSE
633 USE_LOCAL_GLOB_TRUE
634 GLOBLIB
635 GLOBINC
636 AM_LDFLAGS
637 USE_CUSTOMS_FALSE
638 USE_CUSTOMS_TRUE
639 REMOTE
640 GETLOADAVG_LIBS
641 KMEM_GROUP
642 NEED_SETGID
643 LIBOBJS
644 HAVE_GUILE_FALSE
645 HAVE_GUILE_TRUE
646 GUILE_LIBS
647 GUILE_CFLAGS
648 PKG_CONFIG_LIBDIR
649 PKG_CONFIG_PATH
650 PKG_CONFIG
651 ALLOCA
652 POSUB
653 LTLIBINTL
654 LIBINTL
655 INTLLIBS
656 LTLIBICONV
657 LIBICONV
658 INTL_MACOSX_LIBS
659 XGETTEXT_EXTRA_OPTIONS
660 MSGMERGE
661 XGETTEXT_015
662 XGETTEXT
663 GMSGFMT_015
664 MSGFMT_015
665 GMSGFMT
666 MSGFMT
667 GETTEXT_MACRO_VERSION
668 USE_NLS
669 host_os
670 host_vendor
671 host_cpu
672 host
673 build_os
674 build_vendor
675 build_cpu
676 build
677 ac_ct_AR
678 PERL
679 AR
680 RANLIB
681 EGREP
682 GREP
683 CPP
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files='MAINT_MAKEFILE'
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_dependency_tracking
771 enable_nls
772 with_gnu_ld
773 enable_rpath
774 with_libiconv_prefix
775 with_libintl_prefix
776 enable_largefile
777 with_guile
778 with_customs
779 enable_case_insensitive_file_system
780 enable_job_server
781 enable_load
782 with_dmalloc
783 '
784       ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 CPP
793 PKG_CONFIG
794 PKG_CONFIG_PATH
795 PKG_CONFIG_LIBDIR
796 GUILE_CFLAGS
797 GUILE_LIBS'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852   # If the previous option needs an argument, assign it.
853   if test -n "$ac_prev"; then
854     eval $ac_prev=\$ac_option
855     ac_prev=
856     continue
857   fi
858
859   case $ac_option in
860   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861   *=)   ac_optarg= ;;
862   *)    ac_optarg=yes ;;
863   esac
864
865   # Accept the important Cygnus configure options, so we can diagnose typos.
866
867   case $ac_dashdash$ac_option in
868   --)
869     ac_dashdash=yes ;;
870
871   -bindir | --bindir | --bindi | --bind | --bin | --bi)
872     ac_prev=bindir ;;
873   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874     bindir=$ac_optarg ;;
875
876   -build | --build | --buil | --bui | --bu)
877     ac_prev=build_alias ;;
878   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879     build_alias=$ac_optarg ;;
880
881   -cache-file | --cache-file | --cache-fil | --cache-fi \
882   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883     ac_prev=cache_file ;;
884   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886     cache_file=$ac_optarg ;;
887
888   --config-cache | -C)
889     cache_file=config.cache ;;
890
891   -datadir | --datadir | --datadi | --datad)
892     ac_prev=datadir ;;
893   -datadir=* | --datadir=* | --datadi=* | --datad=*)
894     datadir=$ac_optarg ;;
895
896   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897   | --dataroo | --dataro | --datar)
898     ac_prev=datarootdir ;;
899   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901     datarootdir=$ac_optarg ;;
902
903   -disable-* | --disable-*)
904     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905     # Reject names that are not valid shell variable names.
906     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907       as_fn_error $? "invalid feature name: $ac_useropt"
908     ac_useropt_orig=$ac_useropt
909     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910     case $ac_user_opts in
911       *"
912 "enable_$ac_useropt"
913 "*) ;;
914       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915          ac_unrecognized_sep=', ';;
916     esac
917     eval enable_$ac_useropt=no ;;
918
919   -docdir | --docdir | --docdi | --doc | --do)
920     ac_prev=docdir ;;
921   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922     docdir=$ac_optarg ;;
923
924   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925     ac_prev=dvidir ;;
926   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927     dvidir=$ac_optarg ;;
928
929   -enable-* | --enable-*)
930     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931     # Reject names that are not valid shell variable names.
932     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933       as_fn_error $? "invalid feature name: $ac_useropt"
934     ac_useropt_orig=$ac_useropt
935     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936     case $ac_user_opts in
937       *"
938 "enable_$ac_useropt"
939 "*) ;;
940       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941          ac_unrecognized_sep=', ';;
942     esac
943     eval enable_$ac_useropt=\$ac_optarg ;;
944
945   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947   | --exec | --exe | --ex)
948     ac_prev=exec_prefix ;;
949   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951   | --exec=* | --exe=* | --ex=*)
952     exec_prefix=$ac_optarg ;;
953
954   -gas | --gas | --ga | --g)
955     # Obsolete; use --with-gas.
956     with_gas=yes ;;
957
958   -help | --help | --hel | --he | -h)
959     ac_init_help=long ;;
960   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961     ac_init_help=recursive ;;
962   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963     ac_init_help=short ;;
964
965   -host | --host | --hos | --ho)
966     ac_prev=host_alias ;;
967   -host=* | --host=* | --hos=* | --ho=*)
968     host_alias=$ac_optarg ;;
969
970   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971     ac_prev=htmldir ;;
972   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973   | --ht=*)
974     htmldir=$ac_optarg ;;
975
976   -includedir | --includedir | --includedi | --included | --include \
977   | --includ | --inclu | --incl | --inc)
978     ac_prev=includedir ;;
979   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980   | --includ=* | --inclu=* | --incl=* | --inc=*)
981     includedir=$ac_optarg ;;
982
983   -infodir | --infodir | --infodi | --infod | --info | --inf)
984     ac_prev=infodir ;;
985   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986     infodir=$ac_optarg ;;
987
988   -libdir | --libdir | --libdi | --libd)
989     ac_prev=libdir ;;
990   -libdir=* | --libdir=* | --libdi=* | --libd=*)
991     libdir=$ac_optarg ;;
992
993   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994   | --libexe | --libex | --libe)
995     ac_prev=libexecdir ;;
996   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997   | --libexe=* | --libex=* | --libe=*)
998     libexecdir=$ac_optarg ;;
999
1000   -localedir | --localedir | --localedi | --localed | --locale)
1001     ac_prev=localedir ;;
1002   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003     localedir=$ac_optarg ;;
1004
1005   -localstatedir | --localstatedir | --localstatedi | --localstated \
1006   | --localstate | --localstat | --localsta | --localst | --locals)
1007     ac_prev=localstatedir ;;
1008   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010     localstatedir=$ac_optarg ;;
1011
1012   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013     ac_prev=mandir ;;
1014   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015     mandir=$ac_optarg ;;
1016
1017   -nfp | --nfp | --nf)
1018     # Obsolete; use --without-fp.
1019     with_fp=no ;;
1020
1021   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022   | --no-cr | --no-c | -n)
1023     no_create=yes ;;
1024
1025   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027     no_recursion=yes ;;
1028
1029   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031   | --oldin | --oldi | --old | --ol | --o)
1032     ac_prev=oldincludedir ;;
1033   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036     oldincludedir=$ac_optarg ;;
1037
1038   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039     ac_prev=prefix ;;
1040   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041     prefix=$ac_optarg ;;
1042
1043   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044   | --program-pre | --program-pr | --program-p)
1045     ac_prev=program_prefix ;;
1046   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048     program_prefix=$ac_optarg ;;
1049
1050   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051   | --program-suf | --program-su | --program-s)
1052     ac_prev=program_suffix ;;
1053   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055     program_suffix=$ac_optarg ;;
1056
1057   -program-transform-name | --program-transform-name \
1058   | --program-transform-nam | --program-transform-na \
1059   | --program-transform-n | --program-transform- \
1060   | --program-transform | --program-transfor \
1061   | --program-transfo | --program-transf \
1062   | --program-trans | --program-tran \
1063   | --progr-tra | --program-tr | --program-t)
1064     ac_prev=program_transform_name ;;
1065   -program-transform-name=* | --program-transform-name=* \
1066   | --program-transform-nam=* | --program-transform-na=* \
1067   | --program-transform-n=* | --program-transform-=* \
1068   | --program-transform=* | --program-transfor=* \
1069   | --program-transfo=* | --program-transf=* \
1070   | --program-trans=* | --program-tran=* \
1071   | --progr-tra=* | --program-tr=* | --program-t=*)
1072     program_transform_name=$ac_optarg ;;
1073
1074   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075     ac_prev=pdfdir ;;
1076   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077     pdfdir=$ac_optarg ;;
1078
1079   -psdir | --psdir | --psdi | --psd | --ps)
1080     ac_prev=psdir ;;
1081   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082     psdir=$ac_optarg ;;
1083
1084   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085   | -silent | --silent | --silen | --sile | --sil)
1086     silent=yes ;;
1087
1088   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089     ac_prev=sbindir ;;
1090   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091   | --sbi=* | --sb=*)
1092     sbindir=$ac_optarg ;;
1093
1094   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096   | --sharedst | --shareds | --shared | --share | --shar \
1097   | --sha | --sh)
1098     ac_prev=sharedstatedir ;;
1099   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102   | --sha=* | --sh=*)
1103     sharedstatedir=$ac_optarg ;;
1104
1105   -site | --site | --sit)
1106     ac_prev=site ;;
1107   -site=* | --site=* | --sit=*)
1108     site=$ac_optarg ;;
1109
1110   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111     ac_prev=srcdir ;;
1112   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113     srcdir=$ac_optarg ;;
1114
1115   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116   | --syscon | --sysco | --sysc | --sys | --sy)
1117     ac_prev=sysconfdir ;;
1118   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120     sysconfdir=$ac_optarg ;;
1121
1122   -target | --target | --targe | --targ | --tar | --ta | --t)
1123     ac_prev=target_alias ;;
1124   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125     target_alias=$ac_optarg ;;
1126
1127   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128     verbose=yes ;;
1129
1130   -version | --version | --versio | --versi | --vers | -V)
1131     ac_init_version=: ;;
1132
1133   -with-* | --with-*)
1134     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135     # Reject names that are not valid shell variable names.
1136     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137       as_fn_error $? "invalid package name: $ac_useropt"
1138     ac_useropt_orig=$ac_useropt
1139     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140     case $ac_user_opts in
1141       *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145          ac_unrecognized_sep=', ';;
1146     esac
1147     eval with_$ac_useropt=\$ac_optarg ;;
1148
1149   -without-* | --without-*)
1150     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153       as_fn_error $? "invalid package name: $ac_useropt"
1154     ac_useropt_orig=$ac_useropt
1155     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156     case $ac_user_opts in
1157       *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161          ac_unrecognized_sep=', ';;
1162     esac
1163     eval with_$ac_useropt=no ;;
1164
1165   --x)
1166     # Obsolete; use --with-x.
1167     with_x=yes ;;
1168
1169   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170   | --x-incl | --x-inc | --x-in | --x-i)
1171     ac_prev=x_includes ;;
1172   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174     x_includes=$ac_optarg ;;
1175
1176   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178     ac_prev=x_libraries ;;
1179   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181     x_libraries=$ac_optarg ;;
1182
1183   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185     ;;
1186
1187   *=*)
1188     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189     # Reject names that are not valid shell variable names.
1190     case $ac_envvar in #(
1191       '' | [0-9]* | *[!_$as_cr_alnum]* )
1192       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193     esac
1194     eval $ac_envvar=\$ac_optarg
1195     export $ac_envvar ;;
1196
1197   *)
1198     # FIXME: should be removed in autoconf 3.0.
1199     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203     ;;
1204
1205   esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210   as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214   case $enable_option_checking in
1215     no) ;;
1216     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218   esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223                 datadir sysconfdir sharedstatedir localstatedir includedir \
1224                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225                 libdir localedir mandir
1226 do
1227   eval ac_val=\$$ac_var
1228   # Remove trailing slashes.
1229   case $ac_val in
1230     */ )
1231       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232       eval $ac_var=\$ac_val;;
1233   esac
1234   # Be sure to have absolute directory names.
1235   case $ac_val in
1236     [\\/$]* | ?:[\\/]* )  continue;;
1237     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238   esac
1239   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251   if test "x$build_alias" = x; then
1252     cross_compiling=maybe
1253   elif test "x$build_alias" != "x$host_alias"; then
1254     cross_compiling=yes
1255   fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267   as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269   as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274   ac_srcdir_defaulted=yes
1275   # Try the directory containing this script, then the parent directory.
1276   ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278          X"$as_myself" : 'X\(//\)[^/]' \| \
1279          X"$as_myself" : 'X\(//\)$' \| \
1280          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)[^/].*/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\/\)$/{
1291             s//\1/
1292             q
1293           }
1294           /^X\(\/\).*/{
1295             s//\1/
1296             q
1297           }
1298           s/.*/./; q'`
1299   srcdir=$ac_confdir
1300   if test ! -r "$srcdir/$ac_unique_file"; then
1301     srcdir=..
1302   fi
1303 else
1304   ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313         pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316   srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_env_${ac_var}_value=\$${ac_var}
1327   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335   # Omit some internal or obsolete options to make the list less imposing.
1336   # This message is too long to be a string in the A/UX 3.1 sh.
1337   cat <<_ACEOF
1338 \`configure' configures GNU make 4.1 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348   -h, --help              display this help and exit
1349       --help=short        display options specific to this package
1350       --help=recursive    display the short help of all the included packages
1351   -V, --version           display version information and exit
1352   -q, --quiet, --silent   do not print \`checking ...' messages
1353       --cache-file=FILE   cache test results in FILE [disabled]
1354   -C, --config-cache      alias for \`--cache-file=config.cache'
1355   -n, --no-create         do not create output files
1356       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359   --prefix=PREFIX         install architecture-independent files in PREFIX
1360                           [$ac_default_prefix]
1361   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                           [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372   --bindir=DIR            user executables [EPREFIX/bin]
1373   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374   --libexecdir=DIR        program executables [EPREFIX/libexec]
1375   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378   --libdir=DIR            object code libraries [EPREFIX/lib]
1379   --includedir=DIR        C header files [PREFIX/include]
1380   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1382   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1383   --infodir=DIR           info documentation [DATAROOTDIR/info]
1384   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1385   --mandir=DIR            man documentation [DATAROOTDIR/man]
1386   --docdir=DIR            documentation root [DATAROOTDIR/doc/make]
1387   --htmldir=DIR           html documentation [DOCDIR]
1388   --dvidir=DIR            dvi documentation [DOCDIR]
1389   --pdfdir=DIR            pdf documentation [DOCDIR]
1390   --psdir=DIR             ps documentation [DOCDIR]
1391 _ACEOF
1392
1393   cat <<\_ACEOF
1394
1395 Program names:
1396   --program-prefix=PREFIX            prepend PREFIX to installed program names
1397   --program-suffix=SUFFIX            append SUFFIX to installed program names
1398   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1399
1400 System types:
1401   --build=BUILD     configure for building on BUILD [guessed]
1402   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407   case $ac_init_help in
1408      short | recursive ) echo "Configuration of GNU make 4.1:";;
1409    esac
1410   cat <<\_ACEOF
1411
1412 Optional Features:
1413   --disable-option-checking  ignore unrecognized --enable/--with options
1414   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416   --enable-silent-rules   less verbose build output (undo: "make V=1")
1417   --disable-silent-rules  verbose build output (undo: "make V=0")
1418   --enable-dependency-tracking
1419                           do not reject slow dependency extractors
1420   --disable-dependency-tracking
1421                           speeds up one-time build
1422   --disable-nls           do not use Native Language Support
1423   --disable-rpath         do not hardcode runtime library paths
1424   --disable-largefile     omit support for large files
1425   --enable-case-insensitive-file-system
1426                           assume file systems are case insensitive
1427   --disable-job-server    disallow recursive make communication during -jN
1428   --disable-load          disable support for the 'load' operation
1429
1430 Optional Packages:
1431   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1432   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1433   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1434   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1435   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1436   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1437   --without-libintl-prefix     don't search for libintl in includedir and libdir
1438   --with-guile            Support GNU Guile for embedded scripting
1439   --with-customs=DIR      enable remote jobs via Customs--see README.customs
1440   --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1441
1442 Some influential environment variables:
1443   CC          C compiler command
1444   CFLAGS      C compiler flags
1445   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1446               nonstandard directory <lib dir>
1447   LIBS        libraries to pass to the linker, e.g. -l<library>
1448   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449               you have headers in a nonstandard directory <include dir>
1450   CPP         C preprocessor
1451   PKG_CONFIG  path to pkg-config utility
1452   PKG_CONFIG_PATH
1453               directories to add to pkg-config's search path
1454   PKG_CONFIG_LIBDIR
1455               path overriding pkg-config's built-in search path
1456   GUILE_CFLAGS
1457               C compiler flags for GUILE, overriding pkg-config
1458   GUILE_LIBS  linker flags for GUILE, overriding pkg-config
1459
1460 Use these variables to override the choices made by `configure' or to help
1461 it to find libraries and programs with nonstandard names/locations.
1462
1463 Report bugs to <bug-make@gnu.org>.
1464 GNU make home page: <http://www.gnu.org/software/make/>.
1465 General help using GNU software: <http://www.gnu.org/gethelp/>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471   # If there are subdirs, report their specific --help.
1472   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473     test -d "$ac_dir" ||
1474       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475       continue
1476     ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482   # A ".." for each directory in $ac_dir_suffix.
1483   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484   case $ac_top_builddir_sub in
1485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487   esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495   .)  # We are building in place.
1496     ac_srcdir=.
1497     ac_top_srcdir=$ac_top_builddir_sub
1498     ac_abs_top_srcdir=$ac_pwd ;;
1499   [\\/]* | ?:[\\/]* )  # Absolute name.
1500     ac_srcdir=$srcdir$ac_dir_suffix;
1501     ac_top_srcdir=$srcdir
1502     ac_abs_top_srcdir=$srcdir ;;
1503   *) # Relative name.
1504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505     ac_top_srcdir=$ac_top_build_prefix$srcdir
1506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510     cd "$ac_dir" || { ac_status=$?; continue; }
1511     # Check for guested configure.
1512     if test -f "$ac_srcdir/configure.gnu"; then
1513       echo &&
1514       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515     elif test -f "$ac_srcdir/configure"; then
1516       echo &&
1517       $SHELL "$ac_srcdir/configure" --help=recursive
1518     else
1519       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520     fi || ac_status=$?
1521     cd "$ac_pwd" || { ac_status=$?; break; }
1522   done
1523 fi
1524
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527   cat <<\_ACEOF
1528 GNU make configure 4.1
1529 generated by GNU Autoconf 2.69
1530
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535   exit
1536 fi
1537
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1541
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1546 {
1547   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548   rm -f conftest.$ac_objext
1549   if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552   *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556   (eval "$ac_compile") 2>conftest.err
1557   ac_status=$?
1558   if test -s conftest.err; then
1559     grep -v '^ *+' conftest.err >conftest.er1
1560     cat conftest.er1 >&5
1561     mv -f conftest.er1 conftest.err
1562   fi
1563   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564   test $ac_status = 0; } && {
1565          test -z "$ac_c_werror_flag" ||
1566          test ! -s conftest.err
1567        } && test -s conftest.$ac_objext; then :
1568   ac_retval=0
1569 else
1570   $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1572
1573         ac_retval=1
1574 fi
1575   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576   as_fn_set_status $ac_retval
1577
1578 } # ac_fn_c_try_compile
1579
1580 # ac_fn_c_try_cpp LINENO
1581 # ----------------------
1582 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_cpp ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   if { { ac_try="$ac_cpp conftest.$ac_ext"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1594   ac_status=$?
1595   if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599   fi
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } > conftest.i && {
1602          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1603          test ! -s conftest.err
1604        }; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610     ac_retval=1
1611 fi
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613   as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_cpp
1616
1617 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1620 # the include files in INCLUDES and setting the cache variable VAR
1621 # accordingly.
1622 ac_fn_c_check_header_mongrel ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   if eval \${$3+:} false; then :
1626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1627 $as_echo_n "checking for $2... " >&6; }
1628 if eval \${$3+:} false; then :
1629   $as_echo_n "(cached) " >&6
1630 fi
1631 eval ac_res=\$$3
1632                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1633 $as_echo "$ac_res" >&6; }
1634 else
1635   # Is the header compilable?
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1637 $as_echo_n "checking $2 usability... " >&6; }
1638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h.  */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"; then :
1644   ac_header_compiler=yes
1645 else
1646   ac_header_compiler=no
1647 fi
1648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1650 $as_echo "$ac_header_compiler" >&6; }
1651
1652 # Is the header present?
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1654 $as_echo_n "checking $2 presence... " >&6; }
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h.  */
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_cpp "$LINENO"; then :
1660   ac_header_preproc=yes
1661 else
1662   ac_header_preproc=no
1663 fi
1664 rm -f conftest.err conftest.i conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1666 $as_echo "$ac_header_preproc" >&6; }
1667
1668 # So?  What about this header?
1669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1670   yes:no: )
1671     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1672 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1673     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1674 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1675     ;;
1676   no:yes:* )
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1678 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1679     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1680 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1681     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1682 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1683     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1684 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1685     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1686 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1687 ( $as_echo "## ------------------------------- ##
1688 ## Report this to bug-make@gnu.org ##
1689 ## ------------------------------- ##"
1690      ) | sed "s/^/$as_me: WARNING:     /" >&2
1691     ;;
1692 esac
1693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if eval \${$3+:} false; then :
1696   $as_echo_n "(cached) " >&6
1697 else
1698   eval "$3=\$ac_header_compiler"
1699 fi
1700 eval ac_res=\$$3
1701                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 fi
1704   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706 } # ac_fn_c_check_header_mongrel
1707
1708 # ac_fn_c_try_run LINENO
1709 # ----------------------
1710 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1711 # that executables *can* be run.
1712 ac_fn_c_try_run ()
1713 {
1714   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715   if { { ac_try="$ac_link"
1716 case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_link") 2>&5
1723   ac_status=$?
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1726   { { case "(($ac_try" in
1727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728   *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732   (eval "$ac_try") 2>&5
1733   ac_status=$?
1734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735   test $ac_status = 0; }; }; then :
1736   ac_retval=0
1737 else
1738   $as_echo "$as_me: program exited with status $ac_status" >&5
1739        $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1741
1742        ac_retval=$ac_status
1743 fi
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746   as_fn_set_status $ac_retval
1747
1748 } # ac_fn_c_try_run
1749
1750 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1751 # -------------------------------------------------------
1752 # Tests whether HEADER exists and can be compiled using the include files in
1753 # INCLUDES, setting the cache variable VAR accordingly.
1754 ac_fn_c_check_header_compile ()
1755 {
1756   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if eval \${$3+:} false; then :
1760   $as_echo_n "(cached) " >&6
1761 else
1762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h.  */
1764 $4
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768   eval "$3=yes"
1769 else
1770   eval "$3=no"
1771 fi
1772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1773 fi
1774 eval ac_res=\$$3
1775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778
1779 } # ac_fn_c_check_header_compile
1780
1781 # ac_fn_c_try_link LINENO
1782 # -----------------------
1783 # Try to link conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_link ()
1785 {
1786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787   rm -f conftest.$ac_objext conftest$ac_exeext
1788   if { { ac_try="$ac_link"
1789 case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_link") 2>conftest.err
1796   ac_status=$?
1797   if test -s conftest.err; then
1798     grep -v '^ *+' conftest.err >conftest.er1
1799     cat conftest.er1 >&5
1800     mv -f conftest.er1 conftest.err
1801   fi
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; } && {
1804          test -z "$ac_c_werror_flag" ||
1805          test ! -s conftest.err
1806        } && test -s conftest$ac_exeext && {
1807          test "$cross_compiling" = yes ||
1808          test -x conftest$ac_exeext
1809        }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: failed program was:" >&5
1813 sed 's/^/| /' conftest.$ac_ext >&5
1814
1815         ac_retval=1
1816 fi
1817   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1818   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1819   # interfere with the next link command; also delete a directory that is
1820   # left behind by Apple's compiler.  We do this before executing the actions.
1821   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823   as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_link
1826
1827 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1828 # -------------------------------------------
1829 # Tests whether TYPE exists after having included INCLUDES, setting cache
1830 # variable VAR accordingly.
1831 ac_fn_c_check_type ()
1832 {
1833   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1835 $as_echo_n "checking for $2... " >&6; }
1836 if eval \${$3+:} false; then :
1837   $as_echo_n "(cached) " >&6
1838 else
1839   eval "$3=no"
1840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h.  */
1842 $4
1843 int
1844 main ()
1845 {
1846 if (sizeof ($2))
1847          return 0;
1848   ;
1849   return 0;
1850 }
1851 _ACEOF
1852 if ac_fn_c_try_compile "$LINENO"; then :
1853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h.  */
1855 $4
1856 int
1857 main ()
1858 {
1859 if (sizeof (($2)))
1860             return 0;
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866
1867 else
1868   eval "$3=yes"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_type
1880
1881 # ac_fn_c_check_func LINENO FUNC VAR
1882 # ----------------------------------
1883 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1884 ac_fn_c_check_func ()
1885 {
1886   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890   $as_echo_n "(cached) " >&6
1891 else
1892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h.  */
1894 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1895    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1896 #define $2 innocuous_$2
1897
1898 /* System header to define __stub macros and hopefully few prototypes,
1899     which can conflict with char $2 (); below.
1900     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1901     <limits.h> exists even on freestanding compilers.  */
1902
1903 #ifdef __STDC__
1904 # include <limits.h>
1905 #else
1906 # include <assert.h>
1907 #endif
1908
1909 #undef $2
1910
1911 /* Override any GCC internal prototype to avoid an error.
1912    Use char because int might match the return type of a GCC
1913    builtin and then its argument prototype would still apply.  */
1914 #ifdef __cplusplus
1915 extern "C"
1916 #endif
1917 char $2 ();
1918 /* The GNU C library defines this for functions which it implements
1919     to always fail with ENOSYS.  Some functions are actually named
1920     something starting with __ and the normal name is an alias.  */
1921 #if defined __stub_$2 || defined __stub___$2
1922 choke me
1923 #endif
1924
1925 int
1926 main ()
1927 {
1928 return $2 ();
1929   ;
1930   return 0;
1931 }
1932 _ACEOF
1933 if ac_fn_c_try_link "$LINENO"; then :
1934   eval "$3=yes"
1935 else
1936   eval "$3=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext \
1939     conftest$ac_exeext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945
1946 } # ac_fn_c_check_func
1947
1948 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1949 # ---------------------------------------------
1950 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1951 # accordingly.
1952 ac_fn_c_check_decl ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   as_decl_name=`echo $2|sed 's/ *(.*//'`
1956   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1958 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1959 if eval \${$3+:} false; then :
1960   $as_echo_n "(cached) " >&6
1961 else
1962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $4
1965 int
1966 main ()
1967 {
1968 #ifndef $as_decl_name
1969 #ifdef __cplusplus
1970   (void) $as_decl_use;
1971 #else
1972   (void) $as_decl_name;
1973 #endif
1974 #endif
1975
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981   eval "$3=yes"
1982 else
1983   eval "$3=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 eval ac_res=\$$3
1988                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991
1992 } # ac_fn_c_check_decl
1993
1994 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995 # ----------------------------------------------------
1996 # Tries to find if the field MEMBER exists in type AGGR, after including
1997 # INCLUDES, setting cache variable VAR accordingly.
1998 ac_fn_c_check_member ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002 $as_echo_n "checking for $2.$3... " >&6; }
2003 if eval \${$4+:} false; then :
2004   $as_echo_n "(cached) " >&6
2005 else
2006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $5
2009 int
2010 main ()
2011 {
2012 static $2 ac_aggr;
2013 if (ac_aggr.$3)
2014 return 0;
2015   ;
2016   return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020   eval "$4=yes"
2021 else
2022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h.  */
2024 $5
2025 int
2026 main ()
2027 {
2028 static $2 ac_aggr;
2029 if (sizeof ac_aggr.$3)
2030 return 0;
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036   eval "$4=yes"
2037 else
2038   eval "$4=no"
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043 fi
2044 eval ac_res=\$$4
2045                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048
2049 } # ac_fn_c_check_member
2050 cat >config.log <<_ACEOF
2051 This file contains any messages produced by compilers while
2052 running configure, to aid debugging if configure makes a mistake.
2053
2054 It was created by GNU make $as_me 4.1, which was
2055 generated by GNU Autoconf 2.69.  Invocation command line was
2056
2057   $ $0 $@
2058
2059 _ACEOF
2060 exec 5>>config.log
2061 {
2062 cat <<_ASUNAME
2063 ## --------- ##
2064 ## Platform. ##
2065 ## --------- ##
2066
2067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2072
2073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2074 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2075
2076 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2077 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2079 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2080 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2081 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2082 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2083
2084 _ASUNAME
2085
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087 for as_dir in $PATH
2088 do
2089   IFS=$as_save_IFS
2090   test -z "$as_dir" && as_dir=.
2091     $as_echo "PATH: $as_dir"
2092   done
2093 IFS=$as_save_IFS
2094
2095 } >&5
2096
2097 cat >&5 <<_ACEOF
2098
2099
2100 ## ----------- ##
2101 ## Core tests. ##
2102 ## ----------- ##
2103
2104 _ACEOF
2105
2106
2107 # Keep a trace of the command line.
2108 # Strip out --no-create and --no-recursion so they do not pile up.
2109 # Strip out --silent because we don't want to record it for future runs.
2110 # Also quote any args containing shell meta-characters.
2111 # Make two passes to allow for proper duplicate-argument suppression.
2112 ac_configure_args=
2113 ac_configure_args0=
2114 ac_configure_args1=
2115 ac_must_keep_next=false
2116 for ac_pass in 1 2
2117 do
2118   for ac_arg
2119   do
2120     case $ac_arg in
2121     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2122     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2123     | -silent | --silent | --silen | --sile | --sil)
2124       continue ;;
2125     *\'*)
2126       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2127     esac
2128     case $ac_pass in
2129     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2130     2)
2131       as_fn_append ac_configure_args1 " '$ac_arg'"
2132       if test $ac_must_keep_next = true; then
2133         ac_must_keep_next=false # Got value, back to normal.
2134       else
2135         case $ac_arg in
2136           *=* | --config-cache | -C | -disable-* | --disable-* \
2137           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2138           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2139           | -with-* | --with-* | -without-* | --without-* | --x)
2140             case "$ac_configure_args0 " in
2141               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2142             esac
2143             ;;
2144           -* ) ac_must_keep_next=true ;;
2145         esac
2146       fi
2147       as_fn_append ac_configure_args " '$ac_arg'"
2148       ;;
2149     esac
2150   done
2151 done
2152 { ac_configure_args0=; unset ac_configure_args0;}
2153 { ac_configure_args1=; unset ac_configure_args1;}
2154
2155 # When interrupted or exit'd, cleanup temporary files, and complete
2156 # config.log.  We remove comments because anyway the quotes in there
2157 # would cause problems or look ugly.
2158 # WARNING: Use '\'' to represent an apostrophe within the trap.
2159 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2160 trap 'exit_status=$?
2161   # Save into config.log some information that might help in debugging.
2162   {
2163     echo
2164
2165     $as_echo "## ---------------- ##
2166 ## Cache variables. ##
2167 ## ---------------- ##"
2168     echo
2169     # The following way of writing the cache mishandles newlines in values,
2170 (
2171   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2172     eval ac_val=\$$ac_var
2173     case $ac_val in #(
2174     *${as_nl}*)
2175       case $ac_var in #(
2176       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2177 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2178       esac
2179       case $ac_var in #(
2180       _ | IFS | as_nl) ;; #(
2181       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2182       *) { eval $ac_var=; unset $ac_var;} ;;
2183       esac ;;
2184     esac
2185   done
2186   (set) 2>&1 |
2187     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2188     *${as_nl}ac_space=\ *)
2189       sed -n \
2190         "s/'\''/'\''\\\\'\'''\''/g;
2191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2192       ;; #(
2193     *)
2194       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2195       ;;
2196     esac |
2197     sort
2198 )
2199     echo
2200
2201     $as_echo "## ----------------- ##
2202 ## Output variables. ##
2203 ## ----------------- ##"
2204     echo
2205     for ac_var in $ac_subst_vars
2206     do
2207       eval ac_val=\$$ac_var
2208       case $ac_val in
2209       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210       esac
2211       $as_echo "$ac_var='\''$ac_val'\''"
2212     done | sort
2213     echo
2214
2215     if test -n "$ac_subst_files"; then
2216       $as_echo "## ------------------- ##
2217 ## File substitutions. ##
2218 ## ------------------- ##"
2219       echo
2220       for ac_var in $ac_subst_files
2221       do
2222         eval ac_val=\$$ac_var
2223         case $ac_val in
2224         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2225         esac
2226         $as_echo "$ac_var='\''$ac_val'\''"
2227       done | sort
2228       echo
2229     fi
2230
2231     if test -s confdefs.h; then
2232       $as_echo "## ----------- ##
2233 ## confdefs.h. ##
2234 ## ----------- ##"
2235       echo
2236       cat confdefs.h
2237       echo
2238     fi
2239     test "$ac_signal" != 0 &&
2240       $as_echo "$as_me: caught signal $ac_signal"
2241     $as_echo "$as_me: exit $exit_status"
2242   } >&5
2243   rm -f core *.core core.conftest.* &&
2244     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2245     exit $exit_status
2246 ' 0
2247 for ac_signal in 1 2 13 15; do
2248   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2249 done
2250 ac_signal=0
2251
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2254
2255 $as_echo "/* confdefs.h */" > confdefs.h
2256
2257 # Predefined preprocessor variables.
2258
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2261 _ACEOF
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2265 _ACEOF
2266
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2269 _ACEOF
2270
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2273 _ACEOF
2274
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2277 _ACEOF
2278
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2281 _ACEOF
2282
2283
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2286 ac_site_file1=NONE
2287 ac_site_file2=NONE
2288 if test -n "$CONFIG_SITE"; then
2289   # We do not want a PATH search for config.site.
2290   case $CONFIG_SITE in #((
2291     -*)  ac_site_file1=./$CONFIG_SITE;;
2292     */*) ac_site_file1=$CONFIG_SITE;;
2293     *)   ac_site_file1=./$CONFIG_SITE;;
2294   esac
2295 elif test "x$prefix" != xNONE; then
2296   ac_site_file1=$prefix/share/config.site
2297   ac_site_file2=$prefix/etc/config.site
2298 else
2299   ac_site_file1=$ac_default_prefix/share/config.site
2300   ac_site_file2=$ac_default_prefix/etc/config.site
2301 fi
2302 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2303 do
2304   test "x$ac_site_file" = xNONE && continue
2305   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2306     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2307 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2308     sed 's/^/| /' "$ac_site_file" >&5
2309     . "$ac_site_file" \
2310       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 as_fn_error $? "failed to load site script $ac_site_file
2313 See \`config.log' for more details" "$LINENO" 5; }
2314   fi
2315 done
2316
2317 if test -r "$cache_file"; then
2318   # Some versions of bash will fail to source /dev/null (special files
2319   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2320   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2322 $as_echo "$as_me: loading cache $cache_file" >&6;}
2323     case $cache_file in
2324       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2325       *)                      . "./$cache_file";;
2326     esac
2327   fi
2328 else
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2330 $as_echo "$as_me: creating cache $cache_file" >&6;}
2331   >$cache_file
2332 fi
2333
2334 gt_needs="$gt_needs "
2335 # Check that the precious variables saved in the cache have kept the same
2336 # value.
2337 ac_cache_corrupted=false
2338 for ac_var in $ac_precious_vars; do
2339   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2340   eval ac_new_set=\$ac_env_${ac_var}_set
2341   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2342   eval ac_new_val=\$ac_env_${ac_var}_value
2343   case $ac_old_set,$ac_new_set in
2344     set,)
2345       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2346 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2347       ac_cache_corrupted=: ;;
2348     ,set)
2349       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2350 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2351       ac_cache_corrupted=: ;;
2352     ,);;
2353     *)
2354       if test "x$ac_old_val" != "x$ac_new_val"; then
2355         # differences in whitespace do not lead to failure.
2356         ac_old_val_w=`echo x $ac_old_val`
2357         ac_new_val_w=`echo x $ac_new_val`
2358         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2359           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2360 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2361           ac_cache_corrupted=:
2362         else
2363           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2364 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2365           eval $ac_var=\$ac_old_val
2366         fi
2367         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2368 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2369         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2370 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2371       fi;;
2372   esac
2373   # Pass precious variables to config.status.
2374   if test "$ac_new_set" = set; then
2375     case $ac_new_val in
2376     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2377     *) ac_arg=$ac_var=$ac_new_val ;;
2378     esac
2379     case " $ac_configure_args " in
2380       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2381       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2382     esac
2383   fi
2384 done
2385 if $ac_cache_corrupted; then
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2388   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2389 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2390   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2391 fi
2392 ## -------------------- ##
2393 ## Main body of script. ##
2394 ## -------------------- ##
2395
2396 ac_ext=c
2397 ac_cpp='$CPP $CPPFLAGS'
2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2401
2402
2403
2404
2405
2406 # Autoconf setup
2407 ac_aux_dir=
2408 for ac_dir in config "$srcdir"/config; do
2409   if test -f "$ac_dir/install-sh"; then
2410     ac_aux_dir=$ac_dir
2411     ac_install_sh="$ac_aux_dir/install-sh -c"
2412     break
2413   elif test -f "$ac_dir/install.sh"; then
2414     ac_aux_dir=$ac_dir
2415     ac_install_sh="$ac_aux_dir/install.sh -c"
2416     break
2417   elif test -f "$ac_dir/shtool"; then
2418     ac_aux_dir=$ac_dir
2419     ac_install_sh="$ac_aux_dir/shtool install -c"
2420     break
2421   fi
2422 done
2423 if test -z "$ac_aux_dir"; then
2424   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2425 fi
2426
2427 # These three variables are undocumented and unsupported,
2428 # and are intended to be withdrawn in a future Autoconf release.
2429 # They can cause serious problems if a builder's source tree is in a directory
2430 # whose full name contains unusual characters.
2431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2433 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2434
2435
2436
2437 ac_config_headers="$ac_config_headers config.h"
2438
2439
2440 # Automake setup
2441 # We have to enable "foreign" because ChangeLog is auto-generated
2442 # We cannot enable -Werror because gettext 0.18.1 has invalid content
2443 # When we update gettext to 0.18.3 or better we can add it again.
2444 am__api_version='1.14'
2445
2446 # Find a good install program.  We prefer a C program (faster),
2447 # so one script is as good as another.  But avoid the broken or
2448 # incompatible versions:
2449 # SysV /etc/install, /usr/sbin/install
2450 # SunOS /usr/etc/install
2451 # IRIX /sbin/install
2452 # AIX /bin/install
2453 # AmigaOS /C/install, which installs bootblocks on floppy discs
2454 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2455 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2456 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2457 # OS/2's system install, which has a completely different semantic
2458 # ./install, which can be erroneously created by make from ./install.sh.
2459 # Reject install programs that cannot install multiple files.
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2461 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2462 if test -z "$INSTALL"; then
2463 if ${ac_cv_path_install+:} false; then :
2464   $as_echo_n "(cached) " >&6
2465 else
2466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469   IFS=$as_save_IFS
2470   test -z "$as_dir" && as_dir=.
2471     # Account for people who put trailing slashes in PATH elements.
2472 case $as_dir/ in #((
2473   ./ | .// | /[cC]/* | \
2474   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2475   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2476   /usr/ucb/* ) ;;
2477   *)
2478     # OSF1 and SCO ODT 3.0 have their own names for install.
2479     # Don't use installbsd from OSF since it installs stuff as root
2480     # by default.
2481     for ac_prog in ginstall scoinst install; do
2482       for ac_exec_ext in '' $ac_executable_extensions; do
2483         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2484           if test $ac_prog = install &&
2485             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2486             # AIX install.  It has an incompatible calling convention.
2487             :
2488           elif test $ac_prog = install &&
2489             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2490             # program-specific install script used by HP pwplus--don't use.
2491             :
2492           else
2493             rm -rf conftest.one conftest.two conftest.dir
2494             echo one > conftest.one
2495             echo two > conftest.two
2496             mkdir conftest.dir
2497             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2498               test -s conftest.one && test -s conftest.two &&
2499               test -s conftest.dir/conftest.one &&
2500               test -s conftest.dir/conftest.two
2501             then
2502               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2503               break 3
2504             fi
2505           fi
2506         fi
2507       done
2508     done
2509     ;;
2510 esac
2511
2512   done
2513 IFS=$as_save_IFS
2514
2515 rm -rf conftest.one conftest.two conftest.dir
2516
2517 fi
2518   if test "${ac_cv_path_install+set}" = set; then
2519     INSTALL=$ac_cv_path_install
2520   else
2521     # As a last resort, use the slow shell script.  Don't cache a
2522     # value for INSTALL within a source directory, because that will
2523     # break other packages using the cache if that directory is
2524     # removed, or if the value is a relative name.
2525     INSTALL=$ac_install_sh
2526   fi
2527 fi
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2529 $as_echo "$INSTALL" >&6; }
2530
2531 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2532 # It thinks the first close brace ends the variable substitution.
2533 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2534
2535 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2536
2537 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2540 $as_echo_n "checking whether build environment is sane... " >&6; }
2541 # Reject unsafe characters in $srcdir or the absolute working directory
2542 # name.  Accept space and tab only in the latter.
2543 am_lf='
2544 '
2545 case `pwd` in
2546   *[\\\"\#\$\&\'\`$am_lf]*)
2547     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2548 esac
2549 case $srcdir in
2550   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2551     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2552 esac
2553
2554 # Do 'set' in a subshell so we don't clobber the current shell's
2555 # arguments.  Must try -L first in case configure is actually a
2556 # symlink; some systems play weird games with the mod time of symlinks
2557 # (eg FreeBSD returns the mod time of the symlink's containing
2558 # directory).
2559 if (
2560    am_has_slept=no
2561    for am_try in 1 2; do
2562      echo "timestamp, slept: $am_has_slept" > conftest.file
2563      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2564      if test "$*" = "X"; then
2565         # -L didn't work.
2566         set X `ls -t "$srcdir/configure" conftest.file`
2567      fi
2568      if test "$*" != "X $srcdir/configure conftest.file" \
2569         && test "$*" != "X conftest.file $srcdir/configure"; then
2570
2571         # If neither matched, then we have a broken ls.  This can happen
2572         # if, for instance, CONFIG_SHELL is bash and it inherits a
2573         # broken ls alias from the environment.  This has actually
2574         # happened.  Such a system could not be considered "sane".
2575         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2576   alias in your environment" "$LINENO" 5
2577      fi
2578      if test "$2" = conftest.file || test $am_try -eq 2; then
2579        break
2580      fi
2581      # Just in case.
2582      sleep 1
2583      am_has_slept=yes
2584    done
2585    test "$2" = conftest.file
2586    )
2587 then
2588    # Ok.
2589    :
2590 else
2591    as_fn_error $? "newly created file is older than distributed files!
2592 Check your system clock" "$LINENO" 5
2593 fi
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2595 $as_echo "yes" >&6; }
2596 # If we didn't sleep, we still need to ensure time stamps of config.status and
2597 # generated files are strictly newer.
2598 am_sleep_pid=
2599 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2600   ( sleep 1 ) &
2601   am_sleep_pid=$!
2602 fi
2603
2604 rm -f conftest.file
2605
2606 test "$program_prefix" != NONE &&
2607   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2608 # Use a double $ so make ignores it.
2609 test "$program_suffix" != NONE &&
2610   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2611 # Double any \ or $.
2612 # By default was `s,x,x', remove it if useless.
2613 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2614 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2615
2616 # expand $ac_aux_dir to an absolute path
2617 am_aux_dir=`cd $ac_aux_dir && pwd`
2618
2619 if test x"${MISSING+set}" != xset; then
2620   case $am_aux_dir in
2621   *\ * | *\     *)
2622     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2623   *)
2624     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2625   esac
2626 fi
2627 # Use eval to expand $SHELL
2628 if eval "$MISSING --is-lightweight"; then
2629   am_missing_run="$MISSING "
2630 else
2631   am_missing_run=
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2633 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2634 fi
2635
2636 if test x"${install_sh}" != xset; then
2637   case $am_aux_dir in
2638   *\ * | *\     *)
2639     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2640   *)
2641     install_sh="\${SHELL} $am_aux_dir/install-sh"
2642   esac
2643 fi
2644
2645 # Installed binaries are usually stripped using 'strip' when the user
2646 # run "make install-strip".  However 'strip' might not be the right
2647 # tool to use in cross-compilation environments, therefore Automake
2648 # will honor the 'STRIP' environment variable to overrule this program.
2649 if test "$cross_compiling" != no; then
2650   if test -n "$ac_tool_prefix"; then
2651   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2652 set dummy ${ac_tool_prefix}strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_STRIP+:} false; then :
2656   $as_echo_n "(cached) " >&6
2657 else
2658   if test -n "$STRIP"; then
2659   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664   IFS=$as_save_IFS
2665   test -z "$as_dir" && as_dir=.
2666     for ac_exec_ext in '' $ac_executable_extensions; do
2667   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670     break 2
2671   fi
2672 done
2673   done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 STRIP=$ac_cv_prog_STRIP
2679 if test -n "$STRIP"; then
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2681 $as_echo "$STRIP" >&6; }
2682 else
2683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687
2688 fi
2689 if test -z "$ac_cv_prog_STRIP"; then
2690   ac_ct_STRIP=$STRIP
2691   # Extract the first word of "strip", so it can be a program name with args.
2692 set dummy strip; ac_word=$2
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2694 $as_echo_n "checking for $ac_word... " >&6; }
2695 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2696   $as_echo_n "(cached) " >&6
2697 else
2698   if test -n "$ac_ct_STRIP"; then
2699   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2700 else
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 for as_dir in $PATH
2703 do
2704   IFS=$as_save_IFS
2705   test -z "$as_dir" && as_dir=.
2706     for ac_exec_ext in '' $ac_executable_extensions; do
2707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2708     ac_cv_prog_ac_ct_STRIP="strip"
2709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2710     break 2
2711   fi
2712 done
2713   done
2714 IFS=$as_save_IFS
2715
2716 fi
2717 fi
2718 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2719 if test -n "$ac_ct_STRIP"; then
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2721 $as_echo "$ac_ct_STRIP" >&6; }
2722 else
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725 fi
2726
2727   if test "x$ac_ct_STRIP" = x; then
2728     STRIP=":"
2729   else
2730     case $cross_compiling:$ac_tool_warned in
2731 yes:)
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2734 ac_tool_warned=yes ;;
2735 esac
2736     STRIP=$ac_ct_STRIP
2737   fi
2738 else
2739   STRIP="$ac_cv_prog_STRIP"
2740 fi
2741
2742 fi
2743 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2744
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2746 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2747 if test -z "$MKDIR_P"; then
2748   if ${ac_cv_path_mkdir+:} false; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2753 do
2754   IFS=$as_save_IFS
2755   test -z "$as_dir" && as_dir=.
2756     for ac_prog in mkdir gmkdir; do
2757          for ac_exec_ext in '' $ac_executable_extensions; do
2758            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2759            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2760              'mkdir (GNU coreutils) '* | \
2761              'mkdir (coreutils) '* | \
2762              'mkdir (fileutils) '4.1*)
2763                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2764                break 3;;
2765            esac
2766          done
2767        done
2768   done
2769 IFS=$as_save_IFS
2770
2771 fi
2772
2773   test -d ./--version && rmdir ./--version
2774   if test "${ac_cv_path_mkdir+set}" = set; then
2775     MKDIR_P="$ac_cv_path_mkdir -p"
2776   else
2777     # As a last resort, use the slow shell script.  Don't cache a
2778     # value for MKDIR_P within a source directory, because that will
2779     # break other packages using the cache if that directory is
2780     # removed, or if the value is a relative name.
2781     MKDIR_P="$ac_install_sh -d"
2782   fi
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2785 $as_echo "$MKDIR_P" >&6; }
2786
2787 for ac_prog in gawk mawk nawk awk
2788 do
2789   # Extract the first word of "$ac_prog", so it can be a program name with args.
2790 set dummy $ac_prog; ac_word=$2
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if ${ac_cv_prog_AWK+:} false; then :
2794   $as_echo_n "(cached) " >&6
2795 else
2796   if test -n "$AWK"; then
2797   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802   IFS=$as_save_IFS
2803   test -z "$as_dir" && as_dir=.
2804     for ac_exec_ext in '' $ac_executable_extensions; do
2805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806     ac_cv_prog_AWK="$ac_prog"
2807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2808     break 2
2809   fi
2810 done
2811   done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 AWK=$ac_cv_prog_AWK
2817 if test -n "$AWK"; then
2818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2819 $as_echo "$AWK" >&6; }
2820 else
2821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825
2826   test -n "$AWK" && break
2827 done
2828
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2830 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2831 set x ${MAKE-make}
2832 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2833 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2834   $as_echo_n "(cached) " >&6
2835 else
2836   cat >conftest.make <<\_ACEOF
2837 SHELL = /bin/sh
2838 all:
2839         @echo '@@@%%%=$(MAKE)=@@@%%%'
2840 _ACEOF
2841 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2842 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2843   *@@@%%%=?*=@@@%%%*)
2844     eval ac_cv_prog_make_${ac_make}_set=yes;;
2845   *)
2846     eval ac_cv_prog_make_${ac_make}_set=no;;
2847 esac
2848 rm -f conftest.make
2849 fi
2850 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2852 $as_echo "yes" >&6; }
2853   SET_MAKE=
2854 else
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2857   SET_MAKE="MAKE=${MAKE-make}"
2858 fi
2859
2860 rm -rf .tst 2>/dev/null
2861 mkdir .tst 2>/dev/null
2862 if test -d .tst; then
2863   am__leading_dot=.
2864 else
2865   am__leading_dot=_
2866 fi
2867 rmdir .tst 2>/dev/null
2868
2869 # Check whether --enable-silent-rules was given.
2870 if test "${enable_silent_rules+set}" = set; then :
2871   enableval=$enable_silent_rules;
2872 fi
2873
2874 case $enable_silent_rules in # (((
2875   yes) AM_DEFAULT_VERBOSITY=0;;
2876    no) AM_DEFAULT_VERBOSITY=1;;
2877     *) AM_DEFAULT_VERBOSITY=1;;
2878 esac
2879 am_make=${MAKE-make}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2881 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2882 if ${am_cv_make_support_nested_variables+:} false; then :
2883   $as_echo_n "(cached) " >&6
2884 else
2885   if $as_echo 'TRUE=$(BAR$(V))
2886 BAR0=false
2887 BAR1=true
2888 V=1
2889 am__doit:
2890         @$(TRUE)
2891 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2892   am_cv_make_support_nested_variables=yes
2893 else
2894   am_cv_make_support_nested_variables=no
2895 fi
2896 fi
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2898 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2899 if test $am_cv_make_support_nested_variables = yes; then
2900     AM_V='$(V)'
2901   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2902 else
2903   AM_V=$AM_DEFAULT_VERBOSITY
2904   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2905 fi
2906 AM_BACKSLASH='\'
2907
2908 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2909   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2910   # is not polluted with repeated "-I."
2911   am__isrc=' -I$(srcdir)'
2912   # test to see if srcdir already configured
2913   if test -f $srcdir/config.status; then
2914     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2915   fi
2916 fi
2917
2918 # test whether we have cygpath
2919 if test -z "$CYGPATH_W"; then
2920   if (cygpath --version) >/dev/null 2>/dev/null; then
2921     CYGPATH_W='cygpath -w'
2922   else
2923     CYGPATH_W=echo
2924   fi
2925 fi
2926
2927
2928 # Define the identity of the package.
2929  PACKAGE='make'
2930  VERSION='4.1'
2931
2932
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE "$PACKAGE"
2935 _ACEOF
2936
2937
2938 cat >>confdefs.h <<_ACEOF
2939 #define VERSION "$VERSION"
2940 _ACEOF
2941
2942 # Some tools Automake needs.
2943
2944 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2945
2946
2947 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2948
2949
2950 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2951
2952
2953 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2954
2955
2956 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2957
2958 # For better backward compatibility.  To be removed once Automake 1.9.x
2959 # dies out for good.  For more background, see:
2960 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2961 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2962 mkdir_p='$(MKDIR_P)'
2963
2964 # We need awk for the "check" target.  The system "awk" is bad on
2965 # some platforms.
2966 # Always define AMTAR for backward compatibility.  Yes, it's still used
2967 # in the wild :-(  We should find a proper way to deprecate it ...
2968 AMTAR='$${TAR-tar}'
2969
2970
2971 # We'll loop over all known methods to create a tar archive until one works.
2972 _am_tools='gnutar  pax cpio none'
2973
2974 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2975
2976
2977
2978
2979
2980
2981 # POSIX will say in a future version that running "rm -f" with no argument
2982 # is OK; and we want to be able to make that assumption in our Makefile
2983 # recipes.  So use an aggressive probe to check that the usage we want is
2984 # actually supported "in the wild" to an acceptable degree.
2985 # See automake bug#10828.
2986 # To make any issue more visible, cause the running configure to be aborted
2987 # by default if the 'rm' program in use doesn't match our expectations; the
2988 # user can still override this though.
2989 if rm -f && rm -fr && rm -rf; then : OK; else
2990   cat >&2 <<'END'
2991 Oops!
2992
2993 Your 'rm' program seems unable to run without file operands specified
2994 on the command line, even when the '-f' option is present.  This is contrary
2995 to the behaviour of most rm programs out there, and not conforming with
2996 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2997
2998 Please tell bug-automake@gnu.org about your system, including the value
2999 of your $PATH and any error possibly output before this message.  This
3000 can help us improve future automake versions.
3001
3002 END
3003   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3004     echo 'Configuration will proceed anyway, since you have set the' >&2
3005     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3006     echo >&2
3007   else
3008     cat >&2 <<'END'
3009 Aborting the configuration process, to ensure you take notice of the issue.
3010
3011 You can download and install GNU coreutils to get an 'rm' implementation
3012 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3013
3014 If you want to complete the configuration process using your problematic
3015 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3016 to "yes", and re-run configure.
3017
3018 END
3019     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3020   fi
3021 fi
3022
3023 # Checks for programs.
3024 DEPDIR="${am__leading_dot}deps"
3025
3026 ac_config_commands="$ac_config_commands depfiles"
3027
3028
3029 am_make=${MAKE-make}
3030 cat > confinc << 'END'
3031 am__doit:
3032         @echo this is the am__doit target
3033 .PHONY: am__doit
3034 END
3035 # If we don't find an include directive, just comment out the code.
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3037 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3038 am__include="#"
3039 am__quote=
3040 _am_result=none
3041 # First try GNU make style include.
3042 echo "include confinc" > confmf
3043 # Ignore all kinds of additional output from 'make'.
3044 case `$am_make -s -f confmf 2> /dev/null` in #(
3045 *the\ am__doit\ target*)
3046   am__include=include
3047   am__quote=
3048   _am_result=GNU
3049   ;;
3050 esac
3051 # Now try BSD make style include.
3052 if test "$am__include" = "#"; then
3053    echo '.include "confinc"' > confmf
3054    case `$am_make -s -f confmf 2> /dev/null` in #(
3055    *the\ am__doit\ target*)
3056      am__include=.include
3057      am__quote="\""
3058      _am_result=BSD
3059      ;;
3060    esac
3061 fi
3062
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3065 $as_echo "$_am_result" >&6; }
3066 rm -f confinc confmf
3067
3068 # Check whether --enable-dependency-tracking was given.
3069 if test "${enable_dependency_tracking+set}" = set; then :
3070   enableval=$enable_dependency_tracking;
3071 fi
3072
3073 if test "x$enable_dependency_tracking" != xno; then
3074   am_depcomp="$ac_aux_dir/depcomp"
3075   AMDEPBACKSLASH='\'
3076   am__nodep='_no'
3077 fi
3078  if test "x$enable_dependency_tracking" != xno; then
3079   AMDEP_TRUE=
3080   AMDEP_FALSE='#'
3081 else
3082   AMDEP_TRUE='#'
3083   AMDEP_FALSE=
3084 fi
3085
3086
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if ${ac_cv_prog_CC+:} false; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test -n "$CC"; then
3101   ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3105 do
3106   IFS=$as_save_IFS
3107   test -z "$as_dir" && as_dir=.
3108     for ac_exec_ext in '' $ac_executable_extensions; do
3109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 fi
3119 fi
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3127 fi
3128
3129
3130 fi
3131 if test -z "$ac_cv_prog_CC"; then
3132   ac_ct_CC=$CC
3133   # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3138   $as_echo_n "(cached) " >&6
3139 else
3140   if test -n "$ac_ct_CC"; then
3141   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3145 do
3146   IFS=$as_save_IFS
3147   test -z "$as_dir" && as_dir=.
3148     for ac_exec_ext in '' $ac_executable_extensions; do
3149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150     ac_cv_prog_ac_ct_CC="gcc"
3151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152     break 2
3153   fi
3154 done
3155   done
3156 IFS=$as_save_IFS
3157
3158 fi
3159 fi
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3167 fi
3168
3169   if test "x$ac_ct_CC" = x; then
3170     CC=""
3171   else
3172     case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178     CC=$ac_ct_CC
3179   fi
3180 else
3181   CC="$ac_cv_prog_CC"
3182 fi
3183
3184 if test -z "$CC"; then
3185           if test -n "$ac_tool_prefix"; then
3186     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_prog_CC+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   if test -n "$CC"; then
3194   ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_prog_CC="${ac_tool_prefix}cc"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211 fi
3212 fi
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3217 else
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222
3223   fi
3224 fi
3225 if test -z "$CC"; then
3226   # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CC+:} false; then :
3231   $as_echo_n "(cached) " >&6
3232 else
3233   if test -n "$CC"; then
3234   ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236   ac_prog_rejected=no
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242     for ac_exec_ext in '' $ac_executable_extensions; do
3243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245        ac_prog_rejected=yes
3246        continue
3247      fi
3248     ac_cv_prog_CC="cc"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256 if test $ac_prog_rejected = yes; then
3257   # We found a bogon in the path, so make sure we never use it.
3258   set dummy $ac_cv_prog_CC
3259   shift
3260   if test $# != 0; then
3261     # We chose a different compiler from the bogus one.
3262     # However, it has the same basename, so the bogon will be chosen
3263     # first if we set CC to just the basename; use the full file name.
3264     shift
3265     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3266   fi
3267 fi
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280 fi
3281 if test -z "$CC"; then
3282   if test -n "$ac_tool_prefix"; then
3283   for ac_prog in cl.exe
3284   do
3285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if ${ac_cv_prog_CC+:} false; then :
3290   $as_echo_n "(cached) " >&6
3291 else
3292   if test -n "$CC"; then
3293   ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298   IFS=$as_save_IFS
3299   test -z "$as_dir" && as_dir=.
3300     for ac_exec_ext in '' $ac_executable_extensions; do
3301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304     break 2
3305   fi
3306 done
3307   done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3319 fi
3320
3321
3322     test -n "$CC" && break
3323   done
3324 fi
3325 if test -z "$CC"; then
3326   ac_ct_CC=$CC
3327   for ac_prog in cl.exe
3328 do
3329   # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if test -n "$ac_ct_CC"; then
3337   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3341 do
3342   IFS=$as_save_IFS
3343   test -z "$as_dir" && as_dir=.
3344     for ac_exec_ext in '' $ac_executable_extensions; do
3345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346     ac_cv_prog_ac_ct_CC="$ac_prog"
3347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348     break 2
3349   fi
3350 done
3351   done
3352 IFS=$as_save_IFS
3353
3354 fi
3355 fi
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3360 else
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3363 fi
3364
3365
3366   test -n "$ac_ct_CC" && break
3367 done
3368
3369   if test "x$ac_ct_CC" = x; then
3370     CC=""
3371   else
3372     case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378     CC=$ac_ct_CC
3379   fi
3380 fi
3381
3382 fi
3383
3384
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error $? "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details" "$LINENO" 5; }
3389
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395   { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398   *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403   ac_status=$?
3404   if test -s conftest.err; then
3405     sed '10a\
3406 ... rest of stderr output deleted ...
3407          10q' conftest.err >conftest.er1
3408     cat conftest.er1 >&5
3409   fi
3410   rm -f conftest.er1 conftest.err
3411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412   test $ac_status = 0; }
3413 done
3414
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417
3418 int
3419 main ()
3420 {
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3432 $as_echo_n "checking whether the C compiler works... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3434
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3437
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3440 do
3441   case $ac_file in
3442     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444   esac
3445 done
3446 rm -f $ac_rmfiles
3447
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455   (eval "$ac_link_default") 2>&5
3456   ac_status=$?
3457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458   test $ac_status = 0; }; then :
3459   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3465 do
3466   test -f "$ac_file" || continue
3467   case $ac_file in
3468     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3469         ;;
3470     [ab].out )
3471         # We found the default executable, but exeext='' is most
3472         # certainly right.
3473         break;;
3474     *.* )
3475         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476         then :; else
3477            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478         fi
3479         # We set ac_cv_exeext here because the later test for it is not
3480         # safe: cross compilers may not add the suffix if given an `-o'
3481         # argument, so we may need to know it at that point already.
3482         # Even if this section looks crufty: it has the advantage of
3483         # actually working.
3484         break;;
3485     * )
3486         break;;
3487   esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3490
3491 else
3492   ac_file=''
3493 fi
3494 if test -z "$ac_file"; then :
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error 77 "C compiler cannot create executables
3503 See \`config.log' for more details" "$LINENO" 5; }
3504 else
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3506 $as_echo "yes" >&6; }
3507 fi
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3509 $as_echo_n "checking for C compiler default output file name... " >&6; }
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3511 $as_echo "$ac_file" >&6; }
3512 ac_exeext=$ac_cv_exeext
3513
3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3515 ac_clean_files=$ac_clean_files_save
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3517 $as_echo_n "checking for suffix of executables... " >&6; }
3518 if { { ac_try="$ac_link"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525   (eval "$ac_link") 2>&5
3526   ac_status=$?
3527   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528   test $ac_status = 0; }; then :
3529   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3530 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3531 # work properly (i.e., refer to `conftest.exe'), while it won't with
3532 # `rm'.
3533 for ac_file in conftest.exe conftest conftest.*; do
3534   test -f "$ac_file" || continue
3535   case $ac_file in
3536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3537     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3538           break;;
3539     * ) break;;
3540   esac
3541 done
3542 else
3543   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3546 See \`config.log' for more details" "$LINENO" 5; }
3547 fi
3548 rm -f conftest conftest$ac_cv_exeext
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3550 $as_echo "$ac_cv_exeext" >&6; }
3551
3552 rm -f conftest.$ac_ext
3553 EXEEXT=$ac_cv_exeext
3554 ac_exeext=$EXEEXT
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557 #include <stdio.h>
3558 int
3559 main ()
3560 {
3561 FILE *f = fopen ("conftest.out", "w");
3562  return ferror (f) || fclose (f) != 0;
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 ac_clean_files="$ac_clean_files conftest.out"
3569 # Check that the compiler produces executables we can run.  If not, either
3570 # the compiler is broken, or we cross compile.
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3572 $as_echo_n "checking whether we are cross compiling... " >&6; }
3573 if test "$cross_compiling" != yes; then
3574   { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_link") 2>&5
3582   ac_status=$?
3583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584   test $ac_status = 0; }
3585   if { ac_try='./conftest$ac_cv_exeext'
3586   { { case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591 $as_echo "$ac_try_echo"; } >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595   test $ac_status = 0; }; }; then
3596     cross_compiling=no
3597   else
3598     if test "$cross_compiling" = maybe; then
3599         cross_compiling=yes
3600     else
3601         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "cannot run C compiled programs.
3604 If you meant to cross compile, use \`--host'.
3605 See \`config.log' for more details" "$LINENO" 5; }
3606     fi
3607   fi
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3610 $as_echo "$cross_compiling" >&6; }
3611
3612 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3613 ac_clean_files=$ac_clean_files_save
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3615 $as_echo_n "checking for suffix of object files... " >&6; }
3616 if ${ac_cv_objext+:} false; then :
3617   $as_echo_n "(cached) " >&6
3618 else
3619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h.  */
3621
3622 int
3623 main ()
3624 {
3625
3626   ;
3627   return 0;
3628 }
3629 _ACEOF
3630 rm -f conftest.o conftest.obj
3631 if { { ac_try="$ac_compile"
3632 case "(($ac_try" in
3633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634   *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 $as_echo "$ac_try_echo"; } >&5
3638   (eval "$ac_compile") 2>&5
3639   ac_status=$?
3640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641   test $ac_status = 0; }; then :
3642   for ac_file in conftest.o conftest.obj conftest.*; do
3643   test -f "$ac_file" || continue;
3644   case $ac_file in
3645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3646     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3647        break;;
3648   esac
3649 done
3650 else
3651   $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error $? "cannot compute suffix of object files: cannot compile
3657 See \`config.log' for more details" "$LINENO" 5; }
3658 fi
3659 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3660 fi
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3662 $as_echo "$ac_cv_objext" >&6; }
3663 OBJEXT=$ac_cv_objext
3664 ac_objext=$OBJEXT
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3666 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3667 if ${ac_cv_c_compiler_gnu+:} false; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h.  */
3672
3673 int
3674 main ()
3675 {
3676 #ifndef __GNUC__
3677        choke me
3678 #endif
3679
3680   ;
3681   return 0;
3682 }
3683 _ACEOF
3684 if ac_fn_c_try_compile "$LINENO"; then :
3685   ac_compiler_gnu=yes
3686 else
3687   ac_compiler_gnu=no
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3695 if test $ac_compiler_gnu = yes; then
3696   GCC=yes
3697 else
3698   GCC=
3699 fi
3700 ac_test_CFLAGS=${CFLAGS+set}
3701 ac_save_CFLAGS=$CFLAGS
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3704 if ${ac_cv_prog_cc_g+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   ac_save_c_werror_flag=$ac_c_werror_flag
3708    ac_c_werror_flag=yes
3709    ac_cv_prog_cc_g=no
3710    CFLAGS="-g"
3711    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h.  */
3713
3714 int
3715 main ()
3716 {
3717
3718   ;
3719   return 0;
3720 }
3721 _ACEOF
3722 if ac_fn_c_try_compile "$LINENO"; then :
3723   ac_cv_prog_cc_g=yes
3724 else
3725   CFLAGS=""
3726       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728
3729 int
3730 main ()
3731 {
3732
3733   ;
3734   return 0;
3735 }
3736 _ACEOF
3737 if ac_fn_c_try_compile "$LINENO"; then :
3738
3739 else
3740   ac_c_werror_flag=$ac_save_c_werror_flag
3741          CFLAGS="-g"
3742          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744
3745 int
3746 main ()
3747 {
3748
3749   ;
3750   return 0;
3751 }
3752 _ACEOF
3753 if ac_fn_c_try_compile "$LINENO"; then :
3754   ac_cv_prog_cc_g=yes
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761    ac_c_werror_flag=$ac_save_c_werror_flag
3762 fi
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3764 $as_echo "$ac_cv_prog_cc_g" >&6; }
3765 if test "$ac_test_CFLAGS" = set; then
3766   CFLAGS=$ac_save_CFLAGS
3767 elif test $ac_cv_prog_cc_g = yes; then
3768   if test "$GCC" = yes; then
3769     CFLAGS="-g -O2"
3770   else
3771     CFLAGS="-g"
3772   fi
3773 else
3774   if test "$GCC" = yes; then
3775     CFLAGS="-O2"
3776   else
3777     CFLAGS=
3778   fi
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3781 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3782 if ${ac_cv_prog_cc_c89+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   ac_cv_prog_cc_c89=no
3786 ac_save_CC=$CC
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789 #include <stdarg.h>
3790 #include <stdio.h>
3791 struct stat;
3792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3793 struct buf { int x; };
3794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795 static char *e (p, i)
3796      char **p;
3797      int i;
3798 {
3799   return p[i];
3800 }
3801 static char *f (char * (*g) (char **, int), char **p, ...)
3802 {
3803   char *s;
3804   va_list v;
3805   va_start (v,p);
3806   s = g (p, va_arg (v,int));
3807   va_end (v);
3808   return s;
3809 }
3810
3811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3812    function prototypes and stuff, but not '\xHH' hex character constants.
3813    These don't provoke an error unfortunately, instead are silently treated
3814    as 'x'.  The following induces an error, until -std is added to get
3815    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3816    array size at least.  It's necessary to write '\x00'==0 to get something
3817    that's true only with -std.  */
3818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819
3820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821    inside strings and character constants.  */
3822 #define FOO(x) 'x'
3823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824
3825 int test (int i, double x);
3826 struct s1 {int (*f) (int a);};
3827 struct s2 {int (*f) (double a);};
3828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829 int argc;
3830 char **argv;
3831 int
3832 main ()
3833 {
3834 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3835   ;
3836   return 0;
3837 }
3838 _ACEOF
3839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841 do
3842   CC="$ac_save_CC $ac_arg"
3843   if ac_fn_c_try_compile "$LINENO"; then :
3844   ac_cv_prog_cc_c89=$ac_arg
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext
3847   test "x$ac_cv_prog_cc_c89" != "xno" && break
3848 done
3849 rm -f conftest.$ac_ext
3850 CC=$ac_save_CC
3851
3852 fi
3853 # AC_CACHE_VAL
3854 case "x$ac_cv_prog_cc_c89" in
3855   x)
3856     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857 $as_echo "none needed" >&6; } ;;
3858   xno)
3859     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860 $as_echo "unsupported" >&6; } ;;
3861   *)
3862     CC="$CC $ac_cv_prog_cc_c89"
3863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865 esac
3866 if test "x$ac_cv_prog_cc_c89" != xno; then :
3867
3868 fi
3869
3870 ac_ext=c
3871 ac_cpp='$CPP $CPPFLAGS'
3872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3882 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3883 if ${am_cv_prog_cc_c_o+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
3889 int
3890 main ()
3891 {
3892
3893   ;
3894   return 0;
3895 }
3896 _ACEOF
3897   # Make sure it works both with $CC and with simple cc.
3898   # Following AC_PROG_CC_C_O, we do the test twice because some
3899   # compilers refuse to overwrite an existing .o file with -o,
3900   # though they will create one.
3901   am_cv_prog_cc_c_o=yes
3902   for am_i in 1 2; do
3903     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3904    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3905    ac_status=$?
3906    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907    (exit $ac_status); } \
3908          && test -f conftest2.$ac_objext; then
3909       : OK
3910     else
3911       am_cv_prog_cc_c_o=no
3912       break
3913     fi
3914   done
3915   rm -f core conftest*
3916   unset am_i
3917 fi
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3919 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3920 if test "$am_cv_prog_cc_c_o" != yes; then
3921    # Losing compiler, so override with the script.
3922    # FIXME: It is wrong to rewrite CC.
3923    # But if we don't then we get into trouble of one sort or another.
3924    # A longer-term fix would be to have automake use am__CC in this case,
3925    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3926    CC="$am_aux_dir/compile $CC"
3927 fi
3928 ac_ext=c
3929 ac_cpp='$CPP $CPPFLAGS'
3930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3933
3934
3935 depcc="$CC"   am_compiler_list=
3936
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3938 $as_echo_n "checking dependency style of $depcc... " >&6; }
3939 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3940   $as_echo_n "(cached) " >&6
3941 else
3942   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3943   # We make a subdir and do the tests there.  Otherwise we can end up
3944   # making bogus files that we don't know about and never remove.  For
3945   # instance it was reported that on HP-UX the gcc test will end up
3946   # making a dummy file named 'D' -- because '-MD' means "put the output
3947   # in D".
3948   rm -rf conftest.dir
3949   mkdir conftest.dir
3950   # Copy depcomp to subdir because otherwise we won't find it if we're
3951   # using a relative directory.
3952   cp "$am_depcomp" conftest.dir
3953   cd conftest.dir
3954   # We will build objects and dependencies in a subdirectory because
3955   # it helps to detect inapplicable dependency modes.  For instance
3956   # both Tru64's cc and ICC support -MD to output dependencies as a
3957   # side effect of compilation, but ICC will put the dependencies in
3958   # the current directory while Tru64 will put them in the object
3959   # directory.
3960   mkdir sub
3961
3962   am_cv_CC_dependencies_compiler_type=none
3963   if test "$am_compiler_list" = ""; then
3964      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3965   fi
3966   am__universal=false
3967   case " $depcc " in #(
3968      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3969      esac
3970
3971   for depmode in $am_compiler_list; do
3972     # Setup a source with many dependencies, because some compilers
3973     # like to wrap large dependency lists on column 80 (with \), and
3974     # we should not choose a depcomp mode which is confused by this.
3975     #
3976     # We need to recreate these files for each test, as the compiler may
3977     # overwrite some of them when testing with obscure command lines.
3978     # This happens at least with the AIX C compiler.
3979     : > sub/conftest.c
3980     for i in 1 2 3 4 5 6; do
3981       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3982       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3983       # Solaris 10 /bin/sh.
3984       echo '/* dummy */' > sub/conftst$i.h
3985     done
3986     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3987
3988     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3989     # mode.  It turns out that the SunPro C++ compiler does not properly
3990     # handle '-M -o', and we need to detect this.  Also, some Intel
3991     # versions had trouble with output in subdirs.
3992     am__obj=sub/conftest.${OBJEXT-o}
3993     am__minus_obj="-o $am__obj"
3994     case $depmode in
3995     gcc)
3996       # This depmode causes a compiler race in universal mode.
3997       test "$am__universal" = false || continue
3998       ;;
3999     nosideeffect)
4000       # After this tag, mechanisms are not by side-effect, so they'll
4001       # only be used when explicitly requested.
4002       if test "x$enable_dependency_tracking" = xyes; then
4003         continue
4004       else
4005         break
4006       fi
4007       ;;
4008     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4009       # This compiler won't grok '-c -o', but also, the minuso test has
4010       # not run yet.  These depmodes are late enough in the game, and
4011       # so weak that their functioning should not be impacted.
4012       am__obj=conftest.${OBJEXT-o}
4013       am__minus_obj=
4014       ;;
4015     none) break ;;
4016     esac
4017     if depmode=$depmode \
4018        source=sub/conftest.c object=$am__obj \
4019        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4020        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4021          >/dev/null 2>conftest.err &&
4022        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4023        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4024        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4025        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4026       # icc doesn't choke on unknown options, it will just issue warnings
4027       # or remarks (even with -Werror).  So we grep stderr for any message
4028       # that says an option was ignored or not supported.
4029       # When given -MP, icc 7.0 and 7.1 complain thusly:
4030       #   icc: Command line warning: ignoring option '-M'; no argument required
4031       # The diagnosis changed in icc 8.0:
4032       #   icc: Command line remark: option '-MP' not supported
4033       if (grep 'ignoring option' conftest.err ||
4034           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4035         am_cv_CC_dependencies_compiler_type=$depmode
4036         break
4037       fi
4038     fi
4039   done
4040
4041   cd ..
4042   rm -rf conftest.dir
4043 else
4044   am_cv_CC_dependencies_compiler_type=none
4045 fi
4046
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4049 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4050 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4051
4052  if
4053   test "x$enable_dependency_tracking" != xno \
4054   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4055   am__fastdepCC_TRUE=
4056   am__fastdepCC_FALSE='#'
4057 else
4058   am__fastdepCC_TRUE='#'
4059   am__fastdepCC_FALSE=
4060 fi
4061
4062
4063
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4073   CPP=
4074 fi
4075 if test -z "$CPP"; then
4076   if ${ac_cv_prog_CPP+:} false; then :
4077   $as_echo_n "(cached) " >&6
4078 else
4079       # Double quotes because CPP needs to be expanded
4080     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4081     do
4082       ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4084 do
4085   # Use a header file that comes with gcc, so configuring glibc
4086   # with a fresh cross-compiler works.
4087   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088   # <limits.h> exists even on freestanding compilers.
4089   # On the NeXT, cc -E runs the code through the compiler's parser,
4090   # not just through cpp. "Syntax error" is here to catch this case.
4091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4092 /* end confdefs.h.  */
4093 #ifdef __STDC__
4094 # include <limits.h>
4095 #else
4096 # include <assert.h>
4097 #endif
4098                      Syntax error
4099 _ACEOF
4100 if ac_fn_c_try_cpp "$LINENO"; then :
4101
4102 else
4103   # Broken: fails on valid input.
4104 continue
4105 fi
4106 rm -f conftest.err conftest.i conftest.$ac_ext
4107
4108   # OK, works on sane cases.  Now check whether nonexistent headers
4109   # can be detected and how.
4110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h.  */
4112 #include <ac_nonexistent.h>
4113 _ACEOF
4114 if ac_fn_c_try_cpp "$LINENO"; then :
4115   # Broken: success on invalid input.
4116 continue
4117 else
4118   # Passes both tests.
4119 ac_preproc_ok=:
4120 break
4121 fi
4122 rm -f conftest.err conftest.i conftest.$ac_ext
4123
4124 done
4125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126 rm -f conftest.i conftest.err conftest.$ac_ext
4127 if $ac_preproc_ok; then :
4128   break
4129 fi
4130
4131     done
4132     ac_cv_prog_CPP=$CPP
4133
4134 fi
4135   CPP=$ac_cv_prog_CPP
4136 else
4137   ac_cv_prog_CPP=$CPP
4138 fi
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4140 $as_echo "$CPP" >&6; }
4141 ac_preproc_ok=false
4142 for ac_c_preproc_warn_flag in '' yes
4143 do
4144   # Use a header file that comes with gcc, so configuring glibc
4145   # with a fresh cross-compiler works.
4146   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147   # <limits.h> exists even on freestanding compilers.
4148   # On the NeXT, cc -E runs the code through the compiler's parser,
4149   # not just through cpp. "Syntax error" is here to catch this case.
4150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h.  */
4152 #ifdef __STDC__
4153 # include <limits.h>
4154 #else
4155 # include <assert.h>
4156 #endif
4157                      Syntax error
4158 _ACEOF
4159 if ac_fn_c_try_cpp "$LINENO"; then :
4160
4161 else
4162   # Broken: fails on valid input.
4163 continue
4164 fi
4165 rm -f conftest.err conftest.i conftest.$ac_ext
4166
4167   # OK, works on sane cases.  Now check whether nonexistent headers
4168   # can be detected and how.
4169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4170 /* end confdefs.h.  */
4171 #include <ac_nonexistent.h>
4172 _ACEOF
4173 if ac_fn_c_try_cpp "$LINENO"; then :
4174   # Broken: success on invalid input.
4175 continue
4176 else
4177   # Passes both tests.
4178 ac_preproc_ok=:
4179 break
4180 fi
4181 rm -f conftest.err conftest.i conftest.$ac_ext
4182
4183 done
4184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4185 rm -f conftest.i conftest.err conftest.$ac_ext
4186 if $ac_preproc_ok; then :
4187
4188 else
4189   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4191 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4192 See \`config.log' for more details" "$LINENO" 5; }
4193 fi
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4203 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4204 if ${ac_cv_path_GREP+:} false; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if test -z "$GREP"; then
4208   ac_path_GREP_found=false
4209   # Loop through the user's path and test for each of PROGNAME-LIST
4210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_prog in grep ggrep; do
4216     for ac_exec_ext in '' $ac_executable_extensions; do
4217       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4218       as_fn_executable_p "$ac_path_GREP" || continue
4219 # Check for GNU ac_path_GREP and select it if it is found.
4220   # Check for GNU $ac_path_GREP
4221 case `"$ac_path_GREP" --version 2>&1` in
4222 *GNU*)
4223   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4224 *)
4225   ac_count=0
4226   $as_echo_n 0123456789 >"conftest.in"
4227   while :
4228   do
4229     cat "conftest.in" "conftest.in" >"conftest.tmp"
4230     mv "conftest.tmp" "conftest.in"
4231     cp "conftest.in" "conftest.nl"
4232     $as_echo 'GREP' >> "conftest.nl"
4233     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4234     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4235     as_fn_arith $ac_count + 1 && ac_count=$as_val
4236     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4237       # Best one so far, save it but keep looking for a better one
4238       ac_cv_path_GREP="$ac_path_GREP"
4239       ac_path_GREP_max=$ac_count
4240     fi
4241     # 10*(2^10) chars as input seems more than enough
4242     test $ac_count -gt 10 && break
4243   done
4244   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4245 esac
4246
4247       $ac_path_GREP_found && break 3
4248     done
4249   done
4250   done
4251 IFS=$as_save_IFS
4252   if test -z "$ac_cv_path_GREP"; then
4253     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254   fi
4255 else
4256   ac_cv_path_GREP=$GREP
4257 fi
4258
4259 fi
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4261 $as_echo "$ac_cv_path_GREP" >&6; }
4262  GREP="$ac_cv_path_GREP"
4263
4264
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4266 $as_echo_n "checking for egrep... " >&6; }
4267 if ${ac_cv_path_EGREP+:} false; then :
4268   $as_echo_n "(cached) " >&6
4269 else
4270   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4271    then ac_cv_path_EGREP="$GREP -E"
4272    else
4273      if test -z "$EGREP"; then
4274   ac_path_EGREP_found=false
4275   # Loop through the user's path and test for each of PROGNAME-LIST
4276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278 do
4279   IFS=$as_save_IFS
4280   test -z "$as_dir" && as_dir=.
4281     for ac_prog in egrep; do
4282     for ac_exec_ext in '' $ac_executable_extensions; do
4283       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4284       as_fn_executable_p "$ac_path_EGREP" || continue
4285 # Check for GNU ac_path_EGREP and select it if it is found.
4286   # Check for GNU $ac_path_EGREP
4287 case `"$ac_path_EGREP" --version 2>&1` in
4288 *GNU*)
4289   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4290 *)
4291   ac_count=0
4292   $as_echo_n 0123456789 >"conftest.in"
4293   while :
4294   do
4295     cat "conftest.in" "conftest.in" >"conftest.tmp"
4296     mv "conftest.tmp" "conftest.in"
4297     cp "conftest.in" "conftest.nl"
4298     $as_echo 'EGREP' >> "conftest.nl"
4299     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301     as_fn_arith $ac_count + 1 && ac_count=$as_val
4302     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4303       # Best one so far, save it but keep looking for a better one
4304       ac_cv_path_EGREP="$ac_path_EGREP"
4305       ac_path_EGREP_max=$ac_count
4306     fi
4307     # 10*(2^10) chars as input seems more than enough
4308     test $ac_count -gt 10 && break
4309   done
4310   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4311 esac
4312
4313       $ac_path_EGREP_found && break 3
4314     done
4315   done
4316   done
4317 IFS=$as_save_IFS
4318   if test -z "$ac_cv_path_EGREP"; then
4319     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320   fi
4321 else
4322   ac_cv_path_EGREP=$EGREP
4323 fi
4324
4325    fi
4326 fi
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4328 $as_echo "$ac_cv_path_EGREP" >&6; }
4329  EGREP="$ac_cv_path_EGREP"
4330
4331
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4333 $as_echo_n "checking for ANSI C header files... " >&6; }
4334 if ${ac_cv_header_stdc+:} false; then :
4335   $as_echo_n "(cached) " >&6
4336 else
4337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h.  */
4339 #include <stdlib.h>
4340 #include <stdarg.h>
4341 #include <string.h>
4342 #include <float.h>
4343
4344 int
4345 main ()
4346 {
4347
4348   ;
4349   return 0;
4350 }
4351 _ACEOF
4352 if ac_fn_c_try_compile "$LINENO"; then :
4353   ac_cv_header_stdc=yes
4354 else
4355   ac_cv_header_stdc=no
4356 fi
4357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4358
4359 if test $ac_cv_header_stdc = yes; then
4360   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h.  */
4363 #include <string.h>
4364
4365 _ACEOF
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367   $EGREP "memchr" >/dev/null 2>&1; then :
4368
4369 else
4370   ac_cv_header_stdc=no
4371 fi
4372 rm -f conftest*
4373
4374 fi
4375
4376 if test $ac_cv_header_stdc = yes; then
4377   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 #include <stdlib.h>
4381
4382 _ACEOF
4383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4384   $EGREP "free" >/dev/null 2>&1; then :
4385
4386 else
4387   ac_cv_header_stdc=no
4388 fi
4389 rm -f conftest*
4390
4391 fi
4392
4393 if test $ac_cv_header_stdc = yes; then
4394   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4395   if test "$cross_compiling" = yes; then :
4396   :
4397 else
4398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4399 /* end confdefs.h.  */
4400 #include <ctype.h>
4401 #include <stdlib.h>
4402 #if ((' ' & 0x0FF) == 0x020)
4403 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4404 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4405 #else
4406 # define ISLOWER(c) \
4407                    (('a' <= (c) && (c) <= 'i') \
4408                      || ('j' <= (c) && (c) <= 'r') \
4409                      || ('s' <= (c) && (c) <= 'z'))
4410 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4411 #endif
4412
4413 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4414 int
4415 main ()
4416 {
4417   int i;
4418   for (i = 0; i < 256; i++)
4419     if (XOR (islower (i), ISLOWER (i))
4420         || toupper (i) != TOUPPER (i))
4421       return 2;
4422   return 0;
4423 }
4424 _ACEOF
4425 if ac_fn_c_try_run "$LINENO"; then :
4426
4427 else
4428   ac_cv_header_stdc=no
4429 fi
4430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4431   conftest.$ac_objext conftest.beam conftest.$ac_ext
4432 fi
4433
4434 fi
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4437 $as_echo "$ac_cv_header_stdc" >&6; }
4438 if test $ac_cv_header_stdc = yes; then
4439
4440 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4441
4442 fi
4443
4444 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4445 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4446                   inttypes.h stdint.h unistd.h
4447 do :
4448   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4449 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4450 "
4451 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4452   cat >>confdefs.h <<_ACEOF
4453 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454 _ACEOF
4455
4456 fi
4457
4458 done
4459
4460
4461
4462   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4464   MINIX=yes
4465 else
4466   MINIX=
4467 fi
4468
4469
4470   if test "$MINIX" = yes; then
4471
4472 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4473
4474
4475 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4476
4477
4478 $as_echo "#define _MINIX 1" >>confdefs.h
4479
4480   fi
4481
4482
4483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4484 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4485 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490
4491 #         define __EXTENSIONS__ 1
4492           $ac_includes_default
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502   ac_cv_safe_to_define___extensions__=yes
4503 else
4504   ac_cv_safe_to_define___extensions__=no
4505 fi
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4509 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4510   test $ac_cv_safe_to_define___extensions__ = yes &&
4511     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4512
4513   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4514
4515   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4516
4517   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4518
4519   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4520
4521
4522 ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527 if test -n "$ac_tool_prefix"; then
4528   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 $as_echo_n "checking for $ac_word... " >&6; }
4532 if ${ac_cv_prog_CC+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535   if test -n "$CC"; then
4536   ac_cv_prog_CC="$CC" # Let the user override the test.
4537 else
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543     for ac_exec_ext in '' $ac_executable_extensions; do
4544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4547     break 2
4548   fi
4549 done
4550   done
4551 IFS=$as_save_IFS
4552
4553 fi
4554 fi
4555 CC=$ac_cv_prog_CC
4556 if test -n "$CC"; then
4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4558 $as_echo "$CC" >&6; }
4559 else
4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4562 fi
4563
4564
4565 fi
4566 if test -z "$ac_cv_prog_CC"; then
4567   ac_ct_CC=$CC
4568   # Extract the first word of "gcc", so it can be a program name with args.
4569 set dummy gcc; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4573   $as_echo_n "(cached) " >&6
4574 else
4575   if test -n "$ac_ct_CC"; then
4576   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581   IFS=$as_save_IFS
4582   test -z "$as_dir" && as_dir=.
4583     for ac_exec_ext in '' $ac_executable_extensions; do
4584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4585     ac_cv_prog_ac_ct_CC="gcc"
4586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587     break 2
4588   fi
4589 done
4590   done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4596 if test -n "$ac_ct_CC"; then
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4598 $as_echo "$ac_ct_CC" >&6; }
4599 else
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4604   if test "x$ac_ct_CC" = x; then
4605     CC=""
4606   else
4607     case $cross_compiling:$ac_tool_warned in
4608 yes:)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4611 ac_tool_warned=yes ;;
4612 esac
4613     CC=$ac_ct_CC
4614   fi
4615 else
4616   CC="$ac_cv_prog_CC"
4617 fi
4618
4619 if test -z "$CC"; then
4620           if test -n "$ac_tool_prefix"; then
4621     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4622 set dummy ${ac_tool_prefix}cc; ac_word=$2
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624 $as_echo_n "checking for $ac_word... " >&6; }
4625 if ${ac_cv_prog_CC+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   if test -n "$CC"; then
4629   ac_cv_prog_CC="$CC" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4633 do
4634   IFS=$as_save_IFS
4635   test -z "$as_dir" && as_dir=.
4636     for ac_exec_ext in '' $ac_executable_extensions; do
4637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4638     ac_cv_prog_CC="${ac_tool_prefix}cc"
4639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640     break 2
4641   fi
4642 done
4643   done
4644 IFS=$as_save_IFS
4645
4646 fi
4647 fi
4648 CC=$ac_cv_prog_CC
4649 if test -n "$CC"; then
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4651 $as_echo "$CC" >&6; }
4652 else
4653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4655 fi
4656
4657
4658   fi
4659 fi
4660 if test -z "$CC"; then
4661   # Extract the first word of "cc", so it can be a program name with args.
4662 set dummy cc; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_CC+:} false; then :
4666   $as_echo_n "(cached) " >&6
4667 else
4668   if test -n "$CC"; then
4669   ac_cv_prog_CC="$CC" # Let the user override the test.
4670 else
4671   ac_prog_rejected=no
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675   IFS=$as_save_IFS
4676   test -z "$as_dir" && as_dir=.
4677     for ac_exec_ext in '' $ac_executable_extensions; do
4678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4680        ac_prog_rejected=yes
4681        continue
4682      fi
4683     ac_cv_prog_CC="cc"
4684     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688   done
4689 IFS=$as_save_IFS
4690
4691 if test $ac_prog_rejected = yes; then
4692   # We found a bogon in the path, so make sure we never use it.
4693   set dummy $ac_cv_prog_CC
4694   shift
4695   if test $# != 0; then
4696     # We chose a different compiler from the bogus one.
4697     # However, it has the same basename, so the bogon will be chosen
4698     # first if we set CC to just the basename; use the full file name.
4699     shift
4700     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4701   fi
4702 fi
4703 fi
4704 fi
4705 CC=$ac_cv_prog_CC
4706 if test -n "$CC"; then
4707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4708 $as_echo "$CC" >&6; }
4709 else
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4712 fi
4713
4714
4715 fi
4716 if test -z "$CC"; then
4717   if test -n "$ac_tool_prefix"; then
4718   for ac_prog in cl.exe
4719   do
4720     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4723 $as_echo_n "checking for $ac_word... " >&6; }
4724 if ${ac_cv_prog_CC+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   if test -n "$CC"; then
4728   ac_cv_prog_CC="$CC" # Let the user override the test.
4729 else
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735     for ac_exec_ext in '' $ac_executable_extensions; do
4736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4739     break 2
4740   fi
4741 done
4742   done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 CC=$ac_cv_prog_CC
4748 if test -n "$CC"; then
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 $as_echo "$CC" >&6; }
4751 else
4752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754 fi
4755
4756
4757     test -n "$CC" && break
4758   done
4759 fi
4760 if test -z "$CC"; then
4761   ac_ct_CC=$CC
4762   for ac_prog in cl.exe
4763 do
4764   # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy $ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   if test -n "$ac_ct_CC"; then
4772   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4776 do
4777   IFS=$as_save_IFS
4778   test -z "$as_dir" && as_dir=.
4779     for ac_exec_ext in '' $ac_executable_extensions; do
4780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4781     ac_cv_prog_ac_ct_CC="$ac_prog"
4782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783     break 2
4784   fi
4785 done
4786   done
4787 IFS=$as_save_IFS
4788
4789 fi
4790 fi
4791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4792 if test -n "$ac_ct_CC"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4794 $as_echo "$ac_ct_CC" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801   test -n "$ac_ct_CC" && break
4802 done
4803
4804   if test "x$ac_ct_CC" = x; then
4805     CC=""
4806   else
4807     case $cross_compiling:$ac_tool_warned in
4808 yes:)
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4811 ac_tool_warned=yes ;;
4812 esac
4813     CC=$ac_ct_CC
4814   fi
4815 fi
4816
4817 fi
4818
4819
4820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4822 as_fn_error $? "no acceptable C compiler found in \$PATH
4823 See \`config.log' for more details" "$LINENO" 5; }
4824
4825 # Provide some information about the compiler.
4826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4827 set X $ac_compile
4828 ac_compiler=$2
4829 for ac_option in --version -v -V -qversion; do
4830   { { ac_try="$ac_compiler $ac_option >&5"
4831 case "(($ac_try" in
4832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833   *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4836 $as_echo "$ac_try_echo"; } >&5
4837   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4838   ac_status=$?
4839   if test -s conftest.err; then
4840     sed '10a\
4841 ... rest of stderr output deleted ...
4842          10q' conftest.err >conftest.er1
4843     cat conftest.er1 >&5
4844   fi
4845   rm -f conftest.er1 conftest.err
4846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4847   test $ac_status = 0; }
4848 done
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4851 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4852 if ${ac_cv_c_compiler_gnu+:} false; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4856 /* end confdefs.h.  */
4857
4858 int
4859 main ()
4860 {
4861 #ifndef __GNUC__
4862        choke me
4863 #endif
4864
4865   ;
4866   return 0;
4867 }
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870   ac_compiler_gnu=yes
4871 else
4872   ac_compiler_gnu=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4876
4877 fi
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4879 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4880 if test $ac_compiler_gnu = yes; then
4881   GCC=yes
4882 else
4883   GCC=
4884 fi
4885 ac_test_CFLAGS=${CFLAGS+set}
4886 ac_save_CFLAGS=$CFLAGS
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4888 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4889 if ${ac_cv_prog_cc_g+:} false; then :
4890   $as_echo_n "(cached) " >&6
4891 else
4892   ac_save_c_werror_flag=$ac_c_werror_flag
4893    ac_c_werror_flag=yes
4894    ac_cv_prog_cc_g=no
4895    CFLAGS="-g"
4896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h.  */
4898
4899 int
4900 main ()
4901 {
4902
4903   ;
4904   return 0;
4905 }
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908   ac_cv_prog_cc_g=yes
4909 else
4910   CFLAGS=""
4911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h.  */
4913
4914 int
4915 main ()
4916 {
4917
4918   ;
4919   return 0;
4920 }
4921 _ACEOF
4922 if ac_fn_c_try_compile "$LINENO"; then :
4923
4924 else
4925   ac_c_werror_flag=$ac_save_c_werror_flag
4926          CFLAGS="-g"
4927          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h.  */
4929
4930 int
4931 main ()
4932 {
4933
4934   ;
4935   return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939   ac_cv_prog_cc_g=yes
4940 fi
4941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4944 fi
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946    ac_c_werror_flag=$ac_save_c_werror_flag
4947 fi
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4949 $as_echo "$ac_cv_prog_cc_g" >&6; }
4950 if test "$ac_test_CFLAGS" = set; then
4951   CFLAGS=$ac_save_CFLAGS
4952 elif test $ac_cv_prog_cc_g = yes; then
4953   if test "$GCC" = yes; then
4954     CFLAGS="-g -O2"
4955   else
4956     CFLAGS="-g"
4957   fi
4958 else
4959   if test "$GCC" = yes; then
4960     CFLAGS="-O2"
4961   else
4962     CFLAGS=
4963   fi
4964 fi
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4966 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4967 if ${ac_cv_prog_cc_c89+:} false; then :
4968   $as_echo_n "(cached) " >&6
4969 else
4970   ac_cv_prog_cc_c89=no
4971 ac_save_CC=$CC
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h.  */
4974 #include <stdarg.h>
4975 #include <stdio.h>
4976 struct stat;
4977 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4978 struct buf { int x; };
4979 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4980 static char *e (p, i)
4981      char **p;
4982      int i;
4983 {
4984   return p[i];
4985 }
4986 static char *f (char * (*g) (char **, int), char **p, ...)
4987 {
4988   char *s;
4989   va_list v;
4990   va_start (v,p);
4991   s = g (p, va_arg (v,int));
4992   va_end (v);
4993   return s;
4994 }
4995
4996 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4997    function prototypes and stuff, but not '\xHH' hex character constants.
4998    These don't provoke an error unfortunately, instead are silently treated
4999    as 'x'.  The following induces an error, until -std is added to get
5000    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5001    array size at least.  It's necessary to write '\x00'==0 to get something
5002    that's true only with -std.  */
5003 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5004
5005 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5006    inside strings and character constants.  */
5007 #define FOO(x) 'x'
5008 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5009
5010 int test (int i, double x);
5011 struct s1 {int (*f) (int a);};
5012 struct s2 {int (*f) (double a);};
5013 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5014 int argc;
5015 char **argv;
5016 int
5017 main ()
5018 {
5019 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5020   ;
5021   return 0;
5022 }
5023 _ACEOF
5024 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5025         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5026 do
5027   CC="$ac_save_CC $ac_arg"
5028   if ac_fn_c_try_compile "$LINENO"; then :
5029   ac_cv_prog_cc_c89=$ac_arg
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext
5032   test "x$ac_cv_prog_cc_c89" != "xno" && break
5033 done
5034 rm -f conftest.$ac_ext
5035 CC=$ac_save_CC
5036
5037 fi
5038 # AC_CACHE_VAL
5039 case "x$ac_cv_prog_cc_c89" in
5040   x)
5041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5042 $as_echo "none needed" >&6; } ;;
5043   xno)
5044     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5045 $as_echo "unsupported" >&6; } ;;
5046   *)
5047     CC="$CC $ac_cv_prog_cc_c89"
5048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5049 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5050 esac
5051 if test "x$ac_cv_prog_cc_c89" != xno; then :
5052
5053 fi
5054
5055 ac_ext=c
5056 ac_cpp='$CPP $CPPFLAGS'
5057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5060
5061 ac_ext=c
5062 ac_cpp='$CPP $CPPFLAGS'
5063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5067 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5068 if ${am_cv_prog_cc_c_o+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h.  */
5073
5074 int
5075 main ()
5076 {
5077
5078   ;
5079   return 0;
5080 }
5081 _ACEOF
5082   # Make sure it works both with $CC and with simple cc.
5083   # Following AC_PROG_CC_C_O, we do the test twice because some
5084   # compilers refuse to overwrite an existing .o file with -o,
5085   # though they will create one.
5086   am_cv_prog_cc_c_o=yes
5087   for am_i in 1 2; do
5088     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5089    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5090    ac_status=$?
5091    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092    (exit $ac_status); } \
5093          && test -f conftest2.$ac_objext; then
5094       : OK
5095     else
5096       am_cv_prog_cc_c_o=no
5097       break
5098     fi
5099   done
5100   rm -f core conftest*
5101   unset am_i
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5104 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5105 if test "$am_cv_prog_cc_c_o" != yes; then
5106    # Losing compiler, so override with the script.
5107    # FIXME: It is wrong to rewrite CC.
5108    # But if we don't then we get into trouble of one sort or another.
5109    # A longer-term fix would be to have automake use am__CC in this case,
5110    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5111    CC="$am_aux_dir/compile $CC"
5112 fi
5113 ac_ext=c
5114 ac_cpp='$CPP $CPPFLAGS'
5115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5118
5119
5120 depcc="$CC"   am_compiler_list=
5121
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5123 $as_echo_n "checking dependency style of $depcc... " >&6; }
5124 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5125   $as_echo_n "(cached) " >&6
5126 else
5127   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5128   # We make a subdir and do the tests there.  Otherwise we can end up
5129   # making bogus files that we don't know about and never remove.  For
5130   # instance it was reported that on HP-UX the gcc test will end up
5131   # making a dummy file named 'D' -- because '-MD' means "put the output
5132   # in D".
5133   rm -rf conftest.dir
5134   mkdir conftest.dir
5135   # Copy depcomp to subdir because otherwise we won't find it if we're
5136   # using a relative directory.
5137   cp "$am_depcomp" conftest.dir
5138   cd conftest.dir
5139   # We will build objects and dependencies in a subdirectory because
5140   # it helps to detect inapplicable dependency modes.  For instance
5141   # both Tru64's cc and ICC support -MD to output dependencies as a
5142   # side effect of compilation, but ICC will put the dependencies in
5143   # the current directory while Tru64 will put them in the object
5144   # directory.
5145   mkdir sub
5146
5147   am_cv_CC_dependencies_compiler_type=none
5148   if test "$am_compiler_list" = ""; then
5149      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5150   fi
5151   am__universal=false
5152   case " $depcc " in #(
5153      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5154      esac
5155
5156   for depmode in $am_compiler_list; do
5157     # Setup a source with many dependencies, because some compilers
5158     # like to wrap large dependency lists on column 80 (with \), and
5159     # we should not choose a depcomp mode which is confused by this.
5160     #
5161     # We need to recreate these files for each test, as the compiler may
5162     # overwrite some of them when testing with obscure command lines.
5163     # This happens at least with the AIX C compiler.
5164     : > sub/conftest.c
5165     for i in 1 2 3 4 5 6; do
5166       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5167       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5168       # Solaris 10 /bin/sh.
5169       echo '/* dummy */' > sub/conftst$i.h
5170     done
5171     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5172
5173     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5174     # mode.  It turns out that the SunPro C++ compiler does not properly
5175     # handle '-M -o', and we need to detect this.  Also, some Intel
5176     # versions had trouble with output in subdirs.
5177     am__obj=sub/conftest.${OBJEXT-o}
5178     am__minus_obj="-o $am__obj"
5179     case $depmode in
5180     gcc)
5181       # This depmode causes a compiler race in universal mode.
5182       test "$am__universal" = false || continue
5183       ;;
5184     nosideeffect)
5185       # After this tag, mechanisms are not by side-effect, so they'll
5186       # only be used when explicitly requested.
5187       if test "x$enable_dependency_tracking" = xyes; then
5188         continue
5189       else
5190         break
5191       fi
5192       ;;
5193     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5194       # This compiler won't grok '-c -o', but also, the minuso test has
5195       # not run yet.  These depmodes are late enough in the game, and
5196       # so weak that their functioning should not be impacted.
5197       am__obj=conftest.${OBJEXT-o}
5198       am__minus_obj=
5199       ;;
5200     none) break ;;
5201     esac
5202     if depmode=$depmode \
5203        source=sub/conftest.c object=$am__obj \
5204        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5205        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5206          >/dev/null 2>conftest.err &&
5207        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5208        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5209        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5210        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5211       # icc doesn't choke on unknown options, it will just issue warnings
5212       # or remarks (even with -Werror).  So we grep stderr for any message
5213       # that says an option was ignored or not supported.
5214       # When given -MP, icc 7.0 and 7.1 complain thusly:
5215       #   icc: Command line warning: ignoring option '-M'; no argument required
5216       # The diagnosis changed in icc 8.0:
5217       #   icc: Command line remark: option '-MP' not supported
5218       if (grep 'ignoring option' conftest.err ||
5219           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5220         am_cv_CC_dependencies_compiler_type=$depmode
5221         break
5222       fi
5223     fi
5224   done
5225
5226   cd ..
5227   rm -rf conftest.dir
5228 else
5229   am_cv_CC_dependencies_compiler_type=none
5230 fi
5231
5232 fi
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5234 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5235 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5236
5237  if
5238   test "x$enable_dependency_tracking" != xno \
5239   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5240   am__fastdepCC_TRUE=
5241   am__fastdepCC_FALSE='#'
5242 else
5243   am__fastdepCC_TRUE='#'
5244   am__fastdepCC_FALSE=
5245 fi
5246
5247
5248
5249 if test -n "$ac_tool_prefix"; then
5250   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if ${ac_cv_prog_RANLIB+:} false; then :
5255   $as_echo_n "(cached) " >&6
5256 else
5257   if test -n "$RANLIB"; then
5258   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5262 do
5263   IFS=$as_save_IFS
5264   test -z "$as_dir" && as_dir=.
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5267     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269     break 2
5270   fi
5271 done
5272   done
5273 IFS=$as_save_IFS
5274
5275 fi
5276 fi
5277 RANLIB=$ac_cv_prog_RANLIB
5278 if test -n "$RANLIB"; then
5279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5280 $as_echo "$RANLIB" >&6; }
5281 else
5282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5284 fi
5285
5286
5287 fi
5288 if test -z "$ac_cv_prog_RANLIB"; then
5289   ac_ct_RANLIB=$RANLIB
5290   # Extract the first word of "ranlib", so it can be a program name with args.
5291 set dummy ranlib; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$ac_ct_RANLIB"; then
5298   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_ac_ct_RANLIB="ranlib"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5318 if test -n "$ac_ct_RANLIB"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5320 $as_echo "$ac_ct_RANLIB" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326   if test "x$ac_ct_RANLIB" = x; then
5327     RANLIB=":"
5328   else
5329     case $cross_compiling:$ac_tool_warned in
5330 yes:)
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333 ac_tool_warned=yes ;;
5334 esac
5335     RANLIB=$ac_ct_RANLIB
5336   fi
5337 else
5338   RANLIB="$ac_cv_prog_RANLIB"
5339 fi
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5350   CPP=
5351 fi
5352 if test -z "$CPP"; then
5353   if ${ac_cv_prog_CPP+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356       # Double quotes because CPP needs to be expanded
5357     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5358     do
5359       ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362   # Use a header file that comes with gcc, so configuring glibc
5363   # with a fresh cross-compiler works.
5364   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365   # <limits.h> exists even on freestanding compilers.
5366   # On the NeXT, cc -E runs the code through the compiler's parser,
5367   # not just through cpp. "Syntax error" is here to catch this case.
5368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h.  */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375                      Syntax error
5376 _ACEOF
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379 else
5380   # Broken: fails on valid input.
5381 continue
5382 fi
5383 rm -f conftest.err conftest.i conftest.$ac_ext
5384
5385   # OK, works on sane cases.  Now check whether nonexistent headers
5386   # can be detected and how.
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389 #include <ac_nonexistent.h>
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392   # Broken: success on invalid input.
5393 continue
5394 else
5395   # Passes both tests.
5396 ac_preproc_ok=:
5397 break
5398 fi
5399 rm -f conftest.err conftest.i conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.i conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5405   break
5406 fi
5407
5408     done
5409     ac_cv_prog_CPP=$CPP
5410
5411 fi
5412   CPP=$ac_cv_prog_CPP
5413 else
5414   ac_cv_prog_CPP=$CPP
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5418 ac_preproc_ok=false
5419 for ac_c_preproc_warn_flag in '' yes
5420 do
5421   # Use a header file that comes with gcc, so configuring glibc
5422   # with a fresh cross-compiler works.
5423   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424   # <limits.h> exists even on freestanding compilers.
5425   # On the NeXT, cc -E runs the code through the compiler's parser,
5426   # not just through cpp. "Syntax error" is here to catch this case.
5427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h.  */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434                      Syntax error
5435 _ACEOF
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5437
5438 else
5439   # Broken: fails on valid input.
5440 continue
5441 fi
5442 rm -f conftest.err conftest.i conftest.$ac_ext
5443
5444   # OK, works on sane cases.  Now check whether nonexistent headers
5445   # can be detected and how.
5446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #include <ac_nonexistent.h>
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451   # Broken: success on invalid input.
5452 continue
5453 else
5454   # Passes both tests.
5455 ac_preproc_ok=:
5456 break
5457 fi
5458 rm -f conftest.err conftest.i conftest.$ac_ext
5459
5460 done
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.i conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5464
5465 else
5466   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details" "$LINENO" 5; }
5470 fi
5471
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478 # Extract the first word of "ar", so it can be a program name with args.
5479 set dummy ar; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_AR+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$AR"; then
5486   ac_cv_prog_AR="$AR" # Let the user override the test.
5487 else
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491   IFS=$as_save_IFS
5492   test -z "$as_dir" && as_dir=.
5493     for ac_exec_ext in '' $ac_executable_extensions; do
5494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5495     ac_cv_prog_AR="ar"
5496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5497     break 2
5498   fi
5499 done
5500   done
5501 IFS=$as_save_IFS
5502
5503   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5504 fi
5505 fi
5506 AR=$ac_cv_prog_AR
5507 if test -n "$AR"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5509 $as_echo "$AR" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516 # Perl is needed for the test suite (only)
5517 # Extract the first word of "perl", so it can be a program name with args.
5518 set dummy perl; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_prog_PERL+:} false; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   if test -n "$PERL"; then
5525   ac_cv_prog_PERL="$PERL" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530   IFS=$as_save_IFS
5531   test -z "$as_dir" && as_dir=.
5532     for ac_exec_ext in '' $ac_executable_extensions; do
5533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534     ac_cv_prog_PERL="perl"
5535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536     break 2
5537   fi
5538 done
5539   done
5540 IFS=$as_save_IFS
5541
5542   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
5543 fi
5544 fi
5545 PERL=$ac_cv_prog_PERL
5546 if test -n "$PERL"; then
5547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5548 $as_echo "$PERL" >&6; }
5549 else
5550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554
5555
5556 # Needed for w32/Makefile.am
5557 if test -n "$ac_tool_prefix"; then
5558   for ac_prog in ar lib "link -lib"
5559   do
5560     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_AR+:} false; then :
5565   $as_echo_n "(cached) " >&6
5566 else
5567   if test -n "$AR"; then
5568   ac_cv_prog_AR="$AR" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5572 do
5573   IFS=$as_save_IFS
5574   test -z "$as_dir" && as_dir=.
5575     for ac_exec_ext in '' $ac_executable_extensions; do
5576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5577     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579     break 2
5580   fi
5581 done
5582   done
5583 IFS=$as_save_IFS
5584
5585 fi
5586 fi
5587 AR=$ac_cv_prog_AR
5588 if test -n "$AR"; then
5589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5590 $as_echo "$AR" >&6; }
5591 else
5592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5594 fi
5595
5596
5597     test -n "$AR" && break
5598   done
5599 fi
5600 if test -z "$AR"; then
5601   ac_ct_AR=$AR
5602   for ac_prog in ar lib "link -lib"
5603 do
5604   # Extract the first word of "$ac_prog", so it can be a program name with args.
5605 set dummy $ac_prog; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$ac_ct_AR"; then
5612   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621     ac_cv_prog_ac_ct_AR="$ac_prog"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5632 if test -n "$ac_ct_AR"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5634 $as_echo "$ac_ct_AR" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641   test -n "$ac_ct_AR" && break
5642 done
5643
5644   if test "x$ac_ct_AR" = x; then
5645     AR="false"
5646   else
5647     case $cross_compiling:$ac_tool_warned in
5648 yes:)
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5651 ac_tool_warned=yes ;;
5652 esac
5653     AR=$ac_ct_AR
5654   fi
5655 fi
5656
5657 : ${AR=ar}
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5660 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
5661 if ${am_cv_ar_interface+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   ac_ext=c
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669
5670    am_cv_ar_interface=ar
5671    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672 /* end confdefs.h.  */
5673 int some_variable = 0;
5674 _ACEOF
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676   am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
5677       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5678   (eval $am_ar_try) 2>&5
5679   ac_status=$?
5680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5681   test $ac_status = 0; }
5682       if test "$ac_status" -eq 0; then
5683         am_cv_ar_interface=ar
5684       else
5685         am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5686         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5687   (eval $am_ar_try) 2>&5
5688   ac_status=$?
5689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690   test $ac_status = 0; }
5691         if test "$ac_status" -eq 0; then
5692           am_cv_ar_interface=lib
5693         else
5694           am_cv_ar_interface=unknown
5695         fi
5696       fi
5697       rm -f conftest.lib libconftest.a
5698
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701    ac_ext=c
5702 ac_cpp='$CPP $CPPFLAGS'
5703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5706
5707 fi
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5709 $as_echo "$am_cv_ar_interface" >&6; }
5710
5711 case $am_cv_ar_interface in
5712 ar)
5713   ;;
5714 lib)
5715   # Microsoft lib, so override with the ar-lib wrapper script.
5716   # FIXME: It is wrong to rewrite AR.
5717   # But if we don't then we get into trouble of one sort or another.
5718   # A longer-term fix would be to have automake use am__AR in this case,
5719   # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5720   # similar.
5721   AR="$am_aux_dir/ar-lib $AR"
5722   ;;
5723 unknown)
5724   as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5725   ;;
5726 esac
5727
5728
5729 # Specialized system macros
5730 # Make sure we can run config.sub.
5731 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5732   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5733
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5735 $as_echo_n "checking build system type... " >&6; }
5736 if ${ac_cv_build+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   ac_build_alias=$build_alias
5740 test "x$ac_build_alias" = x &&
5741   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5742 test "x$ac_build_alias" = x &&
5743   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5744 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5745   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5746
5747 fi
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5749 $as_echo "$ac_cv_build" >&6; }
5750 case $ac_cv_build in
5751 *-*-*) ;;
5752 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5753 esac
5754 build=$ac_cv_build
5755 ac_save_IFS=$IFS; IFS='-'
5756 set x $ac_cv_build
5757 shift
5758 build_cpu=$1
5759 build_vendor=$2
5760 shift; shift
5761 # Remember, the first character of IFS is used to create $*,
5762 # except with old shells:
5763 build_os=$*
5764 IFS=$ac_save_IFS
5765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5769 $as_echo_n "checking host system type... " >&6; }
5770 if ${ac_cv_host+:} false; then :
5771   $as_echo_n "(cached) " >&6
5772 else
5773   if test "x$host_alias" = x; then
5774   ac_cv_host=$ac_cv_build
5775 else
5776   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5777     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5778 fi
5779
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5782 $as_echo "$ac_cv_host" >&6; }
5783 case $ac_cv_host in
5784 *-*-*) ;;
5785 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5786 esac
5787 host=$ac_cv_host
5788 ac_save_IFS=$IFS; IFS='-'
5789 set x $ac_cv_host
5790 shift
5791 host_cpu=$1
5792 host_vendor=$2
5793 shift; shift
5794 # Remember, the first character of IFS is used to create $*,
5795 # except with old shells:
5796 host_os=$*
5797 IFS=$ac_save_IFS
5798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5799
5800
5801
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5803 $as_echo_n "checking for library containing strerror... " >&6; }
5804 if ${ac_cv_search_strerror+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   ac_func_search_save_LIBS=$LIBS
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h.  */
5810
5811 /* Override any GCC internal prototype to avoid an error.
5812    Use char because int might match the return type of a GCC
5813    builtin and then its argument prototype would still apply.  */
5814 #ifdef __cplusplus
5815 extern "C"
5816 #endif
5817 char strerror ();
5818 int
5819 main ()
5820 {
5821 return strerror ();
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 for ac_lib in '' cposix; do
5827   if test -z "$ac_lib"; then
5828     ac_res="none required"
5829   else
5830     ac_res=-l$ac_lib
5831     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5832   fi
5833   if ac_fn_c_try_link "$LINENO"; then :
5834   ac_cv_search_strerror=$ac_res
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext \
5837     conftest$ac_exeext
5838   if ${ac_cv_search_strerror+:} false; then :
5839   break
5840 fi
5841 done
5842 if ${ac_cv_search_strerror+:} false; then :
5843
5844 else
5845   ac_cv_search_strerror=no
5846 fi
5847 rm conftest.$ac_ext
5848 LIBS=$ac_func_search_save_LIBS
5849 fi
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5851 $as_echo "$ac_cv_search_strerror" >&6; }
5852 ac_res=$ac_cv_search_strerror
5853 if test "$ac_res" != no; then :
5854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5855
5856 fi
5857
5858
5859
5860 # Enable gettext, in "external" mode.
5861
5862
5863 mkdir_p="$MKDIR_P"
5864 case $mkdir_p in
5865   [\\/$]* | ?:[\\/]*) ;;
5866   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
5867 esac
5868
5869
5870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5871 $as_echo_n "checking whether NLS is requested... " >&6; }
5872     # Check whether --enable-nls was given.
5873 if test "${enable_nls+set}" = set; then :
5874   enableval=$enable_nls; USE_NLS=$enableval
5875 else
5876   USE_NLS=yes
5877 fi
5878
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5880 $as_echo "$USE_NLS" >&6; }
5881
5882
5883
5884
5885       GETTEXT_MACRO_VERSION=0.18
5886
5887
5888
5889
5890 # Prepare PATH_SEPARATOR.
5891 # The user is always right.
5892 if test "${PATH_SEPARATOR+set}" != set; then
5893   echo "#! /bin/sh" >conf$$.sh
5894   echo  "exit 0"   >>conf$$.sh
5895   chmod +x conf$$.sh
5896   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5897     PATH_SEPARATOR=';'
5898   else
5899     PATH_SEPARATOR=:
5900   fi
5901   rm -f conf$$.sh
5902 fi
5903
5904 # Find out how to test for executable files. Don't use a zero-byte file,
5905 # as systems may use methods other than mode bits to determine executability.
5906 cat >conf$$.file <<_ASEOF
5907 #! /bin/sh
5908 exit 0
5909 _ASEOF
5910 chmod +x conf$$.file
5911 if test -x conf$$.file >/dev/null 2>&1; then
5912   ac_executable_p="test -x"
5913 else
5914   ac_executable_p="test -f"
5915 fi
5916 rm -f conf$$.file
5917
5918 # Extract the first word of "msgfmt", so it can be a program name with args.
5919 set dummy msgfmt; ac_word=$2
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5921 $as_echo_n "checking for $ac_word... " >&6; }
5922 if ${ac_cv_path_MSGFMT+:} false; then :
5923   $as_echo_n "(cached) " >&6
5924 else
5925   case "$MSGFMT" in
5926   [\\/]* | ?:[\\/]*)
5927     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5928     ;;
5929   *)
5930     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5931     for ac_dir in $PATH; do
5932       IFS="$ac_save_IFS"
5933       test -z "$ac_dir" && ac_dir=.
5934       for ac_exec_ext in '' $ac_executable_extensions; do
5935         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5936           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5937           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5938      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5939             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5940             break 2
5941           fi
5942         fi
5943       done
5944     done
5945     IFS="$ac_save_IFS"
5946   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5947     ;;
5948 esac
5949 fi
5950 MSGFMT="$ac_cv_path_MSGFMT"
5951 if test "$MSGFMT" != ":"; then
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5953 $as_echo "$MSGFMT" >&6; }
5954 else
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5960 set dummy gmsgfmt; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962 $as_echo_n "checking for $ac_word... " >&6; }
5963 if ${ac_cv_path_GMSGFMT+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   case $GMSGFMT in
5967   [\\/]* | ?:[\\/]*)
5968   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5969   ;;
5970   *)
5971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974   IFS=$as_save_IFS
5975   test -z "$as_dir" && as_dir=.
5976     for ac_exec_ext in '' $ac_executable_extensions; do
5977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5978     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980     break 2
5981   fi
5982 done
5983   done
5984 IFS=$as_save_IFS
5985
5986   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5987   ;;
5988 esac
5989 fi
5990 GMSGFMT=$ac_cv_path_GMSGFMT
5991 if test -n "$GMSGFMT"; then
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5993 $as_echo "$GMSGFMT" >&6; }
5994 else
5995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 $as_echo "no" >&6; }
5997 fi
5998
5999
6000
6001     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6002     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6003     *) MSGFMT_015=$MSGFMT ;;
6004   esac
6005
6006   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6007     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6008     *) GMSGFMT_015=$GMSGFMT ;;
6009   esac
6010
6011
6012
6013 # Prepare PATH_SEPARATOR.
6014 # The user is always right.
6015 if test "${PATH_SEPARATOR+set}" != set; then
6016   echo "#! /bin/sh" >conf$$.sh
6017   echo  "exit 0"   >>conf$$.sh
6018   chmod +x conf$$.sh
6019   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6020     PATH_SEPARATOR=';'
6021   else
6022     PATH_SEPARATOR=:
6023   fi
6024   rm -f conf$$.sh
6025 fi
6026
6027 # Find out how to test for executable files. Don't use a zero-byte file,
6028 # as systems may use methods other than mode bits to determine executability.
6029 cat >conf$$.file <<_ASEOF
6030 #! /bin/sh
6031 exit 0
6032 _ASEOF
6033 chmod +x conf$$.file
6034 if test -x conf$$.file >/dev/null 2>&1; then
6035   ac_executable_p="test -x"
6036 else
6037   ac_executable_p="test -f"
6038 fi
6039 rm -f conf$$.file
6040
6041 # Extract the first word of "xgettext", so it can be a program name with args.
6042 set dummy xgettext; ac_word=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_path_XGETTEXT+:} false; then :
6046   $as_echo_n "(cached) " >&6
6047 else
6048   case "$XGETTEXT" in
6049   [\\/]* | ?:[\\/]*)
6050     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6051     ;;
6052   *)
6053     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6054     for ac_dir in $PATH; do
6055       IFS="$ac_save_IFS"
6056       test -z "$ac_dir" && ac_dir=.
6057       for ac_exec_ext in '' $ac_executable_extensions; do
6058         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6059           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6060           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6061      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6062             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6063             break 2
6064           fi
6065         fi
6066       done
6067     done
6068     IFS="$ac_save_IFS"
6069   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6070     ;;
6071 esac
6072 fi
6073 XGETTEXT="$ac_cv_path_XGETTEXT"
6074 if test "$XGETTEXT" != ":"; then
6075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6076 $as_echo "$XGETTEXT" >&6; }
6077 else
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6080 fi
6081
6082     rm -f messages.po
6083
6084     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6085     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6086     *) XGETTEXT_015=$XGETTEXT ;;
6087   esac
6088
6089
6090
6091 # Prepare PATH_SEPARATOR.
6092 # The user is always right.
6093 if test "${PATH_SEPARATOR+set}" != set; then
6094   echo "#! /bin/sh" >conf$$.sh
6095   echo  "exit 0"   >>conf$$.sh
6096   chmod +x conf$$.sh
6097   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6098     PATH_SEPARATOR=';'
6099   else
6100     PATH_SEPARATOR=:
6101   fi
6102   rm -f conf$$.sh
6103 fi
6104
6105 # Find out how to test for executable files. Don't use a zero-byte file,
6106 # as systems may use methods other than mode bits to determine executability.
6107 cat >conf$$.file <<_ASEOF
6108 #! /bin/sh
6109 exit 0
6110 _ASEOF
6111 chmod +x conf$$.file
6112 if test -x conf$$.file >/dev/null 2>&1; then
6113   ac_executable_p="test -x"
6114 else
6115   ac_executable_p="test -f"
6116 fi
6117 rm -f conf$$.file
6118
6119 # Extract the first word of "msgmerge", so it can be a program name with args.
6120 set dummy msgmerge; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if ${ac_cv_path_MSGMERGE+:} false; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   case "$MSGMERGE" in
6127   [\\/]* | ?:[\\/]*)
6128     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6129     ;;
6130   *)
6131     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6132     for ac_dir in $PATH; do
6133       IFS="$ac_save_IFS"
6134       test -z "$ac_dir" && ac_dir=.
6135       for ac_exec_ext in '' $ac_executable_extensions; do
6136         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6137           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6138           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6139             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6140             break 2
6141           fi
6142         fi
6143       done
6144     done
6145     IFS="$ac_save_IFS"
6146   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6147     ;;
6148 esac
6149 fi
6150 MSGMERGE="$ac_cv_path_MSGMERGE"
6151 if test "$MSGMERGE" != ":"; then
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6153 $as_echo "$MSGMERGE" >&6; }
6154 else
6155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6157 fi
6158
6159
6160         test -n "$localedir" || localedir='${datadir}/locale'
6161
6162
6163     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6164
6165
6166   ac_config_commands="$ac_config_commands po-directories"
6167
6168
6169
6170       if test "X$prefix" = "XNONE"; then
6171     acl_final_prefix="$ac_default_prefix"
6172   else
6173     acl_final_prefix="$prefix"
6174   fi
6175   if test "X$exec_prefix" = "XNONE"; then
6176     acl_final_exec_prefix='${prefix}'
6177   else
6178     acl_final_exec_prefix="$exec_prefix"
6179   fi
6180   acl_save_prefix="$prefix"
6181   prefix="$acl_final_prefix"
6182   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6183   prefix="$acl_save_prefix"
6184
6185
6186 # Check whether --with-gnu-ld was given.
6187 if test "${with_gnu_ld+set}" = set; then :
6188   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6189 else
6190   with_gnu_ld=no
6191 fi
6192
6193 # Prepare PATH_SEPARATOR.
6194 # The user is always right.
6195 if test "${PATH_SEPARATOR+set}" != set; then
6196   echo "#! /bin/sh" >conf$$.sh
6197   echo  "exit 0"   >>conf$$.sh
6198   chmod +x conf$$.sh
6199   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6200     PATH_SEPARATOR=';'
6201   else
6202     PATH_SEPARATOR=:
6203   fi
6204   rm -f conf$$.sh
6205 fi
6206 ac_prog=ld
6207 if test "$GCC" = yes; then
6208   # Check if gcc -print-prog-name=ld gives a path.
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6210 $as_echo_n "checking for ld used by GCC... " >&6; }
6211   case $host in
6212   *-*-mingw*)
6213     # gcc leaves a trailing carriage return which upsets mingw
6214     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6215   *)
6216     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6217   esac
6218   case $ac_prog in
6219     # Accept absolute paths.
6220     [\\/]* | [A-Za-z]:[\\/]*)
6221       re_direlt='/[^/][^/]*/\.\./'
6222       # Canonicalize the path of ld
6223       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6224       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6225         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6226       done
6227       test -z "$LD" && LD="$ac_prog"
6228       ;;
6229   "")
6230     # If it fails, then pretend we aren't using GCC.
6231     ac_prog=ld
6232     ;;
6233   *)
6234     # If it is relative, then search for the first ld in PATH.
6235     with_gnu_ld=unknown
6236     ;;
6237   esac
6238 elif test "$with_gnu_ld" = yes; then
6239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6240 $as_echo_n "checking for GNU ld... " >&6; }
6241 else
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6243 $as_echo_n "checking for non-GNU ld... " >&6; }
6244 fi
6245 if ${acl_cv_path_LD+:} false; then :
6246   $as_echo_n "(cached) " >&6
6247 else
6248   if test -z "$LD"; then
6249   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6250   for ac_dir in $PATH; do
6251     test -z "$ac_dir" && ac_dir=.
6252     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6253       acl_cv_path_LD="$ac_dir/$ac_prog"
6254       # Check to see if the program is GNU ld.  I'd rather use --version,
6255       # but apparently some GNU ld's only accept -v.
6256       # Break only if it was the GNU/non-GNU ld that we prefer.
6257       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6258       *GNU* | *'with BFD'*)
6259         test "$with_gnu_ld" != no && break ;;
6260       *)
6261         test "$with_gnu_ld" != yes && break ;;
6262       esac
6263     fi
6264   done
6265   IFS="$ac_save_ifs"
6266 else
6267   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6268 fi
6269 fi
6270
6271 LD="$acl_cv_path_LD"
6272 if test -n "$LD"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6274 $as_echo "$LD" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6281 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6282 if ${acl_cv_prog_gnu_ld+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6286 case `$LD -v 2>&1 </dev/null` in
6287 *GNU* | *'with BFD'*)
6288   acl_cv_prog_gnu_ld=yes ;;
6289 *)
6290   acl_cv_prog_gnu_ld=no ;;
6291 esac
6292 fi
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6294 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6295 with_gnu_ld=$acl_cv_prog_gnu_ld
6296
6297
6298
6299
6300                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6301 $as_echo_n "checking for shared library run path origin... " >&6; }
6302 if ${acl_cv_rpath+:} false; then :
6303   $as_echo_n "(cached) " >&6
6304 else
6305
6306     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6307     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6308     . ./conftest.sh
6309     rm -f ./conftest.sh
6310     acl_cv_rpath=done
6311
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6314 $as_echo "$acl_cv_rpath" >&6; }
6315   wl="$acl_cv_wl"
6316   acl_libext="$acl_cv_libext"
6317   acl_shlibext="$acl_cv_shlibext"
6318   acl_libname_spec="$acl_cv_libname_spec"
6319   acl_library_names_spec="$acl_cv_library_names_spec"
6320   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6321   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6322   acl_hardcode_direct="$acl_cv_hardcode_direct"
6323   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6324     # Check whether --enable-rpath was given.
6325 if test "${enable_rpath+set}" = set; then :
6326   enableval=$enable_rpath; :
6327 else
6328   enable_rpath=yes
6329 fi
6330
6331
6332
6333
6334   acl_libdirstem=lib
6335   acl_libdirstem2=
6336   case "$host_os" in
6337     solaris*)
6338                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
6339 $as_echo_n "checking for 64-bit host... " >&6; }
6340 if ${gl_cv_solaris_64bit+:} false; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h.  */
6345
6346 #ifdef _LP64
6347 sixtyfour bits
6348 #endif
6349
6350 _ACEOF
6351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6352   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
6353   gl_cv_solaris_64bit=yes
6354 else
6355   gl_cv_solaris_64bit=no
6356 fi
6357 rm -f conftest*
6358
6359
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
6362 $as_echo "$gl_cv_solaris_64bit" >&6; }
6363       if test $gl_cv_solaris_64bit = yes; then
6364         acl_libdirstem=lib/64
6365         case "$host_cpu" in
6366           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
6367           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
6368         esac
6369       fi
6370       ;;
6371     *)
6372       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6373       if test -n "$searchpath"; then
6374         acl_save_IFS="${IFS=    }"; IFS=":"
6375         for searchdir in $searchpath; do
6376           if test -d "$searchdir"; then
6377             case "$searchdir" in
6378               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6379               */../ | */.. )
6380                 # Better ignore directories of this form. They are misleading.
6381                 ;;
6382               *) searchdir=`cd "$searchdir" && pwd`
6383                  case "$searchdir" in
6384                    */lib64 ) acl_libdirstem=lib64 ;;
6385                  esac ;;
6386             esac
6387           fi
6388         done
6389         IFS="$acl_save_IFS"
6390       fi
6391       ;;
6392   esac
6393   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406     use_additional=yes
6407
6408   acl_save_prefix="$prefix"
6409   prefix="$acl_final_prefix"
6410   acl_save_exec_prefix="$exec_prefix"
6411   exec_prefix="$acl_final_exec_prefix"
6412
6413     eval additional_includedir=\"$includedir\"
6414     eval additional_libdir=\"$libdir\"
6415
6416   exec_prefix="$acl_save_exec_prefix"
6417   prefix="$acl_save_prefix"
6418
6419
6420 # Check whether --with-libiconv-prefix was given.
6421 if test "${with_libiconv_prefix+set}" = set; then :
6422   withval=$with_libiconv_prefix;
6423     if test "X$withval" = "Xno"; then
6424       use_additional=no
6425     else
6426       if test "X$withval" = "X"; then
6427
6428   acl_save_prefix="$prefix"
6429   prefix="$acl_final_prefix"
6430   acl_save_exec_prefix="$exec_prefix"
6431   exec_prefix="$acl_final_exec_prefix"
6432
6433           eval additional_includedir=\"$includedir\"
6434           eval additional_libdir=\"$libdir\"
6435
6436   exec_prefix="$acl_save_exec_prefix"
6437   prefix="$acl_save_prefix"
6438
6439       else
6440         additional_includedir="$withval/include"
6441         additional_libdir="$withval/$acl_libdirstem"
6442         if test "$acl_libdirstem2" != "$acl_libdirstem" \
6443            && ! test -d "$withval/$acl_libdirstem"; then
6444           additional_libdir="$withval/$acl_libdirstem2"
6445         fi
6446       fi
6447     fi
6448
6449 fi
6450
6451       LIBICONV=
6452   LTLIBICONV=
6453   INCICONV=
6454   LIBICONV_PREFIX=
6455       HAVE_LIBICONV=
6456   rpathdirs=
6457   ltrpathdirs=
6458   names_already_handled=
6459   names_next_round='iconv '
6460   while test -n "$names_next_round"; do
6461     names_this_round="$names_next_round"
6462     names_next_round=
6463     for name in $names_this_round; do
6464       already_handled=
6465       for n in $names_already_handled; do
6466         if test "$n" = "$name"; then
6467           already_handled=yes
6468           break
6469         fi
6470       done
6471       if test -z "$already_handled"; then
6472         names_already_handled="$names_already_handled $name"
6473                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6474         eval value=\"\$HAVE_LIB$uppername\"
6475         if test -n "$value"; then
6476           if test "$value" = yes; then
6477             eval value=\"\$LIB$uppername\"
6478             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6479             eval value=\"\$LTLIB$uppername\"
6480             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6481           else
6482                                     :
6483           fi
6484         else
6485                               found_dir=
6486           found_la=
6487           found_so=
6488           found_a=
6489           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6490           if test -n "$acl_shlibext"; then
6491             shrext=".$acl_shlibext"             # typically: shrext=.so
6492           else
6493             shrext=
6494           fi
6495           if test $use_additional = yes; then
6496             dir="$additional_libdir"
6497                                     if test -n "$acl_shlibext"; then
6498               if test -f "$dir/$libname$shrext"; then
6499                 found_dir="$dir"
6500                 found_so="$dir/$libname$shrext"
6501               else
6502                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6503                   ver=`(cd "$dir" && \
6504                         for f in "$libname$shrext".*; do echo "$f"; done \
6505                         | sed -e "s,^$libname$shrext\\\\.,," \
6506                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6507                         | sed 1q ) 2>/dev/null`
6508                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6509                     found_dir="$dir"
6510                     found_so="$dir/$libname$shrext.$ver"
6511                   fi
6512                 else
6513                   eval library_names=\"$acl_library_names_spec\"
6514                   for f in $library_names; do
6515                     if test -f "$dir/$f"; then
6516                       found_dir="$dir"
6517                       found_so="$dir/$f"
6518                       break
6519                     fi
6520                   done
6521                 fi
6522               fi
6523             fi
6524                         if test "X$found_dir" = "X"; then
6525               if test -f "$dir/$libname.$acl_libext"; then
6526                 found_dir="$dir"
6527                 found_a="$dir/$libname.$acl_libext"
6528               fi
6529             fi
6530             if test "X$found_dir" != "X"; then
6531               if test -f "$dir/$libname.la"; then
6532                 found_la="$dir/$libname.la"
6533               fi
6534             fi
6535           fi
6536           if test "X$found_dir" = "X"; then
6537             for x in $LDFLAGS $LTLIBICONV; do
6538
6539   acl_save_prefix="$prefix"
6540   prefix="$acl_final_prefix"
6541   acl_save_exec_prefix="$exec_prefix"
6542   exec_prefix="$acl_final_exec_prefix"
6543   eval x=\"$x\"
6544   exec_prefix="$acl_save_exec_prefix"
6545   prefix="$acl_save_prefix"
6546
6547               case "$x" in
6548                 -L*)
6549                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6550                                     if test -n "$acl_shlibext"; then
6551                     if test -f "$dir/$libname$shrext"; then
6552                       found_dir="$dir"
6553                       found_so="$dir/$libname$shrext"
6554                     else
6555                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6556                         ver=`(cd "$dir" && \
6557                               for f in "$libname$shrext".*; do echo "$f"; done \
6558                               | sed -e "s,^$libname$shrext\\\\.,," \
6559                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6560                               | sed 1q ) 2>/dev/null`
6561                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6562                           found_dir="$dir"
6563                           found_so="$dir/$libname$shrext.$ver"
6564                         fi
6565                       else
6566                         eval library_names=\"$acl_library_names_spec\"
6567                         for f in $library_names; do
6568                           if test -f "$dir/$f"; then
6569                             found_dir="$dir"
6570                             found_so="$dir/$f"
6571                             break
6572                           fi
6573                         done
6574                       fi
6575                     fi
6576                   fi
6577                                     if test "X$found_dir" = "X"; then
6578                     if test -f "$dir/$libname.$acl_libext"; then
6579                       found_dir="$dir"
6580                       found_a="$dir/$libname.$acl_libext"
6581                     fi
6582                   fi
6583                   if test "X$found_dir" != "X"; then
6584                     if test -f "$dir/$libname.la"; then
6585                       found_la="$dir/$libname.la"
6586                     fi
6587                   fi
6588                   ;;
6589               esac
6590               if test "X$found_dir" != "X"; then
6591                 break
6592               fi
6593             done
6594           fi
6595           if test "X$found_dir" != "X"; then
6596                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6597             if test "X$found_so" != "X"; then
6598                                                         if test "$enable_rpath" = no \
6599                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6600                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6601                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6602               else
6603                                                                                 haveit=
6604                 for x in $ltrpathdirs; do
6605                   if test "X$x" = "X$found_dir"; then
6606                     haveit=yes
6607                     break
6608                   fi
6609                 done
6610                 if test -z "$haveit"; then
6611                   ltrpathdirs="$ltrpathdirs $found_dir"
6612                 fi
6613                                 if test "$acl_hardcode_direct" = yes; then
6614                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6615                 else
6616                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6617                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6618                                                             haveit=
6619                     for x in $rpathdirs; do
6620                       if test "X$x" = "X$found_dir"; then
6621                         haveit=yes
6622                         break
6623                       fi
6624                     done
6625                     if test -z "$haveit"; then
6626                       rpathdirs="$rpathdirs $found_dir"
6627                     fi
6628                   else
6629                                                                                 haveit=
6630                     for x in $LDFLAGS $LIBICONV; do
6631
6632   acl_save_prefix="$prefix"
6633   prefix="$acl_final_prefix"
6634   acl_save_exec_prefix="$exec_prefix"
6635   exec_prefix="$acl_final_exec_prefix"
6636   eval x=\"$x\"
6637   exec_prefix="$acl_save_exec_prefix"
6638   prefix="$acl_save_prefix"
6639
6640                       if test "X$x" = "X-L$found_dir"; then
6641                         haveit=yes
6642                         break
6643                       fi
6644                     done
6645                     if test -z "$haveit"; then
6646                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6647                     fi
6648                     if test "$acl_hardcode_minus_L" != no; then
6649                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6650                     else
6651                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6652                     fi
6653                   fi
6654                 fi
6655               fi
6656             else
6657               if test "X$found_a" != "X"; then
6658                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6659               else
6660                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6661               fi
6662             fi
6663                         additional_includedir=
6664             case "$found_dir" in
6665               */$acl_libdirstem | */$acl_libdirstem/)
6666                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6667                 if test "$name" = 'iconv'; then
6668                   LIBICONV_PREFIX="$basedir"
6669                 fi
6670                 additional_includedir="$basedir/include"
6671                 ;;
6672               */$acl_libdirstem2 | */$acl_libdirstem2/)
6673                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6674                 if test "$name" = 'iconv'; then
6675                   LIBICONV_PREFIX="$basedir"
6676                 fi
6677                 additional_includedir="$basedir/include"
6678                 ;;
6679             esac
6680             if test "X$additional_includedir" != "X"; then
6681                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6682                 haveit=
6683                 if test "X$additional_includedir" = "X/usr/local/include"; then
6684                   if test -n "$GCC"; then
6685                     case $host_os in
6686                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6687                     esac
6688                   fi
6689                 fi
6690                 if test -z "$haveit"; then
6691                   for x in $CPPFLAGS $INCICONV; do
6692
6693   acl_save_prefix="$prefix"
6694   prefix="$acl_final_prefix"
6695   acl_save_exec_prefix="$exec_prefix"
6696   exec_prefix="$acl_final_exec_prefix"
6697   eval x=\"$x\"
6698   exec_prefix="$acl_save_exec_prefix"
6699   prefix="$acl_save_prefix"
6700
6701                     if test "X$x" = "X-I$additional_includedir"; then
6702                       haveit=yes
6703                       break
6704                     fi
6705                   done
6706                   if test -z "$haveit"; then
6707                     if test -d "$additional_includedir"; then
6708                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6709                     fi
6710                   fi
6711                 fi
6712               fi
6713             fi
6714                         if test -n "$found_la"; then
6715                                                         save_libdir="$libdir"
6716               case "$found_la" in
6717                 */* | *\\*) . "$found_la" ;;
6718                 *) . "./$found_la" ;;
6719               esac
6720               libdir="$save_libdir"
6721                             for dep in $dependency_libs; do
6722                 case "$dep" in
6723                   -L*)
6724                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6725                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6726                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6727                       haveit=
6728                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6729                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6730                         if test -n "$GCC"; then
6731                           case $host_os in
6732                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6733                           esac
6734                         fi
6735                       fi
6736                       if test -z "$haveit"; then
6737                         haveit=
6738                         for x in $LDFLAGS $LIBICONV; do
6739
6740   acl_save_prefix="$prefix"
6741   prefix="$acl_final_prefix"
6742   acl_save_exec_prefix="$exec_prefix"
6743   exec_prefix="$acl_final_exec_prefix"
6744   eval x=\"$x\"
6745   exec_prefix="$acl_save_exec_prefix"
6746   prefix="$acl_save_prefix"
6747
6748                           if test "X$x" = "X-L$additional_libdir"; then
6749                             haveit=yes
6750                             break
6751                           fi
6752                         done
6753                         if test -z "$haveit"; then
6754                           if test -d "$additional_libdir"; then
6755                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6756                           fi
6757                         fi
6758                         haveit=
6759                         for x in $LDFLAGS $LTLIBICONV; do
6760
6761   acl_save_prefix="$prefix"
6762   prefix="$acl_final_prefix"
6763   acl_save_exec_prefix="$exec_prefix"
6764   exec_prefix="$acl_final_exec_prefix"
6765   eval x=\"$x\"
6766   exec_prefix="$acl_save_exec_prefix"
6767   prefix="$acl_save_prefix"
6768
6769                           if test "X$x" = "X-L$additional_libdir"; then
6770                             haveit=yes
6771                             break
6772                           fi
6773                         done
6774                         if test -z "$haveit"; then
6775                           if test -d "$additional_libdir"; then
6776                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6777                           fi
6778                         fi
6779                       fi
6780                     fi
6781                     ;;
6782                   -R*)
6783                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6784                     if test "$enable_rpath" != no; then
6785                                                                   haveit=
6786                       for x in $rpathdirs; do
6787                         if test "X$x" = "X$dir"; then
6788                           haveit=yes
6789                           break
6790                         fi
6791                       done
6792                       if test -z "$haveit"; then
6793                         rpathdirs="$rpathdirs $dir"
6794                       fi
6795                                                                   haveit=
6796                       for x in $ltrpathdirs; do
6797                         if test "X$x" = "X$dir"; then
6798                           haveit=yes
6799                           break
6800                         fi
6801                       done
6802                       if test -z "$haveit"; then
6803                         ltrpathdirs="$ltrpathdirs $dir"
6804                       fi
6805                     fi
6806                     ;;
6807                   -l*)
6808                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6809                     ;;
6810                   *.la)
6811                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6812                     ;;
6813                   *)
6814                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6815                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6816                     ;;
6817                 esac
6818               done
6819             fi
6820           else
6821                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6822             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6823           fi
6824         fi
6825       fi
6826     done
6827   done
6828   if test "X$rpathdirs" != "X"; then
6829     if test -n "$acl_hardcode_libdir_separator"; then
6830                         alldirs=
6831       for found_dir in $rpathdirs; do
6832         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6833       done
6834             acl_save_libdir="$libdir"
6835       libdir="$alldirs"
6836       eval flag=\"$acl_hardcode_libdir_flag_spec\"
6837       libdir="$acl_save_libdir"
6838       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6839     else
6840             for found_dir in $rpathdirs; do
6841         acl_save_libdir="$libdir"
6842         libdir="$found_dir"
6843         eval flag=\"$acl_hardcode_libdir_flag_spec\"
6844         libdir="$acl_save_libdir"
6845         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6846       done
6847     fi
6848   fi
6849   if test "X$ltrpathdirs" != "X"; then
6850             for found_dir in $ltrpathdirs; do
6851       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6852     done
6853   fi
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6886 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6887 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   gt_save_LIBS="$LIBS"
6891      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6892      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h.  */
6894 #include <CoreFoundation/CFPreferences.h>
6895 int
6896 main ()
6897 {
6898 CFPreferencesCopyAppValue(NULL, NULL)
6899   ;
6900   return 0;
6901 }
6902 _ACEOF
6903 if ac_fn_c_try_link "$LINENO"; then :
6904   gt_cv_func_CFPreferencesCopyAppValue=yes
6905 else
6906   gt_cv_func_CFPreferencesCopyAppValue=no
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext \
6909     conftest$ac_exeext conftest.$ac_ext
6910      LIBS="$gt_save_LIBS"
6911 fi
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6913 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6914   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6915
6916 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6917
6918   fi
6919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6920 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6921 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   gt_save_LIBS="$LIBS"
6925      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6926      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h.  */
6928 #include <CoreFoundation/CFLocale.h>
6929 int
6930 main ()
6931 {
6932 CFLocaleCopyCurrent();
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"; then :
6938   gt_cv_func_CFLocaleCopyCurrent=yes
6939 else
6940   gt_cv_func_CFLocaleCopyCurrent=no
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext \
6943     conftest$ac_exeext conftest.$ac_ext
6944      LIBS="$gt_save_LIBS"
6945 fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6947 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6948   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6949
6950 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6951
6952   fi
6953   INTL_MACOSX_LIBS=
6954   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6955     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6956   fi
6957
6958
6959
6960
6961
6962
6963   LIBINTL=
6964   LTLIBINTL=
6965   POSUB=
6966
6967     case " $gt_needs " in
6968     *" need-formatstring-macros "*) gt_api_version=3 ;;
6969     *" need-ngettext "*) gt_api_version=2 ;;
6970     *) gt_api_version=1 ;;
6971   esac
6972   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6973   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6974
6975     if test "$USE_NLS" = "yes"; then
6976     gt_use_preinstalled_gnugettext=no
6977
6978
6979         if test $gt_api_version -ge 3; then
6980           gt_revision_test_code='
6981 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6982 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6983 #endif
6984 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6985 '
6986         else
6987           gt_revision_test_code=
6988         fi
6989         if test $gt_api_version -ge 2; then
6990           gt_expression_test_code=' + * ngettext ("", "", 0)'
6991         else
6992           gt_expression_test_code=
6993         fi
6994
6995         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6996 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6997 if eval \${$gt_func_gnugettext_libc+:} false; then :
6998   $as_echo_n "(cached) " >&6
6999 else
7000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h.  */
7002 #include <libintl.h>
7003 $gt_revision_test_code
7004 extern int _nl_msg_cat_cntr;
7005 extern int *_nl_domain_bindings;
7006 int
7007 main ()
7008 {
7009 bindtextdomain ("", "");
7010 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016   eval "$gt_func_gnugettext_libc=yes"
7017 else
7018   eval "$gt_func_gnugettext_libc=no"
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext \
7021     conftest$ac_exeext conftest.$ac_ext
7022 fi
7023 eval ac_res=\$$gt_func_gnugettext_libc
7024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7025 $as_echo "$ac_res" >&6; }
7026
7027         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7028
7029
7030
7031
7032
7033           am_save_CPPFLAGS="$CPPFLAGS"
7034
7035   for element in $INCICONV; do
7036     haveit=
7037     for x in $CPPFLAGS; do
7038
7039   acl_save_prefix="$prefix"
7040   prefix="$acl_final_prefix"
7041   acl_save_exec_prefix="$exec_prefix"
7042   exec_prefix="$acl_final_exec_prefix"
7043   eval x=\"$x\"
7044   exec_prefix="$acl_save_exec_prefix"
7045   prefix="$acl_save_prefix"
7046
7047       if test "X$x" = "X$element"; then
7048         haveit=yes
7049         break
7050       fi
7051     done
7052     if test -z "$haveit"; then
7053       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7054     fi
7055   done
7056
7057
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7059 $as_echo_n "checking for iconv... " >&6; }
7060 if ${am_cv_func_iconv+:} false; then :
7061   $as_echo_n "(cached) " >&6
7062 else
7063
7064     am_cv_func_iconv="no, consider installing GNU libiconv"
7065     am_cv_lib_iconv=no
7066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h.  */
7068 #include <stdlib.h>
7069 #include <iconv.h>
7070 int
7071 main ()
7072 {
7073 iconv_t cd = iconv_open("","");
7074        iconv(cd,NULL,NULL,NULL,NULL);
7075        iconv_close(cd);
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_link "$LINENO"; then :
7081   am_cv_func_iconv=yes
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext \
7084     conftest$ac_exeext conftest.$ac_ext
7085     if test "$am_cv_func_iconv" != yes; then
7086       am_save_LIBS="$LIBS"
7087       LIBS="$LIBS $LIBICONV"
7088       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h.  */
7090 #include <stdlib.h>
7091 #include <iconv.h>
7092 int
7093 main ()
7094 {
7095 iconv_t cd = iconv_open("","");
7096          iconv(cd,NULL,NULL,NULL,NULL);
7097          iconv_close(cd);
7098   ;
7099   return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"; then :
7103   am_cv_lib_iconv=yes
7104         am_cv_func_iconv=yes
7105 fi
7106 rm -f core conftest.err conftest.$ac_objext \
7107     conftest$ac_exeext conftest.$ac_ext
7108       LIBS="$am_save_LIBS"
7109     fi
7110
7111 fi
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7113 $as_echo "$am_cv_func_iconv" >&6; }
7114   if test "$am_cv_func_iconv" = yes; then
7115     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7116 $as_echo_n "checking for working iconv... " >&6; }
7117 if ${am_cv_func_iconv_works+:} false; then :
7118   $as_echo_n "(cached) " >&6
7119 else
7120
7121             am_save_LIBS="$LIBS"
7122       if test $am_cv_lib_iconv = yes; then
7123         LIBS="$LIBS $LIBICONV"
7124       fi
7125       if test "$cross_compiling" = yes; then :
7126   case "$host_os" in
7127            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7128            *)            am_cv_func_iconv_works="guessing yes" ;;
7129          esac
7130 else
7131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h.  */
7133
7134 #include <iconv.h>
7135 #include <string.h>
7136 int main ()
7137 {
7138   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7139      returns.  */
7140   {
7141     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7142     if (cd_utf8_to_88591 != (iconv_t)(-1))
7143       {
7144         static const char input[] = "\342\202\254"; /* EURO SIGN */
7145         char buf[10];
7146         const char *inptr = input;
7147         size_t inbytesleft = strlen (input);
7148         char *outptr = buf;
7149         size_t outbytesleft = sizeof (buf);
7150         size_t res = iconv (cd_utf8_to_88591,
7151                             (char **) &inptr, &inbytesleft,
7152                             &outptr, &outbytesleft);
7153         if (res == 0)
7154           return 1;
7155       }
7156   }
7157   /* Test against Solaris 10 bug: Failures are not distinguishable from
7158      successful returns.  */
7159   {
7160     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
7161     if (cd_ascii_to_88591 != (iconv_t)(-1))
7162       {
7163         static const char input[] = "\263";
7164         char buf[10];
7165         const char *inptr = input;
7166         size_t inbytesleft = strlen (input);
7167         char *outptr = buf;
7168         size_t outbytesleft = sizeof (buf);
7169         size_t res = iconv (cd_ascii_to_88591,
7170                             (char **) &inptr, &inbytesleft,
7171                             &outptr, &outbytesleft);
7172         if (res == 0)
7173           return 1;
7174       }
7175   }
7176 #if 0 /* This bug could be worked around by the caller.  */
7177   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7178   {
7179     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7180     if (cd_88591_to_utf8 != (iconv_t)(-1))
7181       {
7182         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7183         char buf[50];
7184         const char *inptr = input;
7185         size_t inbytesleft = strlen (input);
7186         char *outptr = buf;
7187         size_t outbytesleft = sizeof (buf);
7188         size_t res = iconv (cd_88591_to_utf8,
7189                             (char **) &inptr, &inbytesleft,
7190                             &outptr, &outbytesleft);
7191         if ((int)res > 0)
7192           return 1;
7193       }
7194   }
7195 #endif
7196   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7197      provided.  */
7198   if (/* Try standardized names.  */
7199       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7200       /* Try IRIX, OSF/1 names.  */
7201       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7202       /* Try AIX names.  */
7203       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7204       /* Try HP-UX names.  */
7205       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7206     return 1;
7207   return 0;
7208 }
7209 _ACEOF
7210 if ac_fn_c_try_run "$LINENO"; then :
7211   am_cv_func_iconv_works=yes
7212 else
7213   am_cv_func_iconv_works=no
7214 fi
7215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7216   conftest.$ac_objext conftest.beam conftest.$ac_ext
7217 fi
7218
7219       LIBS="$am_save_LIBS"
7220
7221 fi
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7223 $as_echo "$am_cv_func_iconv_works" >&6; }
7224     case "$am_cv_func_iconv_works" in
7225       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7226       *)   am_func_iconv=yes ;;
7227     esac
7228   else
7229     am_func_iconv=no am_cv_lib_iconv=no
7230   fi
7231   if test "$am_func_iconv" = yes; then
7232
7233 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7234
7235   fi
7236   if test "$am_cv_lib_iconv" = yes; then
7237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7238 $as_echo_n "checking how to link with libiconv... " >&6; }
7239     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7240 $as_echo "$LIBICONV" >&6; }
7241   else
7242             CPPFLAGS="$am_save_CPPFLAGS"
7243     LIBICONV=
7244     LTLIBICONV=
7245   fi
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257     use_additional=yes
7258
7259   acl_save_prefix="$prefix"
7260   prefix="$acl_final_prefix"
7261   acl_save_exec_prefix="$exec_prefix"
7262   exec_prefix="$acl_final_exec_prefix"
7263
7264     eval additional_includedir=\"$includedir\"
7265     eval additional_libdir=\"$libdir\"
7266
7267   exec_prefix="$acl_save_exec_prefix"
7268   prefix="$acl_save_prefix"
7269
7270
7271 # Check whether --with-libintl-prefix was given.
7272 if test "${with_libintl_prefix+set}" = set; then :
7273   withval=$with_libintl_prefix;
7274     if test "X$withval" = "Xno"; then
7275       use_additional=no
7276     else
7277       if test "X$withval" = "X"; then
7278
7279   acl_save_prefix="$prefix"
7280   prefix="$acl_final_prefix"
7281   acl_save_exec_prefix="$exec_prefix"
7282   exec_prefix="$acl_final_exec_prefix"
7283
7284           eval additional_includedir=\"$includedir\"
7285           eval additional_libdir=\"$libdir\"
7286
7287   exec_prefix="$acl_save_exec_prefix"
7288   prefix="$acl_save_prefix"
7289
7290       else
7291         additional_includedir="$withval/include"
7292         additional_libdir="$withval/$acl_libdirstem"
7293         if test "$acl_libdirstem2" != "$acl_libdirstem" \
7294            && ! test -d "$withval/$acl_libdirstem"; then
7295           additional_libdir="$withval/$acl_libdirstem2"
7296         fi
7297       fi
7298     fi
7299
7300 fi
7301
7302       LIBINTL=
7303   LTLIBINTL=
7304   INCINTL=
7305   LIBINTL_PREFIX=
7306       HAVE_LIBINTL=
7307   rpathdirs=
7308   ltrpathdirs=
7309   names_already_handled=
7310   names_next_round='intl '
7311   while test -n "$names_next_round"; do
7312     names_this_round="$names_next_round"
7313     names_next_round=
7314     for name in $names_this_round; do
7315       already_handled=
7316       for n in $names_already_handled; do
7317         if test "$n" = "$name"; then
7318           already_handled=yes
7319           break
7320         fi
7321       done
7322       if test -z "$already_handled"; then
7323         names_already_handled="$names_already_handled $name"
7324                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7325         eval value=\"\$HAVE_LIB$uppername\"
7326         if test -n "$value"; then
7327           if test "$value" = yes; then
7328             eval value=\"\$LIB$uppername\"
7329             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7330             eval value=\"\$LTLIB$uppername\"
7331             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7332           else
7333                                     :
7334           fi
7335         else
7336                               found_dir=
7337           found_la=
7338           found_so=
7339           found_a=
7340           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7341           if test -n "$acl_shlibext"; then
7342             shrext=".$acl_shlibext"             # typically: shrext=.so
7343           else
7344             shrext=
7345           fi
7346           if test $use_additional = yes; then
7347             dir="$additional_libdir"
7348                                     if test -n "$acl_shlibext"; then
7349               if test -f "$dir/$libname$shrext"; then
7350                 found_dir="$dir"
7351                 found_so="$dir/$libname$shrext"
7352               else
7353                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7354                   ver=`(cd "$dir" && \
7355                         for f in "$libname$shrext".*; do echo "$f"; done \
7356                         | sed -e "s,^$libname$shrext\\\\.,," \
7357                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7358                         | sed 1q ) 2>/dev/null`
7359                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7360                     found_dir="$dir"
7361                     found_so="$dir/$libname$shrext.$ver"
7362                   fi
7363                 else
7364                   eval library_names=\"$acl_library_names_spec\"
7365                   for f in $library_names; do
7366                     if test -f "$dir/$f"; then
7367                       found_dir="$dir"
7368                       found_so="$dir/$f"
7369                       break
7370                     fi
7371                   done
7372                 fi
7373               fi
7374             fi
7375                         if test "X$found_dir" = "X"; then
7376               if test -f "$dir/$libname.$acl_libext"; then
7377                 found_dir="$dir"
7378                 found_a="$dir/$libname.$acl_libext"
7379               fi
7380             fi
7381             if test "X$found_dir" != "X"; then
7382               if test -f "$dir/$libname.la"; then
7383                 found_la="$dir/$libname.la"
7384               fi
7385             fi
7386           fi
7387           if test "X$found_dir" = "X"; then
7388             for x in $LDFLAGS $LTLIBINTL; do
7389
7390   acl_save_prefix="$prefix"
7391   prefix="$acl_final_prefix"
7392   acl_save_exec_prefix="$exec_prefix"
7393   exec_prefix="$acl_final_exec_prefix"
7394   eval x=\"$x\"
7395   exec_prefix="$acl_save_exec_prefix"
7396   prefix="$acl_save_prefix"
7397
7398               case "$x" in
7399                 -L*)
7400                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7401                                     if test -n "$acl_shlibext"; then
7402                     if test -f "$dir/$libname$shrext"; then
7403                       found_dir="$dir"
7404                       found_so="$dir/$libname$shrext"
7405                     else
7406                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7407                         ver=`(cd "$dir" && \
7408                               for f in "$libname$shrext".*; do echo "$f"; done \
7409                               | sed -e "s,^$libname$shrext\\\\.,," \
7410                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7411                               | sed 1q ) 2>/dev/null`
7412                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7413                           found_dir="$dir"
7414                           found_so="$dir/$libname$shrext.$ver"
7415                         fi
7416                       else
7417                         eval library_names=\"$acl_library_names_spec\"
7418                         for f in $library_names; do
7419                           if test -f "$dir/$f"; then
7420                             found_dir="$dir"
7421                             found_so="$dir/$f"
7422                             break
7423                           fi
7424                         done
7425                       fi
7426                     fi
7427                   fi
7428                                     if test "X$found_dir" = "X"; then
7429                     if test -f "$dir/$libname.$acl_libext"; then
7430                       found_dir="$dir"
7431                       found_a="$dir/$libname.$acl_libext"
7432                     fi
7433                   fi
7434                   if test "X$found_dir" != "X"; then
7435                     if test -f "$dir/$libname.la"; then
7436                       found_la="$dir/$libname.la"
7437                     fi
7438                   fi
7439                   ;;
7440               esac
7441               if test "X$found_dir" != "X"; then
7442                 break
7443               fi
7444             done
7445           fi
7446           if test "X$found_dir" != "X"; then
7447                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7448             if test "X$found_so" != "X"; then
7449                                                         if test "$enable_rpath" = no \
7450                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
7451                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7452                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7453               else
7454                                                                                 haveit=
7455                 for x in $ltrpathdirs; do
7456                   if test "X$x" = "X$found_dir"; then
7457                     haveit=yes
7458                     break
7459                   fi
7460                 done
7461                 if test -z "$haveit"; then
7462                   ltrpathdirs="$ltrpathdirs $found_dir"
7463                 fi
7464                                 if test "$acl_hardcode_direct" = yes; then
7465                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7466                 else
7467                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7468                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7469                                                             haveit=
7470                     for x in $rpathdirs; do
7471                       if test "X$x" = "X$found_dir"; then
7472                         haveit=yes
7473                         break
7474                       fi
7475                     done
7476                     if test -z "$haveit"; then
7477                       rpathdirs="$rpathdirs $found_dir"
7478                     fi
7479                   else
7480                                                                                 haveit=
7481                     for x in $LDFLAGS $LIBINTL; do
7482
7483   acl_save_prefix="$prefix"
7484   prefix="$acl_final_prefix"
7485   acl_save_exec_prefix="$exec_prefix"
7486   exec_prefix="$acl_final_exec_prefix"
7487   eval x=\"$x\"
7488   exec_prefix="$acl_save_exec_prefix"
7489   prefix="$acl_save_prefix"
7490
7491                       if test "X$x" = "X-L$found_dir"; then
7492                         haveit=yes
7493                         break
7494                       fi
7495                     done
7496                     if test -z "$haveit"; then
7497                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7498                     fi
7499                     if test "$acl_hardcode_minus_L" != no; then
7500                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7501                     else
7502                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7503                     fi
7504                   fi
7505                 fi
7506               fi
7507             else
7508               if test "X$found_a" != "X"; then
7509                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7510               else
7511                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7512               fi
7513             fi
7514                         additional_includedir=
7515             case "$found_dir" in
7516               */$acl_libdirstem | */$acl_libdirstem/)
7517                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7518                 if test "$name" = 'intl'; then
7519                   LIBINTL_PREFIX="$basedir"
7520                 fi
7521                 additional_includedir="$basedir/include"
7522                 ;;
7523               */$acl_libdirstem2 | */$acl_libdirstem2/)
7524                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
7525                 if test "$name" = 'intl'; then
7526                   LIBINTL_PREFIX="$basedir"
7527                 fi
7528                 additional_includedir="$basedir/include"
7529                 ;;
7530             esac
7531             if test "X$additional_includedir" != "X"; then
7532                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7533                 haveit=
7534                 if test "X$additional_includedir" = "X/usr/local/include"; then
7535                   if test -n "$GCC"; then
7536                     case $host_os in
7537                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7538                     esac
7539                   fi
7540                 fi
7541                 if test -z "$haveit"; then
7542                   for x in $CPPFLAGS $INCINTL; do
7543
7544   acl_save_prefix="$prefix"
7545   prefix="$acl_final_prefix"
7546   acl_save_exec_prefix="$exec_prefix"
7547   exec_prefix="$acl_final_exec_prefix"
7548   eval x=\"$x\"
7549   exec_prefix="$acl_save_exec_prefix"
7550   prefix="$acl_save_prefix"
7551
7552                     if test "X$x" = "X-I$additional_includedir"; then
7553                       haveit=yes
7554                       break
7555                     fi
7556                   done
7557                   if test -z "$haveit"; then
7558                     if test -d "$additional_includedir"; then
7559                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7560                     fi
7561                   fi
7562                 fi
7563               fi
7564             fi
7565                         if test -n "$found_la"; then
7566                                                         save_libdir="$libdir"
7567               case "$found_la" in
7568                 */* | *\\*) . "$found_la" ;;
7569                 *) . "./$found_la" ;;
7570               esac
7571               libdir="$save_libdir"
7572                             for dep in $dependency_libs; do
7573                 case "$dep" in
7574                   -L*)
7575                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7576                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
7577                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7578                       haveit=
7579                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
7580                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7581                         if test -n "$GCC"; then
7582                           case $host_os in
7583                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7584                           esac
7585                         fi
7586                       fi
7587                       if test -z "$haveit"; then
7588                         haveit=
7589                         for x in $LDFLAGS $LIBINTL; do
7590
7591   acl_save_prefix="$prefix"
7592   prefix="$acl_final_prefix"
7593   acl_save_exec_prefix="$exec_prefix"
7594   exec_prefix="$acl_final_exec_prefix"
7595   eval x=\"$x\"
7596   exec_prefix="$acl_save_exec_prefix"
7597   prefix="$acl_save_prefix"
7598
7599                           if test "X$x" = "X-L$additional_libdir"; then
7600                             haveit=yes
7601                             break
7602                           fi
7603                         done
7604                         if test -z "$haveit"; then
7605                           if test -d "$additional_libdir"; then
7606                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7607                           fi
7608                         fi
7609                         haveit=
7610                         for x in $LDFLAGS $LTLIBINTL; do
7611
7612   acl_save_prefix="$prefix"
7613   prefix="$acl_final_prefix"
7614   acl_save_exec_prefix="$exec_prefix"
7615   exec_prefix="$acl_final_exec_prefix"
7616   eval x=\"$x\"
7617   exec_prefix="$acl_save_exec_prefix"
7618   prefix="$acl_save_prefix"
7619
7620                           if test "X$x" = "X-L$additional_libdir"; then
7621                             haveit=yes
7622                             break
7623                           fi
7624                         done
7625                         if test -z "$haveit"; then
7626                           if test -d "$additional_libdir"; then
7627                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7628                           fi
7629                         fi
7630                       fi
7631                     fi
7632                     ;;
7633                   -R*)
7634                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7635                     if test "$enable_rpath" != no; then
7636                                                                   haveit=
7637                       for x in $rpathdirs; do
7638                         if test "X$x" = "X$dir"; then
7639                           haveit=yes
7640                           break
7641                         fi
7642                       done
7643                       if test -z "$haveit"; then
7644                         rpathdirs="$rpathdirs $dir"
7645                       fi
7646                                                                   haveit=
7647                       for x in $ltrpathdirs; do
7648                         if test "X$x" = "X$dir"; then
7649                           haveit=yes
7650                           break
7651                         fi
7652                       done
7653                       if test -z "$haveit"; then
7654                         ltrpathdirs="$ltrpathdirs $dir"
7655                       fi
7656                     fi
7657                     ;;
7658                   -l*)
7659                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7660                     ;;
7661                   *.la)
7662                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7663                     ;;
7664                   *)
7665                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7666                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7667                     ;;
7668                 esac
7669               done
7670             fi
7671           else
7672                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7673             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7674           fi
7675         fi
7676       fi
7677     done
7678   done
7679   if test "X$rpathdirs" != "X"; then
7680     if test -n "$acl_hardcode_libdir_separator"; then
7681                         alldirs=
7682       for found_dir in $rpathdirs; do
7683         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7684       done
7685             acl_save_libdir="$libdir"
7686       libdir="$alldirs"
7687       eval flag=\"$acl_hardcode_libdir_flag_spec\"
7688       libdir="$acl_save_libdir"
7689       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7690     else
7691             for found_dir in $rpathdirs; do
7692         acl_save_libdir="$libdir"
7693         libdir="$found_dir"
7694         eval flag=\"$acl_hardcode_libdir_flag_spec\"
7695         libdir="$acl_save_libdir"
7696         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7697       done
7698     fi
7699   fi
7700   if test "X$ltrpathdirs" != "X"; then
7701             for found_dir in $ltrpathdirs; do
7702       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7703     done
7704   fi
7705
7706
7707
7708
7709
7710
7711           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7712 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7713 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7714   $as_echo_n "(cached) " >&6
7715 else
7716   gt_save_CPPFLAGS="$CPPFLAGS"
7717             CPPFLAGS="$CPPFLAGS $INCINTL"
7718             gt_save_LIBS="$LIBS"
7719             LIBS="$LIBS $LIBINTL"
7720                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h.  */
7722 #include <libintl.h>
7723 $gt_revision_test_code
7724 extern int _nl_msg_cat_cntr;
7725 extern
7726 #ifdef __cplusplus
7727 "C"
7728 #endif
7729 const char *_nl_expand_alias (const char *);
7730 int
7731 main ()
7732 {
7733 bindtextdomain ("", "");
7734 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7735   ;
7736   return 0;
7737 }
7738 _ACEOF
7739 if ac_fn_c_try_link "$LINENO"; then :
7740   eval "$gt_func_gnugettext_libintl=yes"
7741 else
7742   eval "$gt_func_gnugettext_libintl=no"
7743 fi
7744 rm -f core conftest.err conftest.$ac_objext \
7745     conftest$ac_exeext conftest.$ac_ext
7746                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7747               LIBS="$LIBS $LIBICONV"
7748               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h.  */
7750 #include <libintl.h>
7751 $gt_revision_test_code
7752 extern int _nl_msg_cat_cntr;
7753 extern
7754 #ifdef __cplusplus
7755 "C"
7756 #endif
7757 const char *_nl_expand_alias (const char *);
7758 int
7759 main ()
7760 {
7761 bindtextdomain ("", "");
7762 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_link "$LINENO"; then :
7768   LIBINTL="$LIBINTL $LIBICONV"
7769                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7770                 eval "$gt_func_gnugettext_libintl=yes"
7771
7772 fi
7773 rm -f core conftest.err conftest.$ac_objext \
7774     conftest$ac_exeext conftest.$ac_ext
7775             fi
7776             CPPFLAGS="$gt_save_CPPFLAGS"
7777             LIBS="$gt_save_LIBS"
7778 fi
7779 eval ac_res=\$$gt_func_gnugettext_libintl
7780                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7781 $as_echo "$ac_res" >&6; }
7782         fi
7783
7784                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7785            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7786                 && test "$PACKAGE" != gettext-runtime \
7787                 && test "$PACKAGE" != gettext-tools; }; then
7788           gt_use_preinstalled_gnugettext=yes
7789         else
7790                     LIBINTL=
7791           LTLIBINTL=
7792           INCINTL=
7793         fi
7794
7795
7796
7797     if test -n "$INTL_MACOSX_LIBS"; then
7798       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7799          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7800                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7801         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7802       fi
7803     fi
7804
7805     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7806        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7807
7808 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7809
7810     else
7811       USE_NLS=no
7812     fi
7813   fi
7814
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7816 $as_echo_n "checking whether to use NLS... " >&6; }
7817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7818 $as_echo "$USE_NLS" >&6; }
7819   if test "$USE_NLS" = "yes"; then
7820     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7821 $as_echo_n "checking where the gettext function comes from... " >&6; }
7822     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7823       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7824         gt_source="external libintl"
7825       else
7826         gt_source="libc"
7827       fi
7828     else
7829       gt_source="included intl directory"
7830     fi
7831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7832 $as_echo "$gt_source" >&6; }
7833   fi
7834
7835   if test "$USE_NLS" = "yes"; then
7836
7837     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7838       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7839         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7840 $as_echo_n "checking how to link with libintl... " >&6; }
7841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7842 $as_echo "$LIBINTL" >&6; }
7843
7844   for element in $INCINTL; do
7845     haveit=
7846     for x in $CPPFLAGS; do
7847
7848   acl_save_prefix="$prefix"
7849   prefix="$acl_final_prefix"
7850   acl_save_exec_prefix="$exec_prefix"
7851   exec_prefix="$acl_final_exec_prefix"
7852   eval x=\"$x\"
7853   exec_prefix="$acl_save_exec_prefix"
7854   prefix="$acl_save_prefix"
7855
7856       if test "X$x" = "X$element"; then
7857         haveit=yes
7858         break
7859       fi
7860     done
7861     if test -z "$haveit"; then
7862       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7863     fi
7864   done
7865
7866       fi
7867
7868
7869 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7870
7871
7872 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7873
7874     fi
7875
7876         POSUB=po
7877   fi
7878
7879
7880
7881     INTLLIBS="$LIBINTL"
7882
7883
7884
7885
7886
7887
7888
7889 # This test must come as early as possible after the compiler configuration
7890 # tests, because the choice of the file model can (in principle) affect
7891 # whether functions and headers are available, whether they work, etc.
7892 # Check whether --enable-largefile was given.
7893 if test "${enable_largefile+set}" = set; then :
7894   enableval=$enable_largefile;
7895 fi
7896
7897 if test "$enable_largefile" != no; then
7898
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7900 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7901 if ${ac_cv_sys_largefile_CC+:} false; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   ac_cv_sys_largefile_CC=no
7905      if test "$GCC" != yes; then
7906        ac_save_CC=$CC
7907        while :; do
7908          # IRIX 6.2 and later do not support large files by default,
7909          # so use the C compiler's -n32 option if that helps.
7910          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h.  */
7912 #include <sys/types.h>
7913  /* Check that off_t can represent 2**63 - 1 correctly.
7914     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7915     since some C++ compilers masquerading as C compilers
7916     incorrectly reject 9223372036854775807.  */
7917 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7918   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7919                        && LARGE_OFF_T % 2147483647 == 1)
7920                       ? 1 : -1];
7921 int
7922 main ()
7923 {
7924
7925   ;
7926   return 0;
7927 }
7928 _ACEOF
7929          if ac_fn_c_try_compile "$LINENO"; then :
7930   break
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext
7933          CC="$CC -n32"
7934          if ac_fn_c_try_compile "$LINENO"; then :
7935   ac_cv_sys_largefile_CC=' -n32'; break
7936 fi
7937 rm -f core conftest.err conftest.$ac_objext
7938          break
7939        done
7940        CC=$ac_save_CC
7941        rm -f conftest.$ac_ext
7942     fi
7943 fi
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7945 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7946   if test "$ac_cv_sys_largefile_CC" != no; then
7947     CC=$CC$ac_cv_sys_largefile_CC
7948   fi
7949
7950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7951 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7952 if ${ac_cv_sys_file_offset_bits+:} false; then :
7953   $as_echo_n "(cached) " >&6
7954 else
7955   while :; do
7956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h.  */
7958 #include <sys/types.h>
7959  /* Check that off_t can represent 2**63 - 1 correctly.
7960     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7961     since some C++ compilers masquerading as C compilers
7962     incorrectly reject 9223372036854775807.  */
7963 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7964   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7965                        && LARGE_OFF_T % 2147483647 == 1)
7966                       ? 1 : -1];
7967 int
7968 main ()
7969 {
7970
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 if ac_fn_c_try_compile "$LINENO"; then :
7976   ac_cv_sys_file_offset_bits=no; break
7977 fi
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h.  */
7981 #define _FILE_OFFSET_BITS 64
7982 #include <sys/types.h>
7983  /* Check that off_t can represent 2**63 - 1 correctly.
7984     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7985     since some C++ compilers masquerading as C compilers
7986     incorrectly reject 9223372036854775807.  */
7987 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7988   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7989                        && LARGE_OFF_T % 2147483647 == 1)
7990                       ? 1 : -1];
7991 int
7992 main ()
7993 {
7994
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_compile "$LINENO"; then :
8000   ac_cv_sys_file_offset_bits=64; break
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8003   ac_cv_sys_file_offset_bits=unknown
8004   break
8005 done
8006 fi
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8008 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8009 case $ac_cv_sys_file_offset_bits in #(
8010   no | unknown) ;;
8011   *)
8012 cat >>confdefs.h <<_ACEOF
8013 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8014 _ACEOF
8015 ;;
8016 esac
8017 rm -rf conftest*
8018   if test $ac_cv_sys_file_offset_bits = unknown; then
8019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8020 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8021 if ${ac_cv_sys_large_files+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   while :; do
8025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h.  */
8027 #include <sys/types.h>
8028  /* Check that off_t can represent 2**63 - 1 correctly.
8029     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8030     since some C++ compilers masquerading as C compilers
8031     incorrectly reject 9223372036854775807.  */
8032 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8033   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8034                        && LARGE_OFF_T % 2147483647 == 1)
8035                       ? 1 : -1];
8036 int
8037 main ()
8038 {
8039
8040   ;
8041   return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045   ac_cv_sys_large_files=no; break
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h.  */
8050 #define _LARGE_FILES 1
8051 #include <sys/types.h>
8052  /* Check that off_t can represent 2**63 - 1 correctly.
8053     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8054     since some C++ compilers masquerading as C compilers
8055     incorrectly reject 9223372036854775807.  */
8056 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
8057   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8058                        && LARGE_OFF_T % 2147483647 == 1)
8059                       ? 1 : -1];
8060 int
8061 main ()
8062 {
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 if ac_fn_c_try_compile "$LINENO"; then :
8069   ac_cv_sys_large_files=1; break
8070 fi
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072   ac_cv_sys_large_files=unknown
8073   break
8074 done
8075 fi
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8077 $as_echo "$ac_cv_sys_large_files" >&6; }
8078 case $ac_cv_sys_large_files in #(
8079   no | unknown) ;;
8080   *)
8081 cat >>confdefs.h <<_ACEOF
8082 #define _LARGE_FILES $ac_cv_sys_large_files
8083 _ACEOF
8084 ;;
8085 esac
8086 rm -rf conftest*
8087   fi
8088
8089
8090 fi
8091
8092
8093 # Checks for libraries.
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
8095 $as_echo_n "checking for library containing getpwnam... " >&6; }
8096 if ${ac_cv_search_getpwnam+:} false; then :
8097   $as_echo_n "(cached) " >&6
8098 else
8099   ac_func_search_save_LIBS=$LIBS
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102
8103 /* Override any GCC internal prototype to avoid an error.
8104    Use char because int might match the return type of a GCC
8105    builtin and then its argument prototype would still apply.  */
8106 #ifdef __cplusplus
8107 extern "C"
8108 #endif
8109 char getpwnam ();
8110 int
8111 main ()
8112 {
8113 return getpwnam ();
8114   ;
8115   return 0;
8116 }
8117 _ACEOF
8118 for ac_lib in '' sun; do
8119   if test -z "$ac_lib"; then
8120     ac_res="none required"
8121   else
8122     ac_res=-l$ac_lib
8123     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8124   fi
8125   if ac_fn_c_try_link "$LINENO"; then :
8126   ac_cv_search_getpwnam=$ac_res
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext \
8129     conftest$ac_exeext
8130   if ${ac_cv_search_getpwnam+:} false; then :
8131   break
8132 fi
8133 done
8134 if ${ac_cv_search_getpwnam+:} false; then :
8135
8136 else
8137   ac_cv_search_getpwnam=no
8138 fi
8139 rm conftest.$ac_ext
8140 LIBS=$ac_func_search_save_LIBS
8141 fi
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
8143 $as_echo "$ac_cv_search_getpwnam" >&6; }
8144 ac_res=$ac_cv_search_getpwnam
8145 if test "$ac_res" != no; then :
8146   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8147
8148 fi
8149
8150
8151 # Checks for header files.
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8153 $as_echo_n "checking for ANSI C header files... " >&6; }
8154 if ${ac_cv_header_stdc+:} false; then :
8155   $as_echo_n "(cached) " >&6
8156 else
8157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8158 /* end confdefs.h.  */
8159 #include <stdlib.h>
8160 #include <stdarg.h>
8161 #include <string.h>
8162 #include <float.h>
8163
8164 int
8165 main ()
8166 {
8167
8168   ;
8169   return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173   ac_cv_header_stdc=yes
8174 else
8175   ac_cv_header_stdc=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178
8179 if test $ac_cv_header_stdc = yes; then
8180   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h.  */
8183 #include <string.h>
8184
8185 _ACEOF
8186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8187   $EGREP "memchr" >/dev/null 2>&1; then :
8188
8189 else
8190   ac_cv_header_stdc=no
8191 fi
8192 rm -f conftest*
8193
8194 fi
8195
8196 if test $ac_cv_header_stdc = yes; then
8197   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h.  */
8200 #include <stdlib.h>
8201
8202 _ACEOF
8203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8204   $EGREP "free" >/dev/null 2>&1; then :
8205
8206 else
8207   ac_cv_header_stdc=no
8208 fi
8209 rm -f conftest*
8210
8211 fi
8212
8213 if test $ac_cv_header_stdc = yes; then
8214   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8215   if test "$cross_compiling" = yes; then :
8216   :
8217 else
8218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h.  */
8220 #include <ctype.h>
8221 #include <stdlib.h>
8222 #if ((' ' & 0x0FF) == 0x020)
8223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8225 #else
8226 # define ISLOWER(c) \
8227                    (('a' <= (c) && (c) <= 'i') \
8228                      || ('j' <= (c) && (c) <= 'r') \
8229                      || ('s' <= (c) && (c) <= 'z'))
8230 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8231 #endif
8232
8233 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8234 int
8235 main ()
8236 {
8237   int i;
8238   for (i = 0; i < 256; i++)
8239     if (XOR (islower (i), ISLOWER (i))
8240         || toupper (i) != TOUPPER (i))
8241       return 2;
8242   return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_run "$LINENO"; then :
8246
8247 else
8248   ac_cv_header_stdc=no
8249 fi
8250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8251   conftest.$ac_objext conftest.beam conftest.$ac_ext
8252 fi
8253
8254 fi
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8257 $as_echo "$ac_cv_header_stdc" >&6; }
8258 if test $ac_cv_header_stdc = yes; then
8259
8260 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8261
8262 fi
8263
8264 ac_header_dirent=no
8265 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8266   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8268 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8269 if eval \${$as_ac_Header+:} false; then :
8270   $as_echo_n "(cached) " >&6
8271 else
8272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h.  */
8274 #include <sys/types.h>
8275 #include <$ac_hdr>
8276
8277 int
8278 main ()
8279 {
8280 if ((DIR *) 0)
8281 return 0;
8282   ;
8283   return 0;
8284 }
8285 _ACEOF
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287   eval "$as_ac_Header=yes"
8288 else
8289   eval "$as_ac_Header=no"
8290 fi
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292 fi
8293 eval ac_res=\$$as_ac_Header
8294                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8295 $as_echo "$ac_res" >&6; }
8296 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8297   cat >>confdefs.h <<_ACEOF
8298 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8299 _ACEOF
8300
8301 ac_header_dirent=$ac_hdr; break
8302 fi
8303
8304 done
8305 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8306 if test $ac_header_dirent = dirent.h; then
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8308 $as_echo_n "checking for library containing opendir... " >&6; }
8309 if ${ac_cv_search_opendir+:} false; then :
8310   $as_echo_n "(cached) " >&6
8311 else
8312   ac_func_search_save_LIBS=$LIBS
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h.  */
8315
8316 /* Override any GCC internal prototype to avoid an error.
8317    Use char because int might match the return type of a GCC
8318    builtin and then its argument prototype would still apply.  */
8319 #ifdef __cplusplus
8320 extern "C"
8321 #endif
8322 char opendir ();
8323 int
8324 main ()
8325 {
8326 return opendir ();
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 for ac_lib in '' dir; do
8332   if test -z "$ac_lib"; then
8333     ac_res="none required"
8334   else
8335     ac_res=-l$ac_lib
8336     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8337   fi
8338   if ac_fn_c_try_link "$LINENO"; then :
8339   ac_cv_search_opendir=$ac_res
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342     conftest$ac_exeext
8343   if ${ac_cv_search_opendir+:} false; then :
8344   break
8345 fi
8346 done
8347 if ${ac_cv_search_opendir+:} false; then :
8348
8349 else
8350   ac_cv_search_opendir=no
8351 fi
8352 rm conftest.$ac_ext
8353 LIBS=$ac_func_search_save_LIBS
8354 fi
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8356 $as_echo "$ac_cv_search_opendir" >&6; }
8357 ac_res=$ac_cv_search_opendir
8358 if test "$ac_res" != no; then :
8359   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8360
8361 fi
8362
8363 else
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8365 $as_echo_n "checking for library containing opendir... " >&6; }
8366 if ${ac_cv_search_opendir+:} false; then :
8367   $as_echo_n "(cached) " >&6
8368 else
8369   ac_func_search_save_LIBS=$LIBS
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h.  */
8372
8373 /* Override any GCC internal prototype to avoid an error.
8374    Use char because int might match the return type of a GCC
8375    builtin and then its argument prototype would still apply.  */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 char opendir ();
8380 int
8381 main ()
8382 {
8383 return opendir ();
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 for ac_lib in '' x; do
8389   if test -z "$ac_lib"; then
8390     ac_res="none required"
8391   else
8392     ac_res=-l$ac_lib
8393     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8394   fi
8395   if ac_fn_c_try_link "$LINENO"; then :
8396   ac_cv_search_opendir=$ac_res
8397 fi
8398 rm -f core conftest.err conftest.$ac_objext \
8399     conftest$ac_exeext
8400   if ${ac_cv_search_opendir+:} false; then :
8401   break
8402 fi
8403 done
8404 if ${ac_cv_search_opendir+:} false; then :
8405
8406 else
8407   ac_cv_search_opendir=no
8408 fi
8409 rm conftest.$ac_ext
8410 LIBS=$ac_func_search_save_LIBS
8411 fi
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8413 $as_echo "$ac_cv_search_opendir" >&6; }
8414 ac_res=$ac_cv_search_opendir
8415 if test "$ac_res" != no; then :
8416   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8417
8418 fi
8419
8420 fi
8421
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8423 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8424 if ${ac_cv_header_stat_broken+:} false; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h.  */
8429 #include <sys/types.h>
8430 #include <sys/stat.h>
8431
8432 #if defined S_ISBLK && defined S_IFDIR
8433 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8434 #endif
8435
8436 #if defined S_ISBLK && defined S_IFCHR
8437 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8438 #endif
8439
8440 #if defined S_ISLNK && defined S_IFREG
8441 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8442 #endif
8443
8444 #if defined S_ISSOCK && defined S_IFREG
8445 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8446 #endif
8447
8448 _ACEOF
8449 if ac_fn_c_try_compile "$LINENO"; then :
8450   ac_cv_header_stat_broken=no
8451 else
8452   ac_cv_header_stat_broken=yes
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8457 $as_echo "$ac_cv_header_stat_broken" >&6; }
8458 if test $ac_cv_header_stat_broken = yes; then
8459
8460 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8461
8462 fi
8463
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8465 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8466 if ${ac_cv_header_time+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h.  */
8471 #include <sys/types.h>
8472 #include <sys/time.h>
8473 #include <time.h>
8474
8475 int
8476 main ()
8477 {
8478 if ((struct tm *) 0)
8479 return 0;
8480   ;
8481   return 0;
8482 }
8483 _ACEOF
8484 if ac_fn_c_try_compile "$LINENO"; then :
8485   ac_cv_header_time=yes
8486 else
8487   ac_cv_header_time=no
8488 fi
8489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 fi
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8492 $as_echo "$ac_cv_header_time" >&6; }
8493 if test $ac_cv_header_time = yes; then
8494
8495 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8496
8497 fi
8498
8499 for ac_header in stdlib.h locale.h unistd.h limits.h fcntl.h string.h \
8500                   memory.h sys/param.h sys/resource.h sys/time.h sys/timeb.h
8501 do :
8502   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8504 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8505   cat >>confdefs.h <<_ACEOF
8506 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8507 _ACEOF
8508
8509 fi
8510
8511 done
8512
8513
8514
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8516 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8517 if ${ac_cv_c_const+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521 /* end confdefs.h.  */
8522
8523 int
8524 main ()
8525 {
8526
8527 #ifndef __cplusplus
8528   /* Ultrix mips cc rejects this sort of thing.  */
8529   typedef int charset[2];
8530   const charset cs = { 0, 0 };
8531   /* SunOS 4.1.1 cc rejects this.  */
8532   char const *const *pcpcc;
8533   char **ppc;
8534   /* NEC SVR4.0.2 mips cc rejects this.  */
8535   struct point {int x, y;};
8536   static struct point const zero = {0,0};
8537   /* AIX XL C 1.02.0.0 rejects this.
8538      It does not let you subtract one const X* pointer from another in
8539      an arm of an if-expression whose if-part is not a constant
8540      expression */
8541   const char *g = "string";
8542   pcpcc = &g + (g ? g-g : 0);
8543   /* HPUX 7.0 cc rejects these. */
8544   ++pcpcc;
8545   ppc = (char**) pcpcc;
8546   pcpcc = (char const *const *) ppc;
8547   { /* SCO 3.2v4 cc rejects this sort of thing.  */
8548     char tx;
8549     char *t = &tx;
8550     char const *s = 0 ? (char *) 0 : (char const *) 0;
8551
8552     *t++ = 0;
8553     if (s) return 0;
8554   }
8555   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8556     int x[] = {25, 17};
8557     const int *foo = &x[0];
8558     ++foo;
8559   }
8560   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8561     typedef const int *iptr;
8562     iptr p = 0;
8563     ++p;
8564   }
8565   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
8566        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8567     struct s { int j; const int *ap[3]; } bx;
8568     struct s *b = &bx; b->j = 5;
8569   }
8570   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8571     const int foo = 10;
8572     if (!foo) return 0;
8573   }
8574   return !cs[0] && !zero.x;
8575 #endif
8576
8577   ;
8578   return 0;
8579 }
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582   ac_cv_c_const=yes
8583 else
8584   ac_cv_c_const=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8589 $as_echo "$ac_cv_c_const" >&6; }
8590 if test $ac_cv_c_const = no; then
8591
8592 $as_echo "#define const /**/" >>confdefs.h
8593
8594 fi
8595
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8597 $as_echo_n "checking return type of signal handlers... " >&6; }
8598 if ${ac_cv_type_signal+:} false; then :
8599   $as_echo_n "(cached) " >&6
8600 else
8601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8602 /* end confdefs.h.  */
8603 #include <sys/types.h>
8604 #include <signal.h>
8605
8606 int
8607 main ()
8608 {
8609 return *(signal (0, 0)) (0) == 1;
8610   ;
8611   return 0;
8612 }
8613 _ACEOF
8614 if ac_fn_c_try_compile "$LINENO"; then :
8615   ac_cv_type_signal=int
8616 else
8617   ac_cv_type_signal=void
8618 fi
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8622 $as_echo "$ac_cv_type_signal" >&6; }
8623
8624 cat >>confdefs.h <<_ACEOF
8625 #define RETSIGTYPE $ac_cv_type_signal
8626 _ACEOF
8627
8628
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8630 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8631 if ${ac_cv_type_uid_t+:} false; then :
8632   $as_echo_n "(cached) " >&6
8633 else
8634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h.  */
8636 #include <sys/types.h>
8637
8638 _ACEOF
8639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8640   $EGREP "uid_t" >/dev/null 2>&1; then :
8641   ac_cv_type_uid_t=yes
8642 else
8643   ac_cv_type_uid_t=no
8644 fi
8645 rm -f conftest*
8646
8647 fi
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8649 $as_echo "$ac_cv_type_uid_t" >&6; }
8650 if test $ac_cv_type_uid_t = no; then
8651
8652 $as_echo "#define uid_t int" >>confdefs.h
8653
8654
8655 $as_echo "#define gid_t int" >>confdefs.h
8656
8657 fi
8658
8659 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8660 if test "x$ac_cv_type_pid_t" = xyes; then :
8661
8662 else
8663
8664 cat >>confdefs.h <<_ACEOF
8665 #define pid_t int
8666 _ACEOF
8667
8668 fi
8669
8670
8671 # Find some definition for uintmax_t
8672
8673 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
8674 if test "x$ac_cv_type_uintmax_t" = xyes; then :
8675
8676 else
8677    uintmax_t="unsigned long"
8678   ac_fn_c_check_type "$LINENO" "unsigned long long" "ac_cv_type_unsigned_long_long" "$ac_includes_default"
8679 if test "x$ac_cv_type_unsigned_long_long" = xyes; then :
8680   uintmax_t="unsigned long long"
8681 fi
8682
8683
8684 cat >>confdefs.h <<_ACEOF
8685 #define uintmax_t $uintmax_t
8686 _ACEOF
8687
8688
8689 fi
8690
8691
8692 # Find out whether our struct stat returns nanosecond resolution timestamps.
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
8695 $as_echo_n "checking for nanoseconds field of struct stat... " >&6; }
8696 if ${ac_cv_struct_st_mtim_nsec+:} false; then :
8697   $as_echo_n "(cached) " >&6
8698 else
8699   ac_save_CPPFLAGS="$CPPFLAGS"
8700     ac_cv_struct_st_mtim_nsec=no
8701     # st_mtim.tv_nsec -- the usual case
8702     # st_mtim._tv_nsec -- Solaris 2.6, if
8703     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
8704     #    && !defined __EXTENSIONS__)
8705     # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
8706     # st_mtime_n -- AIX 5.2 and above
8707     # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
8708     for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
8709       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
8710       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711 /* end confdefs.h.  */
8712 #include <sys/types.h>
8713 #include <sys/stat.h>
8714
8715 int
8716 main ()
8717 {
8718 struct stat s; s.ST_MTIM_NSEC;
8719   ;
8720   return 0;
8721 }
8722 _ACEOF
8723 if ac_fn_c_try_compile "$LINENO"; then :
8724   ac_cv_struct_st_mtim_nsec=$ac_val; break
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727     done
8728     CPPFLAGS="$ac_save_CPPFLAGS"
8729
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
8732 $as_echo "$ac_cv_struct_st_mtim_nsec" >&6; }
8733
8734   if test $ac_cv_struct_st_mtim_nsec != no; then
8735
8736 cat >>confdefs.h <<_ACEOF
8737 #define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec
8738 _ACEOF
8739
8740   fi
8741
8742
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
8744 $as_echo_n "checking whether to use high resolution file timestamps... " >&6; }
8745 if ${make_cv_file_timestamp_hi_res+:} false; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748    make_cv_file_timestamp_hi_res=no
8749   if test "$ac_cv_struct_st_mtim_nsec" != no; then :
8750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8751 /* end confdefs.h.  */
8752
8753 #if HAVE_INTTYPES_H
8754 # include <inttypes.h>
8755 #endif
8756 int
8757 main ()
8758 {
8759 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
8760   ;
8761   return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_compile "$LINENO"; then :
8765   make_cv_file_timestamp_hi_res=yes
8766 fi
8767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768
8769 fi
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
8772 $as_echo "$make_cv_file_timestamp_hi_res" >&6; }
8773 if test "$make_cv_file_timestamp_hi_res" = yes; then :
8774   val=1
8775 else
8776   val=0
8777 fi
8778
8779 cat >>confdefs.h <<_ACEOF
8780 #define FILE_TIMESTAMP_HI_RES $val
8781 _ACEOF
8782
8783
8784 if test "$make_cv_file_timestamp_hi_res" = yes; then :
8785    # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
8786   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
8787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
8788 $as_echo_n "checking for library containing clock_gettime... " >&6; }
8789 if ${ac_cv_search_clock_gettime+:} false; then :
8790   $as_echo_n "(cached) " >&6
8791 else
8792   ac_func_search_save_LIBS=$LIBS
8793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h.  */
8795
8796 /* Override any GCC internal prototype to avoid an error.
8797    Use char because int might match the return type of a GCC
8798    builtin and then its argument prototype would still apply.  */
8799 #ifdef __cplusplus
8800 extern "C"
8801 #endif
8802 char clock_gettime ();
8803 int
8804 main ()
8805 {
8806 return clock_gettime ();
8807   ;
8808   return 0;
8809 }
8810 _ACEOF
8811 for ac_lib in '' rt posix4; do
8812   if test -z "$ac_lib"; then
8813     ac_res="none required"
8814   else
8815     ac_res=-l$ac_lib
8816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8817   fi
8818   if ac_fn_c_try_link "$LINENO"; then :
8819   ac_cv_search_clock_gettime=$ac_res
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822     conftest$ac_exeext
8823   if ${ac_cv_search_clock_gettime+:} false; then :
8824   break
8825 fi
8826 done
8827 if ${ac_cv_search_clock_gettime+:} false; then :
8828
8829 else
8830   ac_cv_search_clock_gettime=no
8831 fi
8832 rm conftest.$ac_ext
8833 LIBS=$ac_func_search_save_LIBS
8834 fi
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
8836 $as_echo "$ac_cv_search_clock_gettime" >&6; }
8837 ac_res=$ac_cv_search_clock_gettime
8838 if test "$ac_res" != no; then :
8839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8840
8841 fi
8842
8843   if test "$ac_cv_search_clock_gettime" != no; then :
8844
8845 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
8846
8847
8848 fi
8849
8850 fi
8851
8852 # Check for DOS-style pathnames.
8853
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
8855 $as_echo_n "checking whether system uses MSDOS-style paths... " >&6; }
8856 if ${ac_cv_dos_paths+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859
8860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861 /* end confdefs.h.  */
8862
8863 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
8864 neither MSDOS nor Windows nor OS2
8865 #endif
8866
8867 int
8868 main ()
8869 {
8870
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876   ac_cv_dos_paths=yes
8877 else
8878   ac_cv_dos_paths=no
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
8883 $as_echo "$ac_cv_dos_paths" >&6; }
8884
8885   if test x"$ac_cv_dos_paths" = xyes; then :
8886
8887 cat >>confdefs.h <<_ACEOF
8888 #define HAVE_DOS_PATHS 1
8889 _ACEOF
8890
8891 fi
8892
8893
8894 # See if we have a standard version of gettimeofday().  Since actual
8895 # implementations can differ, just make sure we have the most common
8896 # one.
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
8898 $as_echo_n "checking for standard gettimeofday... " >&6; }
8899 if ${ac_cv_func_gettimeofday+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   ac_cv_func_gettimeofday=no
8903    if test "$cross_compiling" = yes; then :
8904   ac_cv_func_gettimeofday="no (cross-compiling)"
8905 else
8906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h.  */
8908 #include <sys/time.h>
8909                   int main ()
8910                   {
8911                     struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
8912                     exit (gettimeofday (&t, 0) != 0
8913                           || t.tv_sec < 0 || t.tv_usec < 0);
8914                   }
8915 _ACEOF
8916 if ac_fn_c_try_run "$LINENO"; then :
8917   ac_cv_func_gettimeofday=yes
8918 else
8919   ac_cv_func_gettimeofday=no
8920 fi
8921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8922   conftest.$ac_objext conftest.beam conftest.$ac_ext
8923 fi
8924
8925 fi
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
8927 $as_echo "$ac_cv_func_gettimeofday" >&6; }
8928 if test "$ac_cv_func_gettimeofday" = yes; then :
8929
8930 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
8931
8932
8933 fi
8934
8935 for ac_func in strdup strndup mkstemp mktemp fdopen fileno \
8936                 dup dup2 getcwd realpath sigsetmask sigaction \
8937                 getgroups seteuid setegid setlinebuf setreuid setregid \
8938                 getrlimit setrlimit setvbuf pipe strerror strsignal \
8939                 lstat readlink atexit isatty ttyname
8940 do :
8941   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8942 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8943 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8944   cat >>confdefs.h <<_ACEOF
8945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8946 _ACEOF
8947
8948 fi
8949 done
8950
8951
8952 # We need to check declarations, not just existence, because on Tru64 this
8953 # function is not declared without special flags, which themselves cause
8954 # other problems.  We'll just use our own.
8955 ac_fn_c_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
8956 #include <signal.h>
8957 "
8958 if test "x$ac_cv_have_decl_bsd_signal" = xyes; then :
8959   ac_have_decl=1
8960 else
8961   ac_have_decl=0
8962 fi
8963
8964 cat >>confdefs.h <<_ACEOF
8965 #define HAVE_DECL_BSD_SIGNAL $ac_have_decl
8966 _ACEOF
8967
8968
8969 if ${ac_cv_func_setvbuf_reversed+:} false; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   ac_cv_func_setvbuf_reversed=no
8973 fi
8974
8975
8976
8977 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
8978 # It doesn't hurt much to use our own if we can't find it so I don't
8979 # make the effort here.
8980 for ac_func in strcasecmp strncasecmp strcmpi strncmpi stricmp strnicmp
8981 do :
8982   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8983 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8984 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8985   cat >>confdefs.h <<_ACEOF
8986 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8987 _ACEOF
8988
8989 fi
8990 done
8991
8992
8993 # strcoll() is used by the GNU glob library
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8995 $as_echo_n "checking for working strcoll... " >&6; }
8996 if ${ac_cv_func_strcoll_works+:} false; then :
8997   $as_echo_n "(cached) " >&6
8998 else
8999   if test "$cross_compiling" = yes; then :
9000   ac_cv_func_strcoll_works=no
9001 else
9002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003 /* end confdefs.h.  */
9004 $ac_includes_default
9005 int
9006 main ()
9007 {
9008 return (strcoll ("abc", "def") >= 0 ||
9009          strcoll ("ABC", "DEF") >= 0 ||
9010          strcoll ("123", "456") >= 0)
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_run "$LINENO"; then :
9016   ac_cv_func_strcoll_works=yes
9017 else
9018   ac_cv_func_strcoll_works=no
9019 fi
9020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9021   conftest.$ac_objext conftest.beam conftest.$ac_ext
9022 fi
9023
9024 fi
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9026 $as_echo "$ac_cv_func_strcoll_works" >&6; }
9027 if test $ac_cv_func_strcoll_works = yes; then
9028
9029 $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9030
9031 fi
9032
9033
9034 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9035 if test "x$ac_cv_type_size_t" = xyes; then :
9036
9037 else
9038
9039 cat >>confdefs.h <<_ACEOF
9040 #define size_t unsigned int
9041 _ACEOF
9042
9043 fi
9044
9045 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9046 # for constant arguments.  Useless!
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9048 $as_echo_n "checking for working alloca.h... " >&6; }
9049 if ${ac_cv_working_alloca_h+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h.  */
9054 #include <alloca.h>
9055 int
9056 main ()
9057 {
9058 char *p = (char *) alloca (2 * sizeof (int));
9059                           if (p) return 0;
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_link "$LINENO"; then :
9065   ac_cv_working_alloca_h=yes
9066 else
9067   ac_cv_working_alloca_h=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext \
9070     conftest$ac_exeext conftest.$ac_ext
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9073 $as_echo "$ac_cv_working_alloca_h" >&6; }
9074 if test $ac_cv_working_alloca_h = yes; then
9075
9076 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9077
9078 fi
9079
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9081 $as_echo_n "checking for alloca... " >&6; }
9082 if ${ac_cv_func_alloca_works+:} false; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h.  */
9087 #ifdef __GNUC__
9088 # define alloca __builtin_alloca
9089 #else
9090 # ifdef _MSC_VER
9091 #  include <malloc.h>
9092 #  define alloca _alloca
9093 # else
9094 #  ifdef HAVE_ALLOCA_H
9095 #   include <alloca.h>
9096 #  else
9097 #   ifdef _AIX
9098  #pragma alloca
9099 #   else
9100 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9101 void *alloca (size_t);
9102 #    endif
9103 #   endif
9104 #  endif
9105 # endif
9106 #endif
9107
9108 int
9109 main ()
9110 {
9111 char *p = (char *) alloca (1);
9112                                     if (p) return 0;
9113   ;
9114   return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_link "$LINENO"; then :
9118   ac_cv_func_alloca_works=yes
9119 else
9120   ac_cv_func_alloca_works=no
9121 fi
9122 rm -f core conftest.err conftest.$ac_objext \
9123     conftest$ac_exeext conftest.$ac_ext
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9126 $as_echo "$ac_cv_func_alloca_works" >&6; }
9127
9128 if test $ac_cv_func_alloca_works = yes; then
9129
9130 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9131
9132 else
9133   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9134 # that cause trouble.  Some versions do not even contain alloca or
9135 # contain a buggy version.  If you still want to use their alloca,
9136 # use ar to extract alloca.o from them instead of compiling alloca.c.
9137
9138 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9139
9140 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9141
9142
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9144 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9145 if ${ac_cv_os_cray+:} false; then :
9146   $as_echo_n "(cached) " >&6
9147 else
9148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h.  */
9150 #if defined CRAY && ! defined CRAY2
9151 webecray
9152 #else
9153 wenotbecray
9154 #endif
9155
9156 _ACEOF
9157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9158   $EGREP "webecray" >/dev/null 2>&1; then :
9159   ac_cv_os_cray=yes
9160 else
9161   ac_cv_os_cray=no
9162 fi
9163 rm -f conftest*
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9167 $as_echo "$ac_cv_os_cray" >&6; }
9168 if test $ac_cv_os_cray = yes; then
9169   for ac_func in _getb67 GETB67 getb67; do
9170     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9172 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9173
9174 cat >>confdefs.h <<_ACEOF
9175 #define CRAY_STACKSEG_END $ac_func
9176 _ACEOF
9177
9178     break
9179 fi
9180
9181   done
9182 fi
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9185 $as_echo_n "checking stack direction for C alloca... " >&6; }
9186 if ${ac_cv_c_stack_direction+:} false; then :
9187   $as_echo_n "(cached) " >&6
9188 else
9189   if test "$cross_compiling" = yes; then :
9190   ac_cv_c_stack_direction=0
9191 else
9192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193 /* end confdefs.h.  */
9194 $ac_includes_default
9195 int
9196 find_stack_direction (int *addr, int depth)
9197 {
9198   int dir, dummy = 0;
9199   if (! addr)
9200     addr = &dummy;
9201   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
9202   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
9203   return dir + dummy;
9204 }
9205
9206 int
9207 main (int argc, char **argv)
9208 {
9209   return find_stack_direction (0, argc + !argv + 20) < 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_run "$LINENO"; then :
9213   ac_cv_c_stack_direction=1
9214 else
9215   ac_cv_c_stack_direction=-1
9216 fi
9217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9218   conftest.$ac_objext conftest.beam conftest.$ac_ext
9219 fi
9220
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9223 $as_echo "$ac_cv_c_stack_direction" >&6; }
9224 cat >>confdefs.h <<_ACEOF
9225 #define STACK_DIRECTION $ac_cv_c_stack_direction
9226 _ACEOF
9227
9228
9229 fi
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
9232 $as_echo_n "checking whether closedir returns void... " >&6; }
9233 if ${ac_cv_func_closedir_void+:} false; then :
9234   $as_echo_n "(cached) " >&6
9235 else
9236   if test "$cross_compiling" = yes; then :
9237   ac_cv_func_closedir_void=yes
9238 else
9239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h.  */
9241 $ac_includes_default
9242 #include <$ac_header_dirent>
9243 #ifndef __cplusplus
9244 int closedir ();
9245 #endif
9246
9247 int
9248 main ()
9249 {
9250 return closedir (opendir (".")) != 0;
9251   ;
9252   return 0;
9253 }
9254 _ACEOF
9255 if ac_fn_c_try_run "$LINENO"; then :
9256   ac_cv_func_closedir_void=no
9257 else
9258   ac_cv_func_closedir_void=yes
9259 fi
9260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9261   conftest.$ac_objext conftest.beam conftest.$ac_ext
9262 fi
9263
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
9266 $as_echo "$ac_cv_func_closedir_void" >&6; }
9267 if test $ac_cv_func_closedir_void = yes; then
9268
9269 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
9270
9271 fi
9272
9273
9274 # See if the user wants to add (or not) GNU Guile support
9275
9276
9277
9278
9279
9280
9281
9282 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9283         if test -n "$ac_tool_prefix"; then
9284   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9285 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287 $as_echo_n "checking for $ac_word... " >&6; }
9288 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9289   $as_echo_n "(cached) " >&6
9290 else
9291   case $PKG_CONFIG in
9292   [\\/]* | ?:[\\/]*)
9293   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9294   ;;
9295   *)
9296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297 for as_dir in $PATH
9298 do
9299   IFS=$as_save_IFS
9300   test -z "$as_dir" && as_dir=.
9301     for ac_exec_ext in '' $ac_executable_extensions; do
9302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9303     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9305     break 2
9306   fi
9307 done
9308   done
9309 IFS=$as_save_IFS
9310
9311   ;;
9312 esac
9313 fi
9314 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9315 if test -n "$PKG_CONFIG"; then
9316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9317 $as_echo "$PKG_CONFIG" >&6; }
9318 else
9319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320 $as_echo "no" >&6; }
9321 fi
9322
9323
9324 fi
9325 if test -z "$ac_cv_path_PKG_CONFIG"; then
9326   ac_pt_PKG_CONFIG=$PKG_CONFIG
9327   # Extract the first word of "pkg-config", so it can be a program name with args.
9328 set dummy pkg-config; ac_word=$2
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9330 $as_echo_n "checking for $ac_word... " >&6; }
9331 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9332   $as_echo_n "(cached) " >&6
9333 else
9334   case $ac_pt_PKG_CONFIG in
9335   [\\/]* | ?:[\\/]*)
9336   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9337   ;;
9338   *)
9339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9341 do
9342   IFS=$as_save_IFS
9343   test -z "$as_dir" && as_dir=.
9344     for ac_exec_ext in '' $ac_executable_extensions; do
9345   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9346     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9347     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9348     break 2
9349   fi
9350 done
9351   done
9352 IFS=$as_save_IFS
9353
9354   ;;
9355 esac
9356 fi
9357 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9358 if test -n "$ac_pt_PKG_CONFIG"; then
9359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9360 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9361 else
9362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363 $as_echo "no" >&6; }
9364 fi
9365
9366   if test "x$ac_pt_PKG_CONFIG" = x; then
9367     PKG_CONFIG=""
9368   else
9369     case $cross_compiling:$ac_tool_warned in
9370 yes:)
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9373 ac_tool_warned=yes ;;
9374 esac
9375     PKG_CONFIG=$ac_pt_PKG_CONFIG
9376   fi
9377 else
9378   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9379 fi
9380
9381 fi
9382 if test -n "$PKG_CONFIG"; then
9383         _pkg_min_version=0.9.0
9384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9385 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9386         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9387                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9388 $as_echo "yes" >&6; }
9389         else
9390                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9391 $as_echo "no" >&6; }
9392                 PKG_CONFIG=""
9393         fi
9394 fi
9395
9396 # Check whether --with-guile was given.
9397 if test "${with_guile+set}" = set; then :
9398   withval=$with_guile;
9399 fi
9400
9401
9402 # For some strange reason, at least on Ubuntu, each version of Guile
9403 # comes with it's own PC file so we have to specify them as individual
9404 # packages.  Ugh.
9405 if test "x$with_guile" != xno; then :
9406
9407 pkg_failed=no
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9409 $as_echo_n "checking for GUILE... " >&6; }
9410
9411 if test -n "$GUILE_CFLAGS"; then
9412     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9413  elif test -n "$PKG_CONFIG"; then
9414     if test -n "$PKG_CONFIG" && \
9415     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9416   ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9417   ac_status=$?
9418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9419   test $ac_status = 0; }; then
9420   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-2.0" 2>/dev/null`
9421                       test "x$?" != "x0" && pkg_failed=yes
9422 else
9423   pkg_failed=yes
9424 fi
9425  else
9426     pkg_failed=untried
9427 fi
9428 if test -n "$GUILE_LIBS"; then
9429     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9430  elif test -n "$PKG_CONFIG"; then
9431     if test -n "$PKG_CONFIG" && \
9432     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-2.0\""; } >&5
9433   ($PKG_CONFIG --exists --print-errors "guile-2.0") 2>&5
9434   ac_status=$?
9435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9436   test $ac_status = 0; }; then
9437   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-2.0" 2>/dev/null`
9438                       test "x$?" != "x0" && pkg_failed=yes
9439 else
9440   pkg_failed=yes
9441 fi
9442  else
9443     pkg_failed=untried
9444 fi
9445
9446
9447
9448 if test $pkg_failed = yes; then
9449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9451
9452 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9453         _pkg_short_errors_supported=yes
9454 else
9455         _pkg_short_errors_supported=no
9456 fi
9457         if test $_pkg_short_errors_supported = yes; then
9458                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-2.0" 2>&1`
9459         else
9460                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-2.0" 2>&1`
9461         fi
9462         # Put the nasty error message in config.log where it belongs
9463         echo "$GUILE_PKG_ERRORS" >&5
9464
9465
9466 pkg_failed=no
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9468 $as_echo_n "checking for GUILE... " >&6; }
9469
9470 if test -n "$GUILE_CFLAGS"; then
9471     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9472  elif test -n "$PKG_CONFIG"; then
9473     if test -n "$PKG_CONFIG" && \
9474     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9475   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9476   ac_status=$?
9477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478   test $ac_status = 0; }; then
9479   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9480                       test "x$?" != "x0" && pkg_failed=yes
9481 else
9482   pkg_failed=yes
9483 fi
9484  else
9485     pkg_failed=untried
9486 fi
9487 if test -n "$GUILE_LIBS"; then
9488     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9489  elif test -n "$PKG_CONFIG"; then
9490     if test -n "$PKG_CONFIG" && \
9491     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9492   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9493   ac_status=$?
9494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9495   test $ac_status = 0; }; then
9496   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9497                       test "x$?" != "x0" && pkg_failed=yes
9498 else
9499   pkg_failed=yes
9500 fi
9501  else
9502     pkg_failed=untried
9503 fi
9504
9505
9506
9507 if test $pkg_failed = yes; then
9508         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510
9511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9512         _pkg_short_errors_supported=yes
9513 else
9514         _pkg_short_errors_supported=no
9515 fi
9516         if test $_pkg_short_errors_supported = yes; then
9517                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9518         else
9519                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9520         fi
9521         # Put the nasty error message in config.log where it belongs
9522         echo "$GUILE_PKG_ERRORS" >&5
9523
9524         have_guile=no
9525 elif test $pkg_failed = untried; then
9526         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9527 $as_echo "no" >&6; }
9528         have_guile=no
9529 else
9530         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9531         GUILE_LIBS=$pkg_cv_GUILE_LIBS
9532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9533 $as_echo "yes" >&6; }
9534         have_guile=yes
9535 fi
9536 elif test $pkg_failed = untried; then
9537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539
9540 pkg_failed=no
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
9542 $as_echo_n "checking for GUILE... " >&6; }
9543
9544 if test -n "$GUILE_CFLAGS"; then
9545     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
9546  elif test -n "$PKG_CONFIG"; then
9547     if test -n "$PKG_CONFIG" && \
9548     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9549   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9550   ac_status=$?
9551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552   test $ac_status = 0; }; then
9553   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-1.8" 2>/dev/null`
9554                       test "x$?" != "x0" && pkg_failed=yes
9555 else
9556   pkg_failed=yes
9557 fi
9558  else
9559     pkg_failed=untried
9560 fi
9561 if test -n "$GUILE_LIBS"; then
9562     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
9563  elif test -n "$PKG_CONFIG"; then
9564     if test -n "$PKG_CONFIG" && \
9565     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-1.8\""; } >&5
9566   ($PKG_CONFIG --exists --print-errors "guile-1.8") 2>&5
9567   ac_status=$?
9568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9569   test $ac_status = 0; }; then
9570   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-1.8" 2>/dev/null`
9571                       test "x$?" != "x0" && pkg_failed=yes
9572 else
9573   pkg_failed=yes
9574 fi
9575  else
9576     pkg_failed=untried
9577 fi
9578
9579
9580
9581 if test $pkg_failed = yes; then
9582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9584
9585 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9586         _pkg_short_errors_supported=yes
9587 else
9588         _pkg_short_errors_supported=no
9589 fi
9590         if test $_pkg_short_errors_supported = yes; then
9591                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-1.8" 2>&1`
9592         else
9593                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-1.8" 2>&1`
9594         fi
9595         # Put the nasty error message in config.log where it belongs
9596         echo "$GUILE_PKG_ERRORS" >&5
9597
9598         have_guile=no
9599 elif test $pkg_failed = untried; then
9600         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601 $as_echo "no" >&6; }
9602         have_guile=no
9603 else
9604         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9605         GUILE_LIBS=$pkg_cv_GUILE_LIBS
9606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9607 $as_echo "yes" >&6; }
9608         have_guile=yes
9609 fi
9610 else
9611         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
9612         GUILE_LIBS=$pkg_cv_GUILE_LIBS
9613         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9614 $as_echo "yes" >&6; }
9615         have_guile=yes
9616 fi
9617
9618 fi
9619
9620 if test "$have_guile" = yes; then :
9621
9622 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9623
9624 fi
9625
9626  if test "$have_guile" = yes; then
9627   HAVE_GUILE_TRUE=
9628   HAVE_GUILE_FALSE='#'
9629 else
9630   HAVE_GUILE_TRUE='#'
9631   HAVE_GUILE_FALSE=
9632 fi
9633
9634
9635 ac_have_func=no # yes means we've found a way to get the load average.
9636
9637 # Make sure getloadavg.c is where it belongs, at configure-time.
9638 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
9639   as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
9640
9641 ac_save_LIBS=$LIBS
9642
9643 # Check for getloadavg, but be sure not to touch the cache variable.
9644 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
9645 if test "x$ac_cv_func_getloadavg" = xyes; then :
9646   exit 0
9647 else
9648   exit 1
9649 fi
9650 ) && ac_have_func=yes
9651
9652 # On HPUX9, an unprivileged user can get load averages through this function.
9653 for ac_func in pstat_getdynamic
9654 do :
9655   ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
9656 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
9657   cat >>confdefs.h <<_ACEOF
9658 #define HAVE_PSTAT_GETDYNAMIC 1
9659 _ACEOF
9660
9661 fi
9662 done
9663
9664
9665 # Solaris has libkstat which does not require root.
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
9667 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
9668 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
9669   $as_echo_n "(cached) " >&6
9670 else
9671   ac_check_lib_save_LIBS=$LIBS
9672 LIBS="-lkstat  $LIBS"
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675
9676 /* Override any GCC internal prototype to avoid an error.
9677    Use char because int might match the return type of a GCC
9678    builtin and then its argument prototype would still apply.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 char kstat_open ();
9683 int
9684 main ()
9685 {
9686 return kstat_open ();
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 if ac_fn_c_try_link "$LINENO"; then :
9692   ac_cv_lib_kstat_kstat_open=yes
9693 else
9694   ac_cv_lib_kstat_kstat_open=no
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext \
9697     conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_check_lib_save_LIBS
9699 fi
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
9701 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
9702 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
9703   cat >>confdefs.h <<_ACEOF
9704 #define HAVE_LIBKSTAT 1
9705 _ACEOF
9706
9707   LIBS="-lkstat $LIBS"
9708
9709 fi
9710
9711 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
9712
9713 # Some systems with -lutil have (and need) -lkvm as well, some do not.
9714 # On Solaris, -lkvm requires nlist from -lelf, so check that first
9715 # to get the right answer into the cache.
9716 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
9717 if test $ac_have_func = no; then
9718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
9719 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
9720 if ${ac_cv_lib_elf_elf_begin+:} false; then :
9721   $as_echo_n "(cached) " >&6
9722 else
9723   ac_check_lib_save_LIBS=$LIBS
9724 LIBS="-lelf  $LIBS"
9725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h.  */
9727
9728 /* Override any GCC internal prototype to avoid an error.
9729    Use char because int might match the return type of a GCC
9730    builtin and then its argument prototype would still apply.  */
9731 #ifdef __cplusplus
9732 extern "C"
9733 #endif
9734 char elf_begin ();
9735 int
9736 main ()
9737 {
9738 return elf_begin ();
9739   ;
9740   return 0;
9741 }
9742 _ACEOF
9743 if ac_fn_c_try_link "$LINENO"; then :
9744   ac_cv_lib_elf_elf_begin=yes
9745 else
9746   ac_cv_lib_elf_elf_begin=no
9747 fi
9748 rm -f core conftest.err conftest.$ac_objext \
9749     conftest$ac_exeext conftest.$ac_ext
9750 LIBS=$ac_check_lib_save_LIBS
9751 fi
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
9753 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
9754 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
9755   LIBS="-lelf $LIBS"
9756 fi
9757
9758 fi
9759 if test $ac_have_func = no; then
9760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
9761 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
9762 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
9763   $as_echo_n "(cached) " >&6
9764 else
9765   ac_check_lib_save_LIBS=$LIBS
9766 LIBS="-lkvm  $LIBS"
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769
9770 /* Override any GCC internal prototype to avoid an error.
9771    Use char because int might match the return type of a GCC
9772    builtin and then its argument prototype would still apply.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 char kvm_open ();
9777 int
9778 main ()
9779 {
9780 return kvm_open ();
9781   ;
9782   return 0;
9783 }
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786   ac_cv_lib_kvm_kvm_open=yes
9787 else
9788   ac_cv_lib_kvm_kvm_open=no
9789 fi
9790 rm -f core conftest.err conftest.$ac_objext \
9791     conftest$ac_exeext conftest.$ac_ext
9792 LIBS=$ac_check_lib_save_LIBS
9793 fi
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
9795 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
9796 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
9797   LIBS="-lkvm $LIBS"
9798 fi
9799
9800   # Check for the 4.4BSD definition of getloadavg.
9801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
9802 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
9803 if ${ac_cv_lib_util_getloadavg+:} false; then :
9804   $as_echo_n "(cached) " >&6
9805 else
9806   ac_check_lib_save_LIBS=$LIBS
9807 LIBS="-lutil  $LIBS"
9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9809 /* end confdefs.h.  */
9810
9811 /* Override any GCC internal prototype to avoid an error.
9812    Use char because int might match the return type of a GCC
9813    builtin and then its argument prototype would still apply.  */
9814 #ifdef __cplusplus
9815 extern "C"
9816 #endif
9817 char getloadavg ();
9818 int
9819 main ()
9820 {
9821 return getloadavg ();
9822   ;
9823   return 0;
9824 }
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827   ac_cv_lib_util_getloadavg=yes
9828 else
9829   ac_cv_lib_util_getloadavg=no
9830 fi
9831 rm -f core conftest.err conftest.$ac_objext \
9832     conftest$ac_exeext conftest.$ac_ext
9833 LIBS=$ac_check_lib_save_LIBS
9834 fi
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
9836 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
9837 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
9838   LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
9839 fi
9840
9841 fi
9842
9843 if test $ac_have_func = no; then
9844   # There is a commonly available library for RS/6000 AIX.
9845   # Since it is not a standard part of AIX, it might be installed locally.
9846   ac_getloadavg_LIBS=$LIBS
9847   LIBS="-L/usr/local/lib $LIBS"
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
9849 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
9850 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
9851   $as_echo_n "(cached) " >&6
9852 else
9853   ac_check_lib_save_LIBS=$LIBS
9854 LIBS="-lgetloadavg  $LIBS"
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h.  */
9857
9858 /* Override any GCC internal prototype to avoid an error.
9859    Use char because int might match the return type of a GCC
9860    builtin and then its argument prototype would still apply.  */
9861 #ifdef __cplusplus
9862 extern "C"
9863 #endif
9864 char getloadavg ();
9865 int
9866 main ()
9867 {
9868 return getloadavg ();
9869   ;
9870   return 0;
9871 }
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874   ac_cv_lib_getloadavg_getloadavg=yes
9875 else
9876   ac_cv_lib_getloadavg_getloadavg=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext \
9879     conftest$ac_exeext conftest.$ac_ext
9880 LIBS=$ac_check_lib_save_LIBS
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
9883 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
9884 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
9885   LIBS="-lgetloadavg $LIBS"
9886 else
9887   LIBS=$ac_getloadavg_LIBS
9888 fi
9889
9890 fi
9891
9892 # Make sure it is really in the library, if we think we found it,
9893 # otherwise set up the replacement function.
9894 for ac_func in getloadavg
9895 do :
9896   ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
9897 if test "x$ac_cv_func_getloadavg" = xyes; then :
9898   cat >>confdefs.h <<_ACEOF
9899 #define HAVE_GETLOADAVG 1
9900 _ACEOF
9901
9902 else
9903   case " $LIBOBJS " in
9904   *" getloadavg.$ac_objext "* ) ;;
9905   *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
9906  ;;
9907 esac
9908
9909
9910 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
9911
9912 # Figure out what our getloadavg.c needs.
9913 ac_have_func=no
9914 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
9915 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
9916   ac_have_func=yes
9917
9918 $as_echo "#define DGUX 1" >>confdefs.h
9919
9920  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
9921 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
9922 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
9923   $as_echo_n "(cached) " >&6
9924 else
9925   ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-ldgc  $LIBS"
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h.  */
9929
9930 /* Override any GCC internal prototype to avoid an error.
9931    Use char because int might match the return type of a GCC
9932    builtin and then its argument prototype would still apply.  */
9933 #ifdef __cplusplus
9934 extern "C"
9935 #endif
9936 char dg_sys_info ();
9937 int
9938 main ()
9939 {
9940 return dg_sys_info ();
9941   ;
9942   return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_c_try_link "$LINENO"; then :
9946   ac_cv_lib_dgc_dg_sys_info=yes
9947 else
9948   ac_cv_lib_dgc_dg_sys_info=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext \
9951     conftest$ac_exeext conftest.$ac_ext
9952 LIBS=$ac_check_lib_save_LIBS
9953 fi
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
9955 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
9956 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
9957   cat >>confdefs.h <<_ACEOF
9958 #define HAVE_LIBDGC 1
9959 _ACEOF
9960
9961   LIBS="-ldgc $LIBS"
9962
9963 fi
9964
9965 fi
9966
9967
9968
9969 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
9970 if test "x$ac_cv_header_locale_h" = xyes; then :
9971
9972 fi
9973
9974
9975 for ac_func in setlocale
9976 do :
9977   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
9978 if test "x$ac_cv_func_setlocale" = xyes; then :
9979   cat >>confdefs.h <<_ACEOF
9980 #define HAVE_SETLOCALE 1
9981 _ACEOF
9982
9983 fi
9984 done
9985
9986
9987 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9988 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
9989 # Irix 4.0.5F has the header but not the library.
9990 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
9991     && test "$ac_cv_lib_kvm_kvm_open" = yes; then
9992   ac_have_func=yes
9993
9994 $as_echo "#define SVR4 1" >>confdefs.h
9995
9996 fi
9997
9998 if test $ac_have_func = no; then
9999   ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
10000 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
10001   ac_have_func=yes
10002
10003 $as_echo "#define UMAX 1" >>confdefs.h
10004
10005
10006 $as_echo "#define UMAX4_3 1" >>confdefs.h
10007
10008 fi
10009
10010
10011 fi
10012
10013 if test $ac_have_func = no; then
10014   ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
10015 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
10016   ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
10017
10018 fi
10019
10020
10021 fi
10022
10023 if test $ac_have_func = no; then
10024   for ac_header in mach/mach.h
10025 do :
10026   ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
10027 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
10028   cat >>confdefs.h <<_ACEOF
10029 #define HAVE_MACH_MACH_H 1
10030 _ACEOF
10031
10032 fi
10033
10034 done
10035
10036 fi
10037
10038 for ac_header in nlist.h
10039 do :
10040   ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
10041 if test "x$ac_cv_header_nlist_h" = xyes; then :
10042   cat >>confdefs.h <<_ACEOF
10043 #define HAVE_NLIST_H 1
10044 _ACEOF
10045  ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
10046 "
10047 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
10048
10049 cat >>confdefs.h <<_ACEOF
10050 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
10051 _ACEOF
10052
10053
10054 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
10055
10056 fi
10057
10058
10059 fi
10060
10061 done
10062
10063 fi
10064 done
10065
10066
10067 # Some definitions of getloadavg require that the program be installed setgid.
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
10069 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
10070 if ${ac_cv_func_getloadavg_setgid+:} false; then :
10071   $as_echo_n "(cached) " >&6
10072 else
10073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10074 /* end confdefs.h.  */
10075 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
10076 #ifdef LDAV_PRIVILEGED
10077 Yowza Am I SETGID yet
10078 #endif
10079 _ACEOF
10080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10081   $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
10082   ac_cv_func_getloadavg_setgid=yes
10083 else
10084   ac_cv_func_getloadavg_setgid=no
10085 fi
10086 rm -f conftest*
10087
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
10090 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
10091 if test $ac_cv_func_getloadavg_setgid = yes; then
10092   NEED_SETGID=true
10093
10094 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
10095
10096 else
10097   NEED_SETGID=false
10098 fi
10099
10100 if test $ac_cv_func_getloadavg_setgid = yes; then
10101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
10102 $as_echo_n "checking group of /dev/kmem... " >&6; }
10103 if ${ac_cv_group_kmem+:} false; then :
10104   $as_echo_n "(cached) " >&6
10105 else
10106    # On Solaris, /dev/kmem is a symlink.  Get info on the real file.
10107   ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
10108   # If we got an error (system does not support symlinks), try without -L.
10109   test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
10110   ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
10111     | sed -ne 's/[       ][      ]*/ /g;
10112                s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\)  *.*/\1/;
10113                / /s/.* //;p;'`
10114
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
10117 $as_echo "$ac_cv_group_kmem" >&6; }
10118   KMEM_GROUP=$ac_cv_group_kmem
10119 fi
10120 if test "x$ac_save_LIBS" = x; then
10121   GETLOADAVG_LIBS=$LIBS
10122 else
10123   GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
10124 fi
10125 LIBS=$ac_save_LIBS
10126
10127
10128
10129 # AC_FUNC_GETLOADAVG is documented to set the NLIST_STRUCT value, but it
10130 # doesn't.  So, we will.
10131
10132 if test "$ac_cv_header_nlist_h" = yes; then :
10133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h.  */
10135 #include <nlist.h>
10136 int
10137 main ()
10138 {
10139 struct nlist nl;
10140           nl.n_name = "string";
10141           return 0;
10142   ;
10143   return 0;
10144 }
10145 _ACEOF
10146 if ac_fn_c_try_compile "$LINENO"; then :
10147   make_cv_nlist_struct=yes
10148 else
10149   make_cv_nlist_struct=no
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10152   if test "$make_cv_nlist_struct" = yes; then :
10153
10154 $as_echo "#define NLIST_STRUCT 1" >>confdefs.h
10155
10156
10157 fi
10158
10159 fi
10160
10161 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
10162 #include <signal.h>
10163 /* NetBSD declares sys_siglist in unistd.h.  */
10164 #if HAVE_UNISTD_H
10165 # include <unistd.h>
10166 #endif
10167
10168 "
10169 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
10170   ac_have_decl=1
10171 else
10172   ac_have_decl=0
10173 fi
10174
10175 cat >>confdefs.h <<_ACEOF
10176 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
10177 _ACEOF
10178 ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
10179 #include <signal.h>
10180 /* NetBSD declares sys_siglist in unistd.h.  */
10181 #if HAVE_UNISTD_H
10182 # include <unistd.h>
10183 #endif
10184
10185 "
10186 if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
10187   ac_have_decl=1
10188 else
10189   ac_have_decl=0
10190 fi
10191
10192 cat >>confdefs.h <<_ACEOF
10193 #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
10194 _ACEOF
10195 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
10196 #include <signal.h>
10197 /* NetBSD declares sys_siglist in unistd.h.  */
10198 #if HAVE_UNISTD_H
10199 # include <unistd.h>
10200 #endif
10201
10202 "
10203 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
10204   ac_have_decl=1
10205 else
10206   ac_have_decl=0
10207 fi
10208
10209 cat >>confdefs.h <<_ACEOF
10210 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
10211 _ACEOF
10212
10213
10214
10215 # Check out the wait reality.
10216 for ac_header in sys/wait.h
10217 do :
10218   ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
10219 "
10220 if test "x$ac_cv_header_sys_wait_h" = xyes; then :
10221   cat >>confdefs.h <<_ACEOF
10222 #define HAVE_SYS_WAIT_H 1
10223 _ACEOF
10224
10225 fi
10226
10227 done
10228
10229 for ac_func in waitpid wait3
10230 do :
10231   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10234   cat >>confdefs.h <<_ACEOF
10235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10236 _ACEOF
10237
10238 fi
10239 done
10240
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
10242 $as_echo_n "checking for union wait... " >&6; }
10243 if ${make_cv_union_wait+:} false; then :
10244   $as_echo_n "(cached) " >&6
10245 else
10246    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h.  */
10248 #include <sys/types.h>
10249 #include <sys/wait.h>
10250 int
10251 main ()
10252 {
10253 union wait status; int pid; pid = wait (&status);
10254 #ifdef WEXITSTATUS
10255 /* Some POSIXoid systems have both the new-style macros and the old
10256    union wait type, and they do not work together.  If union wait
10257    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
10258         if (WEXITSTATUS (status) != 0) pid = -1;
10259 #ifdef WTERMSIG
10260         /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
10261         -- blow chunks here --
10262 #endif
10263 #endif
10264 #ifdef HAVE_WAITPID
10265         /* Make sure union wait works with waitpid.  */
10266         pid = waitpid (-1, &status, 0);
10267 #endif
10268
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 if ac_fn_c_try_link "$LINENO"; then :
10274   make_cv_union_wait=yes
10275 else
10276   make_cv_union_wait=no
10277 fi
10278 rm -f core conftest.err conftest.$ac_objext \
10279     conftest$ac_exeext conftest.$ac_ext
10280
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
10283 $as_echo "$make_cv_union_wait" >&6; }
10284 if test "$make_cv_union_wait" = yes; then :
10285
10286 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h
10287
10288
10289 fi
10290
10291
10292 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
10293 if test "$PATH_SEPARATOR" = ';'; then :
10294
10295 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
10296
10297
10298 fi
10299
10300 # See if the user wants to use pmake's "customs" distributed build capability
10301  REMOTE=stub
10302 use_customs=false
10303
10304 # Check whether --with-customs was given.
10305 if test "${with_customs+set}" = set; then :
10306   withval=$with_customs;  case $withval in #(
10307   n|no) :
10308     : ;; #(
10309   *) :
10310     make_cppflags="$CPPFLAGS"
10311      case $withval in #(
10312   y|ye|yes) :
10313     : ;; #(
10314   *) :
10315     CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
10316               make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
10317 esac
10318
10319 cf_test_netlibs=no
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
10321 $as_echo_n "checking for network libraries... " >&6; }
10322 if ${cf_cv_netlibs+:} false; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: working..." >&5
10327 $as_echo "working..." >&6; }
10328 cf_cv_netlibs=""
10329 cf_test_netlibs=yes
10330 for ac_func in gethostname
10331 do :
10332   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
10333 if test "x$ac_cv_func_gethostname" = xyes; then :
10334   cat >>confdefs.h <<_ACEOF
10335 #define HAVE_GETHOSTNAME 1
10336 _ACEOF
10337
10338 else
10339
10340
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
10342 $as_echo_n "checking for gethostname in -lnsl... " >&6; }
10343 if ${ac_cv_lib_nsl_gethostname+:} false; then :
10344   $as_echo_n "(cached) " >&6
10345 else
10346   ac_check_lib_save_LIBS=$LIBS
10347 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h.  */
10350
10351 /* Override any GCC internal prototype to avoid an error.
10352    Use char because int might match the return type of a GCC
10353    builtin and then its argument prototype would still apply.  */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 char gethostname ();
10358 int
10359 main ()
10360 {
10361 return gethostname ();
10362   ;
10363   return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_link "$LINENO"; then :
10367   ac_cv_lib_nsl_gethostname=yes
10368 else
10369   ac_cv_lib_nsl_gethostname=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext \
10372     conftest$ac_exeext conftest.$ac_ext
10373 LIBS=$ac_check_lib_save_LIBS
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
10376 $as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
10377 if test "x$ac_cv_lib_nsl_gethostname" = xyes; then :
10378
10379
10380 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10381
10382
10383 cat >>confdefs.h <<_ACEOF
10384 #define HAVE_$cf_tr_func 1
10385 _ACEOF
10386
10387         ac_cv_func_gethostname=yes
10388         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10389 else
10390
10391         ac_cv_func_gethostname=unknown
10392         unset ac_cv_func_gethostname 2>/dev/null
10393
10394
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
10396 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
10397 if ${ac_cv_lib_socket_gethostname+:} false; then :
10398   $as_echo_n "(cached) " >&6
10399 else
10400   ac_check_lib_save_LIBS=$LIBS
10401 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h.  */
10404
10405 /* Override any GCC internal prototype to avoid an error.
10406    Use char because int might match the return type of a GCC
10407    builtin and then its argument prototype would still apply.  */
10408 #ifdef __cplusplus
10409 extern "C"
10410 #endif
10411 char gethostname ();
10412 int
10413 main ()
10414 {
10415 return gethostname ();
10416   ;
10417   return 0;
10418 }
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421   ac_cv_lib_socket_gethostname=yes
10422 else
10423   ac_cv_lib_socket_gethostname=no
10424 fi
10425 rm -f core conftest.err conftest.$ac_objext \
10426     conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
10430 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
10431 if test "x$ac_cv_lib_socket_gethostname" = xyes; then :
10432
10433
10434 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
10435
10436
10437 cat >>confdefs.h <<_ACEOF
10438 #define HAVE_$cf_tr_func 1
10439 _ACEOF
10440
10441         ac_cv_func_gethostname=yes
10442         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10443 else
10444
10445         ac_cv_func_gethostname=unknown
10446         unset ac_cv_func_gethostname 2>/dev/null
10447
10448 fi
10449
10450
10451 fi
10452
10453
10454 fi
10455 done
10456
10457 #
10458 # FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
10459 # I don't know the entrypoints - 97/7/22 TD
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
10461 $as_echo_n "checking for main in -linet... " >&6; }
10462 if ${ac_cv_lib_inet_main+:} false; then :
10463   $as_echo_n "(cached) " >&6
10464 else
10465   ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-linet  $LIBS"
10467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10468 /* end confdefs.h.  */
10469
10470
10471 int
10472 main ()
10473 {
10474 return main ();
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"; then :
10480   ac_cv_lib_inet_main=yes
10481 else
10482   ac_cv_lib_inet_main=no
10483 fi
10484 rm -f core conftest.err conftest.$ac_objext \
10485     conftest$ac_exeext conftest.$ac_ext
10486 LIBS=$ac_check_lib_save_LIBS
10487 fi
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
10489 $as_echo "$ac_cv_lib_inet_main" >&6; }
10490 if test "x$ac_cv_lib_inet_main" = xyes; then :
10491   cf_cv_netlibs="-linet $cf_cv_netlibs"
10492 fi
10493
10494 #
10495 if test "$ac_cv_func_lsocket" != no ; then
10496 for ac_func in socket
10497 do :
10498   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
10499 if test "x$ac_cv_func_socket" = xyes; then :
10500   cat >>confdefs.h <<_ACEOF
10501 #define HAVE_SOCKET 1
10502 _ACEOF
10503
10504 else
10505
10506
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
10508 $as_echo_n "checking for socket in -lsocket... " >&6; }
10509 if ${ac_cv_lib_socket_socket+:} false; then :
10510   $as_echo_n "(cached) " >&6
10511 else
10512   ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lsocket $cf_cv_netlibs $LIBS"
10514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10515 /* end confdefs.h.  */
10516
10517 /* Override any GCC internal prototype to avoid an error.
10518    Use char because int might match the return type of a GCC
10519    builtin and then its argument prototype would still apply.  */
10520 #ifdef __cplusplus
10521 extern "C"
10522 #endif
10523 char socket ();
10524 int
10525 main ()
10526 {
10527 return socket ();
10528   ;
10529   return 0;
10530 }
10531 _ACEOF
10532 if ac_fn_c_try_link "$LINENO"; then :
10533   ac_cv_lib_socket_socket=yes
10534 else
10535   ac_cv_lib_socket_socket=no
10536 fi
10537 rm -f core conftest.err conftest.$ac_objext \
10538     conftest$ac_exeext conftest.$ac_ext
10539 LIBS=$ac_check_lib_save_LIBS
10540 fi
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
10542 $as_echo "$ac_cv_lib_socket_socket" >&6; }
10543 if test "x$ac_cv_lib_socket_socket" = xyes; then :
10544
10545
10546 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10547
10548
10549 cat >>confdefs.h <<_ACEOF
10550 #define HAVE_$cf_tr_func 1
10551 _ACEOF
10552
10553         ac_cv_func_socket=yes
10554         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
10555 else
10556
10557         ac_cv_func_socket=unknown
10558         unset ac_cv_func_socket 2>/dev/null
10559
10560
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
10562 $as_echo_n "checking for socket in -lbsd... " >&6; }
10563 if ${ac_cv_lib_bsd_socket+:} false; then :
10564   $as_echo_n "(cached) " >&6
10565 else
10566   ac_check_lib_save_LIBS=$LIBS
10567 LIBS="-lbsd $cf_cv_netlibs $LIBS"
10568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569 /* end confdefs.h.  */
10570
10571 /* Override any GCC internal prototype to avoid an error.
10572    Use char because int might match the return type of a GCC
10573    builtin and then its argument prototype would still apply.  */
10574 #ifdef __cplusplus
10575 extern "C"
10576 #endif
10577 char socket ();
10578 int
10579 main ()
10580 {
10581 return socket ();
10582   ;
10583   return 0;
10584 }
10585 _ACEOF
10586 if ac_fn_c_try_link "$LINENO"; then :
10587   ac_cv_lib_bsd_socket=yes
10588 else
10589   ac_cv_lib_bsd_socket=no
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext \
10592     conftest$ac_exeext conftest.$ac_ext
10593 LIBS=$ac_check_lib_save_LIBS
10594 fi
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
10596 $as_echo "$ac_cv_lib_bsd_socket" >&6; }
10597 if test "x$ac_cv_lib_bsd_socket" = xyes; then :
10598
10599
10600 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
10601
10602
10603 cat >>confdefs.h <<_ACEOF
10604 #define HAVE_$cf_tr_func 1
10605 _ACEOF
10606
10607         ac_cv_func_socket=yes
10608         cf_cv_netlibs="-lbsd $cf_cv_netlibs"
10609 else
10610
10611         ac_cv_func_socket=unknown
10612         unset ac_cv_func_socket 2>/dev/null
10613
10614 fi
10615
10616
10617 fi
10618
10619
10620 fi
10621 done
10622
10623 fi
10624 #
10625 for ac_func in gethostbyname
10626 do :
10627   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
10628 if test "x$ac_cv_func_gethostbyname" = xyes; then :
10629   cat >>confdefs.h <<_ACEOF
10630 #define HAVE_GETHOSTBYNAME 1
10631 _ACEOF
10632
10633 else
10634
10635
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
10637 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
10638 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
10639   $as_echo_n "(cached) " >&6
10640 else
10641   ac_check_lib_save_LIBS=$LIBS
10642 LIBS="-lnsl $cf_cv_netlibs $LIBS"
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h.  */
10645
10646 /* Override any GCC internal prototype to avoid an error.
10647    Use char because int might match the return type of a GCC
10648    builtin and then its argument prototype would still apply.  */
10649 #ifdef __cplusplus
10650 extern "C"
10651 #endif
10652 char gethostbyname ();
10653 int
10654 main ()
10655 {
10656 return gethostbyname ();
10657   ;
10658   return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662   ac_cv_lib_nsl_gethostbyname=yes
10663 else
10664   ac_cv_lib_nsl_gethostbyname=no
10665 fi
10666 rm -f core conftest.err conftest.$ac_objext \
10667     conftest$ac_exeext conftest.$ac_ext
10668 LIBS=$ac_check_lib_save_LIBS
10669 fi
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
10671 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
10672 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
10673
10674
10675 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
10676
10677
10678 cat >>confdefs.h <<_ACEOF
10679 #define HAVE_$cf_tr_func 1
10680 _ACEOF
10681
10682         ac_cv_func_gethostbyname=yes
10683         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
10684 else
10685
10686         ac_cv_func_gethostbyname=unknown
10687         unset ac_cv_func_gethostbyname 2>/dev/null
10688
10689 fi
10690
10691
10692 fi
10693 done
10694
10695
10696 fi
10697
10698 LIBS="$LIBS $cf_cv_netlibs"
10699 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
10700
10701      ac_fn_c_check_header_mongrel "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
10702 if test "x$ac_cv_header_customs_h" = xyes; then :
10703   use_customs=true
10704                       REMOTE=cstms
10705                       LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
10706 else
10707   with_customs=no
10708                       CPPFLAGS="$make_cppflags" make_badcust=yes
10709 fi
10710
10711
10712      ;;
10713 esac
10714
10715 fi
10716
10717
10718 # Tell automake about this, so it can include the right .c files.
10719  if test "$use_customs" = true; then
10720   USE_CUSTOMS_TRUE=
10721   USE_CUSTOMS_FALSE='#'
10722 else
10723   USE_CUSTOMS_TRUE='#'
10724   USE_CUSTOMS_FALSE=
10725 fi
10726
10727
10728 # See if the user asked to handle case insensitive file systems.
10729
10730 # Check whether --enable-case-insensitive-file-system was given.
10731 if test "${enable_case_insensitive_file_system+set}" = set; then :
10732   enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes; then :
10733   $as_echo "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
10734
10735 fi
10736 fi
10737
10738
10739 # See if we can handle the job server feature, and if the user wants it.
10740 # Check whether --enable-job-server was given.
10741 if test "${enable_job_server+set}" = set; then :
10742   enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
10743 else
10744   make_cv_job_server="yes"
10745 fi
10746
10747
10748 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no; then :
10749   has_wait_nohang=no
10750 else
10751   has_wait_nohang=yes
10752 fi
10753
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
10755 $as_echo_n "checking for SA_RESTART... " >&6; }
10756 if ${make_cv_sa_restart+:} false; then :
10757   $as_echo_n "(cached) " >&6
10758 else
10759
10760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h.  */
10762 #include <signal.h>
10763 int
10764 main ()
10765 {
10766 return SA_RESTART;
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 if ac_fn_c_try_compile "$LINENO"; then :
10772   make_cv_sa_restart=yes
10773 else
10774   make_cv_sa_restart=no
10775 fi
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10777 fi
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
10779 $as_echo "$make_cv_sa_restart" >&6; }
10780
10781 if test "$make_cv_sa_restart" != no; then :
10782
10783 $as_echo "#define HAVE_SA_RESTART 1" >>confdefs.h
10784
10785
10786 fi
10787
10788 # Only allow jobserver on systems that support it
10789 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
10790   */no/*) :
10791     make_cv_job_server=no ;; #(
10792   *) :
10793      ;;
10794 esac
10795
10796 # Also supported on OS2 and MinGW
10797 case $host_os in #(
10798   os2*|mingw*) :
10799     make_cv_job_server=yes ;; #(
10800   *) :
10801      ;;
10802 esac
10803
10804 # If we support it and the user didn't disable it, build with jobserver
10805 case /$make_cv_job_server/$user_job_server/ in #(
10806   */no/*) :
10807     : no jobserver ;; #(
10808   *) :
10809
10810 $as_echo "#define MAKE_JOBSERVER 1" >>confdefs.h
10811
10812    ;;
10813 esac
10814
10815 # If dl*() functions are supported we can enable the load operation
10816 ac_fn_c_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
10817 "
10818 if test "x$ac_cv_have_decl_dlopen" = xyes; then :
10819   ac_have_decl=1
10820 else
10821   ac_have_decl=0
10822 fi
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define HAVE_DECL_DLOPEN $ac_have_decl
10826 _ACEOF
10827 ac_fn_c_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
10828 "
10829 if test "x$ac_cv_have_decl_dlsym" = xyes; then :
10830   ac_have_decl=1
10831 else
10832   ac_have_decl=0
10833 fi
10834
10835 cat >>confdefs.h <<_ACEOF
10836 #define HAVE_DECL_DLSYM $ac_have_decl
10837 _ACEOF
10838 ac_fn_c_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
10839 "
10840 if test "x$ac_cv_have_decl_dlerror" = xyes; then :
10841   ac_have_decl=1
10842 else
10843   ac_have_decl=0
10844 fi
10845
10846 cat >>confdefs.h <<_ACEOF
10847 #define HAVE_DECL_DLERROR $ac_have_decl
10848 _ACEOF
10849
10850
10851 # Check whether --enable-load was given.
10852 if test "${enable_load+set}" = set; then :
10853   enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
10854 else
10855   make_cv_load="yes"
10856 fi
10857
10858
10859 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
10860   */no/*) :
10861     make_cv_load=no ;; #(
10862   *) :
10863      ;;
10864 esac
10865
10866 # We might need -ldl
10867 if test "$make_cv_load" = yes; then :
10868
10869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10870 $as_echo_n "checking for library containing dlopen... " >&6; }
10871 if ${ac_cv_search_dlopen+:} false; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   ac_func_search_save_LIBS=$LIBS
10875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h.  */
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879    Use char because int might match the return type of a GCC
10880    builtin and then its argument prototype would still apply.  */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char dlopen ();
10885 int
10886 main ()
10887 {
10888 return dlopen ();
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 for ac_lib in '' dl; do
10894   if test -z "$ac_lib"; then
10895     ac_res="none required"
10896   else
10897     ac_res=-l$ac_lib
10898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10899   fi
10900   if ac_fn_c_try_link "$LINENO"; then :
10901   ac_cv_search_dlopen=$ac_res
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext \
10904     conftest$ac_exeext
10905   if ${ac_cv_search_dlopen+:} false; then :
10906   break
10907 fi
10908 done
10909 if ${ac_cv_search_dlopen+:} false; then :
10910
10911 else
10912   ac_cv_search_dlopen=no
10913 fi
10914 rm conftest.$ac_ext
10915 LIBS=$ac_func_search_save_LIBS
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10918 $as_echo "$ac_cv_search_dlopen" >&6; }
10919 ac_res=$ac_cv_search_dlopen
10920 if test "$ac_res" != no; then :
10921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10922
10923 else
10924   make_cv_load=
10925 fi
10926
10927
10928 fi
10929
10930 case /$make_cv_load/$user_load/ in #(
10931   */no/*) :
10932     make_cv_load=no ;; #(
10933   *) :
10934
10935 $as_echo "#define MAKE_LOAD 1" >>confdefs.h
10936
10937    ;;
10938 esac
10939
10940 # If we want load support, we might need to link with export-dynamic.
10941 # See if we can figure it out.  Unfortunately this is very difficult.
10942 # For example passing -rdynamic to the SunPRO linker gives a warning
10943 # but succeeds and creates a shared object, not an executable!
10944 if test "$make_cv_load" = yes; then :
10945
10946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
10947 $as_echo_n "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
10948   old_LDFLAGS="$LDFLAGS"
10949   LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
10950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h.  */
10952 int main(){}
10953 _ACEOF
10954 if ac_fn_c_try_link "$LINENO"; then :
10955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10956 $as_echo "yes" >&6; }
10957      AM_LDFLAGS=-Wl,--export-dynamic
10958
10959 else
10960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10962      { $as_echo "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
10963 $as_echo_n "checking If the linker accepts -rdynamic... " >&6; }
10964      LDFLAGS="$old_LDFLAGS -rdynamic"
10965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h.  */
10967 int main(){}
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"; then :
10970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10971 $as_echo "yes" >&6; }
10972         AM_LDFLAGS=-rdynamic
10973
10974 else
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 fi
10978 rm -f core conftest.err conftest.$ac_objext \
10979     conftest$ac_exeext conftest.$ac_ext
10980
10981 fi
10982 rm -f core conftest.err conftest.$ac_objext \
10983     conftest$ac_exeext conftest.$ac_ext
10984   LDFLAGS="$old_LDFLAGS"
10985
10986 fi
10987
10988 # if we have both lstat() and readlink() then we can support symlink
10989 # timechecks.
10990 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes; then :
10991
10992 $as_echo "#define MAKE_SYMLINKS 1" >>confdefs.h
10993
10994
10995 fi
10996
10997 # Find the SCCS commands, so we can include them in our default rules.
10998
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
11000 $as_echo_n "checking for location of SCCS get command... " >&6; }
11001 if ${make_cv_path_sccs_get+:} false; then :
11002   $as_echo_n "(cached) " >&6
11003 else
11004
11005   if test -f /usr/sccs/get; then :
11006   make_cv_path_sccs_get=/usr/sccs/get
11007 else
11008   make_cv_path_sccs_get=get
11009 fi
11010
11011 fi
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
11013 $as_echo "$make_cv_path_sccs_get" >&6; }
11014
11015 cat >>confdefs.h <<_ACEOF
11016 #define SCCS_GET "$make_cv_path_sccs_get"
11017 _ACEOF
11018
11019
11020 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
11021 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
11022    test -f s.conftest; then :
11023    # We successfully created an SCCS file.
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
11025 $as_echo_n "checking if SCCS get command understands -G... " >&6; }
11026 if ${make_cv_sys_get_minus_G+:} false; then :
11027   $as_echo_n "(cached) " >&6
11028 else
11029   if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
11030             test -f conftoast; then :
11031   make_cv_sys_get_minus_G=yes
11032 else
11033   make_cv_sys_get_minus_G=no
11034 fi
11035
11036 fi
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
11038 $as_echo "$make_cv_sys_get_minus_G" >&6; }
11039   if test "$make_cv_sys_get_minus_G" = yes; then :
11040
11041 $as_echo "#define SCCS_GET_MINUS_G 1" >>confdefs.h
11042
11043
11044 fi
11045
11046 fi
11047 rm -f s.conftest conftoast
11048
11049 # Check the system to see if it provides GNU glob.  If not, use our
11050 # local version.
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
11052 $as_echo_n "checking if system libc has GNU glob... " >&6; }
11053 if ${make_cv_sys_gnu_glob+:} false; then :
11054   $as_echo_n "(cached) " >&6
11055 else
11056    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h.  */
11058
11059 #include <features.h>
11060 #include <glob.h>
11061 #include <fnmatch.h>
11062
11063 #define GLOB_INTERFACE_VERSION 1
11064 #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
11065 # include <gnu-versions.h>
11066 # if _GNU_GLOB_INTERFACE_VERSION == GLOB_INTERFACE_VERSION
11067    gnu glob
11068 # endif
11069 #endif
11070 _ACEOF
11071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11072   $EGREP "gnu glob" >/dev/null 2>&1; then :
11073   make_cv_sys_gnu_glob=yes
11074 else
11075   make_cv_sys_gnu_glob=no
11076 fi
11077 rm -f conftest*
11078
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
11081 $as_echo "$make_cv_sys_gnu_glob" >&6; }
11082 if test "$make_cv_sys_gnu_glob" = no; then :
11083    GLOBINC='-I$(srcdir)/glob'
11084   GLOBLIB=glob/libglob.a
11085
11086 fi
11087
11088
11089
11090 # Tell automake about this, so it can build the right .c files.
11091  if test "$make_cv_sys_gnu_glob" = no; then
11092   USE_LOCAL_GLOB_TRUE=
11093   USE_LOCAL_GLOB_FALSE='#'
11094 else
11095   USE_LOCAL_GLOB_TRUE='#'
11096   USE_LOCAL_GLOB_FALSE=
11097 fi
11098
11099
11100 # Let the makefile know what our build host is
11101
11102
11103 cat >>confdefs.h <<_ACEOF
11104 #define MAKE_HOST "$host"
11105 _ACEOF
11106
11107 MAKE_HOST="$host"
11108
11109
11110 w32_target_env=no
11111  if false; then
11112   WINDOWSENV_TRUE=
11113   WINDOWSENV_FALSE='#'
11114 else
11115   WINDOWSENV_TRUE='#'
11116   WINDOWSENV_FALSE=
11117 fi
11118
11119
11120 case $host in #(
11121   *-*-mingw32) :
11122      if true; then
11123   WINDOWSENV_TRUE=
11124   WINDOWSENV_FALSE='#'
11125 else
11126   WINDOWSENV_TRUE='#'
11127   WINDOWSENV_FALSE=
11128 fi
11129
11130     w32_target_env=yes
11131
11132 $as_echo "#define WINDOWS32 1" >>confdefs.h
11133
11134
11135 $as_echo "#define HAVE_DOS_PATHS 1" >>confdefs.h
11136
11137    ;; #(
11138   *) :
11139      ;;
11140 esac
11141
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'
11145 _ACEOF
11146
11147
11148 # Include the Maintainer's Makefile section, if it's here.
11149
11150 MAINT_MAKEFILE=/dev/null
11151 if test -r "$srcdir/maintMakefile"; then :
11152    MAINT_MAKEFILE="$srcdir/maintMakefile"
11153
11154 fi
11155
11156
11157 # Allow building with dmalloc
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
11159 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
11160
11161 # Check whether --with-dmalloc was given.
11162 if test "${with_dmalloc+set}" = set; then :
11163   withval=$with_dmalloc; if test "$withval" = yes; then
11164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11165 $as_echo "yes" >&6; }
11166
11167 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
11168
11169   LIBS="$LIBS -ldmalloc"
11170   LDFLAGS="$LDFLAGS -g"
11171 else
11172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173 $as_echo "no" >&6; }
11174 fi
11175 else
11176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11177 $as_echo "no" >&6; }
11178 fi
11179
11180
11181
11182 # Forcibly disable SET_MAKE.  If it's set it breaks things like the test
11183 # scripts, etc.
11184 SET_MAKE=
11185
11186 # Sanity check and inform the user of what we found
11187
11188 if test "x$make_badcust" = xyes; then :
11189
11190 echo
11191 echo "WARNING: --with-customs specified but no customs.h could be found;"
11192 echo "         disabling Customs support."
11193 echo
11194
11195 fi
11196
11197 case $with_customs in #(
11198   ""|n|no|y|ye|yes) :
11199     : ;; #(
11200   *) :
11201     if test -f "$with_customs/lib/libcustoms.a"; then :
11202   :
11203 else
11204    echo
11205   echo "WARNING: '$with_customs/lib' does not appear to contain the"
11206   echo "         Customs library.  You must build and install Customs"
11207   echo "         before compiling GNU make."
11208   echo
11209
11210 fi ;;
11211 esac
11212
11213 if test "x$has_wait_nohang" = xno; then :
11214    echo
11215   echo "WARNING: Your system has neither waitpid() nor wait3()."
11216   echo "         Without one of these, signal handling is unreliable."
11217   echo "         You should be aware that running GNU make with -j"
11218   echo "         could result in erratic behavior."
11219   echo
11220
11221 fi
11222
11223 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes; then :
11224    echo
11225   echo "WARNING: Make job server requires a POSIX-ish system that"
11226   echo "         supports the pipe(), sigaction(), and either"
11227   echo "         waitpid() or wait3() functions.  Your system doesn't"
11228   echo "         appear to provide one or more of those."
11229   echo "         Disabling job server support."
11230   echo
11231
11232 fi
11233
11234 if test "x$make_cv_load" = xno && test "x$user_load" = xyes; then :
11235    echo
11236   echo "WARNING: 'load' support requires a POSIX-ish system that"
11237   echo "         supports the dlopen(), dlsym(), and dlerror() functions."
11238   echo "         Your system doesn't appear to provide one or more of these."
11239   echo "         Disabling 'load' support."
11240   echo
11241
11242 fi
11243
11244 # Specify what files are to be created.
11245 ac_config_files="$ac_config_files Makefile glob/Makefile po/Makefile.in config/Makefile doc/Makefile w32/Makefile tests/config-flags.pm"
11246
11247
11248 # OK, do it!
11249
11250 cat >confcache <<\_ACEOF
11251 # This file is a shell script that caches the results of configure
11252 # tests run on this system so they can be shared between configure
11253 # scripts and configure runs, see configure's option --config-cache.
11254 # It is not useful on other systems.  If it contains results you don't
11255 # want to keep, you may remove or edit it.
11256 #
11257 # config.status only pays attention to the cache file if you give it
11258 # the --recheck option to rerun configure.
11259 #
11260 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11261 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11262 # following values.
11263
11264 _ACEOF
11265
11266 # The following way of writing the cache mishandles newlines in values,
11267 # but we know of no workaround that is simple, portable, and efficient.
11268 # So, we kill variables containing newlines.
11269 # Ultrix sh set writes to stderr and can't be redirected directly,
11270 # and sets the high bit in the cache file unless we assign to the vars.
11271 (
11272   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11273     eval ac_val=\$$ac_var
11274     case $ac_val in #(
11275     *${as_nl}*)
11276       case $ac_var in #(
11277       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11278 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11279       esac
11280       case $ac_var in #(
11281       _ | IFS | as_nl) ;; #(
11282       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11283       *) { eval $ac_var=; unset $ac_var;} ;;
11284       esac ;;
11285     esac
11286   done
11287
11288   (set) 2>&1 |
11289     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11290     *${as_nl}ac_space=\ *)
11291       # `set' does not quote correctly, so add quotes: double-quote
11292       # substitution turns \\\\ into \\, and sed turns \\ into \.
11293       sed -n \
11294         "s/'/'\\\\''/g;
11295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11296       ;; #(
11297     *)
11298       # `set' quotes correctly as required by POSIX, so do not add quotes.
11299       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11300       ;;
11301     esac |
11302     sort
11303 ) |
11304   sed '
11305      /^ac_cv_env_/b end
11306      t clear
11307      :clear
11308      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11309      t end
11310      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11311      :end' >>confcache
11312 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11313   if test -w "$cache_file"; then
11314     if test "x$cache_file" != "x/dev/null"; then
11315       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11316 $as_echo "$as_me: updating cache $cache_file" >&6;}
11317       if test ! -f "$cache_file" || test -h "$cache_file"; then
11318         cat confcache >"$cache_file"
11319       else
11320         case $cache_file in #(
11321         */* | ?:*)
11322           mv -f confcache "$cache_file"$$ &&
11323           mv -f "$cache_file"$$ "$cache_file" ;; #(
11324         *)
11325           mv -f confcache "$cache_file" ;;
11326         esac
11327       fi
11328     fi
11329   else
11330     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11331 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11332   fi
11333 fi
11334 rm -f confcache
11335
11336 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11337 # Let make expand exec_prefix.
11338 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11339
11340 DEFS=-DHAVE_CONFIG_H
11341
11342 ac_libobjs=
11343 ac_ltlibobjs=
11344 U=
11345 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11346   # 1. Remove the extension, and $U if already installed.
11347   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11348   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11349   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11350   #    will be set to the directory where LIBOBJS objects are built.
11351   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11352   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11353 done
11354 LIBOBJS=$ac_libobjs
11355
11356 LTLIBOBJS=$ac_ltlibobjs
11357
11358
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11360 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11361    if test -n "$am_sleep_pid"; then
11362      # Hide warnings about reused PIDs.
11363      wait $am_sleep_pid 2>/dev/null
11364    fi
11365    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11366 $as_echo "done" >&6; }
11367  if test -n "$EXEEXT"; then
11368   am__EXEEXT_TRUE=
11369   am__EXEEXT_FALSE='#'
11370 else
11371   am__EXEEXT_TRUE='#'
11372   am__EXEEXT_FALSE=
11373 fi
11374
11375 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11376   as_fn_error $? "conditional \"AMDEP\" was never defined.
11377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11378 fi
11379 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11380   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11382 fi
11383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11384   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11386 fi
11387 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
11388   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
11389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11390 fi
11391 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
11392   as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
11393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11394 fi
11395 if test -z "${USE_LOCAL_GLOB_TRUE}" && test -z "${USE_LOCAL_GLOB_FALSE}"; then
11396   as_fn_error $? "conditional \"USE_LOCAL_GLOB\" was never defined.
11397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11398 fi
11399 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11400   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11402 fi
11403 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
11404   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
11405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11406 fi
11407
11408 : "${CONFIG_STATUS=./config.status}"
11409 ac_write_fail=0
11410 ac_clean_files_save=$ac_clean_files
11411 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11413 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11414 as_write_fail=0
11415 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11416 #! $SHELL
11417 # Generated by $as_me.
11418 # Run this file to recreate the current configuration.
11419 # Compiler output produced by configure, useful for debugging
11420 # configure, is in config.log if it exists.
11421
11422 debug=false
11423 ac_cs_recheck=false
11424 ac_cs_silent=false
11425
11426 SHELL=\${CONFIG_SHELL-$SHELL}
11427 export SHELL
11428 _ASEOF
11429 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11430 ## -------------------- ##
11431 ## M4sh Initialization. ##
11432 ## -------------------- ##
11433
11434 # Be more Bourne compatible
11435 DUALCASE=1; export DUALCASE # for MKS sh
11436 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11437   emulate sh
11438   NULLCMD=:
11439   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11440   # is contrary to our usage.  Disable this feature.
11441   alias -g '${1+"$@"}'='"$@"'
11442   setopt NO_GLOB_SUBST
11443 else
11444   case `(set -o) 2>/dev/null` in #(
11445   *posix*) :
11446     set -o posix ;; #(
11447   *) :
11448      ;;
11449 esac
11450 fi
11451
11452
11453 as_nl='
11454 '
11455 export as_nl
11456 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11457 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11458 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11459 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11460 # Prefer a ksh shell builtin over an external printf program on Solaris,
11461 # but without wasting forks for bash or zsh.
11462 if test -z "$BASH_VERSION$ZSH_VERSION" \
11463     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11464   as_echo='print -r --'
11465   as_echo_n='print -rn --'
11466 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11467   as_echo='printf %s\n'
11468   as_echo_n='printf %s'
11469 else
11470   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11471     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11472     as_echo_n='/usr/ucb/echo -n'
11473   else
11474     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11475     as_echo_n_body='eval
11476       arg=$1;
11477       case $arg in #(
11478       *"$as_nl"*)
11479         expr "X$arg" : "X\\(.*\\)$as_nl";
11480         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11481       esac;
11482       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11483     '
11484     export as_echo_n_body
11485     as_echo_n='sh -c $as_echo_n_body as_echo'
11486   fi
11487   export as_echo_body
11488   as_echo='sh -c $as_echo_body as_echo'
11489 fi
11490
11491 # The user is always right.
11492 if test "${PATH_SEPARATOR+set}" != set; then
11493   PATH_SEPARATOR=:
11494   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11495     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11496       PATH_SEPARATOR=';'
11497   }
11498 fi
11499
11500
11501 # IFS
11502 # We need space, tab and new line, in precisely that order.  Quoting is
11503 # there to prevent editors from complaining about space-tab.
11504 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11505 # splitting by setting IFS to empty value.)
11506 IFS=" ""        $as_nl"
11507
11508 # Find who we are.  Look in the path if we contain no directory separator.
11509 as_myself=
11510 case $0 in #((
11511   *[\\/]* ) as_myself=$0 ;;
11512   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513 for as_dir in $PATH
11514 do
11515   IFS=$as_save_IFS
11516   test -z "$as_dir" && as_dir=.
11517     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11518   done
11519 IFS=$as_save_IFS
11520
11521      ;;
11522 esac
11523 # We did not find ourselves, most probably we were run as `sh COMMAND'
11524 # in which case we are not to be found in the path.
11525 if test "x$as_myself" = x; then
11526   as_myself=$0
11527 fi
11528 if test ! -f "$as_myself"; then
11529   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11530   exit 1
11531 fi
11532
11533 # Unset variables that we do not need and which cause bugs (e.g. in
11534 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11535 # suppresses any "Segmentation fault" message there.  '((' could
11536 # trigger a bug in pdksh 5.2.14.
11537 for as_var in BASH_ENV ENV MAIL MAILPATH
11538 do eval test x\${$as_var+set} = xset \
11539   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11540 done
11541 PS1='$ '
11542 PS2='> '
11543 PS4='+ '
11544
11545 # NLS nuisances.
11546 LC_ALL=C
11547 export LC_ALL
11548 LANGUAGE=C
11549 export LANGUAGE
11550
11551 # CDPATH.
11552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11553
11554
11555 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11556 # ----------------------------------------
11557 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11558 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11559 # script with STATUS, using 1 if that was 0.
11560 as_fn_error ()
11561 {
11562   as_status=$1; test $as_status -eq 0 && as_status=1
11563   if test "$4"; then
11564     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11565     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11566   fi
11567   $as_echo "$as_me: error: $2" >&2
11568   as_fn_exit $as_status
11569 } # as_fn_error
11570
11571
11572 # as_fn_set_status STATUS
11573 # -----------------------
11574 # Set $? to STATUS, without forking.
11575 as_fn_set_status ()
11576 {
11577   return $1
11578 } # as_fn_set_status
11579
11580 # as_fn_exit STATUS
11581 # -----------------
11582 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11583 as_fn_exit ()
11584 {
11585   set +e
11586   as_fn_set_status $1
11587   exit $1
11588 } # as_fn_exit
11589
11590 # as_fn_unset VAR
11591 # ---------------
11592 # Portably unset VAR.
11593 as_fn_unset ()
11594 {
11595   { eval $1=; unset $1;}
11596 }
11597 as_unset=as_fn_unset
11598 # as_fn_append VAR VALUE
11599 # ----------------------
11600 # Append the text in VALUE to the end of the definition contained in VAR. Take
11601 # advantage of any shell optimizations that allow amortized linear growth over
11602 # repeated appends, instead of the typical quadratic growth present in naive
11603 # implementations.
11604 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11605   eval 'as_fn_append ()
11606   {
11607     eval $1+=\$2
11608   }'
11609 else
11610   as_fn_append ()
11611   {
11612     eval $1=\$$1\$2
11613   }
11614 fi # as_fn_append
11615
11616 # as_fn_arith ARG...
11617 # ------------------
11618 # Perform arithmetic evaluation on the ARGs, and store the result in the
11619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11620 # must be portable across $(()) and expr.
11621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11622   eval 'as_fn_arith ()
11623   {
11624     as_val=$(( $* ))
11625   }'
11626 else
11627   as_fn_arith ()
11628   {
11629     as_val=`expr "$@" || test $? -eq 1`
11630   }
11631 fi # as_fn_arith
11632
11633
11634 if expr a : '\(a\)' >/dev/null 2>&1 &&
11635    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11636   as_expr=expr
11637 else
11638   as_expr=false
11639 fi
11640
11641 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11642   as_basename=basename
11643 else
11644   as_basename=false
11645 fi
11646
11647 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11648   as_dirname=dirname
11649 else
11650   as_dirname=false
11651 fi
11652
11653 as_me=`$as_basename -- "$0" ||
11654 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11655          X"$0" : 'X\(//\)$' \| \
11656          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11657 $as_echo X/"$0" |
11658     sed '/^.*\/\([^/][^/]*\)\/*$/{
11659             s//\1/
11660             q
11661           }
11662           /^X\/\(\/\/\)$/{
11663             s//\1/
11664             q
11665           }
11666           /^X\/\(\/\).*/{
11667             s//\1/
11668             q
11669           }
11670           s/.*/./; q'`
11671
11672 # Avoid depending upon Character Ranges.
11673 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11674 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11675 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11676 as_cr_digits='0123456789'
11677 as_cr_alnum=$as_cr_Letters$as_cr_digits
11678
11679 ECHO_C= ECHO_N= ECHO_T=
11680 case `echo -n x` in #(((((
11681 -n*)
11682   case `echo 'xy\c'` in
11683   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11684   xy)  ECHO_C='\c';;
11685   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11686        ECHO_T=' ';;
11687   esac;;
11688 *)
11689   ECHO_N='-n';;
11690 esac
11691
11692 rm -f conf$$ conf$$.exe conf$$.file
11693 if test -d conf$$.dir; then
11694   rm -f conf$$.dir/conf$$.file
11695 else
11696   rm -f conf$$.dir
11697   mkdir conf$$.dir 2>/dev/null
11698 fi
11699 if (echo >conf$$.file) 2>/dev/null; then
11700   if ln -s conf$$.file conf$$ 2>/dev/null; then
11701     as_ln_s='ln -s'
11702     # ... but there are two gotchas:
11703     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11704     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11705     # In both cases, we have to default to `cp -pR'.
11706     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11707       as_ln_s='cp -pR'
11708   elif ln conf$$.file conf$$ 2>/dev/null; then
11709     as_ln_s=ln
11710   else
11711     as_ln_s='cp -pR'
11712   fi
11713 else
11714   as_ln_s='cp -pR'
11715 fi
11716 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11717 rmdir conf$$.dir 2>/dev/null
11718
11719
11720 # as_fn_mkdir_p
11721 # -------------
11722 # Create "$as_dir" as a directory, including parents if necessary.
11723 as_fn_mkdir_p ()
11724 {
11725
11726   case $as_dir in #(
11727   -*) as_dir=./$as_dir;;
11728   esac
11729   test -d "$as_dir" || eval $as_mkdir_p || {
11730     as_dirs=
11731     while :; do
11732       case $as_dir in #(
11733       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11734       *) as_qdir=$as_dir;;
11735       esac
11736       as_dirs="'$as_qdir' $as_dirs"
11737       as_dir=`$as_dirname -- "$as_dir" ||
11738 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11739          X"$as_dir" : 'X\(//\)[^/]' \| \
11740          X"$as_dir" : 'X\(//\)$' \| \
11741          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11742 $as_echo X"$as_dir" |
11743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11744             s//\1/
11745             q
11746           }
11747           /^X\(\/\/\)[^/].*/{
11748             s//\1/
11749             q
11750           }
11751           /^X\(\/\/\)$/{
11752             s//\1/
11753             q
11754           }
11755           /^X\(\/\).*/{
11756             s//\1/
11757             q
11758           }
11759           s/.*/./; q'`
11760       test -d "$as_dir" && break
11761     done
11762     test -z "$as_dirs" || eval "mkdir $as_dirs"
11763   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11764
11765
11766 } # as_fn_mkdir_p
11767 if mkdir -p . 2>/dev/null; then
11768   as_mkdir_p='mkdir -p "$as_dir"'
11769 else
11770   test -d ./-p && rmdir ./-p
11771   as_mkdir_p=false
11772 fi
11773
11774
11775 # as_fn_executable_p FILE
11776 # -----------------------
11777 # Test if FILE is an executable regular file.
11778 as_fn_executable_p ()
11779 {
11780   test -f "$1" && test -x "$1"
11781 } # as_fn_executable_p
11782 as_test_x='test -x'
11783 as_executable_p=as_fn_executable_p
11784
11785 # Sed expression to map a string onto a valid CPP name.
11786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11787
11788 # Sed expression to map a string onto a valid variable name.
11789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11790
11791
11792 exec 6>&1
11793 ## ----------------------------------- ##
11794 ## Main body of $CONFIG_STATUS script. ##
11795 ## ----------------------------------- ##
11796 _ASEOF
11797 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11798
11799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11800 # Save the log message, to keep $0 and so on meaningful, and to
11801 # report actual input values of CONFIG_FILES etc. instead of their
11802 # values after options handling.
11803 ac_log="
11804 This file was extended by GNU make $as_me 4.1, which was
11805 generated by GNU Autoconf 2.69.  Invocation command line was
11806
11807   CONFIG_FILES    = $CONFIG_FILES
11808   CONFIG_HEADERS  = $CONFIG_HEADERS
11809   CONFIG_LINKS    = $CONFIG_LINKS
11810   CONFIG_COMMANDS = $CONFIG_COMMANDS
11811   $ $0 $@
11812
11813 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11814 "
11815
11816 _ACEOF
11817
11818 case $ac_config_files in *"
11819 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11820 esac
11821
11822 case $ac_config_headers in *"
11823 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11824 esac
11825
11826
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 # Files that config.status was made for.
11829 config_files="$ac_config_files"
11830 config_headers="$ac_config_headers"
11831 config_commands="$ac_config_commands"
11832
11833 _ACEOF
11834
11835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11836 ac_cs_usage="\
11837 \`$as_me' instantiates files and other configuration actions
11838 from templates according to the current configuration.  Unless the files
11839 and actions are specified as TAGs, all are instantiated by default.
11840
11841 Usage: $0 [OPTION]... [TAG]...
11842
11843   -h, --help       print this help, then exit
11844   -V, --version    print version number and configuration settings, then exit
11845       --config     print configuration, then exit
11846   -q, --quiet, --silent
11847                    do not print progress messages
11848   -d, --debug      don't remove temporary files
11849       --recheck    update $as_me by reconfiguring in the same conditions
11850       --file=FILE[:TEMPLATE]
11851                    instantiate the configuration file FILE
11852       --header=FILE[:TEMPLATE]
11853                    instantiate the configuration header FILE
11854
11855 Configuration files:
11856 $config_files
11857
11858 Configuration headers:
11859 $config_headers
11860
11861 Configuration commands:
11862 $config_commands
11863
11864 Report bugs to <bug-make@gnu.org>.
11865 GNU make home page: <http://www.gnu.org/software/make/>.
11866 General help using GNU software: <http://www.gnu.org/gethelp/>."
11867
11868 _ACEOF
11869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11871 ac_cs_version="\\
11872 GNU make config.status 4.1
11873 configured by $0, generated by GNU Autoconf 2.69,
11874   with options \\"\$ac_cs_config\\"
11875
11876 Copyright (C) 2012 Free Software Foundation, Inc.
11877 This config.status script is free software; the Free Software Foundation
11878 gives unlimited permission to copy, distribute and modify it."
11879
11880 ac_pwd='$ac_pwd'
11881 srcdir='$srcdir'
11882 INSTALL='$INSTALL'
11883 MKDIR_P='$MKDIR_P'
11884 AWK='$AWK'
11885 test -n "\$AWK" || AWK=awk
11886 _ACEOF
11887
11888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11889 # The default lists apply if the user does not specify any file.
11890 ac_need_defaults=:
11891 while test $# != 0
11892 do
11893   case $1 in
11894   --*=?*)
11895     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11896     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11897     ac_shift=:
11898     ;;
11899   --*=)
11900     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11901     ac_optarg=
11902     ac_shift=:
11903     ;;
11904   *)
11905     ac_option=$1
11906     ac_optarg=$2
11907     ac_shift=shift
11908     ;;
11909   esac
11910
11911   case $ac_option in
11912   # Handling of the options.
11913   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11914     ac_cs_recheck=: ;;
11915   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11916     $as_echo "$ac_cs_version"; exit ;;
11917   --config | --confi | --conf | --con | --co | --c )
11918     $as_echo "$ac_cs_config"; exit ;;
11919   --debug | --debu | --deb | --de | --d | -d )
11920     debug=: ;;
11921   --file | --fil | --fi | --f )
11922     $ac_shift
11923     case $ac_optarg in
11924     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11925     '') as_fn_error $? "missing file argument" ;;
11926     esac
11927     as_fn_append CONFIG_FILES " '$ac_optarg'"
11928     ac_need_defaults=false;;
11929   --header | --heade | --head | --hea )
11930     $ac_shift
11931     case $ac_optarg in
11932     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11933     esac
11934     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11935     ac_need_defaults=false;;
11936   --he | --h)
11937     # Conflict between --help and --header
11938     as_fn_error $? "ambiguous option: \`$1'
11939 Try \`$0 --help' for more information.";;
11940   --help | --hel | -h )
11941     $as_echo "$ac_cs_usage"; exit ;;
11942   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11943   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11944     ac_cs_silent=: ;;
11945
11946   # This is an error.
11947   -*) as_fn_error $? "unrecognized option: \`$1'
11948 Try \`$0 --help' for more information." ;;
11949
11950   *) as_fn_append ac_config_targets " $1"
11951      ac_need_defaults=false ;;
11952
11953   esac
11954   shift
11955 done
11956
11957 ac_configure_extra_args=
11958
11959 if $ac_cs_silent; then
11960   exec 6>/dev/null
11961   ac_configure_extra_args="$ac_configure_extra_args --silent"
11962 fi
11963
11964 _ACEOF
11965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966 if \$ac_cs_recheck; then
11967   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11968   shift
11969   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11970   CONFIG_SHELL='$SHELL'
11971   export CONFIG_SHELL
11972   exec "\$@"
11973 fi
11974
11975 _ACEOF
11976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11977 exec 5>>config.log
11978 {
11979   echo
11980   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11981 ## Running $as_me. ##
11982 _ASBOX
11983   $as_echo "$ac_log"
11984 } >&5
11985
11986 _ACEOF
11987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11988 #
11989 # INIT-COMMANDS
11990 #
11991 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11992 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11993     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11994     # from automake < 1.5.
11995     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11996     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11997     LINGUAS="${LINGUAS-%UNSET%}"
11998
11999
12000 _ACEOF
12001
12002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12003
12004 # Handling of arguments.
12005 for ac_config_target in $ac_config_targets
12006 do
12007   case $ac_config_target in
12008     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12009     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12010     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
12011     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12012     "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
12013     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12014     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
12015     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12016     "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12017     "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
12018
12019   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12020   esac
12021 done
12022
12023
12024 # If the user did not use the arguments to specify the items to instantiate,
12025 # then the envvar interface is used.  Set only those that are not.
12026 # We use the long form for the default assignment because of an extremely
12027 # bizarre bug on SunOS 4.1.3.
12028 if $ac_need_defaults; then
12029   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12030   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12031   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12032 fi
12033
12034 # Have a temporary directory for convenience.  Make it in the build tree
12035 # simply because there is no reason against having it here, and in addition,
12036 # creating and moving files from /tmp can sometimes cause problems.
12037 # Hook for its removal unless debugging.
12038 # Note that there is a small window in which the directory will not be cleaned:
12039 # after its creation but before its name has been assigned to `$tmp'.
12040 $debug ||
12041 {
12042   tmp= ac_tmp=
12043   trap 'exit_status=$?
12044   : "${ac_tmp:=$tmp}"
12045   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12046 ' 0
12047   trap 'as_fn_exit 1' 1 2 13 15
12048 }
12049 # Create a (secure) tmp directory for tmp files.
12050
12051 {
12052   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12053   test -d "$tmp"
12054 }  ||
12055 {
12056   tmp=./conf$$-$RANDOM
12057   (umask 077 && mkdir "$tmp")
12058 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12059 ac_tmp=$tmp
12060
12061 # Set up the scripts for CONFIG_FILES section.
12062 # No need to generate them if there are no CONFIG_FILES.
12063 # This happens for instance with `./config.status config.h'.
12064 if test -n "$CONFIG_FILES"; then
12065
12066 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12067   ac_cs_awk_getline=:
12068   ac_cs_awk_pipe_init=
12069   ac_cs_awk_read_file='
12070       while ((getline aline < (F[key])) > 0)
12071         print(aline)
12072       close(F[key])'
12073   ac_cs_awk_pipe_fini=
12074 else
12075   ac_cs_awk_getline=false
12076   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12077   ac_cs_awk_read_file='
12078       print "|#_!!_#|"
12079       print "cat " F[key] " &&"
12080       '$ac_cs_awk_pipe_init
12081   # The final `:' finishes the AND list.
12082   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12083 fi
12084 ac_cr=`echo X | tr X '\015'`
12085 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12086 # But we know of no other shell where ac_cr would be empty at this
12087 # point, so we can use a bashism as a fallback.
12088 if test "x$ac_cr" = x; then
12089   eval ac_cr=\$\'\\r\'
12090 fi
12091 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12092 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12093   ac_cs_awk_cr='\\r'
12094 else
12095   ac_cs_awk_cr=$ac_cr
12096 fi
12097
12098 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12099 _ACEOF
12100
12101 # Create commands to substitute file output variables.
12102 {
12103   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12104   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
12105   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12106   echo "_ACAWK" &&
12107   echo "_ACEOF"
12108 } >conf$$files.sh &&
12109 . ./conf$$files.sh ||
12110   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12111 rm -f conf$$files.sh
12112
12113 {
12114   echo "cat >conf$$subs.awk <<_ACEOF" &&
12115   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12116   echo "_ACEOF"
12117 } >conf$$subs.sh ||
12118   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12119 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12120 ac_delim='%!_!# '
12121 for ac_last_try in false false false false false :; do
12122   . ./conf$$subs.sh ||
12123     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12124
12125   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12126   if test $ac_delim_n = $ac_delim_num; then
12127     break
12128   elif $ac_last_try; then
12129     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12130   else
12131     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12132   fi
12133 done
12134 rm -f conf$$subs.sh
12135
12136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12137 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12138 _ACEOF
12139 sed -n '
12140 h
12141 s/^/S["/; s/!.*/"]=/
12142 p
12143 g
12144 s/^[^!]*!//
12145 :repl
12146 t repl
12147 s/'"$ac_delim"'$//
12148 t delim
12149 :nl
12150 h
12151 s/\(.\{148\}\)..*/\1/
12152 t more1
12153 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12154 p
12155 n
12156 b repl
12157 :more1
12158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12159 p
12160 g
12161 s/.\{148\}//
12162 t nl
12163 :delim
12164 h
12165 s/\(.\{148\}\)..*/\1/
12166 t more2
12167 s/["\\]/\\&/g; s/^/"/; s/$/"/
12168 p
12169 b
12170 :more2
12171 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12172 p
12173 g
12174 s/.\{148\}//
12175 t delim
12176 ' <conf$$subs.awk | sed '
12177 /^[^""]/{
12178   N
12179   s/\n//
12180 }
12181 ' >>$CONFIG_STATUS || ac_write_fail=1
12182 rm -f conf$$subs.awk
12183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12184 _ACAWK
12185 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12186   for (key in S) S_is_set[key] = 1
12187   FS = "\a"
12188   \$ac_cs_awk_pipe_init
12189 }
12190 {
12191   line = $ 0
12192   nfields = split(line, field, "@")
12193   substed = 0
12194   len = length(field[1])
12195   for (i = 2; i < nfields; i++) {
12196     key = field[i]
12197     keylen = length(key)
12198     if (S_is_set[key]) {
12199       value = S[key]
12200       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12201       len += length(value) + length(field[++i])
12202       substed = 1
12203     } else
12204       len += 1 + keylen
12205   }
12206   if (nfields == 3 && !substed) {
12207     key = field[2]
12208     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
12209       \$ac_cs_awk_read_file
12210       next
12211     }
12212   }
12213   print line
12214 }
12215 \$ac_cs_awk_pipe_fini
12216 _ACAWK
12217 _ACEOF
12218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12219 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12220   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12221 else
12222   cat
12223 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12224   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12225 _ACEOF
12226
12227 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12228 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12229 # trailing colons and then remove the whole line if VPATH becomes empty
12230 # (actually we leave an empty line to preserve line numbers).
12231 if test "x$srcdir" = x.; then
12232   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12233 h
12234 s///
12235 s/^/:/
12236 s/[      ]*$/:/
12237 s/:\$(srcdir):/:/g
12238 s/:\${srcdir}:/:/g
12239 s/:@srcdir@:/:/g
12240 s/^:*//
12241 s/:*$//
12242 x
12243 s/\(=[   ]*\).*/\1/
12244 G
12245 s/\n//
12246 s/^[^=]*=[       ]*$//
12247 }'
12248 fi
12249
12250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12251 fi # test -n "$CONFIG_FILES"
12252
12253 # Set up the scripts for CONFIG_HEADERS section.
12254 # No need to generate them if there are no CONFIG_HEADERS.
12255 # This happens for instance with `./config.status Makefile'.
12256 if test -n "$CONFIG_HEADERS"; then
12257 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12258 BEGIN {
12259 _ACEOF
12260
12261 # Transform confdefs.h into an awk script `defines.awk', embedded as
12262 # here-document in config.status, that substitutes the proper values into
12263 # config.h.in to produce config.h.
12264
12265 # Create a delimiter string that does not exist in confdefs.h, to ease
12266 # handling of long lines.
12267 ac_delim='%!_!# '
12268 for ac_last_try in false false :; do
12269   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12270   if test -z "$ac_tt"; then
12271     break
12272   elif $ac_last_try; then
12273     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12274   else
12275     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12276   fi
12277 done
12278
12279 # For the awk script, D is an array of macro values keyed by name,
12280 # likewise P contains macro parameters if any.  Preserve backslash
12281 # newline sequences.
12282
12283 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12284 sed -n '
12285 s/.\{148\}/&'"$ac_delim"'/g
12286 t rset
12287 :rset
12288 s/^[     ]*#[    ]*define[       ][      ]*/ /
12289 t def
12290 d
12291 :def
12292 s/\\$//
12293 t bsnl
12294 s/["\\]/\\&/g
12295 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12296 D["\1"]=" \3"/p
12297 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12298 d
12299 :bsnl
12300 s/["\\]/\\&/g
12301 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12302 D["\1"]=" \3\\\\\\n"\\/p
12303 t cont
12304 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12305 t cont
12306 d
12307 :cont
12308 n
12309 s/.\{148\}/&'"$ac_delim"'/g
12310 t clear
12311 :clear
12312 s/\\$//
12313 t bsnlc
12314 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12315 d
12316 :bsnlc
12317 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12318 b cont
12319 ' <confdefs.h | sed '
12320 s/'"$ac_delim"'/"\\\
12321 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12322
12323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12324   for (key in D) D_is_set[key] = 1
12325   FS = "\a"
12326 }
12327 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12328   line = \$ 0
12329   split(line, arg, " ")
12330   if (arg[1] == "#") {
12331     defundef = arg[2]
12332     mac1 = arg[3]
12333   } else {
12334     defundef = substr(arg[1], 2)
12335     mac1 = arg[2]
12336   }
12337   split(mac1, mac2, "(") #)
12338   macro = mac2[1]
12339   prefix = substr(line, 1, index(line, defundef) - 1)
12340   if (D_is_set[macro]) {
12341     # Preserve the white space surrounding the "#".
12342     print prefix "define", macro P[macro] D[macro]
12343     next
12344   } else {
12345     # Replace #undef with comments.  This is necessary, for example,
12346     # in the case of _POSIX_SOURCE, which is predefined and required
12347     # on some systems where configure will not decide to define it.
12348     if (defundef == "undef") {
12349       print "/*", prefix defundef, macro, "*/"
12350       next
12351     }
12352   }
12353 }
12354 { print }
12355 _ACAWK
12356 _ACEOF
12357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12358   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12359 fi # test -n "$CONFIG_HEADERS"
12360
12361
12362 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12363 shift
12364 for ac_tag
12365 do
12366   case $ac_tag in
12367   :[FHLC]) ac_mode=$ac_tag; continue;;
12368   esac
12369   case $ac_mode$ac_tag in
12370   :[FHL]*:*);;
12371   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12372   :[FH]-) ac_tag=-:-;;
12373   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12374   esac
12375   ac_save_IFS=$IFS
12376   IFS=:
12377   set x $ac_tag
12378   IFS=$ac_save_IFS
12379   shift
12380   ac_file=$1
12381   shift
12382
12383   case $ac_mode in
12384   :L) ac_source=$1;;
12385   :[FH])
12386     ac_file_inputs=
12387     for ac_f
12388     do
12389       case $ac_f in
12390       -) ac_f="$ac_tmp/stdin";;
12391       *) # Look for the file first in the build tree, then in the source tree
12392          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12393          # because $ac_f cannot contain `:'.
12394          test -f "$ac_f" ||
12395            case $ac_f in
12396            [\\/$]*) false;;
12397            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12398            esac ||
12399            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12400       esac
12401       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12402       as_fn_append ac_file_inputs " '$ac_f'"
12403     done
12404
12405     # Let's still pretend it is `configure' which instantiates (i.e., don't
12406     # use $as_me), people would be surprised to read:
12407     #    /* config.h.  Generated by config.status.  */
12408     configure_input='Generated from '`
12409           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12410         `' by configure.'
12411     if test x"$ac_file" != x-; then
12412       configure_input="$ac_file.  $configure_input"
12413       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12414 $as_echo "$as_me: creating $ac_file" >&6;}
12415     fi
12416     # Neutralize special characters interpreted by sed in replacement strings.
12417     case $configure_input in #(
12418     *\&* | *\|* | *\\* )
12419        ac_sed_conf_input=`$as_echo "$configure_input" |
12420        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12421     *) ac_sed_conf_input=$configure_input;;
12422     esac
12423
12424     case $ac_tag in
12425     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12426       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12427     esac
12428     ;;
12429   esac
12430
12431   ac_dir=`$as_dirname -- "$ac_file" ||
12432 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12433          X"$ac_file" : 'X\(//\)[^/]' \| \
12434          X"$ac_file" : 'X\(//\)$' \| \
12435          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12436 $as_echo X"$ac_file" |
12437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12438             s//\1/
12439             q
12440           }
12441           /^X\(\/\/\)[^/].*/{
12442             s//\1/
12443             q
12444           }
12445           /^X\(\/\/\)$/{
12446             s//\1/
12447             q
12448           }
12449           /^X\(\/\).*/{
12450             s//\1/
12451             q
12452           }
12453           s/.*/./; q'`
12454   as_dir="$ac_dir"; as_fn_mkdir_p
12455   ac_builddir=.
12456
12457 case "$ac_dir" in
12458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12459 *)
12460   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12461   # A ".." for each directory in $ac_dir_suffix.
12462   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12463   case $ac_top_builddir_sub in
12464   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12465   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12466   esac ;;
12467 esac
12468 ac_abs_top_builddir=$ac_pwd
12469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12470 # for backward compatibility:
12471 ac_top_builddir=$ac_top_build_prefix
12472
12473 case $srcdir in
12474   .)  # We are building in place.
12475     ac_srcdir=.
12476     ac_top_srcdir=$ac_top_builddir_sub
12477     ac_abs_top_srcdir=$ac_pwd ;;
12478   [\\/]* | ?:[\\/]* )  # Absolute name.
12479     ac_srcdir=$srcdir$ac_dir_suffix;
12480     ac_top_srcdir=$srcdir
12481     ac_abs_top_srcdir=$srcdir ;;
12482   *) # Relative name.
12483     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12484     ac_top_srcdir=$ac_top_build_prefix$srcdir
12485     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12486 esac
12487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12488
12489
12490   case $ac_mode in
12491   :F)
12492   #
12493   # CONFIG_FILE
12494   #
12495
12496   case $INSTALL in
12497   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12498   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12499   esac
12500   ac_MKDIR_P=$MKDIR_P
12501   case $MKDIR_P in
12502   [\\/$]* | ?:[\\/]* ) ;;
12503   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12504   esac
12505 _ACEOF
12506
12507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508 # If the template does not know about datarootdir, expand it.
12509 # FIXME: This hack should be removed a few years after 2.60.
12510 ac_datarootdir_hack=; ac_datarootdir_seen=
12511 ac_sed_dataroot='
12512 /datarootdir/ {
12513   p
12514   q
12515 }
12516 /@datadir@/p
12517 /@docdir@/p
12518 /@infodir@/p
12519 /@localedir@/p
12520 /@mandir@/p'
12521 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12522 *datarootdir*) ac_datarootdir_seen=yes;;
12523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12524   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12525 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12526 _ACEOF
12527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12528   ac_datarootdir_hack='
12529   s&@datadir@&$datadir&g
12530   s&@docdir@&$docdir&g
12531   s&@infodir@&$infodir&g
12532   s&@localedir@&$localedir&g
12533   s&@mandir@&$mandir&g
12534   s&\\\${datarootdir}&$datarootdir&g' ;;
12535 esac
12536 _ACEOF
12537
12538 # Neutralize VPATH when `$srcdir' = `.'.
12539 # Shell code in configure.ac might set extrasub.
12540 # FIXME: do we really want to maintain this feature?
12541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12542 ac_sed_extra="$ac_vpsub
12543 $extrasub
12544 _ACEOF
12545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12546 :t
12547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12548 s|@configure_input@|$ac_sed_conf_input|;t t
12549 s&@top_builddir@&$ac_top_builddir_sub&;t t
12550 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12551 s&@srcdir@&$ac_srcdir&;t t
12552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12553 s&@top_srcdir@&$ac_top_srcdir&;t t
12554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12555 s&@builddir@&$ac_builddir&;t t
12556 s&@abs_builddir@&$ac_abs_builddir&;t t
12557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12558 s&@INSTALL@&$ac_INSTALL&;t t
12559 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12560 $ac_datarootdir_hack
12561 "
12562 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12563 if $ac_cs_awk_getline; then
12564   $AWK -f "$ac_tmp/subs.awk"
12565 else
12566   $AWK -f "$ac_tmp/subs.awk" | $SHELL
12567 fi \
12568   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12569
12570 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12571   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12572   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
12573       "$ac_tmp/out"`; test -z "$ac_out"; } &&
12574   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12575 which seems to be undefined.  Please make sure it is defined" >&5
12576 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12577 which seems to be undefined.  Please make sure it is defined" >&2;}
12578
12579   rm -f "$ac_tmp/stdin"
12580   case $ac_file in
12581   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12582   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12583   esac \
12584   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12585  ;;
12586   :H)
12587   #
12588   # CONFIG_HEADER
12589   #
12590   if test x"$ac_file" != x-; then
12591     {
12592       $as_echo "/* $configure_input  */" \
12593       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12594     } >"$ac_tmp/config.h" \
12595       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12596     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12597       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12598 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12599     else
12600       rm -f "$ac_file"
12601       mv "$ac_tmp/config.h" "$ac_file" \
12602         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12603     fi
12604   else
12605     $as_echo "/* $configure_input  */" \
12606       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12607       || as_fn_error $? "could not create -" "$LINENO" 5
12608   fi
12609 # Compute "$ac_file"'s index in $config_headers.
12610 _am_arg="$ac_file"
12611 _am_stamp_count=1
12612 for _am_header in $config_headers :; do
12613   case $_am_header in
12614     $_am_arg | $_am_arg:* )
12615       break ;;
12616     * )
12617       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12618   esac
12619 done
12620 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12621 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12622          X"$_am_arg" : 'X\(//\)[^/]' \| \
12623          X"$_am_arg" : 'X\(//\)$' \| \
12624          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12625 $as_echo X"$_am_arg" |
12626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12627             s//\1/
12628             q
12629           }
12630           /^X\(\/\/\)[^/].*/{
12631             s//\1/
12632             q
12633           }
12634           /^X\(\/\/\)$/{
12635             s//\1/
12636             q
12637           }
12638           /^X\(\/\).*/{
12639             s//\1/
12640             q
12641           }
12642           s/.*/./; q'`/stamp-h$_am_stamp_count
12643  ;;
12644
12645   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12646 $as_echo "$as_me: executing $ac_file commands" >&6;}
12647  ;;
12648   esac
12649
12650
12651   case $ac_file$ac_mode in
12652     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12653   # Older Autoconf quotes --file arguments for eval, but not when files
12654   # are listed without --file.  Let's play safe and only enable the eval
12655   # if we detect the quoting.
12656   case $CONFIG_FILES in
12657   *\'*) eval set x "$CONFIG_FILES" ;;
12658   *)   set x $CONFIG_FILES ;;
12659   esac
12660   shift
12661   for mf
12662   do
12663     # Strip MF so we end up with the name of the file.
12664     mf=`echo "$mf" | sed -e 's/:.*$//'`
12665     # Check whether this is an Automake generated Makefile or not.
12666     # We used to match only the files named 'Makefile.in', but
12667     # some people rename them; so instead we look at the file content.
12668     # Grep'ing the first line is not enough: some people post-process
12669     # each Makefile.in and add a new line on top of each file to say so.
12670     # Grep'ing the whole file is not good either: AIX grep has a line
12671     # limit of 2048, but all sed's we know have understand at least 4000.
12672     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12673       dirpart=`$as_dirname -- "$mf" ||
12674 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12675          X"$mf" : 'X\(//\)[^/]' \| \
12676          X"$mf" : 'X\(//\)$' \| \
12677          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12678 $as_echo X"$mf" |
12679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12680             s//\1/
12681             q
12682           }
12683           /^X\(\/\/\)[^/].*/{
12684             s//\1/
12685             q
12686           }
12687           /^X\(\/\/\)$/{
12688             s//\1/
12689             q
12690           }
12691           /^X\(\/\).*/{
12692             s//\1/
12693             q
12694           }
12695           s/.*/./; q'`
12696     else
12697       continue
12698     fi
12699     # Extract the definition of DEPDIR, am__include, and am__quote
12700     # from the Makefile without running 'make'.
12701     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12702     test -z "$DEPDIR" && continue
12703     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12704     test -z "$am__include" && continue
12705     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12706     # Find all dependency output files, they are included files with
12707     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12708     # simplest approach to changing $(DEPDIR) to its actual value in the
12709     # expansion.
12710     for file in `sed -n "
12711       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12712          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12713       # Make sure the directory exists.
12714       test -f "$dirpart/$file" && continue
12715       fdir=`$as_dirname -- "$file" ||
12716 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12717          X"$file" : 'X\(//\)[^/]' \| \
12718          X"$file" : 'X\(//\)$' \| \
12719          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12720 $as_echo X"$file" |
12721     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12722             s//\1/
12723             q
12724           }
12725           /^X\(\/\/\)[^/].*/{
12726             s//\1/
12727             q
12728           }
12729           /^X\(\/\/\)$/{
12730             s//\1/
12731             q
12732           }
12733           /^X\(\/\).*/{
12734             s//\1/
12735             q
12736           }
12737           s/.*/./; q'`
12738       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12739       # echo "creating $dirpart/$file"
12740       echo '# dummy' > "$dirpart/$file"
12741     done
12742   done
12743 }
12744  ;;
12745     "po-directories":C)
12746     for ac_file in $CONFIG_FILES; do
12747       # Support "outfile[:infile[:infile...]]"
12748       case "$ac_file" in
12749         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12750       esac
12751       # PO directories have a Makefile.in generated from Makefile.in.in.
12752       case "$ac_file" in */Makefile.in)
12753         # Adjust a relative srcdir.
12754         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12755         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12756         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12757         # In autoconf-2.13 it is called $ac_given_srcdir.
12758         # In autoconf-2.50 it is called $srcdir.
12759         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12760         case "$ac_given_srcdir" in
12761           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12762           /*) top_srcdir="$ac_given_srcdir" ;;
12763           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12764         esac
12765         # Treat a directory as a PO directory if and only if it has a
12766         # POTFILES.in file. This allows packages to have multiple PO
12767         # directories under different names or in different locations.
12768         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12769           rm -f "$ac_dir/POTFILES"
12770           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12771           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12772           POMAKEFILEDEPS="POTFILES.in"
12773           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12774           # on $ac_dir but don't depend on user-specified configuration
12775           # parameters.
12776           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12777             # The LINGUAS file contains the set of available languages.
12778             if test -n "$OBSOLETE_ALL_LINGUAS"; then
12779               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12780             fi
12781             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12782             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12783             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12784             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12785           else
12786             # The set of available languages was given in configure.in.
12787             # Hide the ALL_LINGUAS assigment from automake < 1.5.
12788             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12789           fi
12790           # Compute POFILES
12791           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12792           # Compute UPDATEPOFILES
12793           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12794           # Compute DUMMYPOFILES
12795           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12796           # Compute GMOFILES
12797           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12798           case "$ac_given_srcdir" in
12799             .) srcdirpre= ;;
12800             *) srcdirpre='$(srcdir)/' ;;
12801           esac
12802           POFILES=
12803           UPDATEPOFILES=
12804           DUMMYPOFILES=
12805           GMOFILES=
12806           for lang in $ALL_LINGUAS; do
12807             POFILES="$POFILES $srcdirpre$lang.po"
12808             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12809             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12810             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12811           done
12812           # CATALOGS depends on both $ac_dir and the user's LINGUAS
12813           # environment variable.
12814           INST_LINGUAS=
12815           if test -n "$ALL_LINGUAS"; then
12816             for presentlang in $ALL_LINGUAS; do
12817               useit=no
12818               if test "%UNSET%" != "$LINGUAS"; then
12819                 desiredlanguages="$LINGUAS"
12820               else
12821                 desiredlanguages="$ALL_LINGUAS"
12822               fi
12823               for desiredlang in $desiredlanguages; do
12824                 # Use the presentlang catalog if desiredlang is
12825                 #   a. equal to presentlang, or
12826                 #   b. a variant of presentlang (because in this case,
12827                 #      presentlang can be used as a fallback for messages
12828                 #      which are not translated in the desiredlang catalog).
12829                 case "$desiredlang" in
12830                   "$presentlang"*) useit=yes;;
12831                 esac
12832               done
12833               if test $useit = yes; then
12834                 INST_LINGUAS="$INST_LINGUAS $presentlang"
12835               fi
12836             done
12837           fi
12838           CATALOGS=
12839           if test -n "$INST_LINGUAS"; then
12840             for lang in $INST_LINGUAS; do
12841               CATALOGS="$CATALOGS $lang.gmo"
12842             done
12843           fi
12844           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12845           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12846           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12847             if test -f "$f"; then
12848               case "$f" in
12849                 *.orig | *.bak | *~) ;;
12850                 *) cat "$f" >> "$ac_dir/Makefile" ;;
12851               esac
12852             fi
12853           done
12854         fi
12855         ;;
12856       esac
12857     done ;;
12858
12859   esac
12860 done # for ac_tag
12861
12862
12863 as_fn_exit 0
12864 _ACEOF
12865 ac_clean_files=$ac_clean_files_save
12866
12867 test $ac_write_fail = 0 ||
12868   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12869
12870
12871 # configure is writing to config.log, and then calls config.status.
12872 # config.status does its own redirection, appending to config.log.
12873 # Unfortunately, on DOS this fails, as config.log is still kept open
12874 # by configure, so config.status won't be able to write to it; its
12875 # output is simply discarded.  So we exec the FD to /dev/null,
12876 # effectively closing config.log, so it can be properly (re)opened and
12877 # appended to by config.status.  When coming back to configure, we
12878 # need to make the FD available again.
12879 if test "$no_create" != yes; then
12880   ac_cs_success=:
12881   ac_config_status_args=
12882   test "$silent" = yes &&
12883     ac_config_status_args="$ac_config_status_args --quiet"
12884   exec 5>/dev/null
12885   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12886   exec 5>>config.log
12887   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12888   # would make configure fail if this is the last instruction.
12889   $ac_cs_success || as_fn_exit 1
12890 fi
12891 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12892   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12893 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12894 fi
12895
12896
12897 # We only generate the build.sh if we have a build.sh.in; we won't have
12898 # one before we've created a distribution.
12899 if test -f "$srcdir/build.sh.in"; then :
12900    ./config.status --file build.sh
12901   chmod +x build.sh
12902
12903 fi
12904