Bump to 4.4
[platform/upstream/make.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Make 4.4.
4 #
5 # Report bugs to <bug-make@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23   emulate sh
24   NULLCMD=:
25   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26   # is contrary to our usage.  Disable this feature.
27   alias -g '${1+"$@"}'='"$@"'
28   setopt NO_GLOB_SUBST
29 else $as_nop
30   case `(set -o) 2>/dev/null` in #(
31   *posix*) :
32     set -o posix ;; #(
33   *) :
34      ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" ""        $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79   PATH_SEPARATOR=:
80   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82       PATH_SEPARATOR=';'
83   }
84 fi
85
86
87 # Find who we are.  Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90   *[\\/]* ) as_myself=$0 ;;
91   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94   IFS=$as_save_IFS
95   case $as_dir in #(((
96     '') as_dir=./ ;;
97     */) ;;
98     *) as_dir=$as_dir/ ;;
99   esac
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   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118   # into an infinite loop, continuously re-executing ourselves.
119   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120     _as_can_reexec=no; export _as_can_reexec;
121     # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129   *v*x* | *x*v* ) as_opts=-vx ;;
130   *v* ) as_opts=-v ;;
131   *x* ) as_opts=-x ;;
132   * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139   fi
140   # We don't want this to propagate to other subprocesses.
141           { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143   as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146   emulate sh
147   NULLCMD=:
148   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149   # is contrary to our usage.  Disable this feature.
150   alias -g '\${1+\"\$@\"}'='\"\$@\"'
151   setopt NO_GLOB_SUBST
152 else \$as_nop
153   case \`(set -o) 2>/dev/null\` in #(
154   *posix*) :
155     set -o posix ;; #(
156   *) :
157      ;;
158 esac
159 fi
160 "
161   as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176   exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187   if (eval "$as_required") 2>/dev/null
188 then :
189   as_have_required=yes
190 else $as_nop
191   as_have_required=no
192 fi
193   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201   IFS=$as_save_IFS
202   case $as_dir in #(((
203     '') as_dir=./ ;;
204     */) ;;
205     *) as_dir=$as_dir/ ;;
206   esac
207   as_found=:
208   case $as_dir in #(
209          /*)
210            for as_base in sh bash ksh sh5; do
211              # Try only shells that exist, to save several forks.
212              as_shell=$as_dir$as_base
213              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216   CONFIG_SHELL=$as_shell as_have_required=yes
217                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219   break 2
220 fi
221 fi
222            done;;
223        esac
224   as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234   CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239       if test "x$CONFIG_SHELL" != x
240 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 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262     if test x$as_have_required = xno
263 then :
264   printf "%s\n" "$0: This script requires a shell more modern than all"
265   printf "%s\n" "$0: the shells that I found on your system."
266   if test ${ZSH_VERSION+y} ; then
267     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269   else
270     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and bug-make@gnu.org
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275   fi
276   exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294   { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304   return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312   set +e
313   as_fn_set_status $1
314   exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321   return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331   case $as_dir in #(
332   -*) as_dir=./$as_dir;;
333   esac
334   test -d "$as_dir" || eval $as_mkdir_p || {
335     as_dirs=
336     while :; do
337       case $as_dir in #(
338       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339       *) as_qdir=$as_dir;;
340       esac
341       as_dirs="'$as_qdir' $as_dirs"
342       as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344          X"$as_dir" : 'X\(//\)[^/]' \| \
345          X"$as_dir" : 'X\(//\)$' \| \
346          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349             s//\1/
350             q
351           }
352           /^X\(\/\/\)[^/].*/{
353             s//\1/
354             q
355           }
356           /^X\(\/\/\)$/{
357             s//\1/
358             q
359           }
360           /^X\(\/\).*/{
361             s//\1/
362             q
363           }
364           s/.*/./; q'`
365       test -d "$as_dir" && break
366     done
367     test -z "$as_dirs" || eval "mkdir $as_dirs"
368   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378   test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388   eval 'as_fn_append ()
389   {
390     eval $1+=\$2
391   }'
392 else $as_nop
393   as_fn_append ()
394   {
395     eval $1=\$$1\$2
396   }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406   eval 'as_fn_arith ()
407   {
408     as_val=$(( $* ))
409   }'
410 else $as_nop
411   as_fn_arith ()
412   {
413     as_val=`expr "$@" || test $? -eq 1`
414   }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422   return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433   as_status=$1; test $as_status -eq 0 && as_status=1
434   if test "$4"; then
435     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437   fi
438   printf "%s\n" "$as_me: error: $2" >&2
439   as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443    test "X`expr 00001 : '.*\(...\)'`" = X001; then
444   as_expr=expr
445 else
446   as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450   as_basename=basename
451 else
452   as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456   as_dirname=dirname
457 else
458   as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463          X"$0" : 'X\(//\)$' \| \
464          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466     sed '/^.*\/\([^/][^/]*\)\/*$/{
467             s//\1/
468             q
469           }
470           /^X\/\(\/\/\)$/{
471             s//\1/
472             q
473           }
474           /^X\/\(\/\).*/{
475             s//\1/
476             q
477           }
478           s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488   as_lineno_1=$LINENO as_lineno_1a=$LINENO
489   as_lineno_2=$LINENO as_lineno_2a=$LINENO
490   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
493   sed -n '
494     p
495     /[$]LINENO/=
496   ' <$as_myself |
497     sed '
498       s/[$]LINENO.*/&-/
499       t lineno
500       b
501       :lineno
502       N
503       :loop
504       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505       t loop
506       s/-\n.*//
507     ' >$as_me.lineno &&
508   chmod +x "$as_me.lineno" ||
509     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512   # already done that, so ensure we don't try to do so again and fall
513   # in an infinite loop.  This has already happened in practice.
514   _as_can_reexec=no; export _as_can_reexec
515   # Don't try to exec as it changes $[0], causing all sort of problems
516   # (the dirname of $[0] is not the place where we might find the
517   # original and so on.  Autoconf is especially sensitive to this).
518   . "./$as_me.lineno"
519   # Exit status is that of the last command.
520   exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530   case `echo 'xy\c'` in
531   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
532   xy)  ECHO_C='\c';;
533   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
534        ECHO_T=' ';;
535   esac;;
536 *)
537   ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n.  New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549   rm -f conf$$.dir/conf$$.file
550 else
551   rm -f conf$$.dir
552   mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555   if ln -s conf$$.file conf$$ 2>/dev/null; then
556     as_ln_s='ln -s'
557     # ... but there are two gotchas:
558     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560     # In both cases, we have to default to `cp -pR'.
561     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562       as_ln_s='cp -pR'
563   elif ln conf$$.file conf$$ 2>/dev/null; then
564     as_ln_s=ln
565   else
566     as_ln_s='cp -pR'
567   fi
568 else
569   as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575   as_mkdir_p='mkdir -p "$as_dir"'
576 else
577   test -d ./-p && rmdir ./-p
578   as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='GNU Make'
613 PACKAGE_TARNAME='make'
614 PACKAGE_VERSION='4.4'
615 PACKAGE_STRING='GNU Make 4.4'
616 PACKAGE_BUGREPORT='bug-make@gnu.org'
617 PACKAGE_URL='https://www.gnu.org/software/make/'
618
619 ac_unique_file="src/vpath.c"
620 ac_config_libobj_dir=lib
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 gt_needs=
654 ac_func_c_list=
655 ac_subst_vars='gltests_LIBOBJDEPS
656 gltests_LTLIBOBJS
657 gltests_LIBOBJS
658 gl_LIBOBJDEPS
659 gl_LTLIBOBJS
660 gl_LIBOBJS
661 am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 KNOWN_PREFIX_FALSE
666 KNOWN_PREFIX_TRUE
667 WINDOWSENV_FALSE
668 WINDOWSENV_TRUE
669 MAKE_HOST
670 AM_LDFLAGS
671 USE_CUSTOMS_FALSE
672 USE_CUSTOMS_TRUE
673 REMOTE
674 HAVE_GUILE_FALSE
675 HAVE_GUILE_TRUE
676 GUILE_LIBS
677 GUILE_CFLAGS
678 PKG_CONFIG_LIBDIR
679 PKG_CONFIG_PATH
680 PKG_CONFIG
681 POSUB
682 LTLIBINTL
683 LIBINTL
684 INTLLIBS
685 LTLIBICONV
686 LIBICONV
687 INTL_MACOSX_LIBS
688 XGETTEXT_EXTRA_OPTIONS
689 MSGMERGE
690 XGETTEXT_015
691 XGETTEXT
692 GMSGFMT_015
693 MSGFMT_015
694 GMSGFMT
695 MSGFMT
696 GETTEXT_MACRO_VERSION
697 USE_NLS
698 SED
699 PERL
700 LIBGNU_LTLIBDEPS
701 LIBGNU_LIBDEPS
702 GL_CFLAG_GNULIB_WARNINGS
703 GL_CFLAG_ALLOW_WARNINGS
704 gltests_WITNESS
705 GL_GENERATE_STDBOOL_H_FALSE
706 GL_GENERATE_STDBOOL_H_TRUE
707 STDBOOL_H
708 HAVE__BOOL
709 USE_SYSTEM_GLOB
710 USE_SYSTEM_GLOB_FALSE
711 USE_SYSTEM_GLOB_TRUE
712 HOST_CPU_C_ABI
713 HOST_CPU
714 GL_COND_OBJ_GETLOADAVG_FALSE
715 GL_COND_OBJ_GETLOADAVG_TRUE
716 GETLOADAVG_LIBS
717 GL_GNULIB_GETLOADAVG
718 HAVE_DECL_GETLOADAVG
719 GL_GENERATE_ALLOCA_H_FALSE
720 GL_GENERATE_ALLOCA_H_TRUE
721 ALLOCA_H
722 HAVE_ALLOCA_H
723 ALLOCA
724 GL_COND_LIBTOOL_FALSE
725 GL_COND_LIBTOOL_TRUE
726 RANLIB
727 ARFLAGS
728 AR
729 EGREP
730 GREP
731 CPP
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 am__fastdepCC_FALSE
741 am__fastdepCC_TRUE
742 CCDEPMODE
743 am__nodep
744 AMDEPBACKSLASH
745 AMDEP_FALSE
746 AMDEP_TRUE
747 am__include
748 DEPDIR
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
755 CC
756 AM_BACKSLASH
757 AM_DEFAULT_VERBOSITY
758 AM_DEFAULT_V
759 AM_V
760 CSCOPE
761 ETAGS
762 CTAGS
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 MKDIR_P
771 INSTALL_STRIP_PROGRAM
772 STRIP
773 install_sh
774 MAKEINFO
775 AUTOHEADER
776 AUTOMAKE
777 AUTOCONF
778 ACLOCAL
779 VERSION
780 PACKAGE
781 CYGPATH_W
782 am__isrc
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 runstatedir
806 localstatedir
807 sharedstatedir
808 sysconfdir
809 datadir
810 datarootdir
811 libexecdir
812 sbindir
813 bindir
814 program_transform_name
815 prefix
816 exec_prefix
817 PACKAGE_URL
818 PACKAGE_BUGREPORT
819 PACKAGE_STRING
820 PACKAGE_VERSION
821 PACKAGE_TARNAME
822 PACKAGE_NAME
823 PATH_SEPARATOR
824 SHELL
825 am__quote'
826 ac_subst_files='MAINT_MAKEFILE'
827 ac_user_opts='
828 enable_option_checking
829 enable_silent_rules
830 enable_dependency_tracking
831 enable_largefile
832 enable_year2038
833 enable_cross_guesses
834 enable_nls
835 with_gnu_ld
836 enable_rpath
837 with_libiconv_prefix
838 with_libintl_prefix
839 with_guile
840 with_customs
841 enable_case_insensitive_file_system
842 enable_job_server
843 enable_load
844 enable_posix_spawn
845 with_dmalloc
846 '
847       ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 CPP
856 PKG_CONFIG
857 PKG_CONFIG_PATH
858 PKG_CONFIG_LIBDIR
859 GUILE_CFLAGS
860 GUILE_LIBS'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 runstatedir='${localstatedir}/run'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
903 infodir='${datarootdir}/info'
904 htmldir='${docdir}'
905 dvidir='${docdir}'
906 pdfdir='${docdir}'
907 psdir='${docdir}'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
911
912 ac_prev=
913 ac_dashdash=
914 for ac_option
915 do
916   # If the previous option needs an argument, assign it.
917   if test -n "$ac_prev"; then
918     eval $ac_prev=\$ac_option
919     ac_prev=
920     continue
921   fi
922
923   case $ac_option in
924   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925   *=)   ac_optarg= ;;
926   *)    ac_optarg=yes ;;
927   esac
928
929   case $ac_dashdash$ac_option in
930   --)
931     ac_dashdash=yes ;;
932
933   -bindir | --bindir | --bindi | --bind | --bin | --bi)
934     ac_prev=bindir ;;
935   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936     bindir=$ac_optarg ;;
937
938   -build | --build | --buil | --bui | --bu)
939     ac_prev=build_alias ;;
940   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941     build_alias=$ac_optarg ;;
942
943   -cache-file | --cache-file | --cache-fil | --cache-fi \
944   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945     ac_prev=cache_file ;;
946   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948     cache_file=$ac_optarg ;;
949
950   --config-cache | -C)
951     cache_file=config.cache ;;
952
953   -datadir | --datadir | --datadi | --datad)
954     ac_prev=datadir ;;
955   -datadir=* | --datadir=* | --datadi=* | --datad=*)
956     datadir=$ac_optarg ;;
957
958   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959   | --dataroo | --dataro | --datar)
960     ac_prev=datarootdir ;;
961   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963     datarootdir=$ac_optarg ;;
964
965   -disable-* | --disable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: \`$ac_useropt'"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=no ;;
980
981   -docdir | --docdir | --docdi | --doc | --do)
982     ac_prev=docdir ;;
983   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984     docdir=$ac_optarg ;;
985
986   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987     ac_prev=dvidir ;;
988   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989     dvidir=$ac_optarg ;;
990
991   -enable-* | --enable-*)
992     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993     # Reject names that are not valid shell variable names.
994     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995       as_fn_error $? "invalid feature name: \`$ac_useropt'"
996     ac_useropt_orig=$ac_useropt
997     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
998     case $ac_user_opts in
999       *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003          ac_unrecognized_sep=', ';;
1004     esac
1005     eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009   | --exec | --exe | --ex)
1010     ac_prev=exec_prefix ;;
1011   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013   | --exec=* | --exe=* | --ex=*)
1014     exec_prefix=$ac_optarg ;;
1015
1016   -gas | --gas | --ga | --g)
1017     # Obsolete; use --with-gas.
1018     with_gas=yes ;;
1019
1020   -help | --help | --hel | --he | -h)
1021     ac_init_help=long ;;
1022   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023     ac_init_help=recursive ;;
1024   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025     ac_init_help=short ;;
1026
1027   -host | --host | --hos | --ho)
1028     ac_prev=host_alias ;;
1029   -host=* | --host=* | --hos=* | --ho=*)
1030     host_alias=$ac_optarg ;;
1031
1032   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033     ac_prev=htmldir ;;
1034   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035   | --ht=*)
1036     htmldir=$ac_optarg ;;
1037
1038   -includedir | --includedir | --includedi | --included | --include \
1039   | --includ | --inclu | --incl | --inc)
1040     ac_prev=includedir ;;
1041   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042   | --includ=* | --inclu=* | --incl=* | --inc=*)
1043     includedir=$ac_optarg ;;
1044
1045   -infodir | --infodir | --infodi | --infod | --info | --inf)
1046     ac_prev=infodir ;;
1047   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048     infodir=$ac_optarg ;;
1049
1050   -libdir | --libdir | --libdi | --libd)
1051     ac_prev=libdir ;;
1052   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053     libdir=$ac_optarg ;;
1054
1055   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056   | --libexe | --libex | --libe)
1057     ac_prev=libexecdir ;;
1058   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059   | --libexe=* | --libex=* | --libe=*)
1060     libexecdir=$ac_optarg ;;
1061
1062   -localedir | --localedir | --localedi | --localed | --locale)
1063     ac_prev=localedir ;;
1064   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065     localedir=$ac_optarg ;;
1066
1067   -localstatedir | --localstatedir | --localstatedi | --localstated \
1068   | --localstate | --localstat | --localsta | --localst | --locals)
1069     ac_prev=localstatedir ;;
1070   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072     localstatedir=$ac_optarg ;;
1073
1074   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075     ac_prev=mandir ;;
1076   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077     mandir=$ac_optarg ;;
1078
1079   -nfp | --nfp | --nf)
1080     # Obsolete; use --without-fp.
1081     with_fp=no ;;
1082
1083   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084   | --no-cr | --no-c | -n)
1085     no_create=yes ;;
1086
1087   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089     no_recursion=yes ;;
1090
1091   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093   | --oldin | --oldi | --old | --ol | --o)
1094     ac_prev=oldincludedir ;;
1095   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098     oldincludedir=$ac_optarg ;;
1099
1100   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101     ac_prev=prefix ;;
1102   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103     prefix=$ac_optarg ;;
1104
1105   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106   | --program-pre | --program-pr | --program-p)
1107     ac_prev=program_prefix ;;
1108   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110     program_prefix=$ac_optarg ;;
1111
1112   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113   | --program-suf | --program-su | --program-s)
1114     ac_prev=program_suffix ;;
1115   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117     program_suffix=$ac_optarg ;;
1118
1119   -program-transform-name | --program-transform-name \
1120   | --program-transform-nam | --program-transform-na \
1121   | --program-transform-n | --program-transform- \
1122   | --program-transform | --program-transfor \
1123   | --program-transfo | --program-transf \
1124   | --program-trans | --program-tran \
1125   | --progr-tra | --program-tr | --program-t)
1126     ac_prev=program_transform_name ;;
1127   -program-transform-name=* | --program-transform-name=* \
1128   | --program-transform-nam=* | --program-transform-na=* \
1129   | --program-transform-n=* | --program-transform-=* \
1130   | --program-transform=* | --program-transfor=* \
1131   | --program-transfo=* | --program-transf=* \
1132   | --program-trans=* | --program-tran=* \
1133   | --progr-tra=* | --program-tr=* | --program-t=*)
1134     program_transform_name=$ac_optarg ;;
1135
1136   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137     ac_prev=pdfdir ;;
1138   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139     pdfdir=$ac_optarg ;;
1140
1141   -psdir | --psdir | --psdi | --psd | --ps)
1142     ac_prev=psdir ;;
1143   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144     psdir=$ac_optarg ;;
1145
1146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147   | -silent | --silent | --silen | --sile | --sil)
1148     silent=yes ;;
1149
1150   -runstatedir | --runstatedir | --runstatedi | --runstated \
1151   | --runstate | --runstat | --runsta | --runst | --runs \
1152   | --run | --ru | --r)
1153     ac_prev=runstatedir ;;
1154   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1155   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1156   | --run=* | --ru=* | --r=*)
1157     runstatedir=$ac_optarg ;;
1158
1159   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1160     ac_prev=sbindir ;;
1161   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1162   | --sbi=* | --sb=*)
1163     sbindir=$ac_optarg ;;
1164
1165   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1166   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1167   | --sharedst | --shareds | --shared | --share | --shar \
1168   | --sha | --sh)
1169     ac_prev=sharedstatedir ;;
1170   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1171   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1172   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1173   | --sha=* | --sh=*)
1174     sharedstatedir=$ac_optarg ;;
1175
1176   -site | --site | --sit)
1177     ac_prev=site ;;
1178   -site=* | --site=* | --sit=*)
1179     site=$ac_optarg ;;
1180
1181   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1182     ac_prev=srcdir ;;
1183   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1184     srcdir=$ac_optarg ;;
1185
1186   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1187   | --syscon | --sysco | --sysc | --sys | --sy)
1188     ac_prev=sysconfdir ;;
1189   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1190   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1191     sysconfdir=$ac_optarg ;;
1192
1193   -target | --target | --targe | --targ | --tar | --ta | --t)
1194     ac_prev=target_alias ;;
1195   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1196     target_alias=$ac_optarg ;;
1197
1198   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1199     verbose=yes ;;
1200
1201   -version | --version | --versio | --versi | --vers | -V)
1202     ac_init_version=: ;;
1203
1204   -with-* | --with-*)
1205     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208       as_fn_error $? "invalid package name: \`$ac_useropt'"
1209     ac_useropt_orig=$ac_useropt
1210     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211     case $ac_user_opts in
1212       *"
1213 "with_$ac_useropt"
1214 "*) ;;
1215       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216          ac_unrecognized_sep=', ';;
1217     esac
1218     eval with_$ac_useropt=\$ac_optarg ;;
1219
1220   -without-* | --without-*)
1221     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222     # Reject names that are not valid shell variable names.
1223     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224       as_fn_error $? "invalid package name: \`$ac_useropt'"
1225     ac_useropt_orig=$ac_useropt
1226     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1227     case $ac_user_opts in
1228       *"
1229 "with_$ac_useropt"
1230 "*) ;;
1231       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232          ac_unrecognized_sep=', ';;
1233     esac
1234     eval with_$ac_useropt=no ;;
1235
1236   --x)
1237     # Obsolete; use --with-x.
1238     with_x=yes ;;
1239
1240   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241   | --x-incl | --x-inc | --x-in | --x-i)
1242     ac_prev=x_includes ;;
1243   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245     x_includes=$ac_optarg ;;
1246
1247   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249     ac_prev=x_libraries ;;
1250   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252     x_libraries=$ac_optarg ;;
1253
1254   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1255 Try \`$0 --help' for more information"
1256     ;;
1257
1258   *=*)
1259     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260     # Reject names that are not valid shell variable names.
1261     case $ac_envvar in #(
1262       '' | [0-9]* | *[!_$as_cr_alnum]* )
1263       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1264     esac
1265     eval $ac_envvar=\$ac_optarg
1266     export $ac_envvar ;;
1267
1268   *)
1269     # FIXME: should be removed in autoconf 3.0.
1270     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1271     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1273     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1274     ;;
1275
1276   esac
1277 done
1278
1279 if test -n "$ac_prev"; then
1280   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281   as_fn_error $? "missing argument to $ac_option"
1282 fi
1283
1284 if test -n "$ac_unrecognized_opts"; then
1285   case $enable_option_checking in
1286     no) ;;
1287     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1288     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289   esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294                 datadir sysconfdir sharedstatedir localstatedir includedir \
1295                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296                 libdir localedir mandir runstatedir
1297 do
1298   eval ac_val=\$$ac_var
1299   # Remove trailing slashes.
1300   case $ac_val in
1301     */ )
1302       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303       eval $ac_var=\$ac_val;;
1304   esac
1305   # Be sure to have absolute directory names.
1306   case $ac_val in
1307     [\\/$]* | ?:[\\/]* )  continue;;
1308     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309   esac
1310   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1311 done
1312
1313 # There might be people who depend on the old broken behavior: `$host'
1314 # used to hold the argument of --host etc.
1315 # FIXME: To remove some day.
1316 build=$build_alias
1317 host=$host_alias
1318 target=$target_alias
1319
1320 # FIXME: To remove some day.
1321 if test "x$host_alias" != x; then
1322   if test "x$build_alias" = x; then
1323     cross_compiling=maybe
1324   elif test "x$build_alias" != "x$host_alias"; then
1325     cross_compiling=yes
1326   fi
1327 fi
1328
1329 ac_tool_prefix=
1330 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1331
1332 test "$silent" = yes && exec 6>/dev/null
1333
1334
1335 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1336 ac_ls_di=`ls -di .` &&
1337 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1338   as_fn_error $? "working directory cannot be determined"
1339 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1340   as_fn_error $? "pwd does not report name of working directory"
1341
1342
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345   ac_srcdir_defaulted=yes
1346   # Try the directory containing this script, then the parent directory.
1347   ac_confdir=`$as_dirname -- "$as_myself" ||
1348 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349          X"$as_myself" : 'X\(//\)[^/]' \| \
1350          X"$as_myself" : 'X\(//\)$' \| \
1351          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1352 printf "%s\n" X"$as_myself" |
1353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)[^/].*/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\/\)$/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\).*/{
1366             s//\1/
1367             q
1368           }
1369           s/.*/./; q'`
1370   srcdir=$ac_confdir
1371   if test ! -r "$srcdir/$ac_unique_file"; then
1372     srcdir=..
1373   fi
1374 else
1375   ac_srcdir_defaulted=no
1376 fi
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1384         pwd)`
1385 # When building in place, set srcdir=.
1386 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387   srcdir=.
1388 fi
1389 # Remove unnecessary trailing slashes from srcdir.
1390 # Double slashes in file names in object file debugging info
1391 # mess up M-x gdb in Emacs.
1392 case $srcdir in
1393 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 esac
1395 for ac_var in $ac_precious_vars; do
1396   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397   eval ac_env_${ac_var}_value=\$${ac_var}
1398   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400 done
1401
1402 #
1403 # Report the --help message.
1404 #
1405 if test "$ac_init_help" = "long"; then
1406   # Omit some internal or obsolete options to make the list less imposing.
1407   # This message is too long to be a string in the A/UX 3.1 sh.
1408   cat <<_ACEOF
1409 \`configure' configures GNU Make 4.4 to adapt to many kinds of systems.
1410
1411 Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414 VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416 Defaults for the options are specified in brackets.
1417
1418 Configuration:
1419   -h, --help              display this help and exit
1420       --help=short        display options specific to this package
1421       --help=recursive    display the short help of all the included packages
1422   -V, --version           display version information and exit
1423   -q, --quiet, --silent   do not print \`checking ...' messages
1424       --cache-file=FILE   cache test results in FILE [disabled]
1425   -C, --config-cache      alias for \`--cache-file=config.cache'
1426   -n, --no-create         do not create output files
1427       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429 Installation directories:
1430   --prefix=PREFIX         install architecture-independent files in PREFIX
1431                           [$ac_default_prefix]
1432   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                           [PREFIX]
1434
1435 By default, \`make install' will install all the files in
1436 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438 for instance \`--prefix=\$HOME'.
1439
1440 For better control, use the options below.
1441
1442 Fine tuning of the installation directories:
1443   --bindir=DIR            user executables [EPREFIX/bin]
1444   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1445   --libexecdir=DIR        program executables [EPREFIX/libexec]
1446   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1447   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1448   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1449   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1450   --libdir=DIR            object code libraries [EPREFIX/lib]
1451   --includedir=DIR        C header files [PREFIX/include]
1452   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR           info documentation [DATAROOTDIR/info]
1456   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR            man documentation [DATAROOTDIR/man]
1458   --docdir=DIR            documentation root [DATAROOTDIR/doc/make]
1459   --htmldir=DIR           html documentation [DOCDIR]
1460   --dvidir=DIR            dvi documentation [DOCDIR]
1461   --pdfdir=DIR            pdf documentation [DOCDIR]
1462   --psdir=DIR             ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479   case $ac_init_help in
1480      short | recursive ) echo "Configuration of GNU Make 4.4:";;
1481    esac
1482   cat <<\_ACEOF
1483
1484 Optional Features:
1485   --disable-option-checking  ignore unrecognized --enable/--with options
1486   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1487   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1488   --enable-silent-rules   less verbose build output (undo: "make V=1")
1489   --disable-silent-rules  verbose build output (undo: "make V=0")
1490   --enable-dependency-tracking
1491                           do not reject slow dependency extractors
1492   --disable-dependency-tracking
1493                           speeds up one-time build
1494   --disable-largefile     omit support for large files
1495   --disable-year2038      omit support for timestamps past the year 2038
1496   --enable-cross-guesses={conservative|risky}
1497                           specify policy for cross-compilation guesses
1498   --disable-nls           do not use Native Language Support
1499   --disable-rpath         do not hardcode runtime library paths
1500   --enable-case-insensitive-file-system
1501                           assume file systems are case insensitive
1502   --disable-job-server    disallow recursive make communication during -jN
1503   --disable-load          disable support for the 'load' operation
1504   --disable-posix-spawn   disable support for posix_spawn()
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1511   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1512   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1513   --without-libintl-prefix     don't search for libintl in includedir and libdir
1514   --with-guile            Support GNU Guile for embedded scripting
1515   --with-customs=DIR      enable remote jobs via Customs--see README.customs
1516   --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1517
1518 Some influential environment variables:
1519   CC          C compiler command
1520   CFLAGS      C compiler flags
1521   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1522               nonstandard directory <lib dir>
1523   LIBS        libraries to pass to the linker, e.g. -l<library>
1524   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1525               you have headers in a nonstandard directory <include dir>
1526   CPP         C preprocessor
1527   PKG_CONFIG  path to pkg-config utility
1528   PKG_CONFIG_PATH
1529               directories to add to pkg-config's search path
1530   PKG_CONFIG_LIBDIR
1531               path overriding pkg-config's built-in search path
1532   GUILE_CFLAGS
1533               C compiler flags for GUILE, overriding pkg-config
1534   GUILE_LIBS  linker flags for GUILE, overriding pkg-config
1535
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1538
1539 Report bugs to <bug-make@gnu.org>.
1540 GNU Make home page: <https://www.gnu.org/software/make/>.
1541 General help using GNU software: <https://www.gnu.org/gethelp/>.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" ||
1550       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551       continue
1552     ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1558   # A ".." for each directory in $ac_dir_suffix.
1559   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560   case $ac_top_builddir_sub in
1561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563   esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571   .)  # We are building in place.
1572     ac_srcdir=.
1573     ac_top_srcdir=$ac_top_builddir_sub
1574     ac_abs_top_srcdir=$ac_pwd ;;
1575   [\\/]* | ?:[\\/]* )  # Absolute name.
1576     ac_srcdir=$srcdir$ac_dir_suffix;
1577     ac_top_srcdir=$srcdir
1578     ac_abs_top_srcdir=$srcdir ;;
1579   *) # Relative name.
1580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581     ac_top_srcdir=$ac_top_build_prefix$srcdir
1582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586     cd "$ac_dir" || { ac_status=$?; continue; }
1587     # Check for configure.gnu first; this name is used for a wrapper for
1588     # Metaconfig's "Configure" on case-insensitive file systems.
1589     if test -f "$ac_srcdir/configure.gnu"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592     elif test -f "$ac_srcdir/configure"; then
1593       echo &&
1594       $SHELL "$ac_srcdir/configure" --help=recursive
1595     else
1596       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597     fi || ac_status=$?
1598     cd "$ac_pwd" || { ac_status=$?; break; }
1599   done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604   cat <<\_ACEOF
1605 GNU Make configure 4.4
1606 generated by GNU Autoconf 2.71
1607
1608 Copyright (C) 2021 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612   exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   rm -f conftest.$ac_objext conftest.beam
1626   if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 printf "%s\n" "$ac_try_echo"; } >&5
1633   (eval "$ac_compile") 2>conftest.err
1634   ac_status=$?
1635   if test -s conftest.err; then
1636     grep -v '^ *+' conftest.err >conftest.er1
1637     cat conftest.er1 >&5
1638     mv -f conftest.er1 conftest.err
1639   fi
1640   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && {
1642          test -z "$ac_c_werror_flag" ||
1643          test ! -s conftest.err
1644        } && test -s conftest.$ac_objext
1645 then :
1646   ac_retval=0
1647 else $as_nop
1648   printf "%s\n" "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651         ac_retval=1
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_compile
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 printf %s "checking for $2... " >&6; }
1667 if eval test \${$3+y}
1668 then :
1669   printf %s "(cached) " >&6
1670 else $as_nop
1671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h.  */
1673 $4
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"
1677 then :
1678   eval "$3=yes"
1679 else $as_nop
1680   eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 printf "%s\n" "$ac_res" >&6; }
1687   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1695 {
1696   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697   if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705   ac_status=$?
1706   if test -s conftest.err; then
1707     grep -v '^ *+' conftest.err >conftest.er1
1708     cat conftest.er1 >&5
1709     mv -f conftest.er1 conftest.err
1710   fi
1711   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } > conftest.i && {
1713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714          test ! -s conftest.err
1715        }
1716 then :
1717   ac_retval=0
1718 else $as_nop
1719   printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722     ac_retval=1
1723 fi
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_cpp
1728
1729 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1730 # -------------------------------------------
1731 # Tests whether TYPE exists after having included INCLUDES, setting cache
1732 # variable VAR accordingly.
1733 ac_fn_c_check_type ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 printf %s "checking for $2... " >&6; }
1738 if eval test \${$3+y}
1739 then :
1740   printf %s "(cached) " >&6
1741 else $as_nop
1742   eval "$3=no"
1743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h.  */
1745 $4
1746 int
1747 main (void)
1748 {
1749 if (sizeof ($2))
1750          return 0;
1751   ;
1752   return 0;
1753 }
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"
1756 then :
1757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h.  */
1759 $4
1760 int
1761 main (void)
1762 {
1763 if (sizeof (($2)))
1764             return 0;
1765   ;
1766   return 0;
1767 }
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"
1770 then :
1771
1772 else $as_nop
1773   eval "$3=yes"
1774 fi
1775 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1778 fi
1779 eval ac_res=\$$3
1780                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 printf "%s\n" "$ac_res" >&6; }
1782   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783
1784 } # ac_fn_c_check_type
1785
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1790 {
1791   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1793   if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796   *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 printf "%s\n" "$ac_try_echo"; } >&5
1800   (eval "$ac_link") 2>conftest.err
1801   ac_status=$?
1802   if test -s conftest.err; then
1803     grep -v '^ *+' conftest.err >conftest.er1
1804     cat conftest.er1 >&5
1805     mv -f conftest.er1 conftest.err
1806   fi
1807   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808   test $ac_status = 0; } && {
1809          test -z "$ac_c_werror_flag" ||
1810          test ! -s conftest.err
1811        } && test -s conftest$ac_exeext && {
1812          test "$cross_compiling" = yes ||
1813          test -x conftest$ac_exeext
1814        }
1815 then :
1816   ac_retval=0
1817 else $as_nop
1818   printf "%s\n" "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821         ac_retval=1
1822 fi
1823   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825   # interfere with the next link command; also delete a directory that is
1826   # left behind by Apple's compiler.  We do this before executing the actions.
1827   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829   as_fn_set_status $ac_retval
1830
1831 } # ac_fn_c_try_link
1832
1833 # ac_fn_c_try_run LINENO
1834 # ----------------------
1835 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1836 # executables *can* be run.
1837 ac_fn_c_try_run ()
1838 {
1839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840   if { { ac_try="$ac_link"
1841 case "(($ac_try" in
1842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843   *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 printf "%s\n" "$ac_try_echo"; } >&5
1847   (eval "$ac_link") 2>&5
1848   ac_status=$?
1849   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1851   { { case "(($ac_try" in
1852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1853   *) ac_try_echo=$ac_try;;
1854 esac
1855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 printf "%s\n" "$ac_try_echo"; } >&5
1857   (eval "$ac_try") 2>&5
1858   ac_status=$?
1859   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; }; }
1861 then :
1862   ac_retval=0
1863 else $as_nop
1864   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1865        printf "%s\n" "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868        ac_retval=$ac_status
1869 fi
1870   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872   as_fn_set_status $ac_retval
1873
1874 } # ac_fn_c_try_run
1875
1876 # ac_fn_c_check_func LINENO FUNC VAR
1877 # ----------------------------------
1878 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1879 ac_fn_c_check_func ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 printf %s "checking for $2... " >&6; }
1884 if eval test \${$3+y}
1885 then :
1886   printf %s "(cached) " >&6
1887 else $as_nop
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1891    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1892 #define $2 innocuous_$2
1893
1894 /* System header to define __stub macros and hopefully few prototypes,
1895    which can conflict with char $2 (); below.  */
1896
1897 #include <limits.h>
1898 #undef $2
1899
1900 /* Override any GCC internal prototype to avoid an error.
1901    Use char because int might match the return type of a GCC
1902    builtin and then its argument prototype would still apply.  */
1903 #ifdef __cplusplus
1904 extern "C"
1905 #endif
1906 char $2 ();
1907 /* The GNU C library defines this for functions which it implements
1908     to always fail with ENOSYS.  Some functions are actually named
1909     something starting with __ and the normal name is an alias.  */
1910 #if defined __stub_$2 || defined __stub___$2
1911 choke me
1912 #endif
1913
1914 int
1915 main (void)
1916 {
1917 return $2 ();
1918   ;
1919   return 0;
1920 }
1921 _ACEOF
1922 if ac_fn_c_try_link "$LINENO"
1923 then :
1924   eval "$3=yes"
1925 else $as_nop
1926   eval "$3=no"
1927 fi
1928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1929     conftest$ac_exeext conftest.$ac_ext
1930 fi
1931 eval ac_res=\$$3
1932                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 printf "%s\n" "$ac_res" >&6; }
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936 } # ac_fn_c_check_func
1937
1938 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1939 # ------------------------------------------------------------------
1940 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1941 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1942 ac_fn_check_decl ()
1943 {
1944   ac_save_ac_compile="$ac_compile"
1945   if test -n "$ac_compile_for_check_decl"; then
1946     ac_compile="$ac_compile_for_check_decl"
1947   fi
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   as_decl_name=`echo $2|sed 's/ *(.*//'`
1950   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1951 printf %s "checking whether $as_decl_name is declared... " >&6; }
1952 if eval test \${$3+y}
1953 then :
1954   printf %s "(cached) " >&6
1955 else $as_nop
1956   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1957   eval ac_save_FLAGS=\$$6
1958   as_fn_append $6 " $5"
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 int
1963 main (void)
1964 {
1965 #ifndef $as_decl_name
1966 #ifdef __cplusplus
1967   (void) $as_decl_use;
1968 #else
1969   (void) $as_decl_name;
1970 #endif
1971 #endif
1972
1973   ;
1974   return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"
1978 then :
1979   eval "$3=yes"
1980 else $as_nop
1981   eval "$3=no"
1982 fi
1983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1984   eval $6=\$ac_save_FLAGS
1985
1986 fi
1987 eval ac_res=\$$3
1988                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 printf "%s\n" "$ac_res" >&6; }
1990   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991   ac_compile="$ac_save_ac_compile"
1992
1993 } # ac_fn_check_decl
1994
1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996 # ----------------------------------------------------
1997 # Tries to find if the field MEMBER exists in type AGGR, after including
1998 # INCLUDES, setting cache variable VAR accordingly.
1999 ac_fn_c_check_member ()
2000 {
2001   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003 printf %s "checking for $2.$3... " >&6; }
2004 if eval test \${$4+y}
2005 then :
2006   printf %s "(cached) " >&6
2007 else $as_nop
2008   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $5
2011 int
2012 main (void)
2013 {
2014 static $2 ac_aggr;
2015 if (ac_aggr.$3)
2016 return 0;
2017   ;
2018   return 0;
2019 }
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"
2022 then :
2023   eval "$4=yes"
2024 else $as_nop
2025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $5
2028 int
2029 main (void)
2030 {
2031 static $2 ac_aggr;
2032 if (sizeof ac_aggr.$3)
2033 return 0;
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"
2039 then :
2040   eval "$4=yes"
2041 else $as_nop
2042   eval "$4=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2045 fi
2046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2047 fi
2048 eval ac_res=\$$4
2049                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2050 printf "%s\n" "$ac_res" >&6; }
2051   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052
2053 } # ac_fn_c_check_member
2054 ac_configure_args_raw=
2055 for ac_arg
2056 do
2057   case $ac_arg in
2058   *\'*)
2059     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060   esac
2061   as_fn_append ac_configure_args_raw " '$ac_arg'"
2062 done
2063
2064 case $ac_configure_args_raw in
2065   *$as_nl*)
2066     ac_safe_unquote= ;;
2067   *)
2068     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
2069     ac_unsafe_a="$ac_unsafe_z#~"
2070     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2071     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2072 esac
2073
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2077
2078 It was created by GNU Make $as_me 4.4, which was
2079 generated by GNU Autoconf 2.71.  Invocation command line was
2080
2081   $ $0$ac_configure_args_raw
2082
2083 _ACEOF
2084 exec 5>>config.log
2085 {
2086 cat <<_ASUNAME
2087 ## --------- ##
2088 ## Platform. ##
2089 ## --------- ##
2090
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2099
2100 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2101 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2104 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2105 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2106 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2107
2108 _ASUNAME
2109
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   case $as_dir in #(((
2115     '') as_dir=./ ;;
2116     */) ;;
2117     *) as_dir=$as_dir/ ;;
2118   esac
2119     printf "%s\n" "PATH: $as_dir"
2120   done
2121 IFS=$as_save_IFS
2122
2123 } >&5
2124
2125 cat >&5 <<_ACEOF
2126
2127
2128 ## ----------- ##
2129 ## Core tests. ##
2130 ## ----------- ##
2131
2132 _ACEOF
2133
2134
2135 # Keep a trace of the command line.
2136 # Strip out --no-create and --no-recursion so they do not pile up.
2137 # Strip out --silent because we don't want to record it for future runs.
2138 # Also quote any args containing shell meta-characters.
2139 # Make two passes to allow for proper duplicate-argument suppression.
2140 ac_configure_args=
2141 ac_configure_args0=
2142 ac_configure_args1=
2143 ac_must_keep_next=false
2144 for ac_pass in 1 2
2145 do
2146   for ac_arg
2147   do
2148     case $ac_arg in
2149     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2150     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2151     | -silent | --silent | --silen | --sile | --sil)
2152       continue ;;
2153     *\'*)
2154       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2155     esac
2156     case $ac_pass in
2157     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2158     2)
2159       as_fn_append ac_configure_args1 " '$ac_arg'"
2160       if test $ac_must_keep_next = true; then
2161         ac_must_keep_next=false # Got value, back to normal.
2162       else
2163         case $ac_arg in
2164           *=* | --config-cache | -C | -disable-* | --disable-* \
2165           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2166           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2167           | -with-* | --with-* | -without-* | --without-* | --x)
2168             case "$ac_configure_args0 " in
2169               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2170             esac
2171             ;;
2172           -* ) ac_must_keep_next=true ;;
2173         esac
2174       fi
2175       as_fn_append ac_configure_args " '$ac_arg'"
2176       ;;
2177     esac
2178   done
2179 done
2180 { ac_configure_args0=; unset ac_configure_args0;}
2181 { ac_configure_args1=; unset ac_configure_args1;}
2182
2183 # When interrupted or exit'd, cleanup temporary files, and complete
2184 # config.log.  We remove comments because anyway the quotes in there
2185 # would cause problems or look ugly.
2186 # WARNING: Use '\'' to represent an apostrophe within the trap.
2187 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2188 trap 'exit_status=$?
2189   # Sanitize IFS.
2190   IFS=" ""      $as_nl"
2191   # Save into config.log some information that might help in debugging.
2192   {
2193     echo
2194
2195     printf "%s\n" "## ---------------- ##
2196 ## Cache variables. ##
2197 ## ---------------- ##"
2198     echo
2199     # The following way of writing the cache mishandles newlines in values,
2200 (
2201   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2202     eval ac_val=\$$ac_var
2203     case $ac_val in #(
2204     *${as_nl}*)
2205       case $ac_var in #(
2206       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2207 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2208       esac
2209       case $ac_var in #(
2210       _ | IFS | as_nl) ;; #(
2211       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2212       *) { eval $ac_var=; unset $ac_var;} ;;
2213       esac ;;
2214     esac
2215   done
2216   (set) 2>&1 |
2217     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2218     *${as_nl}ac_space=\ *)
2219       sed -n \
2220         "s/'\''/'\''\\\\'\'''\''/g;
2221           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2222       ;; #(
2223     *)
2224       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2225       ;;
2226     esac |
2227     sort
2228 )
2229     echo
2230
2231     printf "%s\n" "## ----------------- ##
2232 ## Output variables. ##
2233 ## ----------------- ##"
2234     echo
2235     for ac_var in $ac_subst_vars
2236     do
2237       eval ac_val=\$$ac_var
2238       case $ac_val in
2239       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2240       esac
2241       printf "%s\n" "$ac_var='\''$ac_val'\''"
2242     done | sort
2243     echo
2244
2245     if test -n "$ac_subst_files"; then
2246       printf "%s\n" "## ------------------- ##
2247 ## File substitutions. ##
2248 ## ------------------- ##"
2249       echo
2250       for ac_var in $ac_subst_files
2251       do
2252         eval ac_val=\$$ac_var
2253         case $ac_val in
2254         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255         esac
2256         printf "%s\n" "$ac_var='\''$ac_val'\''"
2257       done | sort
2258       echo
2259     fi
2260
2261     if test -s confdefs.h; then
2262       printf "%s\n" "## ----------- ##
2263 ## confdefs.h. ##
2264 ## ----------- ##"
2265       echo
2266       cat confdefs.h
2267       echo
2268     fi
2269     test "$ac_signal" != 0 &&
2270       printf "%s\n" "$as_me: caught signal $ac_signal"
2271     printf "%s\n" "$as_me: exit $exit_status"
2272   } >&5
2273   rm -f core *.core core.conftest.* &&
2274     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2275     exit $exit_status
2276 ' 0
2277 for ac_signal in 1 2 13 15; do
2278   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2279 done
2280 ac_signal=0
2281
2282 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2283 rm -f -r conftest* confdefs.h
2284
2285 printf "%s\n" "/* confdefs.h */" > confdefs.h
2286
2287 # Predefined preprocessor variables.
2288
2289 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2290
2291 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2292
2293 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2294
2295 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2296
2297 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2298
2299 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2300
2301
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2304 if test -n "$CONFIG_SITE"; then
2305   ac_site_files="$CONFIG_SITE"
2306 elif test "x$prefix" != xNONE; then
2307   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2308 else
2309   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2310 fi
2311
2312 for ac_site_file in $ac_site_files
2313 do
2314   case $ac_site_file in #(
2315   */*) :
2316      ;; #(
2317   *) :
2318     ac_site_file=./$ac_site_file ;;
2319 esac
2320   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2321     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2323     sed 's/^/| /' "$ac_site_file" >&5
2324     . "$ac_site_file" \
2325       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site script $ac_site_file
2328 See \`config.log' for more details" "$LINENO" 5; }
2329   fi
2330 done
2331
2332 if test -r "$cache_file"; then
2333   # Some versions of bash will fail to source /dev/null (special files
2334   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2335   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2338     case $cache_file in
2339       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340       *)                      . "./$cache_file";;
2341     esac
2342   fi
2343 else
2344   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2346   >$cache_file
2347 fi
2348
2349 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2350 # Test code for whether the C compiler supports C89 (global declarations)
2351 ac_c_conftest_c89_globals='
2352 /* Does the compiler advertise C89 conformance?
2353    Do not test the value of __STDC__, because some compilers set it to 0
2354    while being otherwise adequately conformant. */
2355 #if !defined __STDC__
2356 # error "Compiler does not advertise C89 conformance"
2357 #endif
2358
2359 #include <stddef.h>
2360 #include <stdarg.h>
2361 struct stat;
2362 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2363 struct buf { int x; };
2364 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2365 static char *e (p, i)
2366      char **p;
2367      int i;
2368 {
2369   return p[i];
2370 }
2371 static char *f (char * (*g) (char **, int), char **p, ...)
2372 {
2373   char *s;
2374   va_list v;
2375   va_start (v,p);
2376   s = g (p, va_arg (v,int));
2377   va_end (v);
2378   return s;
2379 }
2380
2381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2382    function prototypes and stuff, but not \xHH hex character constants.
2383    These do not provoke an error unfortunately, instead are silently treated
2384    as an "x".  The following induces an error, until -std is added to get
2385    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2386    array size at least.  It is necessary to write \x00 == 0 to get something
2387    that is true only with -std.  */
2388 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2389
2390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2391    inside strings and character constants.  */
2392 #define FOO(x) '\''x'\''
2393 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2394
2395 int test (int i, double x);
2396 struct s1 {int (*f) (int a);};
2397 struct s2 {int (*f) (double a);};
2398 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2399                int, int);'
2400
2401 # Test code for whether the C compiler supports C89 (body of main).
2402 ac_c_conftest_c89_main='
2403 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2404 '
2405
2406 # Test code for whether the C compiler supports C99 (global declarations)
2407 ac_c_conftest_c99_globals='
2408 // Does the compiler advertise C99 conformance?
2409 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2410 # error "Compiler does not advertise C99 conformance"
2411 #endif
2412
2413 #include <stdbool.h>
2414 extern int puts (const char *);
2415 extern int printf (const char *, ...);
2416 extern int dprintf (int, const char *, ...);
2417 extern void *malloc (size_t);
2418
2419 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2420 // dprintf is used instead of fprintf to avoid needing to declare
2421 // FILE and stderr.
2422 #define debug(...) dprintf (2, __VA_ARGS__)
2423 #define showlist(...) puts (#__VA_ARGS__)
2424 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2425 static void
2426 test_varargs_macros (void)
2427 {
2428   int x = 1234;
2429   int y = 5678;
2430   debug ("Flag");
2431   debug ("X = %d\n", x);
2432   showlist (The first, second, and third items.);
2433   report (x>y, "x is %d but y is %d", x, y);
2434 }
2435
2436 // Check long long types.
2437 #define BIG64 18446744073709551615ull
2438 #define BIG32 4294967295ul
2439 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2440 #if !BIG_OK
2441   #error "your preprocessor is broken"
2442 #endif
2443 #if BIG_OK
2444 #else
2445   #error "your preprocessor is broken"
2446 #endif
2447 static long long int bignum = -9223372036854775807LL;
2448 static unsigned long long int ubignum = BIG64;
2449
2450 struct incomplete_array
2451 {
2452   int datasize;
2453   double data[];
2454 };
2455
2456 struct named_init {
2457   int number;
2458   const wchar_t *name;
2459   double average;
2460 };
2461
2462 typedef const char *ccp;
2463
2464 static inline int
2465 test_restrict (ccp restrict text)
2466 {
2467   // See if C++-style comments work.
2468   // Iterate through items via the restricted pointer.
2469   // Also check for declarations in for loops.
2470   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2471     continue;
2472   return 0;
2473 }
2474
2475 // Check varargs and va_copy.
2476 static bool
2477 test_varargs (const char *format, ...)
2478 {
2479   va_list args;
2480   va_start (args, format);
2481   va_list args_copy;
2482   va_copy (args_copy, args);
2483
2484   const char *str = "";
2485   int number = 0;
2486   float fnumber = 0;
2487
2488   while (*format)
2489     {
2490       switch (*format++)
2491         {
2492         case '\''s'\'': // string
2493           str = va_arg (args_copy, const char *);
2494           break;
2495         case '\''d'\'': // int
2496           number = va_arg (args_copy, int);
2497           break;
2498         case '\''f'\'': // float
2499           fnumber = va_arg (args_copy, double);
2500           break;
2501         default:
2502           break;
2503         }
2504     }
2505   va_end (args_copy);
2506   va_end (args);
2507
2508   return *str && number && fnumber;
2509 }
2510 '
2511
2512 # Test code for whether the C compiler supports C99 (body of main).
2513 ac_c_conftest_c99_main='
2514   // Check bool.
2515   _Bool success = false;
2516   success |= (argc != 0);
2517
2518   // Check restrict.
2519   if (test_restrict ("String literal") == 0)
2520     success = true;
2521   char *restrict newvar = "Another string";
2522
2523   // Check varargs.
2524   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2525   test_varargs_macros ();
2526
2527   // Check flexible array members.
2528   struct incomplete_array *ia =
2529     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2530   ia->datasize = 10;
2531   for (int i = 0; i < ia->datasize; ++i)
2532     ia->data[i] = i * 1.234;
2533
2534   // Check named initializers.
2535   struct named_init ni = {
2536     .number = 34,
2537     .name = L"Test wide string",
2538     .average = 543.34343,
2539   };
2540
2541   ni.number = 58;
2542
2543   int dynamic_array[ni.number];
2544   dynamic_array[0] = argv[0][0];
2545   dynamic_array[ni.number - 1] = 543;
2546
2547   // work around unused variable warnings
2548   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2549          || dynamic_array[ni.number - 1] != 543);
2550 '
2551
2552 # Test code for whether the C compiler supports C11 (global declarations)
2553 ac_c_conftest_c11_globals='
2554 // Does the compiler advertise C11 conformance?
2555 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2556 # error "Compiler does not advertise C11 conformance"
2557 #endif
2558
2559 // Check _Alignas.
2560 char _Alignas (double) aligned_as_double;
2561 char _Alignas (0) no_special_alignment;
2562 extern char aligned_as_int;
2563 char _Alignas (0) _Alignas (int) aligned_as_int;
2564
2565 // Check _Alignof.
2566 enum
2567 {
2568   int_alignment = _Alignof (int),
2569   int_array_alignment = _Alignof (int[100]),
2570   char_alignment = _Alignof (char)
2571 };
2572 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2573
2574 // Check _Noreturn.
2575 int _Noreturn does_not_return (void) { for (;;) continue; }
2576
2577 // Check _Static_assert.
2578 struct test_static_assert
2579 {
2580   int x;
2581   _Static_assert (sizeof (int) <= sizeof (long int),
2582                   "_Static_assert does not work in struct");
2583   long int y;
2584 };
2585
2586 // Check UTF-8 literals.
2587 #define u8 syntax error!
2588 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2589
2590 // Check duplicate typedefs.
2591 typedef long *long_ptr;
2592 typedef long int *long_ptr;
2593 typedef long_ptr long_ptr;
2594
2595 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2596 struct anonymous
2597 {
2598   union {
2599     struct { int i; int j; };
2600     struct { int k; long int l; } w;
2601   };
2602   int m;
2603 } v1;
2604 '
2605
2606 # Test code for whether the C compiler supports C11 (body of main).
2607 ac_c_conftest_c11_main='
2608   _Static_assert ((offsetof (struct anonymous, i)
2609                    == offsetof (struct anonymous, w.k)),
2610                   "Anonymous union alignment botch");
2611   v1.i = 2;
2612   v1.w.k = 5;
2613   ok |= v1.i != 5;
2614 '
2615
2616 # Test code for whether the C compiler supports C11 (complete).
2617 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2618 ${ac_c_conftest_c99_globals}
2619 ${ac_c_conftest_c11_globals}
2620
2621 int
2622 main (int argc, char **argv)
2623 {
2624   int ok = 0;
2625   ${ac_c_conftest_c89_main}
2626   ${ac_c_conftest_c99_main}
2627   ${ac_c_conftest_c11_main}
2628   return ok;
2629 }
2630 "
2631
2632 # Test code for whether the C compiler supports C99 (complete).
2633 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2634 ${ac_c_conftest_c99_globals}
2635
2636 int
2637 main (int argc, char **argv)
2638 {
2639   int ok = 0;
2640   ${ac_c_conftest_c89_main}
2641   ${ac_c_conftest_c99_main}
2642   return ok;
2643 }
2644 "
2645
2646 # Test code for whether the C compiler supports C89 (complete).
2647 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2648
2649 int
2650 main (int argc, char **argv)
2651 {
2652   int ok = 0;
2653   ${ac_c_conftest_c89_main}
2654   return ok;
2655 }
2656 "
2657
2658 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2659 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2660 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2661 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2662 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2663 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2664 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2665 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2666 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2667 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2668 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2669 gt_needs="$gt_needs "
2670 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2671 as_fn_append ac_func_c_list " fork HAVE_FORK"
2672 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2673
2674 # Auxiliary files required by this configure script.
2675 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
2676
2677 # Locations in which to look for auxiliary files.
2678 ac_aux_dir_candidates="${srcdir}/build-aux"
2679
2680 # Search for a directory containing all of the required auxiliary files,
2681 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2682 # If we don't find one directory that contains all the files we need,
2683 # we report the set of missing files from the *first* directory in
2684 # $ac_aux_dir_candidates and give up.
2685 ac_missing_aux_files=""
2686 ac_first_candidate=:
2687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 as_found=false
2690 for as_dir in $ac_aux_dir_candidates
2691 do
2692   IFS=$as_save_IFS
2693   case $as_dir in #(((
2694     '') as_dir=./ ;;
2695     */) ;;
2696     *) as_dir=$as_dir/ ;;
2697   esac
2698   as_found=:
2699
2700   printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2701   ac_aux_dir_found=yes
2702   ac_install_sh=
2703   for ac_aux in $ac_aux_files
2704   do
2705     # As a special case, if "install-sh" is required, that requirement
2706     # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2707     # and $ac_install_sh is set appropriately for whichever one is found.
2708     if test x"$ac_aux" = x"install-sh"
2709     then
2710       if test -f "${as_dir}install-sh"; then
2711         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2712         ac_install_sh="${as_dir}install-sh -c"
2713       elif test -f "${as_dir}install.sh"; then
2714         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2715         ac_install_sh="${as_dir}install.sh -c"
2716       elif test -f "${as_dir}shtool"; then
2717         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2718         ac_install_sh="${as_dir}shtool install -c"
2719       else
2720         ac_aux_dir_found=no
2721         if $ac_first_candidate; then
2722           ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2723         else
2724           break
2725         fi
2726       fi
2727     else
2728       if test -f "${as_dir}${ac_aux}"; then
2729         printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2730       else
2731         ac_aux_dir_found=no
2732         if $ac_first_candidate; then
2733           ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2734         else
2735           break
2736         fi
2737       fi
2738     fi
2739   done
2740   if test "$ac_aux_dir_found" = yes; then
2741     ac_aux_dir="$as_dir"
2742     break
2743   fi
2744   ac_first_candidate=false
2745
2746   as_found=false
2747 done
2748 IFS=$as_save_IFS
2749 if $as_found
2750 then :
2751
2752 else $as_nop
2753   as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2754 fi
2755
2756
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 if test -f "${ac_aux_dir}config.guess"; then
2762   ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2763 fi
2764 if test -f "${ac_aux_dir}config.sub"; then
2765   ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2766 fi
2767 if test -f "$ac_aux_dir/configure"; then
2768   ac_configure="$SHELL ${ac_aux_dir}configure"
2769 fi
2770
2771 # Check that the precious variables saved in the cache have kept the same
2772 # value.
2773 ac_cache_corrupted=false
2774 for ac_var in $ac_precious_vars; do
2775   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2776   eval ac_new_set=\$ac_env_${ac_var}_set
2777   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2778   eval ac_new_val=\$ac_env_${ac_var}_value
2779   case $ac_old_set,$ac_new_set in
2780     set,)
2781       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2782 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2783       ac_cache_corrupted=: ;;
2784     ,set)
2785       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2786 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2787       ac_cache_corrupted=: ;;
2788     ,);;
2789     *)
2790       if test "x$ac_old_val" != "x$ac_new_val"; then
2791         # differences in whitespace do not lead to failure.
2792         ac_old_val_w=`echo x $ac_old_val`
2793         ac_new_val_w=`echo x $ac_new_val`
2794         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2795           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2796 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2797           ac_cache_corrupted=:
2798         else
2799           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2800 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2801           eval $ac_var=\$ac_old_val
2802         fi
2803         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2804 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2805         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2806 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2807       fi;;
2808   esac
2809   # Pass precious variables to config.status.
2810   if test "$ac_new_set" = set; then
2811     case $ac_new_val in
2812     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2813     *) ac_arg=$ac_var=$ac_new_val ;;
2814     esac
2815     case " $ac_configure_args " in
2816       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2817       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2818     esac
2819   fi
2820 done
2821 if $ac_cache_corrupted; then
2822   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2825 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2826   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2827             and start over" "$LINENO" 5
2828 fi
2829 ## -------------------- ##
2830 ## Main body of script. ##
2831 ## -------------------- ##
2832
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838
2839
2840
2841
2842
2843 # Autoconf setup
2844
2845
2846 ac_config_headers="$ac_config_headers src/config.h"
2847
2848
2849
2850
2851 # Automake setup
2852 # We have to enable "foreign" because ChangeLog is auto-generated
2853 # Automake 1.15 and gnulib don't get along: gnulib has some strange error
2854 # in the way it handles getloadavg.c which causes make distcheck to fail.
2855 # https://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00024.html
2856 am__api_version='1.16'
2857
2858
2859
2860   # Find a good install program.  We prefer a C program (faster),
2861 # so one script is as good as another.  But avoid the broken or
2862 # incompatible versions:
2863 # SysV /etc/install, /usr/sbin/install
2864 # SunOS /usr/etc/install
2865 # IRIX /sbin/install
2866 # AIX /bin/install
2867 # AmigaOS /C/install, which installs bootblocks on floppy discs
2868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2871 # OS/2's system install, which has a completely different semantic
2872 # ./install, which can be erroneously created by make from ./install.sh.
2873 # Reject install programs that cannot install multiple files.
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2875 printf %s "checking for a BSD-compatible install... " >&6; }
2876 if test -z "$INSTALL"; then
2877 if test ${ac_cv_path_install+y}
2878 then :
2879   printf %s "(cached) " >&6
2880 else $as_nop
2881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882 for as_dir in $PATH
2883 do
2884   IFS=$as_save_IFS
2885   case $as_dir in #(((
2886     '') as_dir=./ ;;
2887     */) ;;
2888     *) as_dir=$as_dir/ ;;
2889   esac
2890     # Account for fact that we put trailing slashes in our PATH walk.
2891 case $as_dir in #((
2892   ./ | /[cC]/* | \
2893   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2894   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2895   /usr/ucb/* ) ;;
2896   *)
2897     # OSF1 and SCO ODT 3.0 have their own names for install.
2898     # Don't use installbsd from OSF since it installs stuff as root
2899     # by default.
2900     for ac_prog in ginstall scoinst install; do
2901       for ac_exec_ext in '' $ac_executable_extensions; do
2902         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2903           if test $ac_prog = install &&
2904             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905             # AIX install.  It has an incompatible calling convention.
2906             :
2907           elif test $ac_prog = install &&
2908             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2909             # program-specific install script used by HP pwplus--don't use.
2910             :
2911           else
2912             rm -rf conftest.one conftest.two conftest.dir
2913             echo one > conftest.one
2914             echo two > conftest.two
2915             mkdir conftest.dir
2916             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2917               test -s conftest.one && test -s conftest.two &&
2918               test -s conftest.dir/conftest.one &&
2919               test -s conftest.dir/conftest.two
2920             then
2921               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2922               break 3
2923             fi
2924           fi
2925         fi
2926       done
2927     done
2928     ;;
2929 esac
2930
2931   done
2932 IFS=$as_save_IFS
2933
2934 rm -rf conftest.one conftest.two conftest.dir
2935
2936 fi
2937   if test ${ac_cv_path_install+y}; then
2938     INSTALL=$ac_cv_path_install
2939   else
2940     # As a last resort, use the slow shell script.  Don't cache a
2941     # value for INSTALL within a source directory, because that will
2942     # break other packages using the cache if that directory is
2943     # removed, or if the value is a relative name.
2944     INSTALL=$ac_install_sh
2945   fi
2946 fi
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2948 printf "%s\n" "$INSTALL" >&6; }
2949
2950 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2951 # It thinks the first close brace ends the variable substitution.
2952 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2953
2954 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2955
2956 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2957
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2959 printf %s "checking whether build environment is sane... " >&6; }
2960 # Reject unsafe characters in $srcdir or the absolute working directory
2961 # name.  Accept space and tab only in the latter.
2962 am_lf='
2963 '
2964 case `pwd` in
2965   *[\\\"\#\$\&\'\`$am_lf]*)
2966     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2967 esac
2968 case $srcdir in
2969   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2970     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2971 esac
2972
2973 # Do 'set' in a subshell so we don't clobber the current shell's
2974 # arguments.  Must try -L first in case configure is actually a
2975 # symlink; some systems play weird games with the mod time of symlinks
2976 # (eg FreeBSD returns the mod time of the symlink's containing
2977 # directory).
2978 if (
2979    am_has_slept=no
2980    for am_try in 1 2; do
2981      echo "timestamp, slept: $am_has_slept" > conftest.file
2982      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2983      if test "$*" = "X"; then
2984         # -L didn't work.
2985         set X `ls -t "$srcdir/configure" conftest.file`
2986      fi
2987      if test "$*" != "X $srcdir/configure conftest.file" \
2988         && test "$*" != "X conftest.file $srcdir/configure"; then
2989
2990         # If neither matched, then we have a broken ls.  This can happen
2991         # if, for instance, CONFIG_SHELL is bash and it inherits a
2992         # broken ls alias from the environment.  This has actually
2993         # happened.  Such a system could not be considered "sane".
2994         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2995   alias in your environment" "$LINENO" 5
2996      fi
2997      if test "$2" = conftest.file || test $am_try -eq 2; then
2998        break
2999      fi
3000      # Just in case.
3001      sleep 1
3002      am_has_slept=yes
3003    done
3004    test "$2" = conftest.file
3005    )
3006 then
3007    # Ok.
3008    :
3009 else
3010    as_fn_error $? "newly created file is older than distributed files!
3011 Check your system clock" "$LINENO" 5
3012 fi
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3014 printf "%s\n" "yes" >&6; }
3015 # If we didn't sleep, we still need to ensure time stamps of config.status and
3016 # generated files are strictly newer.
3017 am_sleep_pid=
3018 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3019   ( sleep 1 ) &
3020   am_sleep_pid=$!
3021 fi
3022
3023 rm -f conftest.file
3024
3025 test "$program_prefix" != NONE &&
3026   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3027 # Use a double $ so make ignores it.
3028 test "$program_suffix" != NONE &&
3029   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3030 # Double any \ or $.
3031 # By default was `s,x,x', remove it if useless.
3032 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3033 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3034
3035
3036 # Expand $ac_aux_dir to an absolute path.
3037 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3038
3039
3040   if test x"${MISSING+set}" != xset; then
3041   MISSING="\${SHELL} '$am_aux_dir/missing'"
3042 fi
3043 # Use eval to expand $SHELL
3044 if eval "$MISSING --is-lightweight"; then
3045   am_missing_run="$MISSING "
3046 else
3047   am_missing_run=
3048   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3049 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3050 fi
3051
3052 if test x"${install_sh+set}" != xset; then
3053   case $am_aux_dir in
3054   *\ * | *\     *)
3055     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3056   *)
3057     install_sh="\${SHELL} $am_aux_dir/install-sh"
3058   esac
3059 fi
3060
3061 # Installed binaries are usually stripped using 'strip' when the user
3062 # run "make install-strip".  However 'strip' might not be the right
3063 # tool to use in cross-compilation environments, therefore Automake
3064 # will honor the 'STRIP' environment variable to overrule this program.
3065 if test "$cross_compiling" != no; then
3066   if test -n "$ac_tool_prefix"; then
3067   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3068 set dummy ${ac_tool_prefix}strip; ac_word=$2
3069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 printf %s "checking for $ac_word... " >&6; }
3071 if test ${ac_cv_prog_STRIP+y}
3072 then :
3073   printf %s "(cached) " >&6
3074 else $as_nop
3075   if test -n "$STRIP"; then
3076   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3077 else
3078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079 for as_dir in $PATH
3080 do
3081   IFS=$as_save_IFS
3082   case $as_dir in #(((
3083     '') as_dir=./ ;;
3084     */) ;;
3085     *) as_dir=$as_dir/ ;;
3086   esac
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3089     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 printf "%s\n" "$STRIP" >&6; }
3103 else
3104   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 printf "%s\n" "no" >&6; }
3106 fi
3107
3108
3109 fi
3110 if test -z "$ac_cv_prog_STRIP"; then
3111   ac_ct_STRIP=$STRIP
3112   # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 printf %s "checking for $ac_word... " >&6; }
3116 if test ${ac_cv_prog_ac_ct_STRIP+y}
3117 then :
3118   printf %s "(cached) " >&6
3119 else $as_nop
3120   if test -n "$ac_ct_STRIP"; then
3121   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3122 else
3123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124 for as_dir in $PATH
3125 do
3126   IFS=$as_save_IFS
3127   case $as_dir in #(((
3128     '') as_dir=./ ;;
3129     */) ;;
3130     *) as_dir=$as_dir/ ;;
3131   esac
3132     for ac_exec_ext in '' $ac_executable_extensions; do
3133   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3134     ac_cv_prog_ac_ct_STRIP="strip"
3135     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3136     break 2
3137   fi
3138 done
3139   done
3140 IFS=$as_save_IFS
3141
3142 fi
3143 fi
3144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3145 if test -n "$ac_ct_STRIP"; then
3146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3147 printf "%s\n" "$ac_ct_STRIP" >&6; }
3148 else
3149   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 printf "%s\n" "no" >&6; }
3151 fi
3152
3153   if test "x$ac_ct_STRIP" = x; then
3154     STRIP=":"
3155   else
3156     case $cross_compiling:$ac_tool_warned in
3157 yes:)
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3159 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3160 ac_tool_warned=yes ;;
3161 esac
3162     STRIP=$ac_ct_STRIP
3163   fi
3164 else
3165   STRIP="$ac_cv_prog_STRIP"
3166 fi
3167
3168 fi
3169 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3170
3171
3172   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3173 printf %s "checking for a race-free mkdir -p... " >&6; }
3174 if test -z "$MKDIR_P"; then
3175   if test ${ac_cv_path_mkdir+y}
3176 then :
3177   printf %s "(cached) " >&6
3178 else $as_nop
3179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3181 do
3182   IFS=$as_save_IFS
3183   case $as_dir in #(((
3184     '') as_dir=./ ;;
3185     */) ;;
3186     *) as_dir=$as_dir/ ;;
3187   esac
3188     for ac_prog in mkdir gmkdir; do
3189          for ac_exec_ext in '' $ac_executable_extensions; do
3190            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3191            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3192              'mkdir ('*'coreutils) '* | \
3193              'BusyBox '* | \
3194              'mkdir (fileutils) '4.1*)
3195                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3196                break 3;;
3197            esac
3198          done
3199        done
3200   done
3201 IFS=$as_save_IFS
3202
3203 fi
3204
3205   test -d ./--version && rmdir ./--version
3206   if test ${ac_cv_path_mkdir+y}; then
3207     MKDIR_P="$ac_cv_path_mkdir -p"
3208   else
3209     # As a last resort, use the slow shell script.  Don't cache a
3210     # value for MKDIR_P within a source directory, because that will
3211     # break other packages using the cache if that directory is
3212     # removed, or if the value is a relative name.
3213     MKDIR_P="$ac_install_sh -d"
3214   fi
3215 fi
3216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3217 printf "%s\n" "$MKDIR_P" >&6; }
3218
3219 for ac_prog in gawk mawk nawk awk
3220 do
3221   # Extract the first word of "$ac_prog", so it can be a program name with args.
3222 set dummy $ac_prog; ac_word=$2
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 printf %s "checking for $ac_word... " >&6; }
3225 if test ${ac_cv_prog_AWK+y}
3226 then :
3227   printf %s "(cached) " >&6
3228 else $as_nop
3229   if test -n "$AWK"; then
3230   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235   IFS=$as_save_IFS
3236   case $as_dir in #(((
3237     '') as_dir=./ ;;
3238     */) ;;
3239     *) as_dir=$as_dir/ ;;
3240   esac
3241     for ac_exec_ext in '' $ac_executable_extensions; do
3242   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3243     ac_cv_prog_AWK="$ac_prog"
3244     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248   done
3249 IFS=$as_save_IFS
3250
3251 fi
3252 fi
3253 AWK=$ac_cv_prog_AWK
3254 if test -n "$AWK"; then
3255   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3256 printf "%s\n" "$AWK" >&6; }
3257 else
3258   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 printf "%s\n" "no" >&6; }
3260 fi
3261
3262
3263   test -n "$AWK" && break
3264 done
3265
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3267 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3268 set x ${MAKE-make}
3269 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3270 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3271 then :
3272   printf %s "(cached) " >&6
3273 else $as_nop
3274   cat >conftest.make <<\_ACEOF
3275 SHELL = /bin/sh
3276 all:
3277         @echo '@@@%%%=$(MAKE)=@@@%%%'
3278 _ACEOF
3279 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3280 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3281   *@@@%%%=?*=@@@%%%*)
3282     eval ac_cv_prog_make_${ac_make}_set=yes;;
3283   *)
3284     eval ac_cv_prog_make_${ac_make}_set=no;;
3285 esac
3286 rm -f conftest.make
3287 fi
3288 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3289   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 printf "%s\n" "yes" >&6; }
3291   SET_MAKE=
3292 else
3293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294 printf "%s\n" "no" >&6; }
3295   SET_MAKE="MAKE=${MAKE-make}"
3296 fi
3297
3298 rm -rf .tst 2>/dev/null
3299 mkdir .tst 2>/dev/null
3300 if test -d .tst; then
3301   am__leading_dot=.
3302 else
3303   am__leading_dot=_
3304 fi
3305 rmdir .tst 2>/dev/null
3306
3307 # Check whether --enable-silent-rules was given.
3308 if test ${enable_silent_rules+y}
3309 then :
3310   enableval=$enable_silent_rules;
3311 fi
3312
3313 case $enable_silent_rules in # (((
3314   yes) AM_DEFAULT_VERBOSITY=0;;
3315    no) AM_DEFAULT_VERBOSITY=1;;
3316     *) AM_DEFAULT_VERBOSITY=1;;
3317 esac
3318 am_make=${MAKE-make}
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3320 printf %s "checking whether $am_make supports nested variables... " >&6; }
3321 if test ${am_cv_make_support_nested_variables+y}
3322 then :
3323   printf %s "(cached) " >&6
3324 else $as_nop
3325   if printf "%s\n" 'TRUE=$(BAR$(V))
3326 BAR0=false
3327 BAR1=true
3328 V=1
3329 am__doit:
3330         @$(TRUE)
3331 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3332   am_cv_make_support_nested_variables=yes
3333 else
3334   am_cv_make_support_nested_variables=no
3335 fi
3336 fi
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3338 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3339 if test $am_cv_make_support_nested_variables = yes; then
3340     AM_V='$(V)'
3341   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3342 else
3343   AM_V=$AM_DEFAULT_VERBOSITY
3344   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3345 fi
3346 AM_BACKSLASH='\'
3347
3348 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3349   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3350   # is not polluted with repeated "-I."
3351   am__isrc=' -I$(srcdir)'
3352   # test to see if srcdir already configured
3353   if test -f $srcdir/config.status; then
3354     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3355   fi
3356 fi
3357
3358 # test whether we have cygpath
3359 if test -z "$CYGPATH_W"; then
3360   if (cygpath --version) >/dev/null 2>/dev/null; then
3361     CYGPATH_W='cygpath -w'
3362   else
3363     CYGPATH_W=echo
3364   fi
3365 fi
3366
3367
3368 # Define the identity of the package.
3369  PACKAGE='make'
3370  VERSION='4.4'
3371
3372
3373 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3374
3375
3376 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3377
3378 # Some tools Automake needs.
3379
3380 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3381
3382
3383 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3384
3385
3386 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3387
3388
3389 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3390
3391
3392 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3393
3394 # For better backward compatibility.  To be removed once Automake 1.9.x
3395 # dies out for good.  For more background, see:
3396 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3397 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3398 mkdir_p='$(MKDIR_P)'
3399
3400 # We need awk for the "check" target (and possibly the TAP driver).  The
3401 # system "awk" is bad on some platforms.
3402 # Always define AMTAR for backward compatibility.  Yes, it's still used
3403 # in the wild :-(  We should find a proper way to deprecate it ...
3404 AMTAR='$${TAR-tar}'
3405
3406
3407 # We'll loop over all known methods to create a tar archive until one works.
3408 _am_tools='gnutar  pax cpio none'
3409
3410 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3411
3412
3413
3414
3415
3416 # Variables for tags utilities; see am/tags.am
3417 if test -z "$CTAGS"; then
3418   CTAGS=ctags
3419 fi
3420
3421 if test -z "$ETAGS"; then
3422   ETAGS=etags
3423 fi
3424
3425 if test -z "$CSCOPE"; then
3426   CSCOPE=cscope
3427 fi
3428
3429
3430
3431 # POSIX will say in a future version that running "rm -f" with no argument
3432 # is OK; and we want to be able to make that assumption in our Makefile
3433 # recipes.  So use an aggressive probe to check that the usage we want is
3434 # actually supported "in the wild" to an acceptable degree.
3435 # See automake bug#10828.
3436 # To make any issue more visible, cause the running configure to be aborted
3437 # by default if the 'rm' program in use doesn't match our expectations; the
3438 # user can still override this though.
3439 if rm -f && rm -fr && rm -rf; then : OK; else
3440   cat >&2 <<'END'
3441 Oops!
3442
3443 Your 'rm' program seems unable to run without file operands specified
3444 on the command line, even when the '-f' option is present.  This is contrary
3445 to the behaviour of most rm programs out there, and not conforming with
3446 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3447
3448 Please tell bug-automake@gnu.org about your system, including the value
3449 of your $PATH and any error possibly output before this message.  This
3450 can help us improve future automake versions.
3451
3452 END
3453   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3454     echo 'Configuration will proceed anyway, since you have set the' >&2
3455     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3456     echo >&2
3457   else
3458     cat >&2 <<'END'
3459 Aborting the configuration process, to ensure you take notice of the issue.
3460
3461 You can download and install GNU coreutils to get an 'rm' implementation
3462 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3463
3464 If you want to complete the configuration process using your problematic
3465 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3466 to "yes", and re-run configure.
3467
3468 END
3469     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3470   fi
3471 fi
3472
3473
3474 # Checks for programs.
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484 DEPDIR="${am__leading_dot}deps"
3485
3486 ac_config_commands="$ac_config_commands depfiles"
3487
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3489 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3490 cat > confinc.mk << 'END'
3491 am__doit:
3492         @echo this is the am__doit target >confinc.out
3493 .PHONY: am__doit
3494 END
3495 am__include="#"
3496 am__quote=
3497 # BSD make does it like this.
3498 echo '.include "confinc.mk" # ignored' > confmf.BSD
3499 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3500 echo 'include confinc.mk # ignored' > confmf.GNU
3501 _am_result=no
3502 for s in GNU BSD; do
3503   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3504    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3505    ac_status=$?
3506    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507    (exit $ac_status); }
3508   case $?:`cat confinc.out 2>/dev/null` in #(
3509   '0:this is the am__doit target') :
3510     case $s in #(
3511   BSD) :
3512     am__include='.include' am__quote='"' ;; #(
3513   *) :
3514     am__include='include' am__quote='' ;;
3515 esac ;; #(
3516   *) :
3517      ;;
3518 esac
3519   if test "$am__include" != "#"; then
3520     _am_result="yes ($s style)"
3521     break
3522   fi
3523 done
3524 rm -f confinc.* confmf.*
3525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3526 printf "%s\n" "${_am_result}" >&6; }
3527
3528 # Check whether --enable-dependency-tracking was given.
3529 if test ${enable_dependency_tracking+y}
3530 then :
3531   enableval=$enable_dependency_tracking;
3532 fi
3533
3534 if test "x$enable_dependency_tracking" != xno; then
3535   am_depcomp="$ac_aux_dir/depcomp"
3536   AMDEPBACKSLASH='\'
3537   am__nodep='_no'
3538 fi
3539  if test "x$enable_dependency_tracking" != xno; then
3540   AMDEP_TRUE=
3541   AMDEP_FALSE='#'
3542 else
3543   AMDEP_TRUE='#'
3544   AMDEP_FALSE=
3545 fi
3546
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 if test -n "$ac_tool_prefix"; then
3554   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3555 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 printf %s "checking for $ac_word... " >&6; }
3558 if test ${ac_cv_prog_CC+y}
3559 then :
3560   printf %s "(cached) " >&6
3561 else $as_nop
3562   if test -n "$CC"; then
3563   ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3567 do
3568   IFS=$as_save_IFS
3569   case $as_dir in #(((
3570     '') as_dir=./ ;;
3571     */) ;;
3572     *) as_dir=$as_dir/ ;;
3573   esac
3574     for ac_exec_ext in '' $ac_executable_extensions; do
3575   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3576     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3577     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581   done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 printf "%s\n" "$CC" >&6; }
3590 else
3591   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 printf "%s\n" "no" >&6; }
3593 fi
3594
3595
3596 fi
3597 if test -z "$ac_cv_prog_CC"; then
3598   ac_ct_CC=$CC
3599   # Extract the first word of "gcc", so it can be a program name with args.
3600 set dummy gcc; ac_word=$2
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 printf %s "checking for $ac_word... " >&6; }
3603 if test ${ac_cv_prog_ac_ct_CC+y}
3604 then :
3605   printf %s "(cached) " >&6
3606 else $as_nop
3607   if test -n "$ac_ct_CC"; then
3608   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3609 else
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3612 do
3613   IFS=$as_save_IFS
3614   case $as_dir in #(((
3615     '') as_dir=./ ;;
3616     */) ;;
3617     *) as_dir=$as_dir/ ;;
3618   esac
3619     for ac_exec_ext in '' $ac_executable_extensions; do
3620   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3621     ac_cv_prog_ac_ct_CC="gcc"
3622     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3623     break 2
3624   fi
3625 done
3626   done
3627 IFS=$as_save_IFS
3628
3629 fi
3630 fi
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 printf "%s\n" "$ac_ct_CC" >&6; }
3635 else
3636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 printf "%s\n" "no" >&6; }
3638 fi
3639
3640   if test "x$ac_ct_CC" = x; then
3641     CC=""
3642   else
3643     case $cross_compiling:$ac_tool_warned in
3644 yes:)
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3646 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3647 ac_tool_warned=yes ;;
3648 esac
3649     CC=$ac_ct_CC
3650   fi
3651 else
3652   CC="$ac_cv_prog_CC"
3653 fi
3654
3655 if test -z "$CC"; then
3656           if test -n "$ac_tool_prefix"; then
3657     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3658 set dummy ${ac_tool_prefix}cc; ac_word=$2
3659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 printf %s "checking for $ac_word... " >&6; }
3661 if test ${ac_cv_prog_CC+y}
3662 then :
3663   printf %s "(cached) " >&6
3664 else $as_nop
3665   if test -n "$CC"; then
3666   ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   case $as_dir in #(((
3673     '') as_dir=./ ;;
3674     */) ;;
3675     *) as_dir=$as_dir/ ;;
3676   esac
3677     for ac_exec_ext in '' $ac_executable_extensions; do
3678   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3679     ac_cv_prog_CC="${ac_tool_prefix}cc"
3680     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3681     break 2
3682   fi
3683 done
3684   done
3685 IFS=$as_save_IFS
3686
3687 fi
3688 fi
3689 CC=$ac_cv_prog_CC
3690 if test -n "$CC"; then
3691   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3692 printf "%s\n" "$CC" >&6; }
3693 else
3694   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 printf "%s\n" "no" >&6; }
3696 fi
3697
3698
3699   fi
3700 fi
3701 if test -z "$CC"; then
3702   # Extract the first word of "cc", so it can be a program name with args.
3703 set dummy cc; ac_word=$2
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 printf %s "checking for $ac_word... " >&6; }
3706 if test ${ac_cv_prog_CC+y}
3707 then :
3708   printf %s "(cached) " >&6
3709 else $as_nop
3710   if test -n "$CC"; then
3711   ac_cv_prog_CC="$CC" # Let the user override the test.
3712 else
3713   ac_prog_rejected=no
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 for as_dir in $PATH
3716 do
3717   IFS=$as_save_IFS
3718   case $as_dir in #(((
3719     '') as_dir=./ ;;
3720     */) ;;
3721     *) as_dir=$as_dir/ ;;
3722   esac
3723     for ac_exec_ext in '' $ac_executable_extensions; do
3724   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3725     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726        ac_prog_rejected=yes
3727        continue
3728      fi
3729     ac_cv_prog_CC="cc"
3730     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734   done
3735 IFS=$as_save_IFS
3736
3737 if test $ac_prog_rejected = yes; then
3738   # We found a bogon in the path, so make sure we never use it.
3739   set dummy $ac_cv_prog_CC
3740   shift
3741   if test $# != 0; then
3742     # We chose a different compiler from the bogus one.
3743     # However, it has the same basename, so the bogon will be chosen
3744     # first if we set CC to just the basename; use the full file name.
3745     shift
3746     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3747   fi
3748 fi
3749 fi
3750 fi
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 printf "%s\n" "$CC" >&6; }
3755 else
3756   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 printf "%s\n" "no" >&6; }
3758 fi
3759
3760
3761 fi
3762 if test -z "$CC"; then
3763   if test -n "$ac_tool_prefix"; then
3764   for ac_prog in cl.exe
3765   do
3766     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 printf %s "checking for $ac_word... " >&6; }
3770 if test ${ac_cv_prog_CC+y}
3771 then :
3772   printf %s "(cached) " >&6
3773 else $as_nop
3774   if test -n "$CC"; then
3775   ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
3781   case $as_dir in #(((
3782     '') as_dir=./ ;;
3783     */) ;;
3784     *) as_dir=$as_dir/ ;;
3785   esac
3786     for ac_exec_ext in '' $ac_executable_extensions; do
3787   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3788     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3789     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793   done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 CC=$ac_cv_prog_CC
3799 if test -n "$CC"; then
3800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3801 printf "%s\n" "$CC" >&6; }
3802 else
3803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 printf "%s\n" "no" >&6; }
3805 fi
3806
3807
3808     test -n "$CC" && break
3809   done
3810 fi
3811 if test -z "$CC"; then
3812   ac_ct_CC=$CC
3813   for ac_prog in cl.exe
3814 do
3815   # Extract the first word of "$ac_prog", so it can be a program name with args.
3816 set dummy $ac_prog; ac_word=$2
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3818 printf %s "checking for $ac_word... " >&6; }
3819 if test ${ac_cv_prog_ac_ct_CC+y}
3820 then :
3821   printf %s "(cached) " >&6
3822 else $as_nop
3823   if test -n "$ac_ct_CC"; then
3824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825 else
3826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827 for as_dir in $PATH
3828 do
3829   IFS=$as_save_IFS
3830   case $as_dir in #(((
3831     '') as_dir=./ ;;
3832     */) ;;
3833     *) as_dir=$as_dir/ ;;
3834   esac
3835     for ac_exec_ext in '' $ac_executable_extensions; do
3836   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3837     ac_cv_prog_ac_ct_CC="$ac_prog"
3838     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842   done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3848 if test -n "$ac_ct_CC"; then
3849   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3850 printf "%s\n" "$ac_ct_CC" >&6; }
3851 else
3852   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 printf "%s\n" "no" >&6; }
3854 fi
3855
3856
3857   test -n "$ac_ct_CC" && break
3858 done
3859
3860   if test "x$ac_ct_CC" = x; then
3861     CC=""
3862   else
3863     case $cross_compiling:$ac_tool_warned in
3864 yes:)
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3867 ac_tool_warned=yes ;;
3868 esac
3869     CC=$ac_ct_CC
3870   fi
3871 fi
3872
3873 fi
3874 if test -z "$CC"; then
3875   if test -n "$ac_tool_prefix"; then
3876   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3877 set dummy ${ac_tool_prefix}clang; ac_word=$2
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 printf %s "checking for $ac_word... " >&6; }
3880 if test ${ac_cv_prog_CC+y}
3881 then :
3882   printf %s "(cached) " >&6
3883 else $as_nop
3884   if test -n "$CC"; then
3885   ac_cv_prog_CC="$CC" # Let the user override the test.
3886 else
3887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   case $as_dir in #(((
3892     '') as_dir=./ ;;
3893     */) ;;
3894     *) as_dir=$as_dir/ ;;
3895   esac
3896     for ac_exec_ext in '' $ac_executable_extensions; do
3897   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3898     ac_cv_prog_CC="${ac_tool_prefix}clang"
3899     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 CC=$ac_cv_prog_CC
3909 if test -n "$CC"; then
3910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3911 printf "%s\n" "$CC" >&6; }
3912 else
3913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 printf "%s\n" "no" >&6; }
3915 fi
3916
3917
3918 fi
3919 if test -z "$ac_cv_prog_CC"; then
3920   ac_ct_CC=$CC
3921   # Extract the first word of "clang", so it can be a program name with args.
3922 set dummy clang; ac_word=$2
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 printf %s "checking for $ac_word... " >&6; }
3925 if test ${ac_cv_prog_ac_ct_CC+y}
3926 then :
3927   printf %s "(cached) " >&6
3928 else $as_nop
3929   if test -n "$ac_ct_CC"; then
3930   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3934 do
3935   IFS=$as_save_IFS
3936   case $as_dir in #(((
3937     '') as_dir=./ ;;
3938     */) ;;
3939     *) as_dir=$as_dir/ ;;
3940   esac
3941     for ac_exec_ext in '' $ac_executable_extensions; do
3942   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3943     ac_cv_prog_ac_ct_CC="clang"
3944     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3945     break 2
3946   fi
3947 done
3948   done
3949 IFS=$as_save_IFS
3950
3951 fi
3952 fi
3953 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3954 if test -n "$ac_ct_CC"; then
3955   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3956 printf "%s\n" "$ac_ct_CC" >&6; }
3957 else
3958   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 printf "%s\n" "no" >&6; }
3960 fi
3961
3962   if test "x$ac_ct_CC" = x; then
3963     CC=""
3964   else
3965     case $cross_compiling:$ac_tool_warned in
3966 yes:)
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969 ac_tool_warned=yes ;;
3970 esac
3971     CC=$ac_ct_CC
3972   fi
3973 else
3974   CC="$ac_cv_prog_CC"
3975 fi
3976
3977 fi
3978
3979
3980 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3981 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3982 as_fn_error $? "no acceptable C compiler found in \$PATH
3983 See \`config.log' for more details" "$LINENO" 5; }
3984
3985 # Provide some information about the compiler.
3986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3987 set X $ac_compile
3988 ac_compiler=$2
3989 for ac_option in --version -v -V -qversion -version; do
3990   { { ac_try="$ac_compiler $ac_option >&5"
3991 case "(($ac_try" in
3992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993   *) ac_try_echo=$ac_try;;
3994 esac
3995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3996 printf "%s\n" "$ac_try_echo"; } >&5
3997   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3998   ac_status=$?
3999   if test -s conftest.err; then
4000     sed '10a\
4001 ... rest of stderr output deleted ...
4002          10q' conftest.err >conftest.er1
4003     cat conftest.er1 >&5
4004   fi
4005   rm -f conftest.er1 conftest.err
4006   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007   test $ac_status = 0; }
4008 done
4009
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h.  */
4012
4013 int
4014 main (void)
4015 {
4016
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 ac_clean_files_save=$ac_clean_files
4022 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4023 # Try to create an executable without -o first, disregard a.out.
4024 # It will help us diagnose broken compilers, and finding out an intuition
4025 # of exeext.
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4027 printf %s "checking whether the C compiler works... " >&6; }
4028 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4029
4030 # The possible output files:
4031 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4032
4033 ac_rmfiles=
4034 for ac_file in $ac_files
4035 do
4036   case $ac_file in
4037     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4038     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4039   esac
4040 done
4041 rm -f $ac_rmfiles
4042
4043 if { { ac_try="$ac_link_default"
4044 case "(($ac_try" in
4045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046   *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 printf "%s\n" "$ac_try_echo"; } >&5
4050   (eval "$ac_link_default") 2>&5
4051   ac_status=$?
4052   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053   test $ac_status = 0; }
4054 then :
4055   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4056 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4057 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4058 # so that the user can short-circuit this test for compilers unknown to
4059 # Autoconf.
4060 for ac_file in $ac_files ''
4061 do
4062   test -f "$ac_file" || continue
4063   case $ac_file in
4064     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4065         ;;
4066     [ab].out )
4067         # We found the default executable, but exeext='' is most
4068         # certainly right.
4069         break;;
4070     *.* )
4071         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4072         then :; else
4073            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4074         fi
4075         # We set ac_cv_exeext here because the later test for it is not
4076         # safe: cross compilers may not add the suffix if given an `-o'
4077         # argument, so we may need to know it at that point already.
4078         # Even if this section looks crufty: it has the advantage of
4079         # actually working.
4080         break;;
4081     * )
4082         break;;
4083   esac
4084 done
4085 test "$ac_cv_exeext" = no && ac_cv_exeext=
4086
4087 else $as_nop
4088   ac_file=''
4089 fi
4090 if test -z "$ac_file"
4091 then :
4092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 printf "%s\n" "no" >&6; }
4094 printf "%s\n" "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error 77 "C compiler cannot create executables
4100 See \`config.log' for more details" "$LINENO" 5; }
4101 else $as_nop
4102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4103 printf "%s\n" "yes" >&6; }
4104 fi
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4106 printf %s "checking for C compiler default output file name... " >&6; }
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4108 printf "%s\n" "$ac_file" >&6; }
4109 ac_exeext=$ac_cv_exeext
4110
4111 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4112 ac_clean_files=$ac_clean_files_save
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114 printf %s "checking for suffix of executables... " >&6; }
4115 if { { ac_try="$ac_link"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121 printf "%s\n" "$ac_try_echo"; } >&5
4122   (eval "$ac_link") 2>&5
4123   ac_status=$?
4124   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125   test $ac_status = 0; }
4126 then :
4127   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4128 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4129 # work properly (i.e., refer to `conftest.exe'), while it won't with
4130 # `rm'.
4131 for ac_file in conftest.exe conftest conftest.*; do
4132   test -f "$ac_file" || continue
4133   case $ac_file in
4134     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4135     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4136           break;;
4137     * ) break;;
4138   esac
4139 done
4140 else $as_nop
4141   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4143 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4144 See \`config.log' for more details" "$LINENO" 5; }
4145 fi
4146 rm -f conftest conftest$ac_cv_exeext
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4148 printf "%s\n" "$ac_cv_exeext" >&6; }
4149
4150 rm -f conftest.$ac_ext
4151 EXEEXT=$ac_cv_exeext
4152 ac_exeext=$EXEEXT
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h.  */
4155 #include <stdio.h>
4156 int
4157 main (void)
4158 {
4159 FILE *f = fopen ("conftest.out", "w");
4160  return ferror (f) || fclose (f) != 0;
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 ac_clean_files="$ac_clean_files conftest.out"
4167 # Check that the compiler produces executables we can run.  If not, either
4168 # the compiler is broken, or we cross compile.
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4170 printf %s "checking whether we are cross compiling... " >&6; }
4171 if test "$cross_compiling" != yes; then
4172   { { ac_try="$ac_link"
4173 case "(($ac_try" in
4174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175   *) ac_try_echo=$ac_try;;
4176 esac
4177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178 printf "%s\n" "$ac_try_echo"; } >&5
4179   (eval "$ac_link") 2>&5
4180   ac_status=$?
4181   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4182   test $ac_status = 0; }
4183   if { ac_try='./conftest$ac_cv_exeext'
4184   { { case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 printf "%s\n" "$ac_try_echo"; } >&5
4190   (eval "$ac_try") 2>&5
4191   ac_status=$?
4192   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193   test $ac_status = 0; }; }; then
4194     cross_compiling=no
4195   else
4196     if test "$cross_compiling" = maybe; then
4197         cross_compiling=yes
4198     else
4199         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4200 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4201 as_fn_error 77 "cannot run C compiled programs.
4202 If you meant to cross compile, use \`--host'.
4203 See \`config.log' for more details" "$LINENO" 5; }
4204     fi
4205   fi
4206 fi
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4208 printf "%s\n" "$cross_compiling" >&6; }
4209
4210 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4211 ac_clean_files=$ac_clean_files_save
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4213 printf %s "checking for suffix of object files... " >&6; }
4214 if test ${ac_cv_objext+y}
4215 then :
4216   printf %s "(cached) " >&6
4217 else $as_nop
4218   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4219 /* end confdefs.h.  */
4220
4221 int
4222 main (void)
4223 {
4224
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.o conftest.obj
4230 if { { ac_try="$ac_compile"
4231 case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4236 printf "%s\n" "$ac_try_echo"; } >&5
4237   (eval "$ac_compile") 2>&5
4238   ac_status=$?
4239   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4240   test $ac_status = 0; }
4241 then :
4242   for ac_file in conftest.o conftest.obj conftest.*; do
4243   test -f "$ac_file" || continue;
4244   case $ac_file in
4245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4246     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4247        break;;
4248   esac
4249 done
4250 else $as_nop
4251   printf "%s\n" "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4253
4254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4256 as_fn_error $? "cannot compute suffix of object files: cannot compile
4257 See \`config.log' for more details" "$LINENO" 5; }
4258 fi
4259 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4260 fi
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4262 printf "%s\n" "$ac_cv_objext" >&6; }
4263 OBJEXT=$ac_cv_objext
4264 ac_objext=$OBJEXT
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4266 printf %s "checking whether the compiler supports GNU C... " >&6; }
4267 if test ${ac_cv_c_compiler_gnu+y}
4268 then :
4269   printf %s "(cached) " >&6
4270 else $as_nop
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273
4274 int
4275 main (void)
4276 {
4277 #ifndef __GNUC__
4278        choke me
4279 #endif
4280
4281   ;
4282   return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_c_try_compile "$LINENO"
4286 then :
4287   ac_compiler_gnu=yes
4288 else $as_nop
4289   ac_compiler_gnu=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294 fi
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4296 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298
4299 if test $ac_compiler_gnu = yes; then
4300   GCC=yes
4301 else
4302   GCC=
4303 fi
4304 ac_test_CFLAGS=${CFLAGS+y}
4305 ac_save_CFLAGS=$CFLAGS
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4307 printf %s "checking whether $CC accepts -g... " >&6; }
4308 if test ${ac_cv_prog_cc_g+y}
4309 then :
4310   printf %s "(cached) " >&6
4311 else $as_nop
4312   ac_save_c_werror_flag=$ac_c_werror_flag
4313    ac_c_werror_flag=yes
4314    ac_cv_prog_cc_g=no
4315    CFLAGS="-g"
4316    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h.  */
4318
4319 int
4320 main (void)
4321 {
4322
4323   ;
4324   return 0;
4325 }
4326 _ACEOF
4327 if ac_fn_c_try_compile "$LINENO"
4328 then :
4329   ac_cv_prog_cc_g=yes
4330 else $as_nop
4331   CFLAGS=""
4332       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h.  */
4334
4335 int
4336 main (void)
4337 {
4338
4339   ;
4340   return 0;
4341 }
4342 _ACEOF
4343 if ac_fn_c_try_compile "$LINENO"
4344 then :
4345
4346 else $as_nop
4347   ac_c_werror_flag=$ac_save_c_werror_flag
4348          CFLAGS="-g"
4349          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351
4352 int
4353 main (void)
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"
4361 then :
4362   ac_cv_prog_cc_g=yes
4363 fi
4364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4369    ac_c_werror_flag=$ac_save_c_werror_flag
4370 fi
4371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4372 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4373 if test $ac_test_CFLAGS; then
4374   CFLAGS=$ac_save_CFLAGS
4375 elif test $ac_cv_prog_cc_g = yes; then
4376   if test "$GCC" = yes; then
4377     CFLAGS="-g -O2"
4378   else
4379     CFLAGS="-g"
4380   fi
4381 else
4382   if test "$GCC" = yes; then
4383     CFLAGS="-O2"
4384   else
4385     CFLAGS=
4386   fi
4387 fi
4388 ac_prog_cc_stdc=no
4389 if test x$ac_prog_cc_stdc = xno
4390 then :
4391   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4392 printf %s "checking for $CC option to enable C11 features... " >&6; }
4393 if test ${ac_cv_prog_cc_c11+y}
4394 then :
4395   printf %s "(cached) " >&6
4396 else $as_nop
4397   ac_cv_prog_cc_c11=no
4398 ac_save_CC=$CC
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h.  */
4401 $ac_c_conftest_c11_program
4402 _ACEOF
4403 for ac_arg in '' -std=gnu11
4404 do
4405   CC="$ac_save_CC $ac_arg"
4406   if ac_fn_c_try_compile "$LINENO"
4407 then :
4408   ac_cv_prog_cc_c11=$ac_arg
4409 fi
4410 rm -f core conftest.err conftest.$ac_objext conftest.beam
4411   test "x$ac_cv_prog_cc_c11" != "xno" && break
4412 done
4413 rm -f conftest.$ac_ext
4414 CC=$ac_save_CC
4415 fi
4416
4417 if test "x$ac_cv_prog_cc_c11" = xno
4418 then :
4419   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4420 printf "%s\n" "unsupported" >&6; }
4421 else $as_nop
4422   if test "x$ac_cv_prog_cc_c11" = x
4423 then :
4424   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4425 printf "%s\n" "none needed" >&6; }
4426 else $as_nop
4427   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4428 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4429      CC="$CC $ac_cv_prog_cc_c11"
4430 fi
4431   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4432   ac_prog_cc_stdc=c11
4433 fi
4434 fi
4435 if test x$ac_prog_cc_stdc = xno
4436 then :
4437   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4438 printf %s "checking for $CC option to enable C99 features... " >&6; }
4439 if test ${ac_cv_prog_cc_c99+y}
4440 then :
4441   printf %s "(cached) " >&6
4442 else $as_nop
4443   ac_cv_prog_cc_c99=no
4444 ac_save_CC=$CC
4445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447 $ac_c_conftest_c99_program
4448 _ACEOF
4449 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4450 do
4451   CC="$ac_save_CC $ac_arg"
4452   if ac_fn_c_try_compile "$LINENO"
4453 then :
4454   ac_cv_prog_cc_c99=$ac_arg
4455 fi
4456 rm -f core conftest.err conftest.$ac_objext conftest.beam
4457   test "x$ac_cv_prog_cc_c99" != "xno" && break
4458 done
4459 rm -f conftest.$ac_ext
4460 CC=$ac_save_CC
4461 fi
4462
4463 if test "x$ac_cv_prog_cc_c99" = xno
4464 then :
4465   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4466 printf "%s\n" "unsupported" >&6; }
4467 else $as_nop
4468   if test "x$ac_cv_prog_cc_c99" = x
4469 then :
4470   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4471 printf "%s\n" "none needed" >&6; }
4472 else $as_nop
4473   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4474 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4475      CC="$CC $ac_cv_prog_cc_c99"
4476 fi
4477   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4478   ac_prog_cc_stdc=c99
4479 fi
4480 fi
4481 if test x$ac_prog_cc_stdc = xno
4482 then :
4483   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4484 printf %s "checking for $CC option to enable C89 features... " >&6; }
4485 if test ${ac_cv_prog_cc_c89+y}
4486 then :
4487   printf %s "(cached) " >&6
4488 else $as_nop
4489   ac_cv_prog_cc_c89=no
4490 ac_save_CC=$CC
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 $ac_c_conftest_c89_program
4494 _ACEOF
4495 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4496 do
4497   CC="$ac_save_CC $ac_arg"
4498   if ac_fn_c_try_compile "$LINENO"
4499 then :
4500   ac_cv_prog_cc_c89=$ac_arg
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.beam
4503   test "x$ac_cv_prog_cc_c89" != "xno" && break
4504 done
4505 rm -f conftest.$ac_ext
4506 CC=$ac_save_CC
4507 fi
4508
4509 if test "x$ac_cv_prog_cc_c89" = xno
4510 then :
4511   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4512 printf "%s\n" "unsupported" >&6; }
4513 else $as_nop
4514   if test "x$ac_cv_prog_cc_c89" = x
4515 then :
4516   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4517 printf "%s\n" "none needed" >&6; }
4518 else $as_nop
4519   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4520 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4521      CC="$CC $ac_cv_prog_cc_c89"
4522 fi
4523   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4524   ac_prog_cc_stdc=c89
4525 fi
4526 fi
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534
4535   ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4541 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4542 if test ${am_cv_prog_cc_c_o+y}
4543 then :
4544   printf %s "(cached) " >&6
4545 else $as_nop
4546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h.  */
4548
4549 int
4550 main (void)
4551 {
4552
4553   ;
4554   return 0;
4555 }
4556 _ACEOF
4557   # Make sure it works both with $CC and with simple cc.
4558   # Following AC_PROG_CC_C_O, we do the test twice because some
4559   # compilers refuse to overwrite an existing .o file with -o,
4560   # though they will create one.
4561   am_cv_prog_cc_c_o=yes
4562   for am_i in 1 2; do
4563     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4564    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4565    ac_status=$?
4566    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567    (exit $ac_status); } \
4568          && test -f conftest2.$ac_objext; then
4569       : OK
4570     else
4571       am_cv_prog_cc_c_o=no
4572       break
4573     fi
4574   done
4575   rm -f core conftest*
4576   unset am_i
4577 fi
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4579 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4580 if test "$am_cv_prog_cc_c_o" != yes; then
4581    # Losing compiler, so override with the script.
4582    # FIXME: It is wrong to rewrite CC.
4583    # But if we don't then we get into trouble of one sort or another.
4584    # A longer-term fix would be to have automake use am__CC in this case,
4585    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4586    CC="$am_aux_dir/compile $CC"
4587 fi
4588 ac_ext=c
4589 ac_cpp='$CPP $CPPFLAGS'
4590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4593
4594
4595
4596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
4597 printf %s "checking whether the compiler is clang... " >&6; }
4598 if test ${gl_cv_compiler_clang+y}
4599 then :
4600   printf %s "(cached) " >&6
4601 else $as_nop
4602                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h.  */
4604
4605            #ifdef __clang__
4606            barfbarf
4607            #endif
4608
4609 int
4610 main (void)
4611 {
4612
4613   ;
4614   return 0;
4615 }
4616
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"
4619 then :
4620   gl_cv_compiler_clang=no
4621 else $as_nop
4622   gl_cv_compiler_clang=yes
4623 fi
4624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4625
4626 fi
4627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
4628 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
4629
4630
4631   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
4632 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
4633 if test ${gl_cv_compiler_check_decl_option+y}
4634 then :
4635   printf %s "(cached) " >&6
4636 else $as_nop
4637   if test $gl_cv_compiler_clang = yes; then
4638                      save_ac_compile="$ac_compile"
4639        ac_compile="$ac_compile -Werror=implicit-function-declaration"
4640                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h.  */
4642
4643 int
4644 main (void)
4645 {
4646
4647   ;
4648   return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_compile "$LINENO"
4652 then :
4653   gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
4654 else $as_nop
4655   gl_cv_compiler_check_decl_option=none
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4658        ac_compile="$save_ac_compile"
4659      else
4660        gl_cv_compiler_check_decl_option=none
4661      fi
4662
4663 fi
4664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
4665 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
4666   if test "x$gl_cv_compiler_check_decl_option" != xnone; then
4667     ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
4668   else
4669     ac_compile_for_check_decl="$ac_compile"
4670   fi
4671
4672
4673 depcc="$CC"   am_compiler_list=
4674
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4676 printf %s "checking dependency style of $depcc... " >&6; }
4677 if test ${am_cv_CC_dependencies_compiler_type+y}
4678 then :
4679   printf %s "(cached) " >&6
4680 else $as_nop
4681   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4682   # We make a subdir and do the tests there.  Otherwise we can end up
4683   # making bogus files that we don't know about and never remove.  For
4684   # instance it was reported that on HP-UX the gcc test will end up
4685   # making a dummy file named 'D' -- because '-MD' means "put the output
4686   # in D".
4687   rm -rf conftest.dir
4688   mkdir conftest.dir
4689   # Copy depcomp to subdir because otherwise we won't find it if we're
4690   # using a relative directory.
4691   cp "$am_depcomp" conftest.dir
4692   cd conftest.dir
4693   # We will build objects and dependencies in a subdirectory because
4694   # it helps to detect inapplicable dependency modes.  For instance
4695   # both Tru64's cc and ICC support -MD to output dependencies as a
4696   # side effect of compilation, but ICC will put the dependencies in
4697   # the current directory while Tru64 will put them in the object
4698   # directory.
4699   mkdir sub
4700
4701   am_cv_CC_dependencies_compiler_type=none
4702   if test "$am_compiler_list" = ""; then
4703      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4704   fi
4705   am__universal=false
4706   case " $depcc " in #(
4707      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4708      esac
4709
4710   for depmode in $am_compiler_list; do
4711     # Setup a source with many dependencies, because some compilers
4712     # like to wrap large dependency lists on column 80 (with \), and
4713     # we should not choose a depcomp mode which is confused by this.
4714     #
4715     # We need to recreate these files for each test, as the compiler may
4716     # overwrite some of them when testing with obscure command lines.
4717     # This happens at least with the AIX C compiler.
4718     : > sub/conftest.c
4719     for i in 1 2 3 4 5 6; do
4720       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4721       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4722       # Solaris 10 /bin/sh.
4723       echo '/* dummy */' > sub/conftst$i.h
4724     done
4725     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4726
4727     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4728     # mode.  It turns out that the SunPro C++ compiler does not properly
4729     # handle '-M -o', and we need to detect this.  Also, some Intel
4730     # versions had trouble with output in subdirs.
4731     am__obj=sub/conftest.${OBJEXT-o}
4732     am__minus_obj="-o $am__obj"
4733     case $depmode in
4734     gcc)
4735       # This depmode causes a compiler race in universal mode.
4736       test "$am__universal" = false || continue
4737       ;;
4738     nosideeffect)
4739       # After this tag, mechanisms are not by side-effect, so they'll
4740       # only be used when explicitly requested.
4741       if test "x$enable_dependency_tracking" = xyes; then
4742         continue
4743       else
4744         break
4745       fi
4746       ;;
4747     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4748       # This compiler won't grok '-c -o', but also, the minuso test has
4749       # not run yet.  These depmodes are late enough in the game, and
4750       # so weak that their functioning should not be impacted.
4751       am__obj=conftest.${OBJEXT-o}
4752       am__minus_obj=
4753       ;;
4754     none) break ;;
4755     esac
4756     if depmode=$depmode \
4757        source=sub/conftest.c object=$am__obj \
4758        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4759        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4760          >/dev/null 2>conftest.err &&
4761        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4762        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4763        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4764        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4765       # icc doesn't choke on unknown options, it will just issue warnings
4766       # or remarks (even with -Werror).  So we grep stderr for any message
4767       # that says an option was ignored or not supported.
4768       # When given -MP, icc 7.0 and 7.1 complain thusly:
4769       #   icc: Command line warning: ignoring option '-M'; no argument required
4770       # The diagnosis changed in icc 8.0:
4771       #   icc: Command line remark: option '-MP' not supported
4772       if (grep 'ignoring option' conftest.err ||
4773           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4774         am_cv_CC_dependencies_compiler_type=$depmode
4775         break
4776       fi
4777     fi
4778   done
4779
4780   cd ..
4781   rm -rf conftest.dir
4782 else
4783   am_cv_CC_dependencies_compiler_type=none
4784 fi
4785
4786 fi
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4788 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4789 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4790
4791  if
4792   test "x$enable_dependency_tracking" != xno \
4793   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4794   am__fastdepCC_TRUE=
4795   am__fastdepCC_FALSE='#'
4796 else
4797   am__fastdepCC_TRUE='#'
4798   am__fastdepCC_FALSE=
4799 fi
4800
4801
4802
4803 ac_header= ac_cache=
4804 for ac_item in $ac_header_c_list
4805 do
4806   if test $ac_cache; then
4807     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4808     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4809       printf "%s\n" "#define $ac_item 1" >> confdefs.h
4810     fi
4811     ac_header= ac_cache=
4812   elif test $ac_header; then
4813     ac_cache=$ac_item
4814   else
4815     ac_header=$ac_item
4816   fi
4817 done
4818
4819
4820
4821
4822
4823
4824
4825
4826 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4827 then :
4828
4829 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4830
4831 fi
4832
4833
4834
4835
4836
4837
4838   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4839 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4840 if test ${ac_cv_safe_to_define___extensions__+y}
4841 then :
4842   printf %s "(cached) " >&6
4843 else $as_nop
4844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h.  */
4846
4847 #         define __EXTENSIONS__ 1
4848           $ac_includes_default
4849 int
4850 main (void)
4851 {
4852
4853   ;
4854   return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"
4858 then :
4859   ac_cv_safe_to_define___extensions__=yes
4860 else $as_nop
4861   ac_cv_safe_to_define___extensions__=no
4862 fi
4863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4864 fi
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4866 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4867
4868   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4869 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4870 if test ${ac_cv_should_define__xopen_source+y}
4871 then :
4872   printf %s "(cached) " >&6
4873 else $as_nop
4874   ac_cv_should_define__xopen_source=no
4875     if test $ac_cv_header_wchar_h = yes
4876 then :
4877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h.  */
4879
4880           #include <wchar.h>
4881           mbstate_t x;
4882 int
4883 main (void)
4884 {
4885
4886   ;
4887   return 0;
4888 }
4889 _ACEOF
4890 if ac_fn_c_try_compile "$LINENO"
4891 then :
4892
4893 else $as_nop
4894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h.  */
4896
4897             #define _XOPEN_SOURCE 500
4898             #include <wchar.h>
4899             mbstate_t x;
4900 int
4901 main (void)
4902 {
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_compile "$LINENO"
4909 then :
4910   ac_cv_should_define__xopen_source=yes
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4913 fi
4914 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4915 fi
4916 fi
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4918 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4919
4920   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4921
4922   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4923
4924   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4925
4926   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4927
4928   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4929
4930   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4931
4932   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4933
4934   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4935
4936   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4937
4938   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4939
4940   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4941
4942   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4943
4944   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4945
4946   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4947
4948   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4949
4950   if test $ac_cv_header_minix_config_h = yes
4951 then :
4952   MINIX=yes
4953     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4954
4955     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4956
4957     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4958
4959 else $as_nop
4960   MINIX=
4961 fi
4962   if test $ac_cv_safe_to_define___extensions__ = yes
4963 then :
4964   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4965
4966 fi
4967   if test $ac_cv_should_define__xopen_source = yes
4968 then :
4969   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4970
4971 fi
4972
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 if test -n "$ac_tool_prefix"; then
4979   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4980 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 printf %s "checking for $ac_word... " >&6; }
4983 if test ${ac_cv_prog_CC+y}
4984 then :
4985   printf %s "(cached) " >&6
4986 else $as_nop
4987   if test -n "$CC"; then
4988   ac_cv_prog_CC="$CC" # Let the user override the test.
4989 else
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH
4992 do
4993   IFS=$as_save_IFS
4994   case $as_dir in #(((
4995     '') as_dir=./ ;;
4996     */) ;;
4997     *) as_dir=$as_dir/ ;;
4998   esac
4999     for ac_exec_ext in '' $ac_executable_extensions; do
5000   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5001     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5002     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006   done
5007 IFS=$as_save_IFS
5008
5009 fi
5010 fi
5011 CC=$ac_cv_prog_CC
5012 if test -n "$CC"; then
5013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014 printf "%s\n" "$CC" >&6; }
5015 else
5016   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 printf "%s\n" "no" >&6; }
5018 fi
5019
5020
5021 fi
5022 if test -z "$ac_cv_prog_CC"; then
5023   ac_ct_CC=$CC
5024   # Extract the first word of "gcc", so it can be a program name with args.
5025 set dummy gcc; ac_word=$2
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 printf %s "checking for $ac_word... " >&6; }
5028 if test ${ac_cv_prog_ac_ct_CC+y}
5029 then :
5030   printf %s "(cached) " >&6
5031 else $as_nop
5032   if test -n "$ac_ct_CC"; then
5033   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038   IFS=$as_save_IFS
5039   case $as_dir in #(((
5040     '') as_dir=./ ;;
5041     */) ;;
5042     *) as_dir=$as_dir/ ;;
5043   esac
5044     for ac_exec_ext in '' $ac_executable_extensions; do
5045   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5046     ac_cv_prog_ac_ct_CC="gcc"
5047     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5048     break 2
5049   fi
5050 done
5051   done
5052 IFS=$as_save_IFS
5053
5054 fi
5055 fi
5056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5057 if test -n "$ac_ct_CC"; then
5058   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5059 printf "%s\n" "$ac_ct_CC" >&6; }
5060 else
5061   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 printf "%s\n" "no" >&6; }
5063 fi
5064
5065   if test "x$ac_ct_CC" = x; then
5066     CC=""
5067   else
5068     case $cross_compiling:$ac_tool_warned in
5069 yes:)
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5071 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5072 ac_tool_warned=yes ;;
5073 esac
5074     CC=$ac_ct_CC
5075   fi
5076 else
5077   CC="$ac_cv_prog_CC"
5078 fi
5079
5080 if test -z "$CC"; then
5081           if test -n "$ac_tool_prefix"; then
5082     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}cc; ac_word=$2
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 printf %s "checking for $ac_word... " >&6; }
5086 if test ${ac_cv_prog_CC+y}
5087 then :
5088   printf %s "(cached) " >&6
5089 else $as_nop
5090   if test -n "$CC"; then
5091   ac_cv_prog_CC="$CC" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   case $as_dir in #(((
5098     '') as_dir=./ ;;
5099     */) ;;
5100     *) as_dir=$as_dir/ ;;
5101   esac
5102     for ac_exec_ext in '' $ac_executable_extensions; do
5103   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5104     ac_cv_prog_CC="${ac_tool_prefix}cc"
5105     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109   done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 CC=$ac_cv_prog_CC
5115 if test -n "$CC"; then
5116   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5117 printf "%s\n" "$CC" >&6; }
5118 else
5119   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 printf "%s\n" "no" >&6; }
5121 fi
5122
5123
5124   fi
5125 fi
5126 if test -z "$CC"; then
5127   # Extract the first word of "cc", so it can be a program name with args.
5128 set dummy cc; ac_word=$2
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 printf %s "checking for $ac_word... " >&6; }
5131 if test ${ac_cv_prog_CC+y}
5132 then :
5133   printf %s "(cached) " >&6
5134 else $as_nop
5135   if test -n "$CC"; then
5136   ac_cv_prog_CC="$CC" # Let the user override the test.
5137 else
5138   ac_prog_rejected=no
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   case $as_dir in #(((
5144     '') as_dir=./ ;;
5145     */) ;;
5146     *) as_dir=$as_dir/ ;;
5147   esac
5148     for ac_exec_ext in '' $ac_executable_extensions; do
5149   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5150     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5151        ac_prog_rejected=yes
5152        continue
5153      fi
5154     ac_cv_prog_CC="cc"
5155     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159   done
5160 IFS=$as_save_IFS
5161
5162 if test $ac_prog_rejected = yes; then
5163   # We found a bogon in the path, so make sure we never use it.
5164   set dummy $ac_cv_prog_CC
5165   shift
5166   if test $# != 0; then
5167     # We chose a different compiler from the bogus one.
5168     # However, it has the same basename, so the bogon will be chosen
5169     # first if we set CC to just the basename; use the full file name.
5170     shift
5171     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5172   fi
5173 fi
5174 fi
5175 fi
5176 CC=$ac_cv_prog_CC
5177 if test -n "$CC"; then
5178   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5179 printf "%s\n" "$CC" >&6; }
5180 else
5181   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 printf "%s\n" "no" >&6; }
5183 fi
5184
5185
5186 fi
5187 if test -z "$CC"; then
5188   if test -n "$ac_tool_prefix"; then
5189   for ac_prog in cl.exe
5190   do
5191     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5194 printf %s "checking for $ac_word... " >&6; }
5195 if test ${ac_cv_prog_CC+y}
5196 then :
5197   printf %s "(cached) " >&6
5198 else $as_nop
5199   if test -n "$CC"; then
5200   ac_cv_prog_CC="$CC" # Let the user override the test.
5201 else
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH
5204 do
5205   IFS=$as_save_IFS
5206   case $as_dir in #(((
5207     '') as_dir=./ ;;
5208     */) ;;
5209     *) as_dir=$as_dir/ ;;
5210   esac
5211     for ac_exec_ext in '' $ac_executable_extensions; do
5212   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5213     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5214     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218   done
5219 IFS=$as_save_IFS
5220
5221 fi
5222 fi
5223 CC=$ac_cv_prog_CC
5224 if test -n "$CC"; then
5225   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5226 printf "%s\n" "$CC" >&6; }
5227 else
5228   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 printf "%s\n" "no" >&6; }
5230 fi
5231
5232
5233     test -n "$CC" && break
5234   done
5235 fi
5236 if test -z "$CC"; then
5237   ac_ct_CC=$CC
5238   for ac_prog in cl.exe
5239 do
5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
5241 set dummy $ac_prog; ac_word=$2
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 printf %s "checking for $ac_word... " >&6; }
5244 if test ${ac_cv_prog_ac_ct_CC+y}
5245 then :
5246   printf %s "(cached) " >&6
5247 else $as_nop
5248   if test -n "$ac_ct_CC"; then
5249   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5253 do
5254   IFS=$as_save_IFS
5255   case $as_dir in #(((
5256     '') as_dir=./ ;;
5257     */) ;;
5258     *) as_dir=$as_dir/ ;;
5259   esac
5260     for ac_exec_ext in '' $ac_executable_extensions; do
5261   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5262     ac_cv_prog_ac_ct_CC="$ac_prog"
5263     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5264     break 2
5265   fi
5266 done
5267   done
5268 IFS=$as_save_IFS
5269
5270 fi
5271 fi
5272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5273 if test -n "$ac_ct_CC"; then
5274   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5275 printf "%s\n" "$ac_ct_CC" >&6; }
5276 else
5277   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 printf "%s\n" "no" >&6; }
5279 fi
5280
5281
5282   test -n "$ac_ct_CC" && break
5283 done
5284
5285   if test "x$ac_ct_CC" = x; then
5286     CC=""
5287   else
5288     case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned=yes ;;
5293 esac
5294     CC=$ac_ct_CC
5295   fi
5296 fi
5297
5298 fi
5299 if test -z "$CC"; then
5300   if test -n "$ac_tool_prefix"; then
5301   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5302 set dummy ${ac_tool_prefix}clang; ac_word=$2
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 printf %s "checking for $ac_word... " >&6; }
5305 if test ${ac_cv_prog_CC+y}
5306 then :
5307   printf %s "(cached) " >&6
5308 else $as_nop
5309   if test -n "$CC"; then
5310   ac_cv_prog_CC="$CC" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   case $as_dir in #(((
5317     '') as_dir=./ ;;
5318     */) ;;
5319     *) as_dir=$as_dir/ ;;
5320   esac
5321     for ac_exec_ext in '' $ac_executable_extensions; do
5322   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323     ac_cv_prog_CC="${ac_tool_prefix}clang"
5324     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5325     break 2
5326   fi
5327 done
5328   done
5329 IFS=$as_save_IFS
5330
5331 fi
5332 fi
5333 CC=$ac_cv_prog_CC
5334 if test -n "$CC"; then
5335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5336 printf "%s\n" "$CC" >&6; }
5337 else
5338   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 printf "%s\n" "no" >&6; }
5340 fi
5341
5342
5343 fi
5344 if test -z "$ac_cv_prog_CC"; then
5345   ac_ct_CC=$CC
5346   # Extract the first word of "clang", so it can be a program name with args.
5347 set dummy clang; ac_word=$2
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349 printf %s "checking for $ac_word... " >&6; }
5350 if test ${ac_cv_prog_ac_ct_CC+y}
5351 then :
5352   printf %s "(cached) " >&6
5353 else $as_nop
5354   if test -n "$ac_ct_CC"; then
5355   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5356 else
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358 for as_dir in $PATH
5359 do
5360   IFS=$as_save_IFS
5361   case $as_dir in #(((
5362     '') as_dir=./ ;;
5363     */) ;;
5364     *) as_dir=$as_dir/ ;;
5365   esac
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5368     ac_cv_prog_ac_ct_CC="clang"
5369     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373   done
5374 IFS=$as_save_IFS
5375
5376 fi
5377 fi
5378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5379 if test -n "$ac_ct_CC"; then
5380   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5381 printf "%s\n" "$ac_ct_CC" >&6; }
5382 else
5383   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 printf "%s\n" "no" >&6; }
5385 fi
5386
5387   if test "x$ac_ct_CC" = x; then
5388     CC=""
5389   else
5390     case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396     CC=$ac_ct_CC
5397   fi
5398 else
5399   CC="$ac_cv_prog_CC"
5400 fi
5401
5402 fi
5403
5404
5405 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5406 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5407 as_fn_error $? "no acceptable C compiler found in \$PATH
5408 See \`config.log' for more details" "$LINENO" 5; }
5409
5410 # Provide some information about the compiler.
5411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5412 set X $ac_compile
5413 ac_compiler=$2
5414 for ac_option in --version -v -V -qversion -version; do
5415   { { ac_try="$ac_compiler $ac_option >&5"
5416 case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5421 printf "%s\n" "$ac_try_echo"; } >&5
5422   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5423   ac_status=$?
5424   if test -s conftest.err; then
5425     sed '10a\
5426 ... rest of stderr output deleted ...
5427          10q' conftest.err >conftest.er1
5428     cat conftest.er1 >&5
5429   fi
5430   rm -f conftest.er1 conftest.err
5431   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5432   test $ac_status = 0; }
5433 done
5434
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5436 printf %s "checking whether the compiler supports GNU C... " >&6; }
5437 if test ${ac_cv_c_compiler_gnu+y}
5438 then :
5439   printf %s "(cached) " >&6
5440 else $as_nop
5441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442 /* end confdefs.h.  */
5443
5444 int
5445 main (void)
5446 {
5447 #ifndef __GNUC__
5448        choke me
5449 #endif
5450
5451   ;
5452   return 0;
5453 }
5454 _ACEOF
5455 if ac_fn_c_try_compile "$LINENO"
5456 then :
5457   ac_compiler_gnu=yes
5458 else $as_nop
5459   ac_compiler_gnu=no
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5462 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5463
5464 fi
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5466 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5468
5469 if test $ac_compiler_gnu = yes; then
5470   GCC=yes
5471 else
5472   GCC=
5473 fi
5474 ac_test_CFLAGS=${CFLAGS+y}
5475 ac_save_CFLAGS=$CFLAGS
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5477 printf %s "checking whether $CC accepts -g... " >&6; }
5478 if test ${ac_cv_prog_cc_g+y}
5479 then :
5480   printf %s "(cached) " >&6
5481 else $as_nop
5482   ac_save_c_werror_flag=$ac_c_werror_flag
5483    ac_c_werror_flag=yes
5484    ac_cv_prog_cc_g=no
5485    CFLAGS="-g"
5486    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h.  */
5488
5489 int
5490 main (void)
5491 {
5492
5493   ;
5494   return 0;
5495 }
5496 _ACEOF
5497 if ac_fn_c_try_compile "$LINENO"
5498 then :
5499   ac_cv_prog_cc_g=yes
5500 else $as_nop
5501   CFLAGS=""
5502       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503 /* end confdefs.h.  */
5504
5505 int
5506 main (void)
5507 {
5508
5509   ;
5510   return 0;
5511 }
5512 _ACEOF
5513 if ac_fn_c_try_compile "$LINENO"
5514 then :
5515
5516 else $as_nop
5517   ac_c_werror_flag=$ac_save_c_werror_flag
5518          CFLAGS="-g"
5519          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h.  */
5521
5522 int
5523 main (void)
5524 {
5525
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"
5531 then :
5532   ac_cv_prog_cc_g=yes
5533 fi
5534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5537 fi
5538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5539    ac_c_werror_flag=$ac_save_c_werror_flag
5540 fi
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5542 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5543 if test $ac_test_CFLAGS; then
5544   CFLAGS=$ac_save_CFLAGS
5545 elif test $ac_cv_prog_cc_g = yes; then
5546   if test "$GCC" = yes; then
5547     CFLAGS="-g -O2"
5548   else
5549     CFLAGS="-g"
5550   fi
5551 else
5552   if test "$GCC" = yes; then
5553     CFLAGS="-O2"
5554   else
5555     CFLAGS=
5556   fi
5557 fi
5558 ac_prog_cc_stdc=no
5559 if test x$ac_prog_cc_stdc = xno
5560 then :
5561   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5562 printf %s "checking for $CC option to enable C11 features... " >&6; }
5563 if test ${ac_cv_prog_cc_c11+y}
5564 then :
5565   printf %s "(cached) " >&6
5566 else $as_nop
5567   ac_cv_prog_cc_c11=no
5568 ac_save_CC=$CC
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h.  */
5571 $ac_c_conftest_c11_program
5572 _ACEOF
5573 for ac_arg in '' -std=gnu11
5574 do
5575   CC="$ac_save_CC $ac_arg"
5576   if ac_fn_c_try_compile "$LINENO"
5577 then :
5578   ac_cv_prog_cc_c11=$ac_arg
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam
5581   test "x$ac_cv_prog_cc_c11" != "xno" && break
5582 done
5583 rm -f conftest.$ac_ext
5584 CC=$ac_save_CC
5585 fi
5586
5587 if test "x$ac_cv_prog_cc_c11" = xno
5588 then :
5589   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5590 printf "%s\n" "unsupported" >&6; }
5591 else $as_nop
5592   if test "x$ac_cv_prog_cc_c11" = x
5593 then :
5594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5595 printf "%s\n" "none needed" >&6; }
5596 else $as_nop
5597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5598 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5599      CC="$CC $ac_cv_prog_cc_c11"
5600 fi
5601   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5602   ac_prog_cc_stdc=c11
5603 fi
5604 fi
5605 if test x$ac_prog_cc_stdc = xno
5606 then :
5607   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5608 printf %s "checking for $CC option to enable C99 features... " >&6; }
5609 if test ${ac_cv_prog_cc_c99+y}
5610 then :
5611   printf %s "(cached) " >&6
5612 else $as_nop
5613   ac_cv_prog_cc_c99=no
5614 ac_save_CC=$CC
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h.  */
5617 $ac_c_conftest_c99_program
5618 _ACEOF
5619 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5620 do
5621   CC="$ac_save_CC $ac_arg"
5622   if ac_fn_c_try_compile "$LINENO"
5623 then :
5624   ac_cv_prog_cc_c99=$ac_arg
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.beam
5627   test "x$ac_cv_prog_cc_c99" != "xno" && break
5628 done
5629 rm -f conftest.$ac_ext
5630 CC=$ac_save_CC
5631 fi
5632
5633 if test "x$ac_cv_prog_cc_c99" = xno
5634 then :
5635   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5636 printf "%s\n" "unsupported" >&6; }
5637 else $as_nop
5638   if test "x$ac_cv_prog_cc_c99" = x
5639 then :
5640   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5641 printf "%s\n" "none needed" >&6; }
5642 else $as_nop
5643   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5644 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5645      CC="$CC $ac_cv_prog_cc_c99"
5646 fi
5647   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5648   ac_prog_cc_stdc=c99
5649 fi
5650 fi
5651 if test x$ac_prog_cc_stdc = xno
5652 then :
5653   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5654 printf %s "checking for $CC option to enable C89 features... " >&6; }
5655 if test ${ac_cv_prog_cc_c89+y}
5656 then :
5657   printf %s "(cached) " >&6
5658 else $as_nop
5659   ac_cv_prog_cc_c89=no
5660 ac_save_CC=$CC
5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h.  */
5663 $ac_c_conftest_c89_program
5664 _ACEOF
5665 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5666 do
5667   CC="$ac_save_CC $ac_arg"
5668   if ac_fn_c_try_compile "$LINENO"
5669 then :
5670   ac_cv_prog_cc_c89=$ac_arg
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.beam
5673   test "x$ac_cv_prog_cc_c89" != "xno" && break
5674 done
5675 rm -f conftest.$ac_ext
5676 CC=$ac_save_CC
5677 fi
5678
5679 if test "x$ac_cv_prog_cc_c89" = xno
5680 then :
5681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5682 printf "%s\n" "unsupported" >&6; }
5683 else $as_nop
5684   if test "x$ac_cv_prog_cc_c89" = x
5685 then :
5686   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5687 printf "%s\n" "none needed" >&6; }
5688 else $as_nop
5689   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5690 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5691      CC="$CC $ac_cv_prog_cc_c89"
5692 fi
5693   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5694   ac_prog_cc_stdc=c89
5695 fi
5696 fi
5697
5698 ac_ext=c
5699 ac_cpp='$CPP $CPPFLAGS'
5700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703
5704
5705   ac_ext=c
5706 ac_cpp='$CPP $CPPFLAGS'
5707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5711 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5712 if test ${am_cv_prog_cc_c_o+y}
5713 then :
5714   printf %s "(cached) " >&6
5715 else $as_nop
5716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h.  */
5718
5719 int
5720 main (void)
5721 {
5722
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727   # Make sure it works both with $CC and with simple cc.
5728   # Following AC_PROG_CC_C_O, we do the test twice because some
5729   # compilers refuse to overwrite an existing .o file with -o,
5730   # though they will create one.
5731   am_cv_prog_cc_c_o=yes
5732   for am_i in 1 2; do
5733     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5734    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5735    ac_status=$?
5736    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737    (exit $ac_status); } \
5738          && test -f conftest2.$ac_objext; then
5739       : OK
5740     else
5741       am_cv_prog_cc_c_o=no
5742       break
5743     fi
5744   done
5745   rm -f core conftest*
5746   unset am_i
5747 fi
5748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5749 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5750 if test "$am_cv_prog_cc_c_o" != yes; then
5751    # Losing compiler, so override with the script.
5752    # FIXME: It is wrong to rewrite CC.
5753    # But if we don't then we get into trouble of one sort or another.
5754    # A longer-term fix would be to have automake use am__CC in this case,
5755    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5756    CC="$am_aux_dir/compile $CC"
5757 fi
5758 ac_ext=c
5759 ac_cpp='$CPP $CPPFLAGS'
5760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763
5764
5765
5766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5767 printf %s "checking whether the compiler is clang... " >&6; }
5768 if test ${gl_cv_compiler_clang+y}
5769 then :
5770   printf %s "(cached) " >&6
5771 else $as_nop
5772                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h.  */
5774
5775            #ifdef __clang__
5776            barfbarf
5777            #endif
5778
5779 int
5780 main (void)
5781 {
5782
5783   ;
5784   return 0;
5785 }
5786
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"
5789 then :
5790   gl_cv_compiler_clang=no
5791 else $as_nop
5792   gl_cv_compiler_clang=yes
5793 fi
5794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5795
5796 fi
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5798 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5799
5800
5801   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5802 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5803 if test ${gl_cv_compiler_check_decl_option+y}
5804 then :
5805   printf %s "(cached) " >&6
5806 else $as_nop
5807   if test $gl_cv_compiler_clang = yes; then
5808                      save_ac_compile="$ac_compile"
5809        ac_compile="$ac_compile -Werror=implicit-function-declaration"
5810                      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h.  */
5812
5813 int
5814 main (void)
5815 {
5816
5817   ;
5818   return 0;
5819 }
5820 _ACEOF
5821 if ac_fn_c_try_compile "$LINENO"
5822 then :
5823   gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5824 else $as_nop
5825   gl_cv_compiler_check_decl_option=none
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5828        ac_compile="$save_ac_compile"
5829      else
5830        gl_cv_compiler_check_decl_option=none
5831      fi
5832
5833 fi
5834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5835 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5836   if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5837     ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5838   else
5839     ac_compile_for_check_decl="$ac_compile"
5840   fi
5841
5842
5843 depcc="$CC"   am_compiler_list=
5844
5845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5846 printf %s "checking dependency style of $depcc... " >&6; }
5847 if test ${am_cv_CC_dependencies_compiler_type+y}
5848 then :
5849   printf %s "(cached) " >&6
5850 else $as_nop
5851   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5852   # We make a subdir and do the tests there.  Otherwise we can end up
5853   # making bogus files that we don't know about and never remove.  For
5854   # instance it was reported that on HP-UX the gcc test will end up
5855   # making a dummy file named 'D' -- because '-MD' means "put the output
5856   # in D".
5857   rm -rf conftest.dir
5858   mkdir conftest.dir
5859   # Copy depcomp to subdir because otherwise we won't find it if we're
5860   # using a relative directory.
5861   cp "$am_depcomp" conftest.dir
5862   cd conftest.dir
5863   # We will build objects and dependencies in a subdirectory because
5864   # it helps to detect inapplicable dependency modes.  For instance
5865   # both Tru64's cc and ICC support -MD to output dependencies as a
5866   # side effect of compilation, but ICC will put the dependencies in
5867   # the current directory while Tru64 will put them in the object
5868   # directory.
5869   mkdir sub
5870
5871   am_cv_CC_dependencies_compiler_type=none
5872   if test "$am_compiler_list" = ""; then
5873      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5874   fi
5875   am__universal=false
5876   case " $depcc " in #(
5877      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5878      esac
5879
5880   for depmode in $am_compiler_list; do
5881     # Setup a source with many dependencies, because some compilers
5882     # like to wrap large dependency lists on column 80 (with \), and
5883     # we should not choose a depcomp mode which is confused by this.
5884     #
5885     # We need to recreate these files for each test, as the compiler may
5886     # overwrite some of them when testing with obscure command lines.
5887     # This happens at least with the AIX C compiler.
5888     : > sub/conftest.c
5889     for i in 1 2 3 4 5 6; do
5890       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5891       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5892       # Solaris 10 /bin/sh.
5893       echo '/* dummy */' > sub/conftst$i.h
5894     done
5895     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5896
5897     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5898     # mode.  It turns out that the SunPro C++ compiler does not properly
5899     # handle '-M -o', and we need to detect this.  Also, some Intel
5900     # versions had trouble with output in subdirs.
5901     am__obj=sub/conftest.${OBJEXT-o}
5902     am__minus_obj="-o $am__obj"
5903     case $depmode in
5904     gcc)
5905       # This depmode causes a compiler race in universal mode.
5906       test "$am__universal" = false || continue
5907       ;;
5908     nosideeffect)
5909       # After this tag, mechanisms are not by side-effect, so they'll
5910       # only be used when explicitly requested.
5911       if test "x$enable_dependency_tracking" = xyes; then
5912         continue
5913       else
5914         break
5915       fi
5916       ;;
5917     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5918       # This compiler won't grok '-c -o', but also, the minuso test has
5919       # not run yet.  These depmodes are late enough in the game, and
5920       # so weak that their functioning should not be impacted.
5921       am__obj=conftest.${OBJEXT-o}
5922       am__minus_obj=
5923       ;;
5924     none) break ;;
5925     esac
5926     if depmode=$depmode \
5927        source=sub/conftest.c object=$am__obj \
5928        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5929        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5930          >/dev/null 2>conftest.err &&
5931        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5932        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5933        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5934        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5935       # icc doesn't choke on unknown options, it will just issue warnings
5936       # or remarks (even with -Werror).  So we grep stderr for any message
5937       # that says an option was ignored or not supported.
5938       # When given -MP, icc 7.0 and 7.1 complain thusly:
5939       #   icc: Command line warning: ignoring option '-M'; no argument required
5940       # The diagnosis changed in icc 8.0:
5941       #   icc: Command line remark: option '-MP' not supported
5942       if (grep 'ignoring option' conftest.err ||
5943           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5944         am_cv_CC_dependencies_compiler_type=$depmode
5945         break
5946       fi
5947     fi
5948   done
5949
5950   cd ..
5951   rm -rf conftest.dir
5952 else
5953   am_cv_CC_dependencies_compiler_type=none
5954 fi
5955
5956 fi
5957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5958 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5959 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5960
5961  if
5962   test "x$enable_dependency_tracking" != xno \
5963   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5964   am__fastdepCC_TRUE=
5965   am__fastdepCC_FALSE='#'
5966 else
5967   am__fastdepCC_TRUE='#'
5968   am__fastdepCC_FALSE=
5969 fi
5970
5971
5972
5973 # Configure gnulib
5974
5975
5976   # Make sure we can run config.sub.
5977 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5978   as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5979
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5981 printf %s "checking build system type... " >&6; }
5982 if test ${ac_cv_build+y}
5983 then :
5984   printf %s "(cached) " >&6
5985 else $as_nop
5986   ac_build_alias=$build_alias
5987 test "x$ac_build_alias" = x &&
5988   ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5989 test "x$ac_build_alias" = x &&
5990   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5991 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5992   as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5993
5994 fi
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5996 printf "%s\n" "$ac_cv_build" >&6; }
5997 case $ac_cv_build in
5998 *-*-*) ;;
5999 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6000 esac
6001 build=$ac_cv_build
6002 ac_save_IFS=$IFS; IFS='-'
6003 set x $ac_cv_build
6004 shift
6005 build_cpu=$1
6006 build_vendor=$2
6007 shift; shift
6008 # Remember, the first character of IFS is used to create $*,
6009 # except with old shells:
6010 build_os=$*
6011 IFS=$ac_save_IFS
6012 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6013
6014
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6016 printf %s "checking host system type... " >&6; }
6017 if test ${ac_cv_host+y}
6018 then :
6019   printf %s "(cached) " >&6
6020 else $as_nop
6021   if test "x$host_alias" = x; then
6022   ac_cv_host=$ac_cv_build
6023 else
6024   ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6025     as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6026 fi
6027
6028 fi
6029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6030 printf "%s\n" "$ac_cv_host" >&6; }
6031 case $ac_cv_host in
6032 *-*-*) ;;
6033 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6034 esac
6035 host=$ac_cv_host
6036 ac_save_IFS=$IFS; IFS='-'
6037 set x $ac_cv_host
6038 shift
6039 host_cpu=$1
6040 host_vendor=$2
6041 shift; shift
6042 # Remember, the first character of IFS is used to create $*,
6043 # except with old shells:
6044 host_os=$*
6045 IFS=$ac_save_IFS
6046 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6047
6048
6049
6050
6051
6052
6053   case "$host_os" in
6054     openbsd*)
6055
6056 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6057
6058       ;;
6059   esac
6060
6061 ac_ext=c
6062 ac_cpp='$CPP $CPPFLAGS'
6063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6067 printf %s "checking how to run the C preprocessor... " >&6; }
6068 # On Suns, sometimes $CPP names a directory.
6069 if test -n "$CPP" && test -d "$CPP"; then
6070   CPP=
6071 fi
6072 if test -z "$CPP"; then
6073   if test ${ac_cv_prog_CPP+y}
6074 then :
6075   printf %s "(cached) " >&6
6076 else $as_nop
6077       # Double quotes because $CC needs to be expanded
6078     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6079     do
6080       ac_preproc_ok=false
6081 for ac_c_preproc_warn_flag in '' yes
6082 do
6083   # Use a header file that comes with gcc, so configuring glibc
6084   # with a fresh cross-compiler works.
6085   # On the NeXT, cc -E runs the code through the compiler's parser,
6086   # not just through cpp. "Syntax error" is here to catch this case.
6087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h.  */
6089 #include <limits.h>
6090                      Syntax error
6091 _ACEOF
6092 if ac_fn_c_try_cpp "$LINENO"
6093 then :
6094
6095 else $as_nop
6096   # Broken: fails on valid input.
6097 continue
6098 fi
6099 rm -f conftest.err conftest.i conftest.$ac_ext
6100
6101   # OK, works on sane cases.  Now check whether nonexistent headers
6102   # can be detected and how.
6103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h.  */
6105 #include <ac_nonexistent.h>
6106 _ACEOF
6107 if ac_fn_c_try_cpp "$LINENO"
6108 then :
6109   # Broken: success on invalid input.
6110 continue
6111 else $as_nop
6112   # Passes both tests.
6113 ac_preproc_ok=:
6114 break
6115 fi
6116 rm -f conftest.err conftest.i conftest.$ac_ext
6117
6118 done
6119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6120 rm -f conftest.i conftest.err conftest.$ac_ext
6121 if $ac_preproc_ok
6122 then :
6123   break
6124 fi
6125
6126     done
6127     ac_cv_prog_CPP=$CPP
6128
6129 fi
6130   CPP=$ac_cv_prog_CPP
6131 else
6132   ac_cv_prog_CPP=$CPP
6133 fi
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6135 printf "%s\n" "$CPP" >&6; }
6136 ac_preproc_ok=false
6137 for ac_c_preproc_warn_flag in '' yes
6138 do
6139   # Use a header file that comes with gcc, so configuring glibc
6140   # with a fresh cross-compiler works.
6141   # On the NeXT, cc -E runs the code through the compiler's parser,
6142   # not just through cpp. "Syntax error" is here to catch this case.
6143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h.  */
6145 #include <limits.h>
6146                      Syntax error
6147 _ACEOF
6148 if ac_fn_c_try_cpp "$LINENO"
6149 then :
6150
6151 else $as_nop
6152   # Broken: fails on valid input.
6153 continue
6154 fi
6155 rm -f conftest.err conftest.i conftest.$ac_ext
6156
6157   # OK, works on sane cases.  Now check whether nonexistent headers
6158   # can be detected and how.
6159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h.  */
6161 #include <ac_nonexistent.h>
6162 _ACEOF
6163 if ac_fn_c_try_cpp "$LINENO"
6164 then :
6165   # Broken: success on invalid input.
6166 continue
6167 else $as_nop
6168   # Passes both tests.
6169 ac_preproc_ok=:
6170 break
6171 fi
6172 rm -f conftest.err conftest.i conftest.$ac_ext
6173
6174 done
6175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6176 rm -f conftest.i conftest.err conftest.$ac_ext
6177 if $ac_preproc_ok
6178 then :
6179
6180 else $as_nop
6181   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6182 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6183 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6184 See \`config.log' for more details" "$LINENO" 5; }
6185 fi
6186
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6195 printf %s "checking for grep that handles long lines and -e... " >&6; }
6196 if test ${ac_cv_path_GREP+y}
6197 then :
6198   printf %s "(cached) " >&6
6199 else $as_nop
6200   if test -z "$GREP"; then
6201   ac_path_GREP_found=false
6202   # Loop through the user's path and test for each of PROGNAME-LIST
6203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6205 do
6206   IFS=$as_save_IFS
6207   case $as_dir in #(((
6208     '') as_dir=./ ;;
6209     */) ;;
6210     *) as_dir=$as_dir/ ;;
6211   esac
6212     for ac_prog in grep ggrep
6213    do
6214     for ac_exec_ext in '' $ac_executable_extensions; do
6215       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6216       as_fn_executable_p "$ac_path_GREP" || continue
6217 # Check for GNU ac_path_GREP and select it if it is found.
6218   # Check for GNU $ac_path_GREP
6219 case `"$ac_path_GREP" --version 2>&1` in
6220 *GNU*)
6221   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6222 *)
6223   ac_count=0
6224   printf %s 0123456789 >"conftest.in"
6225   while :
6226   do
6227     cat "conftest.in" "conftest.in" >"conftest.tmp"
6228     mv "conftest.tmp" "conftest.in"
6229     cp "conftest.in" "conftest.nl"
6230     printf "%s\n" 'GREP' >> "conftest.nl"
6231     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233     as_fn_arith $ac_count + 1 && ac_count=$as_val
6234     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6235       # Best one so far, save it but keep looking for a better one
6236       ac_cv_path_GREP="$ac_path_GREP"
6237       ac_path_GREP_max=$ac_count
6238     fi
6239     # 10*(2^10) chars as input seems more than enough
6240     test $ac_count -gt 10 && break
6241   done
6242   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6243 esac
6244
6245       $ac_path_GREP_found && break 3
6246     done
6247   done
6248   done
6249 IFS=$as_save_IFS
6250   if test -z "$ac_cv_path_GREP"; then
6251     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6252   fi
6253 else
6254   ac_cv_path_GREP=$GREP
6255 fi
6256
6257 fi
6258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6259 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6260  GREP="$ac_cv_path_GREP"
6261
6262
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6264 printf %s "checking for egrep... " >&6; }
6265 if test ${ac_cv_path_EGREP+y}
6266 then :
6267   printf %s "(cached) " >&6
6268 else $as_nop
6269   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6270    then ac_cv_path_EGREP="$GREP -E"
6271    else
6272      if test -z "$EGREP"; then
6273   ac_path_EGREP_found=false
6274   # Loop through the user's path and test for each of PROGNAME-LIST
6275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6277 do
6278   IFS=$as_save_IFS
6279   case $as_dir in #(((
6280     '') as_dir=./ ;;
6281     */) ;;
6282     *) as_dir=$as_dir/ ;;
6283   esac
6284     for ac_prog in egrep
6285    do
6286     for ac_exec_ext in '' $ac_executable_extensions; do
6287       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6288       as_fn_executable_p "$ac_path_EGREP" || continue
6289 # Check for GNU ac_path_EGREP and select it if it is found.
6290   # Check for GNU $ac_path_EGREP
6291 case `"$ac_path_EGREP" --version 2>&1` in
6292 *GNU*)
6293   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6294 *)
6295   ac_count=0
6296   printf %s 0123456789 >"conftest.in"
6297   while :
6298   do
6299     cat "conftest.in" "conftest.in" >"conftest.tmp"
6300     mv "conftest.tmp" "conftest.in"
6301     cp "conftest.in" "conftest.nl"
6302     printf "%s\n" 'EGREP' >> "conftest.nl"
6303     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6304     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6305     as_fn_arith $ac_count + 1 && ac_count=$as_val
6306     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6307       # Best one so far, save it but keep looking for a better one
6308       ac_cv_path_EGREP="$ac_path_EGREP"
6309       ac_path_EGREP_max=$ac_count
6310     fi
6311     # 10*(2^10) chars as input seems more than enough
6312     test $ac_count -gt 10 && break
6313   done
6314   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6315 esac
6316
6317       $ac_path_EGREP_found && break 3
6318     done
6319   done
6320   done
6321 IFS=$as_save_IFS
6322   if test -z "$ac_cv_path_EGREP"; then
6323     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6324   fi
6325 else
6326   ac_cv_path_EGREP=$EGREP
6327 fi
6328
6329    fi
6330 fi
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6332 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6333  EGREP="$ac_cv_path_EGREP"
6334
6335
6336
6337
6338
6339   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6340 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6341 if test ${gl_cv_c_amsterdam_compiler+y}
6342 then :
6343   printf %s "(cached) " >&6
6344 else $as_nop
6345
6346       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347 /* end confdefs.h.  */
6348
6349 #ifdef __ACK__
6350 Amsterdam
6351 #endif
6352
6353 _ACEOF
6354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6355   $EGREP "Amsterdam" >/dev/null 2>&1
6356 then :
6357   gl_cv_c_amsterdam_compiler=yes
6358 else $as_nop
6359   gl_cv_c_amsterdam_compiler=no
6360 fi
6361 rm -rf conftest*
6362
6363
6364 fi
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6366 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6367
6368       if test $gl_cv_c_amsterdam_compiler = yes; then
6369     if test -z "$AR"; then
6370       AR='cc -c.a'
6371     fi
6372     if test -z "$ARFLAGS"; then
6373       ARFLAGS='-o'
6374     fi
6375   else
6376                                                 :
6377   fi
6378
6379         if test -n "$ac_tool_prefix"; then
6380   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6381 set dummy ${ac_tool_prefix}ar; ac_word=$2
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 printf %s "checking for $ac_word... " >&6; }
6384 if test ${ac_cv_prog_AR+y}
6385 then :
6386   printf %s "(cached) " >&6
6387 else $as_nop
6388   if test -n "$AR"; then
6389   ac_cv_prog_AR="$AR" # Let the user override the test.
6390 else
6391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   case $as_dir in #(((
6396     '') as_dir=./ ;;
6397     */) ;;
6398     *) as_dir=$as_dir/ ;;
6399   esac
6400     for ac_exec_ext in '' $ac_executable_extensions; do
6401   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6402     ac_cv_prog_AR="${ac_tool_prefix}ar"
6403     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407   done
6408 IFS=$as_save_IFS
6409
6410 fi
6411 fi
6412 AR=$ac_cv_prog_AR
6413 if test -n "$AR"; then
6414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6415 printf "%s\n" "$AR" >&6; }
6416 else
6417   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6418 printf "%s\n" "no" >&6; }
6419 fi
6420
6421
6422 fi
6423 if test -z "$ac_cv_prog_AR"; then
6424   ac_ct_AR=$AR
6425   # Extract the first word of "ar", so it can be a program name with args.
6426 set dummy ar; ac_word=$2
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 printf %s "checking for $ac_word... " >&6; }
6429 if test ${ac_cv_prog_ac_ct_AR+y}
6430 then :
6431   printf %s "(cached) " >&6
6432 else $as_nop
6433   if test -n "$ac_ct_AR"; then
6434   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   case $as_dir in #(((
6441     '') as_dir=./ ;;
6442     */) ;;
6443     *) as_dir=$as_dir/ ;;
6444   esac
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6447     ac_cv_prog_ac_ct_AR="ar"
6448     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6458 if test -n "$ac_ct_AR"; then
6459   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6460 printf "%s\n" "$ac_ct_AR" >&6; }
6461 else
6462   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 printf "%s\n" "no" >&6; }
6464 fi
6465
6466   if test "x$ac_ct_AR" = x; then
6467     AR="ar"
6468   else
6469     case $cross_compiling:$ac_tool_warned in
6470 yes:)
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6472 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473 ac_tool_warned=yes ;;
6474 esac
6475     AR=$ac_ct_AR
6476   fi
6477 else
6478   AR="$ac_cv_prog_AR"
6479 fi
6480
6481   if test -z "$ARFLAGS"; then
6482     ARFLAGS='cr'
6483   fi
6484
6485
6486
6487   if test -z "$RANLIB"; then
6488     if test $gl_cv_c_amsterdam_compiler = yes; then
6489       RANLIB=':'
6490     else
6491             if test -n "$ac_tool_prefix"; then
6492   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6493 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495 printf %s "checking for $ac_word... " >&6; }
6496 if test ${ac_cv_prog_RANLIB+y}
6497 then :
6498   printf %s "(cached) " >&6
6499 else $as_nop
6500   if test -n "$RANLIB"; then
6501   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   case $as_dir in #(((
6508     '') as_dir=./ ;;
6509     */) ;;
6510     *) as_dir=$as_dir/ ;;
6511   esac
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6514     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6515     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 RANLIB=$ac_cv_prog_RANLIB
6525 if test -n "$RANLIB"; then
6526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527 printf "%s\n" "$RANLIB" >&6; }
6528 else
6529   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 printf "%s\n" "no" >&6; }
6531 fi
6532
6533
6534 fi
6535 if test -z "$ac_cv_prog_RANLIB"; then
6536   ac_ct_RANLIB=$RANLIB
6537   # Extract the first word of "ranlib", so it can be a program name with args.
6538 set dummy ranlib; ac_word=$2
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 printf %s "checking for $ac_word... " >&6; }
6541 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6542 then :
6543   printf %s "(cached) " >&6
6544 else $as_nop
6545   if test -n "$ac_ct_RANLIB"; then
6546   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551   IFS=$as_save_IFS
6552   case $as_dir in #(((
6553     '') as_dir=./ ;;
6554     */) ;;
6555     *) as_dir=$as_dir/ ;;
6556   esac
6557     for ac_exec_ext in '' $ac_executable_extensions; do
6558   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6559     ac_cv_prog_ac_ct_RANLIB="ranlib"
6560     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6561     break 2
6562   fi
6563 done
6564   done
6565 IFS=$as_save_IFS
6566
6567 fi
6568 fi
6569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6570 if test -n "$ac_ct_RANLIB"; then
6571   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6572 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6573 else
6574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6575 printf "%s\n" "no" >&6; }
6576 fi
6577
6578   if test "x$ac_ct_RANLIB" = x; then
6579     RANLIB=":"
6580   else
6581     case $cross_compiling:$ac_tool_warned in
6582 yes:)
6583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587     RANLIB=$ac_ct_RANLIB
6588   fi
6589 else
6590   RANLIB="$ac_cv_prog_RANLIB"
6591 fi
6592
6593     fi
6594   fi
6595
6596
6597 # Check whether --enable-largefile was given.
6598 if test ${enable_largefile+y}
6599 then :
6600   enableval=$enable_largefile;
6601 fi
6602
6603 if test "$enable_largefile" != no
6604 then :
6605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6606 printf %s "checking for special C compiler options needed for large files... " >&6; }
6607 if test ${ac_cv_sys_largefile_CC+y}
6608 then :
6609   printf %s "(cached) " >&6
6610 else $as_nop
6611   ac_cv_sys_largefile_CC=no
6612      if test "$GCC" != yes; then
6613        ac_save_CC=$CC
6614        while :; do
6615          # IRIX 6.2 and later do not support large files by default,
6616          # so use the C compiler's -n32 option if that helps.
6617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619 #include <sys/types.h>
6620  /* Check that off_t can represent 2**63 - 1 correctly.
6621     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6622     since some C++ compilers masquerading as C compilers
6623     incorrectly reject 9223372036854775807.  */
6624 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6625   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6626                        && LARGE_OFF_T % 2147483647 == 1)
6627                       ? 1 : -1];
6628 int
6629 main (void)
6630 {
6631
6632   ;
6633   return 0;
6634 }
6635 _ACEOF
6636          if ac_fn_c_try_compile "$LINENO"
6637 then :
6638   break
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.beam
6641          CC="$CC -n32"
6642          if ac_fn_c_try_compile "$LINENO"
6643 then :
6644   ac_cv_sys_largefile_CC=' -n32'; break
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext conftest.beam
6647          break
6648        done
6649        CC=$ac_save_CC
6650        rm -f conftest.$ac_ext
6651     fi
6652 fi
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6654 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
6655   if test "$ac_cv_sys_largefile_CC" != no; then
6656     CC=$CC$ac_cv_sys_largefile_CC
6657   fi
6658
6659   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6660 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6661 if test ${ac_cv_sys_file_offset_bits+y}
6662 then :
6663   printf %s "(cached) " >&6
6664 else $as_nop
6665   while :; do
6666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h.  */
6668 #include <sys/types.h>
6669  /* Check that off_t can represent 2**63 - 1 correctly.
6670     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6671     since some C++ compilers masquerading as C compilers
6672     incorrectly reject 9223372036854775807.  */
6673 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6674   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6675                        && LARGE_OFF_T % 2147483647 == 1)
6676                       ? 1 : -1];
6677 int
6678 main (void)
6679 {
6680
6681   ;
6682   return 0;
6683 }
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"
6686 then :
6687   ac_cv_sys_file_offset_bits=no; break
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h.  */
6692 #undef _FILE_OFFSET_BITS
6693 #define _FILE_OFFSET_BITS 64
6694 #include <sys/types.h>
6695  /* Check that off_t can represent 2**63 - 1 correctly.
6696     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6697     since some C++ compilers masquerading as C compilers
6698     incorrectly reject 9223372036854775807.  */
6699 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6700   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6701                        && LARGE_OFF_T % 2147483647 == 1)
6702                       ? 1 : -1];
6703 int
6704 main (void)
6705 {
6706
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 if ac_fn_c_try_compile "$LINENO"
6712 then :
6713   ac_cv_sys_file_offset_bits=64; break
6714 fi
6715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6716   ac_cv_sys_file_offset_bits=unknown
6717   break
6718 done
6719 fi
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6721 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
6722 case $ac_cv_sys_file_offset_bits in #(
6723   no | unknown) ;;
6724   *)
6725 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
6726 ;;
6727 esac
6728 rm -rf conftest*
6729   case $ac_cv_sys_file_offset_bits in #(
6730   unknown) :
6731     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6732 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
6733 if test ${ac_cv_sys_large_files+y}
6734 then :
6735   printf %s "(cached) " >&6
6736 else $as_nop
6737   while :; do
6738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h.  */
6740 #include <sys/types.h>
6741  /* Check that off_t can represent 2**63 - 1 correctly.
6742     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6743     since some C++ compilers masquerading as C compilers
6744     incorrectly reject 9223372036854775807.  */
6745 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6746   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6747                        && LARGE_OFF_T % 2147483647 == 1)
6748                       ? 1 : -1];
6749 int
6750 main (void)
6751 {
6752
6753   ;
6754   return 0;
6755 }
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"
6758 then :
6759   ac_cv_sys_large_files=no; break
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h.  */
6764 #undef _LARGE_FILES
6765 #define _LARGE_FILES 1
6766 #include <sys/types.h>
6767  /* Check that off_t can represent 2**63 - 1 correctly.
6768     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6769     since some C++ compilers masquerading as C compilers
6770     incorrectly reject 9223372036854775807.  */
6771 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
6772   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6773                        && LARGE_OFF_T % 2147483647 == 1)
6774                       ? 1 : -1];
6775 int
6776 main (void)
6777 {
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 if ac_fn_c_try_compile "$LINENO"
6784 then :
6785   ac_cv_sys_large_files=1; break
6786 fi
6787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6788   ac_cv_sys_large_files=unknown
6789   break
6790 done
6791 fi
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6793 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
6794 case $ac_cv_sys_large_files in #(
6795   no | unknown) ;;
6796   *)
6797 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
6798 ;;
6799 esac
6800 rm -rf conftest* ;; #(
6801   64) :
6802
6803  # Check whether --enable-year2038 was given.
6804 if test ${enable_year2038+y}
6805 then :
6806   enableval=$enable_year2038;
6807 fi
6808
6809  if test "$enable_year2038" != no
6810 then :
6811
6812                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
6813 printf %s "checking for time_t past the year 2038... " >&6; }
6814 if test ${gl_cv_type_time_t_y2038+y}
6815 then :
6816   printf %s "(cached) " >&6
6817 else $as_nop
6818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h.  */
6820
6821   #include <time.h>
6822   /* Check that time_t can represent 2**32 - 1 correctly.  */
6823   #define LARGE_TIME_T \\
6824     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6825   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6826                            && LARGE_TIME_T % 65537 == 0)
6827                           ? 1 : -1];
6828
6829 _ACEOF
6830 if ac_fn_c_try_compile "$LINENO"
6831 then :
6832   gl_cv_type_time_t_y2038=yes
6833 else $as_nop
6834   gl_cv_type_time_t_y2038=no
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6837
6838 fi
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
6840 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
6841   if test "$gl_cv_type_time_t_y2038" = no; then
6842     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
6843 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
6844 if test ${gl_cv_type_time_t_bits_macro+y}
6845 then :
6846   printf %s "(cached) " >&6
6847 else $as_nop
6848   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h.  */
6850 #define _TIME_BITS 64
6851                            #define _FILE_OFFSET_BITS 64
6852
6853   #include <time.h>
6854   /* Check that time_t can represent 2**32 - 1 correctly.  */
6855   #define LARGE_TIME_T \\
6856     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6857   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6858                            && LARGE_TIME_T % 65537 == 0)
6859                           ? 1 : -1];
6860
6861 _ACEOF
6862 if ac_fn_c_try_compile "$LINENO"
6863 then :
6864   gl_cv_type_time_t_bits_macro=yes
6865 else $as_nop
6866   gl_cv_type_time_t_bits_macro=no
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6869
6870 fi
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
6872 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
6873     if test "$gl_cv_type_time_t_bits_macro" = yes; then
6874
6875 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
6876
6877
6878 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6879
6880       gl_cv_type_time_t_y2038=yes
6881     fi
6882   fi
6883   if test $gl_cv_type_time_t_y2038 = no; then
6884     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h.  */
6886 #ifdef _USE_32BIT_TIME_T
6887              int ok;
6888            #else
6889              error fail
6890            #endif
6891
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"
6894 then :
6895   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6896 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6897 as_fn_error $? "The 'time_t' type stops working after January 2038.
6898           Remove _USE_32BIT_TIME_T from the compiler flags.
6899 See \`config.log' for more details" "$LINENO" 5; }
6900 else $as_nop
6901   # If not cross-compiling and  says we should check,
6902        # and 'touch' works with a large timestamp, then evidently wider time_t
6903        # is desired and supported, so fail and ask the builder to fix the
6904        # problem.  Otherwise, just warn the builder.
6905
6906        if test "$gl_warned_about_y2038" != yes; then
6907          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
6908             and this package needs a wider 'time_t' type
6909             if there is any way to access timestamps after that.
6910             Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
6911 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
6912             and this package needs a wider 'time_t' type
6913             if there is any way to access timestamps after that.
6914             Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
6915          gl_warned_about_y2038=yes
6916        fi
6917
6918 fi
6919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6920   fi
6921 fi
6922  ;; #(
6923   *) :
6924      ;;
6925 esac
6926 fi
6927
6928
6929
6930   case "$host_os" in
6931     mingw*)
6932
6933 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
6934
6935       ;;
6936   esac
6937
6938
6939
6940   # Pre-early section.
6941
6942
6943
6944   # Code from module alloca:
6945   # Code from module alloca-opt:
6946   # Code from module concat-filename:
6947   # Code from module extensions:
6948   # Code from module fdl:
6949   # Code from module filename:
6950   # Code from module findprog-in:
6951   # Code from module gen-header:
6952   # Code from module getloadavg:
6953   # Code from module host-cpu-c-abi:
6954   # Code from module intprops:
6955   # Code from module largefile:
6956
6957
6958   # Code from module make-glob:
6959   # Code from module make-macros:
6960   # Code from module snippet/warn-on-use:
6961   # Code from module stdbool:
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971                         # Check whether --enable-cross-guesses was given.
6972 if test ${enable_cross_guesses+y}
6973 then :
6974   enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
6975        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
6976 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
6977        enableval=conservative
6978      fi
6979      gl_cross_guesses="$enableval"
6980 else $as_nop
6981   gl_cross_guesses=conservative
6982 fi
6983
6984   if test $gl_cross_guesses = risky; then
6985     gl_cross_guess_normal="guessing yes"
6986     gl_cross_guess_inverted="guessing no"
6987   else
6988     gl_cross_guess_normal="guessing no"
6989     gl_cross_guess_inverted="guessing yes"
6990   fi
6991           LIBC_FATAL_STDERR_=1
6992   export LIBC_FATAL_STDERR_
6993
6994
6995 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6996 if test "x$ac_cv_type_size_t" = xyes
6997 then :
6998
6999 else $as_nop
7000
7001 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7002
7003 fi
7004
7005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7006 # for constant arguments.  Useless!
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7008 printf %s "checking for working alloca.h... " >&6; }
7009 if test ${ac_cv_working_alloca_h+y}
7010 then :
7011   printf %s "(cached) " >&6
7012 else $as_nop
7013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h.  */
7015 #include <alloca.h>
7016 int
7017 main (void)
7018 {
7019 char *p = (char *) alloca (2 * sizeof (int));
7020                           if (p) return 0;
7021   ;
7022   return 0;
7023 }
7024 _ACEOF
7025 if ac_fn_c_try_link "$LINENO"
7026 then :
7027   ac_cv_working_alloca_h=yes
7028 else $as_nop
7029   ac_cv_working_alloca_h=no
7030 fi
7031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7032     conftest$ac_exeext conftest.$ac_ext
7033 fi
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7035 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7036 if test $ac_cv_working_alloca_h = yes; then
7037
7038 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7039
7040 fi
7041
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7043 printf %s "checking for alloca... " >&6; }
7044 if test ${ac_cv_func_alloca_works+y}
7045 then :
7046   printf %s "(cached) " >&6
7047 else $as_nop
7048   if test $ac_cv_working_alloca_h = yes; then
7049   ac_cv_func_alloca_works=yes
7050 else
7051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7052 /* end confdefs.h.  */
7053 #include <stdlib.h>
7054 #include <stddef.h>
7055 #ifndef alloca
7056 # ifdef __GNUC__
7057 #  define alloca __builtin_alloca
7058 # elif defined _MSC_VER
7059 #  include <malloc.h>
7060 #  define alloca _alloca
7061 # else
7062 #  ifdef  __cplusplus
7063 extern "C"
7064 #  endif
7065 void *alloca (size_t);
7066 # endif
7067 #endif
7068
7069 int
7070 main (void)
7071 {
7072 char *p = (char *) alloca (1);
7073                                     if (p) return 0;
7074   ;
7075   return 0;
7076 }
7077 _ACEOF
7078 if ac_fn_c_try_link "$LINENO"
7079 then :
7080   ac_cv_func_alloca_works=yes
7081 else $as_nop
7082   ac_cv_func_alloca_works=no
7083 fi
7084 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7085     conftest$ac_exeext conftest.$ac_ext
7086 fi
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7088 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7089 fi
7090
7091 if test $ac_cv_func_alloca_works = yes; then
7092
7093 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7094
7095 else
7096   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7097 # that cause trouble.  Some versions do not even contain alloca or
7098 # contain a buggy version.  If you still want to use their alloca,
7099 # use ar to extract alloca.o from them instead of compiling alloca.c.
7100
7101
7102
7103
7104
7105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7106
7107 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7108
7109
7110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7111 printf %s "checking stack direction for C alloca... " >&6; }
7112 if test ${ac_cv_c_stack_direction+y}
7113 then :
7114   printf %s "(cached) " >&6
7115 else $as_nop
7116   if test "$cross_compiling" = yes
7117 then :
7118   ac_cv_c_stack_direction=0
7119 else $as_nop
7120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h.  */
7122 $ac_includes_default
7123 int
7124 find_stack_direction (int *addr, int depth)
7125 {
7126   int dir, dummy = 0;
7127   if (! addr)
7128     addr = &dummy;
7129   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7130   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7131   return dir + dummy;
7132 }
7133
7134 int
7135 main (int argc, char **argv)
7136 {
7137   return find_stack_direction (0, argc + !argv + 20) < 0;
7138 }
7139 _ACEOF
7140 if ac_fn_c_try_run "$LINENO"
7141 then :
7142   ac_cv_c_stack_direction=1
7143 else $as_nop
7144   ac_cv_c_stack_direction=-1
7145 fi
7146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7147   conftest.$ac_objext conftest.beam conftest.$ac_ext
7148 fi
7149
7150 fi
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7152 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7153 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7154
7155
7156 fi
7157
7158
7159   ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
7160 if test "x$ac_cv_func_eaccess" = xyes
7161 then :
7162
7163 else $as_nop
7164
7165 printf "%s\n" "#define eaccess access" >>confdefs.h
7166
7167 fi
7168
7169
7170
7171     HAVE_DECL_GETLOADAVG=1;
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182   GL_GNULIB_GETLOADAVG=0
7183
7184
7185
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7187 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7188 if test ${ac_cv_c_undeclared_builtin_options+y}
7189 then :
7190   printf %s "(cached) " >&6
7191 else $as_nop
7192   ac_save_CFLAGS=$CFLAGS
7193    ac_cv_c_undeclared_builtin_options='cannot detect'
7194    for ac_arg in '' -fno-builtin; do
7195      CFLAGS="$ac_save_CFLAGS $ac_arg"
7196      # This test program should *not* compile successfully.
7197      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h.  */
7199
7200 int
7201 main (void)
7202 {
7203 (void) strchr;
7204   ;
7205   return 0;
7206 }
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"
7209 then :
7210
7211 else $as_nop
7212   # This test program should compile successfully.
7213         # No library function is consistently available on
7214         # freestanding implementations, so test against a dummy
7215         # declaration.  Include always-available headers on the
7216         # off chance that they somehow elicit warnings.
7217         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h.  */
7219 #include <float.h>
7220 #include <limits.h>
7221 #include <stdarg.h>
7222 #include <stddef.h>
7223 extern void ac_decl (int, char *);
7224
7225 int
7226 main (void)
7227 {
7228 (void) ac_decl (0, (char *) 0);
7229   (void) ac_decl;
7230
7231   ;
7232   return 0;
7233 }
7234 _ACEOF
7235 if ac_fn_c_try_compile "$LINENO"
7236 then :
7237   if test x"$ac_arg" = x
7238 then :
7239   ac_cv_c_undeclared_builtin_options='none needed'
7240 else $as_nop
7241   ac_cv_c_undeclared_builtin_options=$ac_arg
7242 fi
7243           break
7244 fi
7245 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7248     done
7249     CFLAGS=$ac_save_CFLAGS
7250
7251 fi
7252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7253 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7254   case $ac_cv_c_undeclared_builtin_options in #(
7255   'cannot detect') :
7256     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7257 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7258 as_fn_error $? "cannot make $CC report undeclared builtins
7259 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7260   'none needed') :
7261     ac_c_undeclared_builtin_options='' ;; #(
7262   *) :
7263     ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7264 esac
7265
7266
7267
7268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h.  */
7270
7271 #ifdef _MSC_VER
7272 MicrosoftCompiler
7273 #endif
7274
7275 _ACEOF
7276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7277   $EGREP "MicrosoftCompiler" >/dev/null 2>&1
7278 then :
7279             rm -f conftest*
7280      echo 'int dummy;' > conftest.c
7281      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7282   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7283   (eval $ac_try) 2>&5
7284   ac_status=$?
7285   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7286   test $ac_status = 0; }; } >/dev/null 2>&1
7287      if test -f conftest.o; then
7288        gl_asmext='s'
7289        gl_c_asm_opt='-S'
7290      else
7291        gl_asmext='asm'
7292        gl_c_asm_opt='-c -Fa'
7293      fi
7294      rm -f conftest*
7295
7296 else $as_nop
7297   gl_asmext='s'
7298      gl_c_asm_opt='-S'
7299
7300 fi
7301 rm -rf conftest*
7302
7303
7304
7305
7306
7307   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
7308 printf %s "checking host CPU and C ABI... " >&6; }
7309 if test ${gl_cv_host_cpu_c_abi+y}
7310 then :
7311   printf %s "(cached) " >&6
7312 else $as_nop
7313   case "$host_cpu" in
7314
7315        i[34567]86 )
7316          gl_cv_host_cpu_c_abi=i386
7317          ;;
7318
7319        x86_64 )
7320          # On x86_64 systems, the C compiler may be generating code in one of
7321          # these ABIs:
7322          # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7323          # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7324          #   with native Windows (mingw, MSVC).
7325          # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7326          # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7327          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328 /* end confdefs.h.  */
7329 #if (defined __x86_64__ || defined __amd64__ \
7330                      || defined _M_X64 || defined _M_AMD64)
7331                  int ok;
7332                 #else
7333                  error fail
7334                 #endif
7335
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"
7338 then :
7339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h.  */
7341 #if defined __ILP32__ || defined _ILP32
7342                     int ok;
7343                    #else
7344                     error fail
7345                    #endif
7346
7347 _ACEOF
7348 if ac_fn_c_try_compile "$LINENO"
7349 then :
7350   gl_cv_host_cpu_c_abi=x86_64-x32
7351 else $as_nop
7352   gl_cv_host_cpu_c_abi=x86_64
7353 fi
7354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7355 else $as_nop
7356   gl_cv_host_cpu_c_abi=i386
7357 fi
7358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7359          ;;
7360
7361        alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
7362          gl_cv_host_cpu_c_abi=alpha
7363          ;;
7364
7365        arm* | aarch64 )
7366          # Assume arm with EABI.
7367          # On arm64 systems, the C compiler may be generating code in one of
7368          # these ABIs:
7369          # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7370          # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7371          # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7372          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h.  */
7374 #ifdef __aarch64__
7375                  int ok;
7376                 #else
7377                  error fail
7378                 #endif
7379
7380 _ACEOF
7381 if ac_fn_c_try_compile "$LINENO"
7382 then :
7383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384 /* end confdefs.h.  */
7385 #if defined __ILP32__ || defined _ILP32
7386                    int ok;
7387                   #else
7388                    error fail
7389                   #endif
7390
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"
7393 then :
7394   gl_cv_host_cpu_c_abi=arm64-ilp32
7395 else $as_nop
7396   gl_cv_host_cpu_c_abi=arm64
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7399 else $as_nop
7400   # Don't distinguish little-endian and big-endian arm, since they
7401             # don't require different machine code for simple operations and
7402             # since the user can distinguish them through the preprocessor
7403             # defines __ARMEL__ vs. __ARMEB__.
7404             # But distinguish arm which passes floating-point arguments and
7405             # return values in integer registers (r0, r1, ...) - this is
7406             # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
7407             # passes them in float registers (s0, s1, ...) and double registers
7408             # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
7409             # sets the preprocessor defines __ARM_PCS (for the first case) and
7410             # __ARM_PCS_VFP (for the second case), but older GCC does not.
7411             echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
7412             # Look for a reference to the register d0 in the .s file.
7413             { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
7414   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7415   (eval $ac_try) 2>&5
7416   ac_status=$?
7417   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418   test $ac_status = 0; }; } >/dev/null 2>&1
7419             if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
7420               gl_cv_host_cpu_c_abi=armhf
7421             else
7422               gl_cv_host_cpu_c_abi=arm
7423             fi
7424             rm -f conftest*
7425
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7428          ;;
7429
7430        hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7431          # On hppa, the C compiler may be generating 32-bit code or 64-bit
7432          # code. In the latter case, it defines _LP64 and __LP64__.
7433          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h.  */
7435 #ifdef __LP64__
7436                  int ok;
7437                 #else
7438                  error fail
7439                 #endif
7440
7441 _ACEOF
7442 if ac_fn_c_try_compile "$LINENO"
7443 then :
7444   gl_cv_host_cpu_c_abi=hppa64
7445 else $as_nop
7446   gl_cv_host_cpu_c_abi=hppa
7447 fi
7448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7449          ;;
7450
7451        ia64* )
7452          # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7453          # 32-bit code. In the latter case, it defines _ILP32.
7454          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h.  */
7456 #ifdef _ILP32
7457                  int ok;
7458                 #else
7459                  error fail
7460                 #endif
7461
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"
7464 then :
7465   gl_cv_host_cpu_c_abi=ia64-ilp32
7466 else $as_nop
7467   gl_cv_host_cpu_c_abi=ia64
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7470          ;;
7471
7472        mips* )
7473          # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7474          # at 32.
7475          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h.  */
7477 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7478                  int ok;
7479                 #else
7480                  error fail
7481                 #endif
7482
7483 _ACEOF
7484 if ac_fn_c_try_compile "$LINENO"
7485 then :
7486   gl_cv_host_cpu_c_abi=mips64
7487 else $as_nop
7488   # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
7489             # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
7490             # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
7491             # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
7492             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h.  */
7494 #if (_MIPS_SIM == _ABIN32)
7495                     int ok;
7496                    #else
7497                     error fail
7498                    #endif
7499
7500 _ACEOF
7501 if ac_fn_c_try_compile "$LINENO"
7502 then :
7503   gl_cv_host_cpu_c_abi=mipsn32
7504 else $as_nop
7505   gl_cv_host_cpu_c_abi=mips
7506 fi
7507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7508 fi
7509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7510          ;;
7511
7512        powerpc* )
7513          # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7514          # No need to distinguish them here; the caller may distinguish
7515          # them based on the OS.
7516          # On powerpc64 systems, the C compiler may still be generating
7517          # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7518          # be generating 64-bit code.
7519          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h.  */
7521 #if defined __powerpc64__ || defined __LP64__
7522                  int ok;
7523                 #else
7524                  error fail
7525                 #endif
7526
7527 _ACEOF
7528 if ac_fn_c_try_compile "$LINENO"
7529 then :
7530   # On powerpc64, there are two ABIs on Linux: The AIX compatible
7531             # one and the ELFv2 one. The latter defines _CALL_ELF=2.
7532             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h.  */
7534 #if defined _CALL_ELF && _CALL_ELF == 2
7535                     int ok;
7536                    #else
7537                     error fail
7538                    #endif
7539
7540 _ACEOF
7541 if ac_fn_c_try_compile "$LINENO"
7542 then :
7543   gl_cv_host_cpu_c_abi=powerpc64-elfv2
7544 else $as_nop
7545   gl_cv_host_cpu_c_abi=powerpc64
7546 fi
7547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7548
7549 else $as_nop
7550   gl_cv_host_cpu_c_abi=powerpc
7551 fi
7552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7553          ;;
7554
7555        rs6000 )
7556          gl_cv_host_cpu_c_abi=powerpc
7557          ;;
7558
7559        riscv32 | riscv64 )
7560          # There are 2 architectures (with variants): rv32* and rv64*.
7561          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h.  */
7563 #if __riscv_xlen == 64
7564                   int ok;
7565                 #else
7566                   error fail
7567                 #endif
7568
7569 _ACEOF
7570 if ac_fn_c_try_compile "$LINENO"
7571 then :
7572   cpu=riscv64
7573 else $as_nop
7574   cpu=riscv32
7575 fi
7576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7577          # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7578          # Size of 'long' and 'void *':
7579          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h.  */
7581 #if defined __LP64__
7582                   int ok;
7583                 #else
7584                   error fail
7585                 #endif
7586
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"
7589 then :
7590   main_abi=lp64
7591 else $as_nop
7592   main_abi=ilp32
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7595          # Float ABIs:
7596          # __riscv_float_abi_double:
7597          #   'float' and 'double' are passed in floating-point registers.
7598          # __riscv_float_abi_single:
7599          #   'float' are passed in floating-point registers.
7600          # __riscv_float_abi_soft:
7601          #   No values are passed in floating-point registers.
7602          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h.  */
7604 #if defined __riscv_float_abi_double
7605                   int ok;
7606                 #else
7607                   error fail
7608                 #endif
7609
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"
7612 then :
7613   float_abi=d
7614 else $as_nop
7615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h.  */
7617 #if defined __riscv_float_abi_single
7618                      int ok;
7619                    #else
7620                      error fail
7621                    #endif
7622
7623 _ACEOF
7624 if ac_fn_c_try_compile "$LINENO"
7625 then :
7626   float_abi=f
7627 else $as_nop
7628   float_abi=''
7629 fi
7630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7631
7632 fi
7633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7634          gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
7635          ;;
7636
7637        s390* )
7638          # On s390x, the C compiler may be generating 64-bit (= s390x) code
7639          # or 31-bit (= s390) code.
7640          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h.  */
7642 #if defined __LP64__ || defined __s390x__
7643                   int ok;
7644                 #else
7645                   error fail
7646                 #endif
7647
7648 _ACEOF
7649 if ac_fn_c_try_compile "$LINENO"
7650 then :
7651   gl_cv_host_cpu_c_abi=s390x
7652 else $as_nop
7653   gl_cv_host_cpu_c_abi=s390
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7656          ;;
7657
7658        sparc | sparc64 )
7659          # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7660          # C compiler still generates 32-bit code.
7661          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h.  */
7663 #if defined __sparcv9 || defined __arch64__
7664                  int ok;
7665                 #else
7666                  error fail
7667                 #endif
7668
7669 _ACEOF
7670 if ac_fn_c_try_compile "$LINENO"
7671 then :
7672   gl_cv_host_cpu_c_abi=sparc64
7673 else $as_nop
7674   gl_cv_host_cpu_c_abi=sparc
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7677          ;;
7678
7679        *)
7680          gl_cv_host_cpu_c_abi="$host_cpu"
7681          ;;
7682      esac
7683
7684 fi
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
7686 printf "%s\n" "$gl_cv_host_cpu_c_abi" >&6; }
7687
7688     HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
7689   HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
7690
7691
7692
7693   # This was
7694   #   AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
7695   #   AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
7696   # earlier, but KAI C++ 3.2d doesn't like this.
7697   sed -e 's/-/_/g' >> confdefs.h <<EOF
7698 #ifndef __${HOST_CPU}__
7699 #define __${HOST_CPU}__ 1
7700 #endif
7701 #ifndef __${HOST_CPU_C_ABI}__
7702 #define __${HOST_CPU_C_ABI}__ 1
7703 #endif
7704 EOF
7705
7706
7707
7708
7709
7710   case "$host_os" in
7711     mingw*)
7712                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
7713 printf %s "checking for 64-bit off_t... " >&6; }
7714 if test ${gl_cv_type_off_t_64+y}
7715 then :
7716   printf %s "(cached) " >&6
7717 else $as_nop
7718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h.  */
7720 #include <sys/types.h>
7721                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
7722
7723 int
7724 main (void)
7725 {
7726
7727   ;
7728   return 0;
7729 }
7730 _ACEOF
7731 if ac_fn_c_try_compile "$LINENO"
7732 then :
7733   gl_cv_type_off_t_64=yes
7734 else $as_nop
7735   gl_cv_type_off_t_64=no
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7738
7739 fi
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
7741 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
7742       if test $gl_cv_type_off_t_64 = no; then
7743         WINDOWS_64_BIT_OFF_T=1
7744       else
7745         WINDOWS_64_BIT_OFF_T=0
7746       fi
7747                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
7748 printf %s "checking for 64-bit st_size... " >&6; }
7749 if test ${gl_cv_member_st_size_64+y}
7750 then :
7751   printf %s "(cached) " >&6
7752 else $as_nop
7753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h.  */
7755 #include <sys/types.h>
7756                 struct stat buf;
7757                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
7758
7759 int
7760 main (void)
7761 {
7762
7763   ;
7764   return 0;
7765 }
7766 _ACEOF
7767 if ac_fn_c_try_compile "$LINENO"
7768 then :
7769   gl_cv_member_st_size_64=yes
7770 else $as_nop
7771   gl_cv_member_st_size_64=no
7772 fi
7773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7774
7775 fi
7776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
7777 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
7778       if test $gl_cv_member_st_size_64 = no; then
7779         WINDOWS_64_BIT_ST_SIZE=1
7780       else
7781         WINDOWS_64_BIT_ST_SIZE=0
7782       fi
7783       ;;
7784     *)
7785                                                       WINDOWS_64_BIT_OFF_T=0
7786       WINDOWS_64_BIT_ST_SIZE=0
7787       ;;
7788   esac
7789
7790 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7791 if test "x$ac_cv_type__Bool" = xyes
7792 then :
7793
7794 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
7795
7796
7797 fi
7798
7799    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
7800 printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
7801 if test ${ac_cv_header_stdbool_h+y}
7802 then :
7803   printf %s "(cached) " >&6
7804 else $as_nop
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #include <stdbool.h>
7808
7809              /* "true" and "false" should be usable in #if expressions and
7810                 integer constant expressions, and "bool" should be a valid
7811                 type name.
7812
7813                 Although C 1999 requires bool, true, and false to be macros,
7814                 C 2023 and C++ 2011 overrule that, so do not test for that.
7815                 Although C 1999 requires __bool_true_false_are_defined and
7816                 _Bool, C 2023 says they are obsolescent, so do not require
7817                 them.  */
7818
7819              #if !true
7820                #error "'true' is not true"
7821              #endif
7822              #if true != 1
7823                #error "'true' is not equal to 1"
7824              #endif
7825              char b[true == 1 ? 1 : -1];
7826              char c[true];
7827
7828              #if false
7829                #error "'false' is not false"
7830              #endif
7831              #if false != 0
7832                #error "'false' is not equal to 0"
7833              #endif
7834              char d[false == 0 ? 1 : -1];
7835
7836              enum { e = false, f = true, g = false * true, h = true * 256 };
7837
7838              char i[(bool) 0.5 == true ? 1 : -1];
7839              char j[(bool) 0.0 == false ? 1 : -1];
7840              char k[sizeof (bool) > 0 ? 1 : -1];
7841
7842              struct sb { bool s: 1; bool t; } s;
7843              char l[sizeof s.t > 0 ? 1 : -1];
7844
7845              /* The following fails for
7846                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7847              bool m[h];
7848              char n[sizeof m == h * sizeof m[0] ? 1 : -1];
7849              char o[-1 - (bool) 0 < 0 ? 1 : -1];
7850              /* Catch a bug in an HP-UX C compiler.  See
7851                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7852                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
7853               */
7854              bool p = true;
7855              bool *pp = &p;
7856
7857 int
7858 main (void)
7859 {
7860
7861              bool ps = &s;
7862              *pp |= p;
7863              *pp |= ! p;
7864
7865              /* Refer to every declared value, so they cannot be
7866                 discarded as unused.  */
7867              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
7868                      + !l + !m + !n + !o + !p + !pp + !ps);
7869
7870   ;
7871   return 0;
7872 }
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"
7875 then :
7876   ac_cv_header_stdbool_h=yes
7877 else $as_nop
7878   ac_cv_header_stdbool_h=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7881 fi
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7883 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
7884
7885
7886
7887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
7888 printf %s "checking for C compiler option to allow warnings... " >&6; }
7889 if test ${gl_cv_cc_wallow+y}
7890 then :
7891   printf %s "(cached) " >&6
7892 else $as_nop
7893   rm -f conftest*
7894      echo 'int dummy;' > conftest.c
7895      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
7896   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7897   (eval $ac_try) 2>&5
7898   ac_status=$?
7899   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900   test $ac_status = 0; }; } >/dev/null
7901      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
7902   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7903   (eval $ac_try) 2>&5
7904   ac_status=$?
7905   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7906   test $ac_status = 0; }; } >/dev/null
7907                          if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
7908        gl_cv_cc_wallow='-Wno-error'
7909      else
7910        gl_cv_cc_wallow=none
7911      fi
7912      rm -f conftest*
7913
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
7916 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
7917   case "$gl_cv_cc_wallow" in
7918     none) GL_CFLAG_ALLOW_WARNINGS='' ;;
7919     *)    GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
7920   esac
7921
7922
7923
7924
7925       GL_CFLAG_GNULIB_WARNINGS=''
7926   if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
7927                                                                         cat > conftest.c <<\EOF
7928       #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7929       -Wno-cast-qual
7930       -Wno-conversion
7931       -Wno-float-equal
7932       -Wno-sign-compare
7933       -Wno-undef
7934       -Wno-unused-function
7935       -Wno-unused-parameter
7936       #endif
7937       #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7938       -Wno-float-conversion
7939       #endif
7940       #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7941       -Wimplicit-fallthrough
7942       #endif
7943       #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7944       -Wno-pedantic
7945       #endif
7946       #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
7947       -Wno-sign-conversion
7948       -Wno-type-limits
7949       #endif
7950       #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
7951       -Wno-unsuffixed-float-constants
7952       #endif
7953 EOF
7954     gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
7955     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
7956   (eval $gl_command) 2>&5
7957   ac_status=$?
7958   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959   test $ac_status = 0; }; then
7960       gl_options=`grep -v '#' conftest.out`
7961       for word in $gl_options; do
7962         GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
7963       done
7964     fi
7965     rm -f conftest.c conftest.out
7966   fi
7967
7968
7969
7970
7971    if false; then
7972   GL_COND_LIBTOOL_TRUE=
7973   GL_COND_LIBTOOL_FALSE='#'
7974 else
7975   GL_COND_LIBTOOL_TRUE='#'
7976   GL_COND_LIBTOOL_FALSE=
7977 fi
7978
7979   gl_cond_libtool=false
7980   gl_libdeps=
7981   gl_ltlibdeps=
7982   gl_m4_base='m4'
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995   gl_source_base='lib'
7996   gl_source_base_prefix=
7997
7998
7999   if test $ac_cv_func_alloca_works = no; then
8000     :
8001   fi
8002
8003   # Define an additional variable used in the Makefile substitution.
8004   if test $ac_cv_working_alloca_h = yes; then
8005     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8006 printf %s "checking for alloca as a compiler built-in... " >&6; }
8007 if test ${gl_cv_rpl_alloca+y}
8008 then :
8009   printf %s "(cached) " >&6
8010 else $as_nop
8011
8012       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h.  */
8014
8015 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8016         Need own alloca
8017 #endif
8018
8019 _ACEOF
8020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8021   $EGREP "Need own alloca" >/dev/null 2>&1
8022 then :
8023   gl_cv_rpl_alloca=yes
8024 else $as_nop
8025   gl_cv_rpl_alloca=no
8026 fi
8027 rm -rf conftest*
8028
8029
8030 fi
8031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8032 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
8033     if test $gl_cv_rpl_alloca = yes; then
8034
8035 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8036
8037       GL_GENERATE_ALLOCA_H=true
8038     else
8039                   GL_GENERATE_ALLOCA_H=false
8040     fi
8041   else
8042     GL_GENERATE_ALLOCA_H=true
8043   fi
8044
8045   if test $ac_cv_working_alloca_h = yes; then
8046     HAVE_ALLOCA_H=1
8047   else
8048     HAVE_ALLOCA_H=0
8049   fi
8050
8051
8052
8053
8054
8055
8056   case "$GL_GENERATE_ALLOCA_H" in
8057     false) ALLOCA_H='' ;;
8058     true)
8059                   if test -z "$ALLOCA_H"; then
8060         ALLOCA_H="${gl_source_base_prefix}alloca.h"
8061       fi
8062       ;;
8063     *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
8064   esac
8065
8066
8067      if $GL_GENERATE_ALLOCA_H; then
8068   GL_GENERATE_ALLOCA_H_TRUE=
8069   GL_GENERATE_ALLOCA_H_FALSE='#'
8070 else
8071   GL_GENERATE_ALLOCA_H_TRUE='#'
8072   GL_GENERATE_ALLOCA_H_FALSE=
8073 fi
8074 :
8075     if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
8076     GL_GENERATE_ALLOCA_H_TRUE='#'
8077     GL_GENERATE_ALLOCA_H_FALSE='#'
8078   fi
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 # Persuade glibc <stdlib.h> to declare getloadavg().
8098
8099
8100 gl_save_LIBS=$LIBS
8101
8102 # getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
8103 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
8104 HAVE_GETLOADAVG=1
8105 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8106 if test "x$ac_cv_func_getloadavg" = xyes
8107 then :
8108
8109 else $as_nop
8110   gl_func_getloadavg_done=no
8111
8112    # Some systems with -lutil have (and need) -lkvm as well, some do not.
8113    # On Solaris, -lkvm requires nlist from -lelf, so check that first
8114    # to get the right answer into the cache.
8115    # For kstat on solaris, we need to test for libelf and libkvm to force the
8116    # definition of SVR4 below.
8117    if test $gl_func_getloadavg_done = no; then
8118      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
8119 printf %s "checking for elf_begin in -lelf... " >&6; }
8120 if test ${ac_cv_lib_elf_elf_begin+y}
8121 then :
8122   printf %s "(cached) " >&6
8123 else $as_nop
8124   ac_check_lib_save_LIBS=$LIBS
8125 LIBS="-lelf  $LIBS"
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h.  */
8128
8129 /* Override any GCC internal prototype to avoid an error.
8130    Use char because int might match the return type of a GCC
8131    builtin and then its argument prototype would still apply.  */
8132 char elf_begin ();
8133 int
8134 main (void)
8135 {
8136 return elf_begin ();
8137   ;
8138   return 0;
8139 }
8140 _ACEOF
8141 if ac_fn_c_try_link "$LINENO"
8142 then :
8143   ac_cv_lib_elf_elf_begin=yes
8144 else $as_nop
8145   ac_cv_lib_elf_elf_begin=no
8146 fi
8147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8148     conftest$ac_exeext conftest.$ac_ext
8149 LIBS=$ac_check_lib_save_LIBS
8150 fi
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
8152 printf "%s\n" "$ac_cv_lib_elf_elf_begin" >&6; }
8153 if test "x$ac_cv_lib_elf_elf_begin" = xyes
8154 then :
8155   LIBS="-lelf $LIBS"
8156 fi
8157
8158      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
8159 printf %s "checking for kvm_open in -lkvm... " >&6; }
8160 if test ${ac_cv_lib_kvm_kvm_open+y}
8161 then :
8162   printf %s "(cached) " >&6
8163 else $as_nop
8164   ac_check_lib_save_LIBS=$LIBS
8165 LIBS="-lkvm  $LIBS"
8166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h.  */
8168
8169 /* Override any GCC internal prototype to avoid an error.
8170    Use char because int might match the return type of a GCC
8171    builtin and then its argument prototype would still apply.  */
8172 char kvm_open ();
8173 int
8174 main (void)
8175 {
8176 return kvm_open ();
8177   ;
8178   return 0;
8179 }
8180 _ACEOF
8181 if ac_fn_c_try_link "$LINENO"
8182 then :
8183   ac_cv_lib_kvm_kvm_open=yes
8184 else $as_nop
8185   ac_cv_lib_kvm_kvm_open=no
8186 fi
8187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8188     conftest$ac_exeext conftest.$ac_ext
8189 LIBS=$ac_check_lib_save_LIBS
8190 fi
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8192 printf "%s\n" "$ac_cv_lib_kvm_kvm_open" >&6; }
8193 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
8194 then :
8195   LIBS="-lkvm $LIBS"
8196 fi
8197
8198      # Check for the 4.4BSD definition of getloadavg.
8199      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8200 printf %s "checking for getloadavg in -lutil... " >&6; }
8201 if test ${ac_cv_lib_util_getloadavg+y}
8202 then :
8203   printf %s "(cached) " >&6
8204 else $as_nop
8205   ac_check_lib_save_LIBS=$LIBS
8206 LIBS="-lutil  $LIBS"
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h.  */
8209
8210 /* Override any GCC internal prototype to avoid an error.
8211    Use char because int might match the return type of a GCC
8212    builtin and then its argument prototype would still apply.  */
8213 char getloadavg ();
8214 int
8215 main (void)
8216 {
8217 return getloadavg ();
8218   ;
8219   return 0;
8220 }
8221 _ACEOF
8222 if ac_fn_c_try_link "$LINENO"
8223 then :
8224   ac_cv_lib_util_getloadavg=yes
8225 else $as_nop
8226   ac_cv_lib_util_getloadavg=no
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8229     conftest$ac_exeext conftest.$ac_ext
8230 LIBS=$ac_check_lib_save_LIBS
8231 fi
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8233 printf "%s\n" "$ac_cv_lib_util_getloadavg" >&6; }
8234 if test "x$ac_cv_lib_util_getloadavg" = xyes
8235 then :
8236   LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
8237 fi
8238
8239    fi
8240
8241    if test $gl_func_getloadavg_done = no; then
8242      # There is a commonly available library for RS/6000 AIX.
8243      # Since it is not a standard part of AIX, it might be installed locally.
8244      gl_getloadavg_LIBS=$LIBS
8245      if test $cross_compiling != yes; then
8246        LIBS="-L/usr/local/lib $LIBS"
8247      fi
8248      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8249 printf %s "checking for getloadavg in -lgetloadavg... " >&6; }
8250 if test ${ac_cv_lib_getloadavg_getloadavg+y}
8251 then :
8252   printf %s "(cached) " >&6
8253 else $as_nop
8254   ac_check_lib_save_LIBS=$LIBS
8255 LIBS="-lgetloadavg  $LIBS"
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260    Use char because int might match the return type of a GCC
8261    builtin and then its argument prototype would still apply.  */
8262 char getloadavg ();
8263 int
8264 main (void)
8265 {
8266 return getloadavg ();
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 if ac_fn_c_try_link "$LINENO"
8272 then :
8273   ac_cv_lib_getloadavg_getloadavg=yes
8274 else $as_nop
8275   ac_cv_lib_getloadavg_getloadavg=no
8276 fi
8277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8278     conftest$ac_exeext conftest.$ac_ext
8279 LIBS=$ac_check_lib_save_LIBS
8280 fi
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8282 printf "%s\n" "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8283 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
8284 then :
8285   LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
8286 else $as_nop
8287   LIBS=$gl_getloadavg_LIBS
8288 fi
8289
8290    fi
8291
8292    # Set up the replacement function if necessary.
8293    if test $gl_func_getloadavg_done = no; then
8294      HAVE_GETLOADAVG=0
8295
8296      # Solaris has libkstat which does not require root.
8297      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
8298 printf %s "checking for kstat_open in -lkstat... " >&6; }
8299 if test ${ac_cv_lib_kstat_kstat_open+y}
8300 then :
8301   printf %s "(cached) " >&6
8302 else $as_nop
8303   ac_check_lib_save_LIBS=$LIBS
8304 LIBS="-lkstat  $LIBS"
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h.  */
8307
8308 /* Override any GCC internal prototype to avoid an error.
8309    Use char because int might match the return type of a GCC
8310    builtin and then its argument prototype would still apply.  */
8311 char kstat_open ();
8312 int
8313 main (void)
8314 {
8315 return kstat_open ();
8316   ;
8317   return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_link "$LINENO"
8321 then :
8322   ac_cv_lib_kstat_kstat_open=yes
8323 else $as_nop
8324   ac_cv_lib_kstat_kstat_open=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8327     conftest$ac_exeext conftest.$ac_ext
8328 LIBS=$ac_check_lib_save_LIBS
8329 fi
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
8331 printf "%s\n" "$ac_cv_lib_kstat_kstat_open" >&6; }
8332 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
8333 then :
8334   printf "%s\n" "#define HAVE_LIBKSTAT 1" >>confdefs.h
8335
8336   LIBS="-lkstat $LIBS"
8337
8338 fi
8339
8340      test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
8341
8342      # AIX has libperfstat which does not require root
8343      if test $gl_func_getloadavg_done = no; then
8344        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
8345 printf %s "checking for perfstat_cpu_total in -lperfstat... " >&6; }
8346 if test ${ac_cv_lib_perfstat_perfstat_cpu_total+y}
8347 then :
8348   printf %s "(cached) " >&6
8349 else $as_nop
8350   ac_check_lib_save_LIBS=$LIBS
8351 LIBS="-lperfstat  $LIBS"
8352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h.  */
8354
8355 /* Override any GCC internal prototype to avoid an error.
8356    Use char because int might match the return type of a GCC
8357    builtin and then its argument prototype would still apply.  */
8358 char perfstat_cpu_total ();
8359 int
8360 main (void)
8361 {
8362 return perfstat_cpu_total ();
8363   ;
8364   return 0;
8365 }
8366 _ACEOF
8367 if ac_fn_c_try_link "$LINENO"
8368 then :
8369   ac_cv_lib_perfstat_perfstat_cpu_total=yes
8370 else $as_nop
8371   ac_cv_lib_perfstat_perfstat_cpu_total=no
8372 fi
8373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8374     conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8376 fi
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
8378 printf "%s\n" "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
8379 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
8380 then :
8381   printf "%s\n" "#define HAVE_LIBPERFSTAT 1" >>confdefs.h
8382
8383   LIBS="-lperfstat $LIBS"
8384
8385 fi
8386
8387        test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
8388      fi
8389
8390      if test $gl_func_getloadavg_done = no; then
8391        ac_fn_c_check_header_compile "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8392 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
8393 then :
8394   gl_func_getloadavg_done=yes
8395
8396 printf "%s\n" "#define DGUX 1" >>confdefs.h
8397
8398           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8399 printf %s "checking for dg_sys_info in -ldgc... " >&6; }
8400 if test ${ac_cv_lib_dgc_dg_sys_info+y}
8401 then :
8402   printf %s "(cached) " >&6
8403 else $as_nop
8404   ac_check_lib_save_LIBS=$LIBS
8405 LIBS="-ldgc  $LIBS"
8406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8407 /* end confdefs.h.  */
8408
8409 /* Override any GCC internal prototype to avoid an error.
8410    Use char because int might match the return type of a GCC
8411    builtin and then its argument prototype would still apply.  */
8412 char dg_sys_info ();
8413 int
8414 main (void)
8415 {
8416 return dg_sys_info ();
8417   ;
8418   return 0;
8419 }
8420 _ACEOF
8421 if ac_fn_c_try_link "$LINENO"
8422 then :
8423   ac_cv_lib_dgc_dg_sys_info=yes
8424 else $as_nop
8425   ac_cv_lib_dgc_dg_sys_info=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8428     conftest$ac_exeext conftest.$ac_ext
8429 LIBS=$ac_check_lib_save_LIBS
8430 fi
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8432 printf "%s\n" "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8433 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
8434 then :
8435   printf "%s\n" "#define HAVE_LIBDGC 1" >>confdefs.h
8436
8437   LIBS="-ldgc $LIBS"
8438
8439 fi
8440
8441 fi
8442
8443      fi
8444    fi
8445 fi
8446
8447
8448 if test "x$gl_save_LIBS" = x; then
8449   GETLOADAVG_LIBS=$LIBS
8450 else
8451   GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
8452 fi
8453 LIBS=$gl_save_LIBS
8454
8455
8456 # Test whether the system declares getloadavg. Solaris has the function
8457 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
8458 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
8459 if test "x$ac_cv_header_sys_loadavg_h" = xyes
8460 then :
8461   printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
8462
8463 fi
8464
8465 if test $ac_cv_header_sys_loadavg_h = yes; then
8466   HAVE_SYS_LOADAVG_H=1
8467 else
8468   HAVE_SYS_LOADAVG_H=0
8469 fi
8470 ac_fn_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
8471     /* OpenIndiana has a bug: <sys/time.h> must be included before
8472        <sys/loadavg.h>.  */
8473     # include <sys/time.h>
8474     # include <sys/loadavg.h>
8475     #endif
8476     #include <stdlib.h>
8477 " "$ac_c_undeclared_builtin_options" "CFLAGS"
8478 if test "x$ac_cv_have_decl_getloadavg" = xyes
8479 then :
8480
8481 else $as_nop
8482   HAVE_DECL_GETLOADAVG=0
8483 fi
8484
8485
8486      if test $HAVE_GETLOADAVG = 0; then
8487   GL_COND_OBJ_GETLOADAVG_TRUE=
8488   GL_COND_OBJ_GETLOADAVG_FALSE='#'
8489 else
8490   GL_COND_OBJ_GETLOADAVG_TRUE='#'
8491   GL_COND_OBJ_GETLOADAVG_FALSE=
8492 fi
8493 :
8494     if test -z "${GL_COND_OBJ_GETLOADAVG_TRUE}" && test -z "${GL_COND_OBJ_GETLOADAVG_FALSE}"; then
8495     GL_COND_OBJ_GETLOADAVG_TRUE='#'
8496     GL_COND_OBJ_GETLOADAVG_FALSE='#'
8497   fi
8498
8499   if test -z "$GL_COND_OBJ_GETLOADAVG_TRUE"; then :
8500
8501
8502 # Figure out what our getloadavg.c needs.
8503
8504
8505
8506 # On HPUX9, an unprivileged user can get load averages this way.
8507 if test $gl_func_getloadavg_done = no; then
8508
8509   for ac_func in pstat_getdynamic
8510 do :
8511   ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
8512 if test "x$ac_cv_func_pstat_getdynamic" = xyes
8513 then :
8514   printf "%s\n" "#define HAVE_PSTAT_GETDYNAMIC 1" >>confdefs.h
8515  gl_func_getloadavg_done=yes
8516 fi
8517
8518 done
8519 fi
8520
8521 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
8522 # uses stabs), but it is still SVR4.  We cannot check for <elf.h> because
8523 # Irix 4.0.5F has the header but not the library.
8524 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
8525     && test "$ac_cv_lib_kvm_kvm_open" = yes; then
8526   gl_func_getloadavg_done=yes
8527
8528 printf "%s\n" "#define SVR4 1" >>confdefs.h
8529
8530 fi
8531
8532 if test $gl_func_getloadavg_done = no; then
8533   ac_fn_c_check_header_compile "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
8534 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
8535 then :
8536   gl_func_getloadavg_done=yes
8537
8538 printf "%s\n" "#define UMAX 1" >>confdefs.h
8539
8540
8541 printf "%s\n" "#define UMAX4_3 1" >>confdefs.h
8542
8543 fi
8544
8545 fi
8546
8547 if test $gl_func_getloadavg_done = no; then
8548   ac_fn_c_check_header_compile "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
8549 if test "x$ac_cv_header_sys_cpustats_h" = xyes
8550 then :
8551   gl_func_getloadavg_done=yes; printf "%s\n" "#define UMAX 1" >>confdefs.h
8552
8553 fi
8554
8555 fi
8556
8557 if test $gl_func_getloadavg_done = no; then
8558   ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
8559 if test "x$ac_cv_header_mach_mach_h" = xyes
8560 then :
8561   printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h
8562
8563 fi
8564
8565 fi
8566
8567        for ac_header in nlist.h
8568 do :
8569   ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
8570 if test "x$ac_cv_header_nlist_h" = xyes
8571 then :
8572   printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
8573  ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
8574 "
8575 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
8576 then :
8577
8578 printf "%s\n" "#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1" >>confdefs.h
8579
8580
8581 fi
8582
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584 /* end confdefs.h.  */
8585 #include <nlist.h>
8586 int
8587 main (void)
8588 {
8589 struct nlist x;
8590                     #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
8591                     x.n_un.n_name = "";
8592                     #else
8593                     x.n_name = "";
8594                     #endif
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 if ac_fn_c_try_link "$LINENO"
8600 then :
8601
8602 printf "%s\n" "#define N_NAME_POINTER 1" >>confdefs.h
8603
8604 fi
8605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8606     conftest$ac_exeext conftest.$ac_ext
8607
8608 fi
8609
8610 done
8611
8612 fi
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622           GL_GNULIB_GETLOADAVG=1
8623
8624
8625
8626
8627
8628 printf "%s\n" "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h
8629
8630
8631
8632
8633
8634   # Check the system to see if it provides GNU glob.  If not, use our
8635   # local version.
8636   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system libc has GNU glob" >&5
8637 printf %s "checking if system libc has GNU glob... " >&6; }
8638 if test ${make_cv_sys_gnu_glob+y}
8639 then :
8640   printf %s "(cached) " >&6
8641 else $as_nop
8642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643 /* end confdefs.h.  */
8644
8645   #include <features.h>
8646   #include <glob.h>
8647   #include <fnmatch.h>
8648   #if !defined _LIBC && defined __GNU_LIBRARY__ && __GNU_LIBRARY__ > 1
8649   # include <gnu-versions.h>
8650   # if _GNU_GLOB_INTERFACE_VERSION == 1 || _GNU_GLOB_INTERFACE_VERSION == 2
8651      gnu glob
8652   # endif
8653   #endif
8654 _ACEOF
8655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8656   $EGREP "gnu glob" >/dev/null 2>&1
8657 then :
8658   make_cv_sys_gnu_glob=yes
8659 else $as_nop
8660   make_cv_sys_gnu_glob=no
8661 fi
8662 rm -rf conftest*
8663
8664 fi
8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
8666 printf "%s\n" "$make_cv_sys_gnu_glob" >&6; }
8667   # Tell automake about this, so it can build the right .c files.
8668    if test "$make_cv_sys_gnu_glob" = yes; then
8669   USE_SYSTEM_GLOB_TRUE=
8670   USE_SYSTEM_GLOB_FALSE='#'
8671 else
8672   USE_SYSTEM_GLOB_TRUE='#'
8673   USE_SYSTEM_GLOB_FALSE=
8674 fi
8675
8676   # Tell build.sh which to use
8677   USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
8678
8679   # Check for DOS-style pathnames.
8680
8681   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
8682 printf %s "checking whether system uses MSDOS-style paths... " >&6; }
8683 if test ${ac_cv_dos_paths+y}
8684 then :
8685   printf %s "(cached) " >&6
8686 else $as_nop
8687
8688     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h.  */
8690
8691 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
8692 neither MSDOS nor Windows nor OS2
8693 #endif
8694
8695 int
8696 main (void)
8697 {
8698
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 if ac_fn_c_try_compile "$LINENO"
8704 then :
8705   ac_cv_dos_paths=yes
8706 else $as_nop
8707   ac_cv_dos_paths=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8710 fi
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
8712 printf "%s\n" "$ac_cv_dos_paths" >&6; }
8713
8714   if test x"$ac_cv_dos_paths" = xyes
8715 then :
8716
8717 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
8718
8719 fi
8720
8721
8722
8723
8724
8725           if test "$ac_cv_header_stdbool_h" = yes; then
8726     case "$host_os" in
8727       solaris*)
8728         if test -z "$GCC"; then
8729           GL_GENERATE_STDBOOL_H=true
8730         else
8731           GL_GENERATE_STDBOOL_H=false
8732         fi
8733         ;;
8734       *)
8735         GL_GENERATE_STDBOOL_H=false
8736         ;;
8737     esac
8738   else
8739     GL_GENERATE_STDBOOL_H=true
8740   fi
8741
8742   if test "$ac_cv_type__Bool" = yes; then
8743     HAVE__BOOL=1
8744   else
8745     HAVE__BOOL=0
8746   fi
8747
8748
8749
8750
8751
8752
8753   case "$GL_GENERATE_STDBOOL_H" in
8754     false) STDBOOL_H='' ;;
8755     true)
8756                   if test -z "$STDBOOL_H"; then
8757         STDBOOL_H="${gl_source_base_prefix}stdbool.h"
8758       fi
8759       ;;
8760     *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
8761   esac
8762
8763
8764      if $GL_GENERATE_STDBOOL_H; then
8765   GL_GENERATE_STDBOOL_H_TRUE=
8766   GL_GENERATE_STDBOOL_H_FALSE='#'
8767 else
8768   GL_GENERATE_STDBOOL_H_TRUE='#'
8769   GL_GENERATE_STDBOOL_H_FALSE=
8770 fi
8771 :
8772     if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
8773     GL_GENERATE_STDBOOL_H_TRUE='#'
8774     GL_GENERATE_STDBOOL_H_FALSE='#'
8775   fi
8776
8777
8778
8779
8780
8781
8782   # End of code from modules
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792   gltests_libdeps=
8793   gltests_ltlibdeps=
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806   gl_source_base='tests'
8807   gl_source_base_prefix=
8808   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
8809
8810   gl_module_indicator_condition=$gltests_WITNESS
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823   LIBGNU_LIBDEPS="$gl_libdeps"
8824
8825   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
8826
8827
8828
8829
8830 if test -n "$ac_tool_prefix"; then
8831   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 printf %s "checking for $ac_word... " >&6; }
8835 if test ${ac_cv_prog_RANLIB+y}
8836 then :
8837   printf %s "(cached) " >&6
8838 else $as_nop
8839   if test -n "$RANLIB"; then
8840   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845   IFS=$as_save_IFS
8846   case $as_dir in #(((
8847     '') as_dir=./ ;;
8848     */) ;;
8849     *) as_dir=$as_dir/ ;;
8850   esac
8851     for ac_exec_ext in '' $ac_executable_extensions; do
8852   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8853     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8854     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8855     break 2
8856   fi
8857 done
8858   done
8859 IFS=$as_save_IFS
8860
8861 fi
8862 fi
8863 RANLIB=$ac_cv_prog_RANLIB
8864 if test -n "$RANLIB"; then
8865   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8866 printf "%s\n" "$RANLIB" >&6; }
8867 else
8868   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 printf "%s\n" "no" >&6; }
8870 fi
8871
8872
8873 fi
8874 if test -z "$ac_cv_prog_RANLIB"; then
8875   ac_ct_RANLIB=$RANLIB
8876   # Extract the first word of "ranlib", so it can be a program name with args.
8877 set dummy ranlib; ac_word=$2
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 printf %s "checking for $ac_word... " >&6; }
8880 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8881 then :
8882   printf %s "(cached) " >&6
8883 else $as_nop
8884   if test -n "$ac_ct_RANLIB"; then
8885   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8886 else
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890   IFS=$as_save_IFS
8891   case $as_dir in #(((
8892     '') as_dir=./ ;;
8893     */) ;;
8894     *) as_dir=$as_dir/ ;;
8895   esac
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8898     ac_cv_prog_ac_ct_RANLIB="ranlib"
8899     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905
8906 fi
8907 fi
8908 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8909 if test -n "$ac_ct_RANLIB"; then
8910   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8911 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8912 else
8913   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 printf "%s\n" "no" >&6; }
8915 fi
8916
8917   if test "x$ac_ct_RANLIB" = x; then
8918     RANLIB=":"
8919   else
8920     case $cross_compiling:$ac_tool_warned in
8921 yes:)
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8925 esac
8926     RANLIB=$ac_ct_RANLIB
8927   fi
8928 else
8929   RANLIB="$ac_cv_prog_RANLIB"
8930 fi
8931
8932 ac_ext=c
8933 ac_cpp='$CPP $CPPFLAGS'
8934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8938 printf %s "checking how to run the C preprocessor... " >&6; }
8939 # On Suns, sometimes $CPP names a directory.
8940 if test -n "$CPP" && test -d "$CPP"; then
8941   CPP=
8942 fi
8943 if test -z "$CPP"; then
8944   if test ${ac_cv_prog_CPP+y}
8945 then :
8946   printf %s "(cached) " >&6
8947 else $as_nop
8948       # Double quotes because $CC needs to be expanded
8949     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
8950     do
8951       ac_preproc_ok=false
8952 for ac_c_preproc_warn_flag in '' yes
8953 do
8954   # Use a header file that comes with gcc, so configuring glibc
8955   # with a fresh cross-compiler works.
8956   # On the NeXT, cc -E runs the code through the compiler's parser,
8957   # not just through cpp. "Syntax error" is here to catch this case.
8958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h.  */
8960 #include <limits.h>
8961                      Syntax error
8962 _ACEOF
8963 if ac_fn_c_try_cpp "$LINENO"
8964 then :
8965
8966 else $as_nop
8967   # Broken: fails on valid input.
8968 continue
8969 fi
8970 rm -f conftest.err conftest.i conftest.$ac_ext
8971
8972   # OK, works on sane cases.  Now check whether nonexistent headers
8973   # can be detected and how.
8974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h.  */
8976 #include <ac_nonexistent.h>
8977 _ACEOF
8978 if ac_fn_c_try_cpp "$LINENO"
8979 then :
8980   # Broken: success on invalid input.
8981 continue
8982 else $as_nop
8983   # Passes both tests.
8984 ac_preproc_ok=:
8985 break
8986 fi
8987 rm -f conftest.err conftest.i conftest.$ac_ext
8988
8989 done
8990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8991 rm -f conftest.i conftest.err conftest.$ac_ext
8992 if $ac_preproc_ok
8993 then :
8994   break
8995 fi
8996
8997     done
8998     ac_cv_prog_CPP=$CPP
8999
9000 fi
9001   CPP=$ac_cv_prog_CPP
9002 else
9003   ac_cv_prog_CPP=$CPP
9004 fi
9005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9006 printf "%s\n" "$CPP" >&6; }
9007 ac_preproc_ok=false
9008 for ac_c_preproc_warn_flag in '' yes
9009 do
9010   # Use a header file that comes with gcc, so configuring glibc
9011   # with a fresh cross-compiler works.
9012   # On the NeXT, cc -E runs the code through the compiler's parser,
9013   # not just through cpp. "Syntax error" is here to catch this case.
9014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h.  */
9016 #include <limits.h>
9017                      Syntax error
9018 _ACEOF
9019 if ac_fn_c_try_cpp "$LINENO"
9020 then :
9021
9022 else $as_nop
9023   # Broken: fails on valid input.
9024 continue
9025 fi
9026 rm -f conftest.err conftest.i conftest.$ac_ext
9027
9028   # OK, works on sane cases.  Now check whether nonexistent headers
9029   # can be detected and how.
9030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h.  */
9032 #include <ac_nonexistent.h>
9033 _ACEOF
9034 if ac_fn_c_try_cpp "$LINENO"
9035 then :
9036   # Broken: success on invalid input.
9037 continue
9038 else $as_nop
9039   # Passes both tests.
9040 ac_preproc_ok=:
9041 break
9042 fi
9043 rm -f conftest.err conftest.i conftest.$ac_ext
9044
9045 done
9046 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9047 rm -f conftest.i conftest.err conftest.$ac_ext
9048 if $ac_preproc_ok
9049 then :
9050
9051 else $as_nop
9052   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9053 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9054 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9055 See \`config.log' for more details" "$LINENO" 5; }
9056 fi
9057
9058 ac_ext=c
9059 ac_cpp='$CPP $CPPFLAGS'
9060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9063
9064 # Extract the first word of "ar", so it can be a program name with args.
9065 set dummy ar; ac_word=$2
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067 printf %s "checking for $ac_word... " >&6; }
9068 if test ${ac_cv_prog_AR+y}
9069 then :
9070   printf %s "(cached) " >&6
9071 else $as_nop
9072   if test -n "$AR"; then
9073   ac_cv_prog_AR="$AR" # Let the user override the test.
9074 else
9075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9076 for as_dir in $PATH
9077 do
9078   IFS=$as_save_IFS
9079   case $as_dir in #(((
9080     '') as_dir=./ ;;
9081     */) ;;
9082     *) as_dir=$as_dir/ ;;
9083   esac
9084     for ac_exec_ext in '' $ac_executable_extensions; do
9085   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9086     ac_cv_prog_AR="ar"
9087     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9088     break 2
9089   fi
9090 done
9091   done
9092 IFS=$as_save_IFS
9093
9094   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9095 fi
9096 fi
9097 AR=$ac_cv_prog_AR
9098 if test -n "$AR"; then
9099   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9100 printf "%s\n" "$AR" >&6; }
9101 else
9102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 printf "%s\n" "no" >&6; }
9104 fi
9105
9106
9107 # Perl is needed for the test suite (only)
9108 # Extract the first word of "perl", so it can be a program name with args.
9109 set dummy perl; ac_word=$2
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111 printf %s "checking for $ac_word... " >&6; }
9112 if test ${ac_cv_prog_PERL+y}
9113 then :
9114   printf %s "(cached) " >&6
9115 else $as_nop
9116   if test -n "$PERL"; then
9117   ac_cv_prog_PERL="$PERL" # Let the user override the test.
9118 else
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9121 do
9122   IFS=$as_save_IFS
9123   case $as_dir in #(((
9124     '') as_dir=./ ;;
9125     */) ;;
9126     *) as_dir=$as_dir/ ;;
9127   esac
9128     for ac_exec_ext in '' $ac_executable_extensions; do
9129   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9130     ac_cv_prog_PERL="perl"
9131     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9132     break 2
9133   fi
9134 done
9135   done
9136 IFS=$as_save_IFS
9137
9138   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
9139 fi
9140 fi
9141 PERL=$ac_cv_prog_PERL
9142 if test -n "$PERL"; then
9143   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9144 printf "%s\n" "$PERL" >&6; }
9145 else
9146   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 printf "%s\n" "no" >&6; }
9148 fi
9149
9150
9151
9152 # Specialized system macros
9153
9154  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9155 printf %s "checking whether byte ordering is bigendian... " >&6; }
9156 if test ${ac_cv_c_bigendian+y}
9157 then :
9158   printf %s "(cached) " >&6
9159 else $as_nop
9160   ac_cv_c_bigendian=unknown
9161     # See if we're dealing with a universal compiler.
9162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h.  */
9164 #ifndef __APPLE_CC__
9165                not a universal capable compiler
9166              #endif
9167              typedef int dummy;
9168
9169 _ACEOF
9170 if ac_fn_c_try_compile "$LINENO"
9171 then :
9172
9173         # Check for potential -arch flags.  It is not universal unless
9174         # there are at least two -arch flags with different values.
9175         ac_arch=
9176         ac_prev=
9177         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9178          if test -n "$ac_prev"; then
9179            case $ac_word in
9180              i?86 | x86_64 | ppc | ppc64)
9181                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9182                  ac_arch=$ac_word
9183                else
9184                  ac_cv_c_bigendian=universal
9185                  break
9186                fi
9187                ;;
9188            esac
9189            ac_prev=
9190          elif test "x$ac_word" = "x-arch"; then
9191            ac_prev=arch
9192          fi
9193        done
9194 fi
9195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9196     if test $ac_cv_c_bigendian = unknown; then
9197       # See if sys/param.h defines the BYTE_ORDER macro.
9198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h.  */
9200 #include <sys/types.h>
9201              #include <sys/param.h>
9202
9203 int
9204 main (void)
9205 {
9206 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9207                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9208                      && LITTLE_ENDIAN)
9209               bogus endian macros
9210              #endif
9211
9212   ;
9213   return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_compile "$LINENO"
9217 then :
9218   # It does; now see whether it defined to BIG_ENDIAN or not.
9219          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h.  */
9221 #include <sys/types.h>
9222                 #include <sys/param.h>
9223
9224 int
9225 main (void)
9226 {
9227 #if BYTE_ORDER != BIG_ENDIAN
9228                  not big endian
9229                 #endif
9230
9231   ;
9232   return 0;
9233 }
9234 _ACEOF
9235 if ac_fn_c_try_compile "$LINENO"
9236 then :
9237   ac_cv_c_bigendian=yes
9238 else $as_nop
9239   ac_cv_c_bigendian=no
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9244     fi
9245     if test $ac_cv_c_bigendian = unknown; then
9246       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9247       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9248 /* end confdefs.h.  */
9249 #include <limits.h>
9250
9251 int
9252 main (void)
9253 {
9254 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9255               bogus endian macros
9256              #endif
9257
9258   ;
9259   return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_c_try_compile "$LINENO"
9263 then :
9264   # It does; now see whether it defined to _BIG_ENDIAN or not.
9265          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9266 /* end confdefs.h.  */
9267 #include <limits.h>
9268
9269 int
9270 main (void)
9271 {
9272 #ifndef _BIG_ENDIAN
9273                  not big endian
9274                 #endif
9275
9276   ;
9277   return 0;
9278 }
9279 _ACEOF
9280 if ac_fn_c_try_compile "$LINENO"
9281 then :
9282   ac_cv_c_bigendian=yes
9283 else $as_nop
9284   ac_cv_c_bigendian=no
9285 fi
9286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9289     fi
9290     if test $ac_cv_c_bigendian = unknown; then
9291       # Compile a test program.
9292       if test "$cross_compiling" = yes
9293 then :
9294   # Try to guess by grepping values from an object file.
9295          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297 unsigned short int ascii_mm[] =
9298                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9299                 unsigned short int ascii_ii[] =
9300                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9301                 int use_ascii (int i) {
9302                   return ascii_mm[i] + ascii_ii[i];
9303                 }
9304                 unsigned short int ebcdic_ii[] =
9305                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9306                 unsigned short int ebcdic_mm[] =
9307                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9308                 int use_ebcdic (int i) {
9309                   return ebcdic_mm[i] + ebcdic_ii[i];
9310                 }
9311                 extern int foo;
9312
9313 int
9314 main (void)
9315 {
9316 return use_ascii (foo) == use_ebcdic (foo);
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"
9322 then :
9323   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9324               ac_cv_c_bigendian=yes
9325             fi
9326             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9327               if test "$ac_cv_c_bigendian" = unknown; then
9328                 ac_cv_c_bigendian=no
9329               else
9330                 # finding both strings is unlikely to happen, but who knows?
9331                 ac_cv_c_bigendian=unknown
9332               fi
9333             fi
9334 fi
9335 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9336 else $as_nop
9337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h.  */
9339 $ac_includes_default
9340 int
9341 main (void)
9342 {
9343
9344              /* Are we little or big endian?  From Harbison&Steele.  */
9345              union
9346              {
9347                long int l;
9348                char c[sizeof (long int)];
9349              } u;
9350              u.l = 1;
9351              return u.c[sizeof (long int) - 1] == 1;
9352
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 if ac_fn_c_try_run "$LINENO"
9358 then :
9359   ac_cv_c_bigendian=no
9360 else $as_nop
9361   ac_cv_c_bigendian=yes
9362 fi
9363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9364   conftest.$ac_objext conftest.beam conftest.$ac_ext
9365 fi
9366
9367     fi
9368 fi
9369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9370 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
9371  case $ac_cv_c_bigendian in #(
9372    yes)
9373      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
9374 ;; #(
9375    no)
9376       ;; #(
9377    universal)
9378
9379 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9380
9381      ;; #(
9382    *)
9383      as_fn_error $? "unknown endianness
9384  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9385  esac
9386
9387
9388 # Enable gettext, in "external" mode.
9389
9390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9391 printf %s "checking for a sed that does not truncate output... " >&6; }
9392 if test ${ac_cv_path_SED+y}
9393 then :
9394   printf %s "(cached) " >&6
9395 else $as_nop
9396             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9397      for ac_i in 1 2 3 4 5 6 7; do
9398        ac_script="$ac_script$as_nl$ac_script"
9399      done
9400      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9401      { ac_script=; unset ac_script;}
9402      if test -z "$SED"; then
9403   ac_path_SED_found=false
9404   # Loop through the user's path and test for each of PROGNAME-LIST
9405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9407 do
9408   IFS=$as_save_IFS
9409   case $as_dir in #(((
9410     '') as_dir=./ ;;
9411     */) ;;
9412     *) as_dir=$as_dir/ ;;
9413   esac
9414     for ac_prog in sed gsed
9415    do
9416     for ac_exec_ext in '' $ac_executable_extensions; do
9417       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9418       as_fn_executable_p "$ac_path_SED" || continue
9419 # Check for GNU ac_path_SED and select it if it is found.
9420   # Check for GNU $ac_path_SED
9421 case `"$ac_path_SED" --version 2>&1` in
9422 *GNU*)
9423   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9424 *)
9425   ac_count=0
9426   printf %s 0123456789 >"conftest.in"
9427   while :
9428   do
9429     cat "conftest.in" "conftest.in" >"conftest.tmp"
9430     mv "conftest.tmp" "conftest.in"
9431     cp "conftest.in" "conftest.nl"
9432     printf "%s\n" '' >> "conftest.nl"
9433     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9434     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9435     as_fn_arith $ac_count + 1 && ac_count=$as_val
9436     if test $ac_count -gt ${ac_path_SED_max-0}; then
9437       # Best one so far, save it but keep looking for a better one
9438       ac_cv_path_SED="$ac_path_SED"
9439       ac_path_SED_max=$ac_count
9440     fi
9441     # 10*(2^10) chars as input seems more than enough
9442     test $ac_count -gt 10 && break
9443   done
9444   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9445 esac
9446
9447       $ac_path_SED_found && break 3
9448     done
9449   done
9450   done
9451 IFS=$as_save_IFS
9452   if test -z "$ac_cv_path_SED"; then
9453     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9454   fi
9455 else
9456   ac_cv_path_SED=$SED
9457 fi
9458
9459 fi
9460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9461 printf "%s\n" "$ac_cv_path_SED" >&6; }
9462  SED="$ac_cv_path_SED"
9463   rm -f conftest.sed
9464
9465
9466   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
9467 printf %s "checking whether NLS is requested... " >&6; }
9468     # Check whether --enable-nls was given.
9469 if test ${enable_nls+y}
9470 then :
9471   enableval=$enable_nls; USE_NLS=$enableval
9472 else $as_nop
9473   USE_NLS=yes
9474 fi
9475
9476   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9477 printf "%s\n" "$USE_NLS" >&6; }
9478
9479
9480
9481
9482       GETTEXT_MACRO_VERSION=0.19
9483
9484
9485
9486
9487 # Prepare PATH_SEPARATOR.
9488 # The user is always right.
9489 if test "${PATH_SEPARATOR+set}" != set; then
9490   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9491   # contains only /bin. Note that ksh looks also at the FPATH variable,
9492   # so we have to set that as well for the test.
9493   PATH_SEPARATOR=:
9494   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9495     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9496            || PATH_SEPARATOR=';'
9497        }
9498 fi
9499
9500 # Find out how to test for executable files. Don't use a zero-byte file,
9501 # as systems may use methods other than mode bits to determine executability.
9502 cat >conf$$.file <<_ASEOF
9503 #! /bin/sh
9504 exit 0
9505 _ASEOF
9506 chmod +x conf$$.file
9507 if test -x conf$$.file >/dev/null 2>&1; then
9508   ac_executable_p="test -x"
9509 else
9510   ac_executable_p="test -f"
9511 fi
9512 rm -f conf$$.file
9513
9514 # Extract the first word of "msgfmt", so it can be a program name with args.
9515 set dummy msgfmt; ac_word=$2
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9517 printf %s "checking for $ac_word... " >&6; }
9518 if test ${ac_cv_path_MSGFMT+y}
9519 then :
9520   printf %s "(cached) " >&6
9521 else $as_nop
9522   case "$MSGFMT" in
9523   [\\/]* | ?:[\\/]*)
9524     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9525     ;;
9526   *)
9527     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9528     for ac_dir in $PATH; do
9529       IFS="$ac_save_IFS"
9530       test -z "$ac_dir" && ac_dir=.
9531       for ac_exec_ext in '' $ac_executable_extensions; do
9532         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9533           echo "$as_me: trying $ac_dir/$ac_word..." >&5
9534           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
9535      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
9536             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
9537             break 2
9538           fi
9539         fi
9540       done
9541     done
9542     IFS="$ac_save_IFS"
9543   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
9544     ;;
9545 esac
9546 fi
9547 MSGFMT="$ac_cv_path_MSGFMT"
9548 if test "$MSGFMT" != ":"; then
9549   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9550 printf "%s\n" "$MSGFMT" >&6; }
9551 else
9552   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 printf "%s\n" "no" >&6; }
9554 fi
9555
9556   # Extract the first word of "gmsgfmt", so it can be a program name with args.
9557 set dummy gmsgfmt; ac_word=$2
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 printf %s "checking for $ac_word... " >&6; }
9560 if test ${ac_cv_path_GMSGFMT+y}
9561 then :
9562   printf %s "(cached) " >&6
9563 else $as_nop
9564   case $GMSGFMT in
9565   [\\/]* | ?:[\\/]*)
9566   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
9567   ;;
9568   *)
9569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9571 do
9572   IFS=$as_save_IFS
9573   case $as_dir in #(((
9574     '') as_dir=./ ;;
9575     */) ;;
9576     *) as_dir=$as_dir/ ;;
9577   esac
9578     for ac_exec_ext in '' $ac_executable_extensions; do
9579   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9580     ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
9581     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9582     break 2
9583   fi
9584 done
9585   done
9586 IFS=$as_save_IFS
9587
9588   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
9589   ;;
9590 esac
9591 fi
9592 GMSGFMT=$ac_cv_path_GMSGFMT
9593 if test -n "$GMSGFMT"; then
9594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
9595 printf "%s\n" "$GMSGFMT" >&6; }
9596 else
9597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 printf "%s\n" "no" >&6; }
9599 fi
9600
9601
9602
9603     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9604     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
9605     *) MSGFMT_015=$MSGFMT ;;
9606   esac
9607
9608   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9609     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
9610     *) GMSGFMT_015=$GMSGFMT ;;
9611   esac
9612
9613
9614
9615 # Prepare PATH_SEPARATOR.
9616 # The user is always right.
9617 if test "${PATH_SEPARATOR+set}" != set; then
9618   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9619   # contains only /bin. Note that ksh looks also at the FPATH variable,
9620   # so we have to set that as well for the test.
9621   PATH_SEPARATOR=:
9622   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9623     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9624            || PATH_SEPARATOR=';'
9625        }
9626 fi
9627
9628 # Find out how to test for executable files. Don't use a zero-byte file,
9629 # as systems may use methods other than mode bits to determine executability.
9630 cat >conf$$.file <<_ASEOF
9631 #! /bin/sh
9632 exit 0
9633 _ASEOF
9634 chmod +x conf$$.file
9635 if test -x conf$$.file >/dev/null 2>&1; then
9636   ac_executable_p="test -x"
9637 else
9638   ac_executable_p="test -f"
9639 fi
9640 rm -f conf$$.file
9641
9642 # Extract the first word of "xgettext", so it can be a program name with args.
9643 set dummy xgettext; ac_word=$2
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645 printf %s "checking for $ac_word... " >&6; }
9646 if test ${ac_cv_path_XGETTEXT+y}
9647 then :
9648   printf %s "(cached) " >&6
9649 else $as_nop
9650   case "$XGETTEXT" in
9651   [\\/]* | ?:[\\/]*)
9652     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
9653     ;;
9654   *)
9655     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9656     for ac_dir in $PATH; do
9657       IFS="$ac_save_IFS"
9658       test -z "$ac_dir" && ac_dir=.
9659       for ac_exec_ext in '' $ac_executable_extensions; do
9660         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9661           echo "$as_me: trying $ac_dir/$ac_word..." >&5
9662           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
9663      (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
9664             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
9665             break 2
9666           fi
9667         fi
9668       done
9669     done
9670     IFS="$ac_save_IFS"
9671   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
9672     ;;
9673 esac
9674 fi
9675 XGETTEXT="$ac_cv_path_XGETTEXT"
9676 if test "$XGETTEXT" != ":"; then
9677   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
9678 printf "%s\n" "$XGETTEXT" >&6; }
9679 else
9680   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9681 printf "%s\n" "no" >&6; }
9682 fi
9683
9684     rm -f messages.po
9685
9686     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
9687     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
9688     *) XGETTEXT_015=$XGETTEXT ;;
9689   esac
9690
9691
9692
9693 # Prepare PATH_SEPARATOR.
9694 # The user is always right.
9695 if test "${PATH_SEPARATOR+set}" != set; then
9696   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9697   # contains only /bin. Note that ksh looks also at the FPATH variable,
9698   # so we have to set that as well for the test.
9699   PATH_SEPARATOR=:
9700   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9701     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9702            || PATH_SEPARATOR=';'
9703        }
9704 fi
9705
9706 # Find out how to test for executable files. Don't use a zero-byte file,
9707 # as systems may use methods other than mode bits to determine executability.
9708 cat >conf$$.file <<_ASEOF
9709 #! /bin/sh
9710 exit 0
9711 _ASEOF
9712 chmod +x conf$$.file
9713 if test -x conf$$.file >/dev/null 2>&1; then
9714   ac_executable_p="test -x"
9715 else
9716   ac_executable_p="test -f"
9717 fi
9718 rm -f conf$$.file
9719
9720 # Extract the first word of "msgmerge", so it can be a program name with args.
9721 set dummy msgmerge; ac_word=$2
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723 printf %s "checking for $ac_word... " >&6; }
9724 if test ${ac_cv_path_MSGMERGE+y}
9725 then :
9726   printf %s "(cached) " >&6
9727 else $as_nop
9728   case "$MSGMERGE" in
9729   [\\/]* | ?:[\\/]*)
9730     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
9731     ;;
9732   *)
9733     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
9734     for ac_dir in $PATH; do
9735       IFS="$ac_save_IFS"
9736       test -z "$ac_dir" && ac_dir=.
9737       for ac_exec_ext in '' $ac_executable_extensions; do
9738         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
9739           echo "$as_me: trying $ac_dir/$ac_word..." >&5
9740           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
9741             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
9742             break 2
9743           fi
9744         fi
9745       done
9746     done
9747     IFS="$ac_save_IFS"
9748   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
9749     ;;
9750 esac
9751 fi
9752 MSGMERGE="$ac_cv_path_MSGMERGE"
9753 if test "$MSGMERGE" != ":"; then
9754   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
9755 printf "%s\n" "$MSGMERGE" >&6; }
9756 else
9757   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 printf "%s\n" "no" >&6; }
9759 fi
9760
9761
9762         test -n "$localedir" || localedir='${datadir}/locale'
9763
9764
9765     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
9766
9767
9768   ac_config_commands="$ac_config_commands po-directories"
9769
9770
9771
9772       if test "X$prefix" = "XNONE"; then
9773     acl_final_prefix="$ac_default_prefix"
9774   else
9775     acl_final_prefix="$prefix"
9776   fi
9777   if test "X$exec_prefix" = "XNONE"; then
9778     acl_final_exec_prefix='${prefix}'
9779   else
9780     acl_final_exec_prefix="$exec_prefix"
9781   fi
9782   acl_save_prefix="$prefix"
9783   prefix="$acl_final_prefix"
9784   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9785   prefix="$acl_save_prefix"
9786
9787
9788
9789 # Check whether --with-gnu-ld was given.
9790 if test ${with_gnu_ld+y}
9791 then :
9792   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9793 else $as_nop
9794   with_gnu_ld=no
9795 fi
9796
9797 # Prepare PATH_SEPARATOR.
9798 # The user is always right.
9799 if test "${PATH_SEPARATOR+set}" != set; then
9800   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
9801   # contains only /bin. Note that ksh looks also at the FPATH variable,
9802   # so we have to set that as well for the test.
9803   PATH_SEPARATOR=:
9804   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9805     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
9806            || PATH_SEPARATOR=';'
9807        }
9808 fi
9809
9810 ac_prog=ld
9811 if test "$GCC" = yes; then
9812   # Check if gcc -print-prog-name=ld gives a path.
9813   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9814 printf %s "checking for ld used by $CC... " >&6; }
9815   case $host in
9816   *-*-mingw*)
9817     # gcc leaves a trailing carriage return which upsets mingw
9818     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9819   *)
9820     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9821   esac
9822   case $ac_prog in
9823     # Accept absolute paths.
9824     [\\/]* | ?:[\\/]*)
9825       re_direlt='/[^/][^/]*/\.\./'
9826       # Canonicalize the pathname of ld
9827       ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
9828       while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
9829         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9830       done
9831       test -z "$LD" && LD="$ac_prog"
9832       ;;
9833   "")
9834     # If it fails, then pretend we aren't using GCC.
9835     ac_prog=ld
9836     ;;
9837   *)
9838     # If it is relative, then search for the first ld in PATH.
9839     with_gnu_ld=unknown
9840     ;;
9841   esac
9842 elif test "$with_gnu_ld" = yes; then
9843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9844 printf %s "checking for GNU ld... " >&6; }
9845 else
9846   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9847 printf %s "checking for non-GNU ld... " >&6; }
9848 fi
9849 if test ${acl_cv_path_LD+y}
9850 then :
9851   printf %s "(cached) " >&6
9852 else $as_nop
9853   if test -z "$LD"; then
9854   acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9855   for ac_dir in $PATH; do
9856     IFS="$acl_save_ifs"
9857     test -z "$ac_dir" && ac_dir=.
9858     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9859       acl_cv_path_LD="$ac_dir/$ac_prog"
9860       # Check to see if the program is GNU ld.  I'd rather use --version,
9861       # but apparently some variants of GNU ld only accept -v.
9862       # Break only if it was the GNU/non-GNU ld that we prefer.
9863       case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
9864       *GNU* | *'with BFD'*)
9865         test "$with_gnu_ld" != no && break
9866         ;;
9867       *)
9868         test "$with_gnu_ld" != yes && break
9869         ;;
9870       esac
9871     fi
9872   done
9873   IFS="$acl_save_ifs"
9874 else
9875   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9876 fi
9877 fi
9878
9879 LD="$acl_cv_path_LD"
9880 if test -n "$LD"; then
9881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9882 printf "%s\n" "$LD" >&6; }
9883 else
9884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885 printf "%s\n" "no" >&6; }
9886 fi
9887 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9889 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9890 if test ${acl_cv_prog_gnu_ld+y}
9891 then :
9892   printf %s "(cached) " >&6
9893 else $as_nop
9894   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9895 case `$LD -v 2>&1 </dev/null` in
9896 *GNU* | *'with BFD'*)
9897   acl_cv_prog_gnu_ld=yes
9898   ;;
9899 *)
9900   acl_cv_prog_gnu_ld=no
9901   ;;
9902 esac
9903 fi
9904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9905 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
9906 with_gnu_ld=$acl_cv_prog_gnu_ld
9907
9908
9909
9910
9911
9912                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9913 printf %s "checking for shared library run path origin... " >&6; }
9914 if test ${acl_cv_rpath+y}
9915 then :
9916   printf %s "(cached) " >&6
9917 else $as_nop
9918
9919     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9920     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9921     . ./conftest.sh
9922     rm -f ./conftest.sh
9923     acl_cv_rpath=done
9924
9925 fi
9926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9927 printf "%s\n" "$acl_cv_rpath" >&6; }
9928   wl="$acl_cv_wl"
9929   acl_libext="$acl_cv_libext"
9930   acl_shlibext="$acl_cv_shlibext"
9931   acl_libname_spec="$acl_cv_libname_spec"
9932   acl_library_names_spec="$acl_cv_library_names_spec"
9933   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9934   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9935   acl_hardcode_direct="$acl_cv_hardcode_direct"
9936   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
9937     # Check whether --enable-rpath was given.
9938 if test ${enable_rpath+y}
9939 then :
9940   enableval=$enable_rpath; :
9941 else $as_nop
9942   enable_rpath=yes
9943 fi
9944
9945
9946
9947
9948   acl_libdirstem=lib
9949   acl_libdirstem2=
9950   case "$host_os" in
9951     solaris*)
9952                                     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
9953 printf %s "checking for 64-bit host... " >&6; }
9954 if test ${gl_cv_solaris_64bit+y}
9955 then :
9956   printf %s "(cached) " >&6
9957 else $as_nop
9958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h.  */
9960
9961 #ifdef _LP64
9962 sixtyfour bits
9963 #endif
9964
9965 _ACEOF
9966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9967   $EGREP "sixtyfour bits" >/dev/null 2>&1
9968 then :
9969   gl_cv_solaris_64bit=yes
9970 else $as_nop
9971   gl_cv_solaris_64bit=no
9972 fi
9973 rm -rf conftest*
9974
9975
9976 fi
9977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
9978 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
9979       if test $gl_cv_solaris_64bit = yes; then
9980         acl_libdirstem=lib/64
9981         case "$host_cpu" in
9982           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
9983           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
9984         esac
9985       fi
9986       ;;
9987     *)
9988       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9989       if test -n "$searchpath"; then
9990         acl_save_IFS="${IFS=    }"; IFS=":"
9991         for searchdir in $searchpath; do
9992           if test -d "$searchdir"; then
9993             case "$searchdir" in
9994               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
9995               */../ | */.. )
9996                 # Better ignore directories of this form. They are misleading.
9997                 ;;
9998               *) searchdir=`cd "$searchdir" && pwd`
9999                  case "$searchdir" in
10000                    */lib64 ) acl_libdirstem=lib64 ;;
10001                  esac ;;
10002             esac
10003           fi
10004         done
10005         IFS="$acl_save_IFS"
10006       fi
10007       ;;
10008   esac
10009   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022     use_additional=yes
10023
10024   acl_save_prefix="$prefix"
10025   prefix="$acl_final_prefix"
10026   acl_save_exec_prefix="$exec_prefix"
10027   exec_prefix="$acl_final_exec_prefix"
10028
10029     eval additional_includedir=\"$includedir\"
10030     eval additional_libdir=\"$libdir\"
10031
10032   exec_prefix="$acl_save_exec_prefix"
10033   prefix="$acl_save_prefix"
10034
10035
10036 # Check whether --with-libiconv-prefix was given.
10037 if test ${with_libiconv_prefix+y}
10038 then :
10039   withval=$with_libiconv_prefix;
10040     if test "X$withval" = "Xno"; then
10041       use_additional=no
10042     else
10043       if test "X$withval" = "X"; then
10044
10045   acl_save_prefix="$prefix"
10046   prefix="$acl_final_prefix"
10047   acl_save_exec_prefix="$exec_prefix"
10048   exec_prefix="$acl_final_exec_prefix"
10049
10050           eval additional_includedir=\"$includedir\"
10051           eval additional_libdir=\"$libdir\"
10052
10053   exec_prefix="$acl_save_exec_prefix"
10054   prefix="$acl_save_prefix"
10055
10056       else
10057         additional_includedir="$withval/include"
10058         additional_libdir="$withval/$acl_libdirstem"
10059         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10060            && ! test -d "$withval/$acl_libdirstem"; then
10061           additional_libdir="$withval/$acl_libdirstem2"
10062         fi
10063       fi
10064     fi
10065
10066 fi
10067
10068       LIBICONV=
10069   LTLIBICONV=
10070   INCICONV=
10071   LIBICONV_PREFIX=
10072       HAVE_LIBICONV=
10073   rpathdirs=
10074   ltrpathdirs=
10075   names_already_handled=
10076   names_next_round='iconv '
10077   while test -n "$names_next_round"; do
10078     names_this_round="$names_next_round"
10079     names_next_round=
10080     for name in $names_this_round; do
10081       already_handled=
10082       for n in $names_already_handled; do
10083         if test "$n" = "$name"; then
10084           already_handled=yes
10085           break
10086         fi
10087       done
10088       if test -z "$already_handled"; then
10089         names_already_handled="$names_already_handled $name"
10090                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10091         eval value=\"\$HAVE_LIB$uppername\"
10092         if test -n "$value"; then
10093           if test "$value" = yes; then
10094             eval value=\"\$LIB$uppername\"
10095             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10096             eval value=\"\$LTLIB$uppername\"
10097             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10098           else
10099                                     :
10100           fi
10101         else
10102                               found_dir=
10103           found_la=
10104           found_so=
10105           found_a=
10106           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
10107           if test -n "$acl_shlibext"; then
10108             shrext=".$acl_shlibext"             # typically: shrext=.so
10109           else
10110             shrext=
10111           fi
10112           if test $use_additional = yes; then
10113             dir="$additional_libdir"
10114                                     if test -n "$acl_shlibext"; then
10115               if test -f "$dir/$libname$shrext"; then
10116                 found_dir="$dir"
10117                 found_so="$dir/$libname$shrext"
10118               else
10119                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10120                   ver=`(cd "$dir" && \
10121                         for f in "$libname$shrext".*; do echo "$f"; done \
10122                         | sed -e "s,^$libname$shrext\\\\.,," \
10123                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10124                         | sed 1q ) 2>/dev/null`
10125                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10126                     found_dir="$dir"
10127                     found_so="$dir/$libname$shrext.$ver"
10128                   fi
10129                 else
10130                   eval library_names=\"$acl_library_names_spec\"
10131                   for f in $library_names; do
10132                     if test -f "$dir/$f"; then
10133                       found_dir="$dir"
10134                       found_so="$dir/$f"
10135                       break
10136                     fi
10137                   done
10138                 fi
10139               fi
10140             fi
10141                         if test "X$found_dir" = "X"; then
10142               if test -f "$dir/$libname.$acl_libext"; then
10143                 found_dir="$dir"
10144                 found_a="$dir/$libname.$acl_libext"
10145               fi
10146             fi
10147             if test "X$found_dir" != "X"; then
10148               if test -f "$dir/$libname.la"; then
10149                 found_la="$dir/$libname.la"
10150               fi
10151             fi
10152           fi
10153           if test "X$found_dir" = "X"; then
10154             for x in $LDFLAGS $LTLIBICONV; do
10155
10156   acl_save_prefix="$prefix"
10157   prefix="$acl_final_prefix"
10158   acl_save_exec_prefix="$exec_prefix"
10159   exec_prefix="$acl_final_exec_prefix"
10160   eval x=\"$x\"
10161   exec_prefix="$acl_save_exec_prefix"
10162   prefix="$acl_save_prefix"
10163
10164               case "$x" in
10165                 -L*)
10166                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10167                                     if test -n "$acl_shlibext"; then
10168                     if test -f "$dir/$libname$shrext"; then
10169                       found_dir="$dir"
10170                       found_so="$dir/$libname$shrext"
10171                     else
10172                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10173                         ver=`(cd "$dir" && \
10174                               for f in "$libname$shrext".*; do echo "$f"; done \
10175                               | sed -e "s,^$libname$shrext\\\\.,," \
10176                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10177                               | sed 1q ) 2>/dev/null`
10178                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10179                           found_dir="$dir"
10180                           found_so="$dir/$libname$shrext.$ver"
10181                         fi
10182                       else
10183                         eval library_names=\"$acl_library_names_spec\"
10184                         for f in $library_names; do
10185                           if test -f "$dir/$f"; then
10186                             found_dir="$dir"
10187                             found_so="$dir/$f"
10188                             break
10189                           fi
10190                         done
10191                       fi
10192                     fi
10193                   fi
10194                                     if test "X$found_dir" = "X"; then
10195                     if test -f "$dir/$libname.$acl_libext"; then
10196                       found_dir="$dir"
10197                       found_a="$dir/$libname.$acl_libext"
10198                     fi
10199                   fi
10200                   if test "X$found_dir" != "X"; then
10201                     if test -f "$dir/$libname.la"; then
10202                       found_la="$dir/$libname.la"
10203                     fi
10204                   fi
10205                   ;;
10206               esac
10207               if test "X$found_dir" != "X"; then
10208                 break
10209               fi
10210             done
10211           fi
10212           if test "X$found_dir" != "X"; then
10213                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10214             if test "X$found_so" != "X"; then
10215                                                         if test "$enable_rpath" = no \
10216                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10217                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10218                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10219               else
10220                                                                                 haveit=
10221                 for x in $ltrpathdirs; do
10222                   if test "X$x" = "X$found_dir"; then
10223                     haveit=yes
10224                     break
10225                   fi
10226                 done
10227                 if test -z "$haveit"; then
10228                   ltrpathdirs="$ltrpathdirs $found_dir"
10229                 fi
10230                                 if test "$acl_hardcode_direct" = yes; then
10231                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10232                 else
10233                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10234                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10235                                                             haveit=
10236                     for x in $rpathdirs; do
10237                       if test "X$x" = "X$found_dir"; then
10238                         haveit=yes
10239                         break
10240                       fi
10241                     done
10242                     if test -z "$haveit"; then
10243                       rpathdirs="$rpathdirs $found_dir"
10244                     fi
10245                   else
10246                                                                                 haveit=
10247                     for x in $LDFLAGS $LIBICONV; do
10248
10249   acl_save_prefix="$prefix"
10250   prefix="$acl_final_prefix"
10251   acl_save_exec_prefix="$exec_prefix"
10252   exec_prefix="$acl_final_exec_prefix"
10253   eval x=\"$x\"
10254   exec_prefix="$acl_save_exec_prefix"
10255   prefix="$acl_save_prefix"
10256
10257                       if test "X$x" = "X-L$found_dir"; then
10258                         haveit=yes
10259                         break
10260                       fi
10261                     done
10262                     if test -z "$haveit"; then
10263                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10264                     fi
10265                     if test "$acl_hardcode_minus_L" != no; then
10266                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10267                     else
10268                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10269                     fi
10270                   fi
10271                 fi
10272               fi
10273             else
10274               if test "X$found_a" != "X"; then
10275                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10276               else
10277                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10278               fi
10279             fi
10280                         additional_includedir=
10281             case "$found_dir" in
10282               */$acl_libdirstem | */$acl_libdirstem/)
10283                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10284                 if test "$name" = 'iconv'; then
10285                   LIBICONV_PREFIX="$basedir"
10286                 fi
10287                 additional_includedir="$basedir/include"
10288                 ;;
10289               */$acl_libdirstem2 | */$acl_libdirstem2/)
10290                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10291                 if test "$name" = 'iconv'; then
10292                   LIBICONV_PREFIX="$basedir"
10293                 fi
10294                 additional_includedir="$basedir/include"
10295                 ;;
10296             esac
10297             if test "X$additional_includedir" != "X"; then
10298                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10299                 haveit=
10300                 if test "X$additional_includedir" = "X/usr/local/include"; then
10301                   if test -n "$GCC"; then
10302                     case $host_os in
10303                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10304                     esac
10305                   fi
10306                 fi
10307                 if test -z "$haveit"; then
10308                   for x in $CPPFLAGS $INCICONV; do
10309
10310   acl_save_prefix="$prefix"
10311   prefix="$acl_final_prefix"
10312   acl_save_exec_prefix="$exec_prefix"
10313   exec_prefix="$acl_final_exec_prefix"
10314   eval x=\"$x\"
10315   exec_prefix="$acl_save_exec_prefix"
10316   prefix="$acl_save_prefix"
10317
10318                     if test "X$x" = "X-I$additional_includedir"; then
10319                       haveit=yes
10320                       break
10321                     fi
10322                   done
10323                   if test -z "$haveit"; then
10324                     if test -d "$additional_includedir"; then
10325                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10326                     fi
10327                   fi
10328                 fi
10329               fi
10330             fi
10331                         if test -n "$found_la"; then
10332                                                         save_libdir="$libdir"
10333               case "$found_la" in
10334                 */* | *\\*) . "$found_la" ;;
10335                 *) . "./$found_la" ;;
10336               esac
10337               libdir="$save_libdir"
10338                             for dep in $dependency_libs; do
10339                 case "$dep" in
10340                   -L*)
10341                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10342                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10343                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10344                       haveit=
10345                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10346                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10347                         if test -n "$GCC"; then
10348                           case $host_os in
10349                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10350                           esac
10351                         fi
10352                       fi
10353                       if test -z "$haveit"; then
10354                         haveit=
10355                         for x in $LDFLAGS $LIBICONV; do
10356
10357   acl_save_prefix="$prefix"
10358   prefix="$acl_final_prefix"
10359   acl_save_exec_prefix="$exec_prefix"
10360   exec_prefix="$acl_final_exec_prefix"
10361   eval x=\"$x\"
10362   exec_prefix="$acl_save_exec_prefix"
10363   prefix="$acl_save_prefix"
10364
10365                           if test "X$x" = "X-L$additional_libdir"; then
10366                             haveit=yes
10367                             break
10368                           fi
10369                         done
10370                         if test -z "$haveit"; then
10371                           if test -d "$additional_libdir"; then
10372                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10373                           fi
10374                         fi
10375                         haveit=
10376                         for x in $LDFLAGS $LTLIBICONV; do
10377
10378   acl_save_prefix="$prefix"
10379   prefix="$acl_final_prefix"
10380   acl_save_exec_prefix="$exec_prefix"
10381   exec_prefix="$acl_final_exec_prefix"
10382   eval x=\"$x\"
10383   exec_prefix="$acl_save_exec_prefix"
10384   prefix="$acl_save_prefix"
10385
10386                           if test "X$x" = "X-L$additional_libdir"; then
10387                             haveit=yes
10388                             break
10389                           fi
10390                         done
10391                         if test -z "$haveit"; then
10392                           if test -d "$additional_libdir"; then
10393                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10394                           fi
10395                         fi
10396                       fi
10397                     fi
10398                     ;;
10399                   -R*)
10400                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10401                     if test "$enable_rpath" != no; then
10402                                                                   haveit=
10403                       for x in $rpathdirs; do
10404                         if test "X$x" = "X$dir"; then
10405                           haveit=yes
10406                           break
10407                         fi
10408                       done
10409                       if test -z "$haveit"; then
10410                         rpathdirs="$rpathdirs $dir"
10411                       fi
10412                                                                   haveit=
10413                       for x in $ltrpathdirs; do
10414                         if test "X$x" = "X$dir"; then
10415                           haveit=yes
10416                           break
10417                         fi
10418                       done
10419                       if test -z "$haveit"; then
10420                         ltrpathdirs="$ltrpathdirs $dir"
10421                       fi
10422                     fi
10423                     ;;
10424                   -l*)
10425                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10426                     ;;
10427                   *.la)
10428                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10429                     ;;
10430                   *)
10431                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10432                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10433                     ;;
10434                 esac
10435               done
10436             fi
10437           else
10438                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10439             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10440           fi
10441         fi
10442       fi
10443     done
10444   done
10445   if test "X$rpathdirs" != "X"; then
10446     if test -n "$acl_hardcode_libdir_separator"; then
10447                         alldirs=
10448       for found_dir in $rpathdirs; do
10449         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
10450       done
10451             acl_save_libdir="$libdir"
10452       libdir="$alldirs"
10453       eval flag=\"$acl_hardcode_libdir_flag_spec\"
10454       libdir="$acl_save_libdir"
10455       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10456     else
10457             for found_dir in $rpathdirs; do
10458         acl_save_libdir="$libdir"
10459         libdir="$found_dir"
10460         eval flag=\"$acl_hardcode_libdir_flag_spec\"
10461         libdir="$acl_save_libdir"
10462         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10463       done
10464     fi
10465   fi
10466   if test "X$ltrpathdirs" != "X"; then
10467             for found_dir in $ltrpathdirs; do
10468       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10469     done
10470   fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10503 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
10504 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
10505 then :
10506   printf %s "(cached) " >&6
10507 else $as_nop
10508   gt_save_LIBS="$LIBS"
10509      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10510      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10511 /* end confdefs.h.  */
10512 #include <CoreFoundation/CFPreferences.h>
10513 int
10514 main (void)
10515 {
10516 CFPreferencesCopyAppValue(NULL, NULL)
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 if ac_fn_c_try_link "$LINENO"
10522 then :
10523   gt_cv_func_CFPreferencesCopyAppValue=yes
10524 else $as_nop
10525   gt_cv_func_CFPreferencesCopyAppValue=no
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10528     conftest$ac_exeext conftest.$ac_ext
10529      LIBS="$gt_save_LIBS"
10530 fi
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10532 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10533   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10534
10535 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10536
10537   fi
10538     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10539 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
10540 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
10541 then :
10542   printf %s "(cached) " >&6
10543 else $as_nop
10544   gt_save_LIBS="$LIBS"
10545      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10546      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h.  */
10548 #include <CoreFoundation/CFLocale.h>
10549 int
10550 main (void)
10551 {
10552 CFLocaleCopyCurrent();
10553   ;
10554   return 0;
10555 }
10556 _ACEOF
10557 if ac_fn_c_try_link "$LINENO"
10558 then :
10559   gt_cv_func_CFLocaleCopyCurrent=yes
10560 else $as_nop
10561   gt_cv_func_CFLocaleCopyCurrent=no
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10564     conftest$ac_exeext conftest.$ac_ext
10565      LIBS="$gt_save_LIBS"
10566 fi
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10568 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10569   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10570
10571 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10572
10573   fi
10574   INTL_MACOSX_LIBS=
10575   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10576     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10577   fi
10578
10579
10580
10581
10582
10583
10584   LIBINTL=
10585   LTLIBINTL=
10586   POSUB=
10587
10588     case " $gt_needs " in
10589     *" need-formatstring-macros "*) gt_api_version=3 ;;
10590     *" need-ngettext "*) gt_api_version=2 ;;
10591     *) gt_api_version=1 ;;
10592   esac
10593   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10594   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10595
10596     if test "$USE_NLS" = "yes"; then
10597     gt_use_preinstalled_gnugettext=no
10598
10599
10600         if test $gt_api_version -ge 3; then
10601           gt_revision_test_code='
10602 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10603 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10604 #endif
10605 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10606 '
10607         else
10608           gt_revision_test_code=
10609         fi
10610         if test $gt_api_version -ge 2; then
10611           gt_expression_test_code=' + * ngettext ("", "", 0)'
10612         else
10613           gt_expression_test_code=
10614         fi
10615
10616         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10617 printf %s "checking for GNU gettext in libc... " >&6; }
10618 if eval test \${$gt_func_gnugettext_libc+y}
10619 then :
10620   printf %s "(cached) " >&6
10621 else $as_nop
10622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h.  */
10624
10625 #include <libintl.h>
10626 $gt_revision_test_code
10627 extern int _nl_msg_cat_cntr;
10628 extern int *_nl_domain_bindings;
10629
10630 int
10631 main (void)
10632 {
10633
10634 bindtextdomain ("", "");
10635 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10636
10637   ;
10638   return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"
10642 then :
10643   eval "$gt_func_gnugettext_libc=yes"
10644 else $as_nop
10645   eval "$gt_func_gnugettext_libc=no"
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10648     conftest$ac_exeext conftest.$ac_ext
10649 fi
10650 eval ac_res=\$$gt_func_gnugettext_libc
10651                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10652 printf "%s\n" "$ac_res" >&6; }
10653
10654         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10655
10656
10657
10658
10659
10660           am_save_CPPFLAGS="$CPPFLAGS"
10661
10662   for element in $INCICONV; do
10663     haveit=
10664     for x in $CPPFLAGS; do
10665
10666   acl_save_prefix="$prefix"
10667   prefix="$acl_final_prefix"
10668   acl_save_exec_prefix="$exec_prefix"
10669   exec_prefix="$acl_final_exec_prefix"
10670   eval x=\"$x\"
10671   exec_prefix="$acl_save_exec_prefix"
10672   prefix="$acl_save_prefix"
10673
10674       if test "X$x" = "X$element"; then
10675         haveit=yes
10676         break
10677       fi
10678     done
10679     if test -z "$haveit"; then
10680       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10681     fi
10682   done
10683
10684
10685   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
10686 printf %s "checking for iconv... " >&6; }
10687 if test ${am_cv_func_iconv+y}
10688 then :
10689   printf %s "(cached) " >&6
10690 else $as_nop
10691
10692     am_cv_func_iconv="no, consider installing GNU libiconv"
10693     am_cv_lib_iconv=no
10694     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h.  */
10696
10697 #include <stdlib.h>
10698 #include <iconv.h>
10699
10700 int
10701 main (void)
10702 {
10703 iconv_t cd = iconv_open("","");
10704            iconv(cd,NULL,NULL,NULL,NULL);
10705            iconv_close(cd);
10706   ;
10707   return 0;
10708 }
10709 _ACEOF
10710 if ac_fn_c_try_link "$LINENO"
10711 then :
10712   am_cv_func_iconv=yes
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10715     conftest$ac_exeext conftest.$ac_ext
10716     if test "$am_cv_func_iconv" != yes; then
10717       am_save_LIBS="$LIBS"
10718       LIBS="$LIBS $LIBICONV"
10719       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10720 /* end confdefs.h.  */
10721
10722 #include <stdlib.h>
10723 #include <iconv.h>
10724
10725 int
10726 main (void)
10727 {
10728 iconv_t cd = iconv_open("","");
10729              iconv(cd,NULL,NULL,NULL,NULL);
10730              iconv_close(cd);
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"
10736 then :
10737   am_cv_lib_iconv=yes
10738         am_cv_func_iconv=yes
10739 fi
10740 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10741     conftest$ac_exeext conftest.$ac_ext
10742       LIBS="$am_save_LIBS"
10743     fi
10744
10745 fi
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
10747 printf "%s\n" "$am_cv_func_iconv" >&6; }
10748   if test "$am_cv_func_iconv" = yes; then
10749     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
10750 printf %s "checking for working iconv... " >&6; }
10751 if test ${am_cv_func_iconv_works+y}
10752 then :
10753   printf %s "(cached) " >&6
10754 else $as_nop
10755
10756                   am_save_LIBS="$LIBS"
10757       if test $am_cv_lib_iconv = yes; then
10758         LIBS="$LIBS $LIBICONV"
10759       fi
10760       am_cv_func_iconv_works=no
10761       for ac_iconv_const in '' 'const'; do
10762         if test "$cross_compiling" = yes
10763 then :
10764   case "$host_os" in
10765              aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10766              *)            am_cv_func_iconv_works="guessing yes" ;;
10767            esac
10768 else $as_nop
10769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h.  */
10771
10772 #include <iconv.h>
10773 #include <string.h>
10774
10775 #ifndef ICONV_CONST
10776 # define ICONV_CONST $ac_iconv_const
10777 #endif
10778
10779 int
10780 main (void)
10781 {
10782 int result = 0;
10783   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10784      returns.  */
10785   {
10786     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10787     if (cd_utf8_to_88591 != (iconv_t)(-1))
10788       {
10789         static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10790         char buf[10];
10791         ICONV_CONST char *inptr = input;
10792         size_t inbytesleft = strlen (input);
10793         char *outptr = buf;
10794         size_t outbytesleft = sizeof (buf);
10795         size_t res = iconv (cd_utf8_to_88591,
10796                             &inptr, &inbytesleft,
10797                             &outptr, &outbytesleft);
10798         if (res == 0)
10799           result |= 1;
10800         iconv_close (cd_utf8_to_88591);
10801       }
10802   }
10803   /* Test against Solaris 10 bug: Failures are not distinguishable from
10804      successful returns.  */
10805   {
10806     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10807     if (cd_ascii_to_88591 != (iconv_t)(-1))
10808       {
10809         static ICONV_CONST char input[] = "\263";
10810         char buf[10];
10811         ICONV_CONST char *inptr = input;
10812         size_t inbytesleft = strlen (input);
10813         char *outptr = buf;
10814         size_t outbytesleft = sizeof (buf);
10815         size_t res = iconv (cd_ascii_to_88591,
10816                             &inptr, &inbytesleft,
10817                             &outptr, &outbytesleft);
10818         if (res == 0)
10819           result |= 2;
10820         iconv_close (cd_ascii_to_88591);
10821       }
10822   }
10823   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
10824   {
10825     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10826     if (cd_88591_to_utf8 != (iconv_t)(-1))
10827       {
10828         static ICONV_CONST char input[] = "\304";
10829         static char buf[2] = { (char)0xDE, (char)0xAD };
10830         ICONV_CONST char *inptr = input;
10831         size_t inbytesleft = 1;
10832         char *outptr = buf;
10833         size_t outbytesleft = 1;
10834         size_t res = iconv (cd_88591_to_utf8,
10835                             &inptr, &inbytesleft,
10836                             &outptr, &outbytesleft);
10837         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10838           result |= 4;
10839         iconv_close (cd_88591_to_utf8);
10840       }
10841   }
10842 #if 0 /* This bug could be worked around by the caller.  */
10843   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
10844   {
10845     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10846     if (cd_88591_to_utf8 != (iconv_t)(-1))
10847       {
10848         static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10849         char buf[50];
10850         ICONV_CONST char *inptr = input;
10851         size_t inbytesleft = strlen (input);
10852         char *outptr = buf;
10853         size_t outbytesleft = sizeof (buf);
10854         size_t res = iconv (cd_88591_to_utf8,
10855                             &inptr, &inbytesleft,
10856                             &outptr, &outbytesleft);
10857         if ((int)res > 0)
10858           result |= 8;
10859         iconv_close (cd_88591_to_utf8);
10860       }
10861   }
10862 #endif
10863   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10864      provided.  */
10865   if (/* Try standardized names.  */
10866       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
10867       /* Try IRIX, OSF/1 names.  */
10868       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
10869       /* Try AIX names.  */
10870       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
10871       /* Try HP-UX names.  */
10872       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
10873     result |= 16;
10874   return result;
10875
10876   ;
10877   return 0;
10878 }
10879 _ACEOF
10880 if ac_fn_c_try_run "$LINENO"
10881 then :
10882   am_cv_func_iconv_works=yes
10883 fi
10884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10885   conftest.$ac_objext conftest.beam conftest.$ac_ext
10886 fi
10887
10888         test "$am_cv_func_iconv_works" = no || break
10889       done
10890       LIBS="$am_save_LIBS"
10891
10892 fi
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10894 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
10895     case "$am_cv_func_iconv_works" in
10896       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10897       *)   am_func_iconv=yes ;;
10898     esac
10899   else
10900     am_func_iconv=no am_cv_lib_iconv=no
10901   fi
10902   if test "$am_func_iconv" = yes; then
10903
10904 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
10905
10906   fi
10907   if test "$am_cv_lib_iconv" = yes; then
10908     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10909 printf %s "checking how to link with libiconv... " >&6; }
10910     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10911 printf "%s\n" "$LIBICONV" >&6; }
10912   else
10913             CPPFLAGS="$am_save_CPPFLAGS"
10914     LIBICONV=
10915     LTLIBICONV=
10916   fi
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928     use_additional=yes
10929
10930   acl_save_prefix="$prefix"
10931   prefix="$acl_final_prefix"
10932   acl_save_exec_prefix="$exec_prefix"
10933   exec_prefix="$acl_final_exec_prefix"
10934
10935     eval additional_includedir=\"$includedir\"
10936     eval additional_libdir=\"$libdir\"
10937
10938   exec_prefix="$acl_save_exec_prefix"
10939   prefix="$acl_save_prefix"
10940
10941
10942 # Check whether --with-libintl-prefix was given.
10943 if test ${with_libintl_prefix+y}
10944 then :
10945   withval=$with_libintl_prefix;
10946     if test "X$withval" = "Xno"; then
10947       use_additional=no
10948     else
10949       if test "X$withval" = "X"; then
10950
10951   acl_save_prefix="$prefix"
10952   prefix="$acl_final_prefix"
10953   acl_save_exec_prefix="$exec_prefix"
10954   exec_prefix="$acl_final_exec_prefix"
10955
10956           eval additional_includedir=\"$includedir\"
10957           eval additional_libdir=\"$libdir\"
10958
10959   exec_prefix="$acl_save_exec_prefix"
10960   prefix="$acl_save_prefix"
10961
10962       else
10963         additional_includedir="$withval/include"
10964         additional_libdir="$withval/$acl_libdirstem"
10965         if test "$acl_libdirstem2" != "$acl_libdirstem" \
10966            && ! test -d "$withval/$acl_libdirstem"; then
10967           additional_libdir="$withval/$acl_libdirstem2"
10968         fi
10969       fi
10970     fi
10971
10972 fi
10973
10974       LIBINTL=
10975   LTLIBINTL=
10976   INCINTL=
10977   LIBINTL_PREFIX=
10978       HAVE_LIBINTL=
10979   rpathdirs=
10980   ltrpathdirs=
10981   names_already_handled=
10982   names_next_round='intl '
10983   while test -n "$names_next_round"; do
10984     names_this_round="$names_next_round"
10985     names_next_round=
10986     for name in $names_this_round; do
10987       already_handled=
10988       for n in $names_already_handled; do
10989         if test "$n" = "$name"; then
10990           already_handled=yes
10991           break
10992         fi
10993       done
10994       if test -z "$already_handled"; then
10995         names_already_handled="$names_already_handled $name"
10996                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10997         eval value=\"\$HAVE_LIB$uppername\"
10998         if test -n "$value"; then
10999           if test "$value" = yes; then
11000             eval value=\"\$LIB$uppername\"
11001             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11002             eval value=\"\$LTLIB$uppername\"
11003             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11004           else
11005                                     :
11006           fi
11007         else
11008                               found_dir=
11009           found_la=
11010           found_so=
11011           found_a=
11012           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
11013           if test -n "$acl_shlibext"; then
11014             shrext=".$acl_shlibext"             # typically: shrext=.so
11015           else
11016             shrext=
11017           fi
11018           if test $use_additional = yes; then
11019             dir="$additional_libdir"
11020                                     if test -n "$acl_shlibext"; then
11021               if test -f "$dir/$libname$shrext"; then
11022                 found_dir="$dir"
11023                 found_so="$dir/$libname$shrext"
11024               else
11025                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11026                   ver=`(cd "$dir" && \
11027                         for f in "$libname$shrext".*; do echo "$f"; done \
11028                         | sed -e "s,^$libname$shrext\\\\.,," \
11029                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11030                         | sed 1q ) 2>/dev/null`
11031                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11032                     found_dir="$dir"
11033                     found_so="$dir/$libname$shrext.$ver"
11034                   fi
11035                 else
11036                   eval library_names=\"$acl_library_names_spec\"
11037                   for f in $library_names; do
11038                     if test -f "$dir/$f"; then
11039                       found_dir="$dir"
11040                       found_so="$dir/$f"
11041                       break
11042                     fi
11043                   done
11044                 fi
11045               fi
11046             fi
11047                         if test "X$found_dir" = "X"; then
11048               if test -f "$dir/$libname.$acl_libext"; then
11049                 found_dir="$dir"
11050                 found_a="$dir/$libname.$acl_libext"
11051               fi
11052             fi
11053             if test "X$found_dir" != "X"; then
11054               if test -f "$dir/$libname.la"; then
11055                 found_la="$dir/$libname.la"
11056               fi
11057             fi
11058           fi
11059           if test "X$found_dir" = "X"; then
11060             for x in $LDFLAGS $LTLIBINTL; do
11061
11062   acl_save_prefix="$prefix"
11063   prefix="$acl_final_prefix"
11064   acl_save_exec_prefix="$exec_prefix"
11065   exec_prefix="$acl_final_exec_prefix"
11066   eval x=\"$x\"
11067   exec_prefix="$acl_save_exec_prefix"
11068   prefix="$acl_save_prefix"
11069
11070               case "$x" in
11071                 -L*)
11072                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11073                                     if test -n "$acl_shlibext"; then
11074                     if test -f "$dir/$libname$shrext"; then
11075                       found_dir="$dir"
11076                       found_so="$dir/$libname$shrext"
11077                     else
11078                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11079                         ver=`(cd "$dir" && \
11080                               for f in "$libname$shrext".*; do echo "$f"; done \
11081                               | sed -e "s,^$libname$shrext\\\\.,," \
11082                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11083                               | sed 1q ) 2>/dev/null`
11084                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11085                           found_dir="$dir"
11086                           found_so="$dir/$libname$shrext.$ver"
11087                         fi
11088                       else
11089                         eval library_names=\"$acl_library_names_spec\"
11090                         for f in $library_names; do
11091                           if test -f "$dir/$f"; then
11092                             found_dir="$dir"
11093                             found_so="$dir/$f"
11094                             break
11095                           fi
11096                         done
11097                       fi
11098                     fi
11099                   fi
11100                                     if test "X$found_dir" = "X"; then
11101                     if test -f "$dir/$libname.$acl_libext"; then
11102                       found_dir="$dir"
11103                       found_a="$dir/$libname.$acl_libext"
11104                     fi
11105                   fi
11106                   if test "X$found_dir" != "X"; then
11107                     if test -f "$dir/$libname.la"; then
11108                       found_la="$dir/$libname.la"
11109                     fi
11110                   fi
11111                   ;;
11112               esac
11113               if test "X$found_dir" != "X"; then
11114                 break
11115               fi
11116             done
11117           fi
11118           if test "X$found_dir" != "X"; then
11119                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11120             if test "X$found_so" != "X"; then
11121                                                         if test "$enable_rpath" = no \
11122                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11123                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11124                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11125               else
11126                                                                                 haveit=
11127                 for x in $ltrpathdirs; do
11128                   if test "X$x" = "X$found_dir"; then
11129                     haveit=yes
11130                     break
11131                   fi
11132                 done
11133                 if test -z "$haveit"; then
11134                   ltrpathdirs="$ltrpathdirs $found_dir"
11135                 fi
11136                                 if test "$acl_hardcode_direct" = yes; then
11137                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11138                 else
11139                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11140                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11141                                                             haveit=
11142                     for x in $rpathdirs; do
11143                       if test "X$x" = "X$found_dir"; then
11144                         haveit=yes
11145                         break
11146                       fi
11147                     done
11148                     if test -z "$haveit"; then
11149                       rpathdirs="$rpathdirs $found_dir"
11150                     fi
11151                   else
11152                                                                                 haveit=
11153                     for x in $LDFLAGS $LIBINTL; do
11154
11155   acl_save_prefix="$prefix"
11156   prefix="$acl_final_prefix"
11157   acl_save_exec_prefix="$exec_prefix"
11158   exec_prefix="$acl_final_exec_prefix"
11159   eval x=\"$x\"
11160   exec_prefix="$acl_save_exec_prefix"
11161   prefix="$acl_save_prefix"
11162
11163                       if test "X$x" = "X-L$found_dir"; then
11164                         haveit=yes
11165                         break
11166                       fi
11167                     done
11168                     if test -z "$haveit"; then
11169                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11170                     fi
11171                     if test "$acl_hardcode_minus_L" != no; then
11172                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11173                     else
11174                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11175                     fi
11176                   fi
11177                 fi
11178               fi
11179             else
11180               if test "X$found_a" != "X"; then
11181                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11182               else
11183                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11184               fi
11185             fi
11186                         additional_includedir=
11187             case "$found_dir" in
11188               */$acl_libdirstem | */$acl_libdirstem/)
11189                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11190                 if test "$name" = 'intl'; then
11191                   LIBINTL_PREFIX="$basedir"
11192                 fi
11193                 additional_includedir="$basedir/include"
11194                 ;;
11195               */$acl_libdirstem2 | */$acl_libdirstem2/)
11196                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11197                 if test "$name" = 'intl'; then
11198                   LIBINTL_PREFIX="$basedir"
11199                 fi
11200                 additional_includedir="$basedir/include"
11201                 ;;
11202             esac
11203             if test "X$additional_includedir" != "X"; then
11204                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11205                 haveit=
11206                 if test "X$additional_includedir" = "X/usr/local/include"; then
11207                   if test -n "$GCC"; then
11208                     case $host_os in
11209                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11210                     esac
11211                   fi
11212                 fi
11213                 if test -z "$haveit"; then
11214                   for x in $CPPFLAGS $INCINTL; do
11215
11216   acl_save_prefix="$prefix"
11217   prefix="$acl_final_prefix"
11218   acl_save_exec_prefix="$exec_prefix"
11219   exec_prefix="$acl_final_exec_prefix"
11220   eval x=\"$x\"
11221   exec_prefix="$acl_save_exec_prefix"
11222   prefix="$acl_save_prefix"
11223
11224                     if test "X$x" = "X-I$additional_includedir"; then
11225                       haveit=yes
11226                       break
11227                     fi
11228                   done
11229                   if test -z "$haveit"; then
11230                     if test -d "$additional_includedir"; then
11231                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11232                     fi
11233                   fi
11234                 fi
11235               fi
11236             fi
11237                         if test -n "$found_la"; then
11238                                                         save_libdir="$libdir"
11239               case "$found_la" in
11240                 */* | *\\*) . "$found_la" ;;
11241                 *) . "./$found_la" ;;
11242               esac
11243               libdir="$save_libdir"
11244                             for dep in $dependency_libs; do
11245                 case "$dep" in
11246                   -L*)
11247                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11248                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11249                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11250                       haveit=
11251                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11252                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11253                         if test -n "$GCC"; then
11254                           case $host_os in
11255                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11256                           esac
11257                         fi
11258                       fi
11259                       if test -z "$haveit"; then
11260                         haveit=
11261                         for x in $LDFLAGS $LIBINTL; do
11262
11263   acl_save_prefix="$prefix"
11264   prefix="$acl_final_prefix"
11265   acl_save_exec_prefix="$exec_prefix"
11266   exec_prefix="$acl_final_exec_prefix"
11267   eval x=\"$x\"
11268   exec_prefix="$acl_save_exec_prefix"
11269   prefix="$acl_save_prefix"
11270
11271                           if test "X$x" = "X-L$additional_libdir"; then
11272                             haveit=yes
11273                             break
11274                           fi
11275                         done
11276                         if test -z "$haveit"; then
11277                           if test -d "$additional_libdir"; then
11278                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11279                           fi
11280                         fi
11281                         haveit=
11282                         for x in $LDFLAGS $LTLIBINTL; do
11283
11284   acl_save_prefix="$prefix"
11285   prefix="$acl_final_prefix"
11286   acl_save_exec_prefix="$exec_prefix"
11287   exec_prefix="$acl_final_exec_prefix"
11288   eval x=\"$x\"
11289   exec_prefix="$acl_save_exec_prefix"
11290   prefix="$acl_save_prefix"
11291
11292                           if test "X$x" = "X-L$additional_libdir"; then
11293                             haveit=yes
11294                             break
11295                           fi
11296                         done
11297                         if test -z "$haveit"; then
11298                           if test -d "$additional_libdir"; then
11299                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11300                           fi
11301                         fi
11302                       fi
11303                     fi
11304                     ;;
11305                   -R*)
11306                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11307                     if test "$enable_rpath" != no; then
11308                                                                   haveit=
11309                       for x in $rpathdirs; do
11310                         if test "X$x" = "X$dir"; then
11311                           haveit=yes
11312                           break
11313                         fi
11314                       done
11315                       if test -z "$haveit"; then
11316                         rpathdirs="$rpathdirs $dir"
11317                       fi
11318                                                                   haveit=
11319                       for x in $ltrpathdirs; do
11320                         if test "X$x" = "X$dir"; then
11321                           haveit=yes
11322                           break
11323                         fi
11324                       done
11325                       if test -z "$haveit"; then
11326                         ltrpathdirs="$ltrpathdirs $dir"
11327                       fi
11328                     fi
11329                     ;;
11330                   -l*)
11331                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11332                     ;;
11333                   *.la)
11334                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11335                     ;;
11336                   *)
11337                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11338                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11339                     ;;
11340                 esac
11341               done
11342             fi
11343           else
11344                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11345             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11346           fi
11347         fi
11348       fi
11349     done
11350   done
11351   if test "X$rpathdirs" != "X"; then
11352     if test -n "$acl_hardcode_libdir_separator"; then
11353                         alldirs=
11354       for found_dir in $rpathdirs; do
11355         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11356       done
11357             acl_save_libdir="$libdir"
11358       libdir="$alldirs"
11359       eval flag=\"$acl_hardcode_libdir_flag_spec\"
11360       libdir="$acl_save_libdir"
11361       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11362     else
11363             for found_dir in $rpathdirs; do
11364         acl_save_libdir="$libdir"
11365         libdir="$found_dir"
11366         eval flag=\"$acl_hardcode_libdir_flag_spec\"
11367         libdir="$acl_save_libdir"
11368         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11369       done
11370     fi
11371   fi
11372   if test "X$ltrpathdirs" != "X"; then
11373             for found_dir in $ltrpathdirs; do
11374       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11375     done
11376   fi
11377
11378
11379
11380
11381
11382
11383           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11384 printf %s "checking for GNU gettext in libintl... " >&6; }
11385 if eval test \${$gt_func_gnugettext_libintl+y}
11386 then :
11387   printf %s "(cached) " >&6
11388 else $as_nop
11389   gt_save_CPPFLAGS="$CPPFLAGS"
11390             CPPFLAGS="$CPPFLAGS $INCINTL"
11391             gt_save_LIBS="$LIBS"
11392             LIBS="$LIBS $LIBINTL"
11393                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11394 /* end confdefs.h.  */
11395
11396 #include <libintl.h>
11397 $gt_revision_test_code
11398 extern int _nl_msg_cat_cntr;
11399 extern
11400 #ifdef __cplusplus
11401 "C"
11402 #endif
11403 const char *_nl_expand_alias (const char *);
11404
11405 int
11406 main (void)
11407 {
11408
11409 bindtextdomain ("", "");
11410 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11411
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"
11417 then :
11418   eval "$gt_func_gnugettext_libintl=yes"
11419 else $as_nop
11420   eval "$gt_func_gnugettext_libintl=no"
11421 fi
11422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11423     conftest$ac_exeext conftest.$ac_ext
11424                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11425               LIBS="$LIBS $LIBICONV"
11426               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 /* end confdefs.h.  */
11428
11429 #include <libintl.h>
11430 $gt_revision_test_code
11431 extern int _nl_msg_cat_cntr;
11432 extern
11433 #ifdef __cplusplus
11434 "C"
11435 #endif
11436 const char *_nl_expand_alias (const char *);
11437
11438 int
11439 main (void)
11440 {
11441
11442 bindtextdomain ("", "");
11443 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11444
11445   ;
11446   return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"
11450 then :
11451   LIBINTL="$LIBINTL $LIBICONV"
11452                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11453                  eval "$gt_func_gnugettext_libintl=yes"
11454
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11457     conftest$ac_exeext conftest.$ac_ext
11458             fi
11459             CPPFLAGS="$gt_save_CPPFLAGS"
11460             LIBS="$gt_save_LIBS"
11461 fi
11462 eval ac_res=\$$gt_func_gnugettext_libintl
11463                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11464 printf "%s\n" "$ac_res" >&6; }
11465         fi
11466
11467                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11468            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
11469                 && test "$PACKAGE" != gettext-runtime \
11470                 && test "$PACKAGE" != gettext-tools; }; then
11471           gt_use_preinstalled_gnugettext=yes
11472         else
11473                     LIBINTL=
11474           LTLIBINTL=
11475           INCINTL=
11476         fi
11477
11478
11479
11480     if test -n "$INTL_MACOSX_LIBS"; then
11481       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11482          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11483                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11484         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11485       fi
11486     fi
11487
11488     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11489        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11490
11491 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
11492
11493     else
11494       USE_NLS=no
11495     fi
11496   fi
11497
11498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11499 printf %s "checking whether to use NLS... " >&6; }
11500   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11501 printf "%s\n" "$USE_NLS" >&6; }
11502   if test "$USE_NLS" = "yes"; then
11503     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11504 printf %s "checking where the gettext function comes from... " >&6; }
11505     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11506       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11507         gt_source="external libintl"
11508       else
11509         gt_source="libc"
11510       fi
11511     else
11512       gt_source="included intl directory"
11513     fi
11514     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11515 printf "%s\n" "$gt_source" >&6; }
11516   fi
11517
11518   if test "$USE_NLS" = "yes"; then
11519
11520     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11521       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
11522         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11523 printf %s "checking how to link with libintl... " >&6; }
11524         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11525 printf "%s\n" "$LIBINTL" >&6; }
11526
11527   for element in $INCINTL; do
11528     haveit=
11529     for x in $CPPFLAGS; do
11530
11531   acl_save_prefix="$prefix"
11532   prefix="$acl_final_prefix"
11533   acl_save_exec_prefix="$exec_prefix"
11534   exec_prefix="$acl_final_exec_prefix"
11535   eval x=\"$x\"
11536   exec_prefix="$acl_save_exec_prefix"
11537   prefix="$acl_save_prefix"
11538
11539       if test "X$x" = "X$element"; then
11540         haveit=yes
11541         break
11542       fi
11543     done
11544     if test -z "$haveit"; then
11545       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11546     fi
11547   done
11548
11549       fi
11550
11551
11552 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
11553
11554
11555 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
11556
11557     fi
11558
11559         POSUB=po
11560   fi
11561
11562
11563
11564     INTLLIBS="$LIBINTL"
11565
11566
11567
11568
11569
11570
11571
11572 # Checks for libraries.
11573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11574 printf %s "checking for library containing strerror... " >&6; }
11575 if test ${ac_cv_search_strerror+y}
11576 then :
11577   printf %s "(cached) " >&6
11578 else $as_nop
11579   ac_func_search_save_LIBS=$LIBS
11580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11581 /* end confdefs.h.  */
11582
11583 /* Override any GCC internal prototype to avoid an error.
11584    Use char because int might match the return type of a GCC
11585    builtin and then its argument prototype would still apply.  */
11586 char strerror ();
11587 int
11588 main (void)
11589 {
11590 return strerror ();
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 for ac_lib in '' cposix
11596 do
11597   if test -z "$ac_lib"; then
11598     ac_res="none required"
11599   else
11600     ac_res=-l$ac_lib
11601     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11602   fi
11603   if ac_fn_c_try_link "$LINENO"
11604 then :
11605   ac_cv_search_strerror=$ac_res
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11608     conftest$ac_exeext
11609   if test ${ac_cv_search_strerror+y}
11610 then :
11611   break
11612 fi
11613 done
11614 if test ${ac_cv_search_strerror+y}
11615 then :
11616
11617 else $as_nop
11618   ac_cv_search_strerror=no
11619 fi
11620 rm conftest.$ac_ext
11621 LIBS=$ac_func_search_save_LIBS
11622 fi
11623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11624 printf "%s\n" "$ac_cv_search_strerror" >&6; }
11625 ac_res=$ac_cv_search_strerror
11626 if test "$ac_res" != no
11627 then :
11628   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11629
11630 fi
11631
11632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
11633 printf %s "checking for library containing getpwnam... " >&6; }
11634 if test ${ac_cv_search_getpwnam+y}
11635 then :
11636   printf %s "(cached) " >&6
11637 else $as_nop
11638   ac_func_search_save_LIBS=$LIBS
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h.  */
11641
11642 /* Override any GCC internal prototype to avoid an error.
11643    Use char because int might match the return type of a GCC
11644    builtin and then its argument prototype would still apply.  */
11645 char getpwnam ();
11646 int
11647 main (void)
11648 {
11649 return getpwnam ();
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 for ac_lib in '' sun
11655 do
11656   if test -z "$ac_lib"; then
11657     ac_res="none required"
11658   else
11659     ac_res=-l$ac_lib
11660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11661   fi
11662   if ac_fn_c_try_link "$LINENO"
11663 then :
11664   ac_cv_search_getpwnam=$ac_res
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11667     conftest$ac_exeext
11668   if test ${ac_cv_search_getpwnam+y}
11669 then :
11670   break
11671 fi
11672 done
11673 if test ${ac_cv_search_getpwnam+y}
11674 then :
11675
11676 else $as_nop
11677   ac_cv_search_getpwnam=no
11678 fi
11679 rm conftest.$ac_ext
11680 LIBS=$ac_func_search_save_LIBS
11681 fi
11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
11683 printf "%s\n" "$ac_cv_search_getpwnam" >&6; }
11684 ac_res=$ac_cv_search_getpwnam
11685 if test "$ac_res" != no
11686 then :
11687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11688
11689 fi
11690
11691
11692 ac_header_dirent=no
11693 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11694   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11696 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
11697 if eval test \${$as_ac_Header+y}
11698 then :
11699   printf %s "(cached) " >&6
11700 else $as_nop
11701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h.  */
11703 #include <sys/types.h>
11704 #include <$ac_hdr>
11705
11706 int
11707 main (void)
11708 {
11709 if ((DIR *) 0)
11710 return 0;
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 if ac_fn_c_try_compile "$LINENO"
11716 then :
11717   eval "$as_ac_Header=yes"
11718 else $as_nop
11719   eval "$as_ac_Header=no"
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11722 fi
11723 eval ac_res=\$$as_ac_Header
11724                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11725 printf "%s\n" "$ac_res" >&6; }
11726 if eval test \"x\$"$as_ac_Header"\" = x"yes"
11727 then :
11728   cat >>confdefs.h <<_ACEOF
11729 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
11730 _ACEOF
11731
11732 ac_header_dirent=$ac_hdr; break
11733 fi
11734
11735 done
11736 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11737 if test $ac_header_dirent = dirent.h; then
11738   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11739 printf %s "checking for library containing opendir... " >&6; }
11740 if test ${ac_cv_search_opendir+y}
11741 then :
11742   printf %s "(cached) " >&6
11743 else $as_nop
11744   ac_func_search_save_LIBS=$LIBS
11745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h.  */
11747
11748 /* Override any GCC internal prototype to avoid an error.
11749    Use char because int might match the return type of a GCC
11750    builtin and then its argument prototype would still apply.  */
11751 char opendir ();
11752 int
11753 main (void)
11754 {
11755 return opendir ();
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 for ac_lib in '' dir
11761 do
11762   if test -z "$ac_lib"; then
11763     ac_res="none required"
11764   else
11765     ac_res=-l$ac_lib
11766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11767   fi
11768   if ac_fn_c_try_link "$LINENO"
11769 then :
11770   ac_cv_search_opendir=$ac_res
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11773     conftest$ac_exeext
11774   if test ${ac_cv_search_opendir+y}
11775 then :
11776   break
11777 fi
11778 done
11779 if test ${ac_cv_search_opendir+y}
11780 then :
11781
11782 else $as_nop
11783   ac_cv_search_opendir=no
11784 fi
11785 rm conftest.$ac_ext
11786 LIBS=$ac_func_search_save_LIBS
11787 fi
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11789 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11790 ac_res=$ac_cv_search_opendir
11791 if test "$ac_res" != no
11792 then :
11793   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11794
11795 fi
11796
11797 else
11798   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11799 printf %s "checking for library containing opendir... " >&6; }
11800 if test ${ac_cv_search_opendir+y}
11801 then :
11802   printf %s "(cached) " >&6
11803 else $as_nop
11804   ac_func_search_save_LIBS=$LIBS
11805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11806 /* end confdefs.h.  */
11807
11808 /* Override any GCC internal prototype to avoid an error.
11809    Use char because int might match the return type of a GCC
11810    builtin and then its argument prototype would still apply.  */
11811 char opendir ();
11812 int
11813 main (void)
11814 {
11815 return opendir ();
11816   ;
11817   return 0;
11818 }
11819 _ACEOF
11820 for ac_lib in '' x
11821 do
11822   if test -z "$ac_lib"; then
11823     ac_res="none required"
11824   else
11825     ac_res=-l$ac_lib
11826     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11827   fi
11828   if ac_fn_c_try_link "$LINENO"
11829 then :
11830   ac_cv_search_opendir=$ac_res
11831 fi
11832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11833     conftest$ac_exeext
11834   if test ${ac_cv_search_opendir+y}
11835 then :
11836   break
11837 fi
11838 done
11839 if test ${ac_cv_search_opendir+y}
11840 then :
11841
11842 else $as_nop
11843   ac_cv_search_opendir=no
11844 fi
11845 rm conftest.$ac_ext
11846 LIBS=$ac_func_search_save_LIBS
11847 fi
11848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11849 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11850 ac_res=$ac_cv_search_opendir
11851 if test "$ac_res" != no
11852 then :
11853   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11854
11855 fi
11856
11857 fi
11858
11859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11860 printf %s "checking whether stat file-mode macros are broken... " >&6; }
11861 if test ${ac_cv_header_stat_broken+y}
11862 then :
11863   printf %s "(cached) " >&6
11864 else $as_nop
11865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h.  */
11867 #include <sys/types.h>
11868 #include <sys/stat.h>
11869
11870 #if defined S_ISBLK && defined S_IFDIR
11871 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11872 #endif
11873
11874 #if defined S_ISBLK && defined S_IFCHR
11875 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11876 #endif
11877
11878 #if defined S_ISLNK && defined S_IFREG
11879 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11880 #endif
11881
11882 #if defined S_ISSOCK && defined S_IFREG
11883 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11884 #endif
11885
11886 _ACEOF
11887 if ac_fn_c_try_compile "$LINENO"
11888 then :
11889   ac_cv_header_stat_broken=no
11890 else $as_nop
11891   ac_cv_header_stat_broken=yes
11892 fi
11893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11894 fi
11895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11896 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
11897 if test $ac_cv_header_stat_broken = yes; then
11898
11899 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11900
11901 fi
11902
11903
11904 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11905 if test "x$ac_cv_header_stdlib_h" = xyes
11906 then :
11907   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11908
11909 fi
11910 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11911 if test "x$ac_cv_header_locale_h" = xyes
11912 then :
11913   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
11914
11915 fi
11916 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11917 if test "x$ac_cv_header_unistd_h" = xyes
11918 then :
11919   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11920
11921 fi
11922 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
11923 if test "x$ac_cv_header_limits_h" = xyes
11924 then :
11925   printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
11926
11927 fi
11928 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
11929 if test "x$ac_cv_header_fcntl_h" = xyes
11930 then :
11931   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
11932
11933 fi
11934 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_string_h" = xyes
11936 then :
11937   printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
11938
11939 fi
11940 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
11941 if test "x$ac_cv_header_memory_h" = xyes
11942 then :
11943   printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
11944
11945 fi
11946 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
11947 if test "x$ac_cv_header_sys_param_h" = xyes
11948 then :
11949   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
11950
11951 fi
11952 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
11953 if test "x$ac_cv_header_sys_resource_h" = xyes
11954 then :
11955   printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
11956
11957 fi
11958 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
11959 if test "x$ac_cv_header_sys_timeb_h" = xyes
11960 then :
11961   printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h
11962
11963 fi
11964 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
11965 if test "x$ac_cv_header_sys_time_h" = xyes
11966 then :
11967   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
11968
11969 fi
11970 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
11971 if test "x$ac_cv_header_sys_select_h" = xyes
11972 then :
11973   printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
11974
11975 fi
11976 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
11977 if test "x$ac_cv_header_sys_file_h" = xyes
11978 then :
11979   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
11980
11981 fi
11982 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
11983 if test "x$ac_cv_header_spawn_h" = xyes
11984 then :
11985   printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
11986
11987 fi
11988
11989
11990
11991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11992 printf %s "checking for an ANSI C-conforming const... " >&6; }
11993 if test ${ac_cv_c_const+y}
11994 then :
11995   printf %s "(cached) " >&6
11996 else $as_nop
11997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11998 /* end confdefs.h.  */
11999
12000 int
12001 main (void)
12002 {
12003
12004 #ifndef __cplusplus
12005   /* Ultrix mips cc rejects this sort of thing.  */
12006   typedef int charset[2];
12007   const charset cs = { 0, 0 };
12008   /* SunOS 4.1.1 cc rejects this.  */
12009   char const *const *pcpcc;
12010   char **ppc;
12011   /* NEC SVR4.0.2 mips cc rejects this.  */
12012   struct point {int x, y;};
12013   static struct point const zero = {0,0};
12014   /* IBM XL C 1.02.0.0 rejects this.
12015      It does not let you subtract one const X* pointer from another in
12016      an arm of an if-expression whose if-part is not a constant
12017      expression */
12018   const char *g = "string";
12019   pcpcc = &g + (g ? g-g : 0);
12020   /* HPUX 7.0 cc rejects these. */
12021   ++pcpcc;
12022   ppc = (char**) pcpcc;
12023   pcpcc = (char const *const *) ppc;
12024   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12025     char tx;
12026     char *t = &tx;
12027     char const *s = 0 ? (char *) 0 : (char const *) 0;
12028
12029     *t++ = 0;
12030     if (s) return 0;
12031   }
12032   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12033     int x[] = {25, 17};
12034     const int *foo = &x[0];
12035     ++foo;
12036   }
12037   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12038     typedef const int *iptr;
12039     iptr p = 0;
12040     ++p;
12041   }
12042   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
12043        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12044     struct s { int j; const int *ap[3]; } bx;
12045     struct s *b = &bx; b->j = 5;
12046   }
12047   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12048     const int foo = 10;
12049     if (!foo) return 0;
12050   }
12051   return !cs[0] && !zero.x;
12052 #endif
12053
12054   ;
12055   return 0;
12056 }
12057 _ACEOF
12058 if ac_fn_c_try_compile "$LINENO"
12059 then :
12060   ac_cv_c_const=yes
12061 else $as_nop
12062   ac_cv_c_const=no
12063 fi
12064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12065 fi
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12067 printf "%s\n" "$ac_cv_c_const" >&6; }
12068 if test $ac_cv_c_const = no; then
12069
12070 printf "%s\n" "#define const /**/" >>confdefs.h
12071
12072 fi
12073
12074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12075 printf %s "checking for uid_t in sys/types.h... " >&6; }
12076 if test ${ac_cv_type_uid_t+y}
12077 then :
12078   printf %s "(cached) " >&6
12079 else $as_nop
12080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h.  */
12082 #include <sys/types.h>
12083
12084 _ACEOF
12085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12086   $EGREP "uid_t" >/dev/null 2>&1
12087 then :
12088   ac_cv_type_uid_t=yes
12089 else $as_nop
12090   ac_cv_type_uid_t=no
12091 fi
12092 rm -rf conftest*
12093
12094 fi
12095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12096 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
12097 if test $ac_cv_type_uid_t = no; then
12098
12099 printf "%s\n" "#define uid_t int" >>confdefs.h
12100
12101
12102 printf "%s\n" "#define gid_t int" >>confdefs.h
12103
12104 fi
12105
12106
12107   ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
12108 "
12109 if test "x$ac_cv_type_pid_t" = xyes
12110 then :
12111
12112 else $as_nop
12113                                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h.  */
12115
12116           #if defined _WIN64 && !defined __CYGWIN__
12117           LLP64
12118           #endif
12119
12120 int
12121 main (void)
12122 {
12123
12124   ;
12125   return 0;
12126 }
12127
12128 _ACEOF
12129 if ac_fn_c_try_compile "$LINENO"
12130 then :
12131   ac_pid_type='int'
12132 else $as_nop
12133   ac_pid_type='__int64'
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12136
12137 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
12138
12139
12140 fi
12141
12142
12143 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12144 if test "x$ac_cv_type_off_t" = xyes
12145 then :
12146
12147 else $as_nop
12148
12149 printf "%s\n" "#define off_t long int" >>confdefs.h
12150
12151 fi
12152
12153 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12154 if test "x$ac_cv_type_size_t" = xyes
12155 then :
12156
12157 else $as_nop
12158
12159 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
12160
12161 fi
12162
12163 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12164 if test "x$ac_cv_type_ssize_t" = xyes
12165 then :
12166
12167 else $as_nop
12168
12169 printf "%s\n" "#define ssize_t int" >>confdefs.h
12170
12171 fi
12172
12173
12174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12175 printf %s "checking for unsigned long long int... " >&6; }
12176 if test ${ac_cv_type_unsigned_long_long_int+y}
12177 then :
12178   printf %s "(cached) " >&6
12179 else $as_nop
12180   ac_cv_type_unsigned_long_long_int=yes
12181      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12182        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12183 /* end confdefs.h.  */
12184
12185   /* For now, do not test the preprocessor; as of 2007 there are too many
12186          implementations with broken preprocessors.  Perhaps this can
12187          be revisited in 2012.  In the meantime, code should not expect
12188          #if to work with literals wider than 32 bits.  */
12189       /* Test literals.  */
12190       long long int ll = 9223372036854775807ll;
12191       long long int nll = -9223372036854775807LL;
12192       unsigned long long int ull = 18446744073709551615ULL;
12193       /* Test constant expressions.   */
12194       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12195                      ? 1 : -1)];
12196       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12197                      ? 1 : -1)];
12198       int i = 63;
12199 int
12200 main (void)
12201 {
12202 /* Test availability of runtime routines for shift and division.  */
12203       long long int llmax = 9223372036854775807ll;
12204       unsigned long long int ullmax = 18446744073709551615ull;
12205       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12206               | (llmax / ll) | (llmax % ll)
12207               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12208               | (ullmax / ull) | (ullmax % ull));
12209   ;
12210   return 0;
12211 }
12212
12213 _ACEOF
12214 if ac_fn_c_try_link "$LINENO"
12215 then :
12216
12217 else $as_nop
12218   ac_cv_type_unsigned_long_long_int=no
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12221     conftest$ac_exeext conftest.$ac_ext
12222      fi
12223 fi
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12225 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
12226   if test $ac_cv_type_unsigned_long_long_int = yes; then
12227
12228 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12229
12230   fi
12231
12232
12233
12234   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12235 printf %s "checking for long long int... " >&6; }
12236 if test ${ac_cv_type_long_long_int+y}
12237 then :
12238   printf %s "(cached) " >&6
12239 else $as_nop
12240   ac_cv_type_long_long_int=yes
12241       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12242         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12243         if test $ac_cv_type_long_long_int = yes; then
12244                                         if test "$cross_compiling" = yes
12245 then :
12246   :
12247 else $as_nop
12248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249 /* end confdefs.h.  */
12250 #include <limits.h>
12251                  #ifndef LLONG_MAX
12252                  # define HALF \
12253                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12254                  # define LLONG_MAX (HALF - 1 + HALF)
12255                  #endif
12256 int
12257 main (void)
12258 {
12259 long long int n = 1;
12260                  int i;
12261                  for (i = 0; ; i++)
12262                    {
12263                      long long int m = n << i;
12264                      if (m >> i != n)
12265                        return 1;
12266                      if (LLONG_MAX / 2 < m)
12267                        break;
12268                    }
12269                  return 0;
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_run "$LINENO"
12275 then :
12276
12277 else $as_nop
12278   ac_cv_type_long_long_int=no
12279 fi
12280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12281   conftest.$ac_objext conftest.beam conftest.$ac_ext
12282 fi
12283
12284         fi
12285       fi
12286 fi
12287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12288 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
12289   if test $ac_cv_type_long_long_int = yes; then
12290
12291 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12292
12293   fi
12294
12295
12296
12297   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
12298 if test "x$ac_cv_type_intmax_t" = xyes
12299 then :
12300
12301 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
12302
12303 else $as_nop
12304   test $ac_cv_type_long_long_int = yes \
12305        && ac_type='long long int' \
12306        || ac_type='long int'
12307
12308 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
12309
12310 fi
12311
12312
12313
12314
12315   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
12316 if test "x$ac_cv_type_uintmax_t" = xyes
12317 then :
12318
12319 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
12320
12321 else $as_nop
12322   test $ac_cv_type_unsigned_long_long_int = yes \
12323        && ac_type='unsigned long long int' \
12324        || ac_type='unsigned long int'
12325
12326 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
12327
12328 fi
12329
12330
12331
12332 # Check for sig_atomic_t
12333
12334   ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12335 "
12336 if test "x$ac_cv_type_sig_atomic_t" = xyes
12337 then :
12338
12339 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
12340
12341
12342 else $as_nop
12343
12344 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
12345
12346 fi
12347
12348
12349
12350 # Find out whether our struct stat returns nanosecond resolution timestamps.
12351
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
12353 printf %s "checking for nanoseconds field of struct stat... " >&6; }
12354 if test ${ac_cv_struct_st_mtim_nsec+y}
12355 then :
12356   printf %s "(cached) " >&6
12357 else $as_nop
12358   ac_save_CPPFLAGS="$CPPFLAGS"
12359     ac_cv_struct_st_mtim_nsec=no
12360     # st_mtim.tv_nsec -- the usual case
12361     # st_mtim._tv_nsec -- Solaris 2.6, if
12362     #   (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
12363     #    && !defined __EXTENSIONS__)
12364     # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
12365     # st_mtime_n -- AIX 5.2 and above
12366     # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
12367     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
12368       CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
12369       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h.  */
12371 #include <sys/types.h>
12372 #include <sys/stat.h>
12373
12374 int
12375 main (void)
12376 {
12377 struct stat s; s.ST_MTIM_NSEC;
12378   ;
12379   return 0;
12380 }
12381 _ACEOF
12382 if ac_fn_c_try_compile "$LINENO"
12383 then :
12384   ac_cv_struct_st_mtim_nsec=$ac_val; break
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12387     done
12388     CPPFLAGS="$ac_save_CPPFLAGS"
12389
12390 fi
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
12392 printf "%s\n" "$ac_cv_struct_st_mtim_nsec" >&6; }
12393
12394   if test $ac_cv_struct_st_mtim_nsec != no; then
12395
12396 printf "%s\n" "#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec" >>confdefs.h
12397
12398   fi
12399
12400
12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
12402 printf %s "checking whether to use high resolution file timestamps... " >&6; }
12403 if test ${make_cv_file_timestamp_hi_res+y}
12404 then :
12405   printf %s "(cached) " >&6
12406 else $as_nop
12407    make_cv_file_timestamp_hi_res=no
12408   if test "$ac_cv_struct_st_mtim_nsec" != no
12409 then :
12410   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h.  */
12412
12413 #if HAVE_INTTYPES_H
12414 # include <inttypes.h>
12415 #endif
12416 int
12417 main (void)
12418 {
12419 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
12420   ;
12421   return 0;
12422 }
12423 _ACEOF
12424 if ac_fn_c_try_compile "$LINENO"
12425 then :
12426   make_cv_file_timestamp_hi_res=yes
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12429
12430 fi
12431 fi
12432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
12433 printf "%s\n" "$make_cv_file_timestamp_hi_res" >&6; }
12434 if test "$make_cv_file_timestamp_hi_res" = yes
12435 then :
12436   val=1
12437 else $as_nop
12438   val=0
12439 fi
12440
12441 printf "%s\n" "#define FILE_TIMESTAMP_HI_RES $val" >>confdefs.h
12442
12443
12444 if test "$make_cv_file_timestamp_hi_res" = yes
12445 then :
12446    # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
12447   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
12448   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12449 printf %s "checking for library containing clock_gettime... " >&6; }
12450 if test ${ac_cv_search_clock_gettime+y}
12451 then :
12452   printf %s "(cached) " >&6
12453 else $as_nop
12454   ac_func_search_save_LIBS=$LIBS
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h.  */
12457
12458 /* Override any GCC internal prototype to avoid an error.
12459    Use char because int might match the return type of a GCC
12460    builtin and then its argument prototype would still apply.  */
12461 char clock_gettime ();
12462 int
12463 main (void)
12464 {
12465 return clock_gettime ();
12466   ;
12467   return 0;
12468 }
12469 _ACEOF
12470 for ac_lib in '' rt posix4
12471 do
12472   if test -z "$ac_lib"; then
12473     ac_res="none required"
12474   else
12475     ac_res=-l$ac_lib
12476     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12477   fi
12478   if ac_fn_c_try_link "$LINENO"
12479 then :
12480   ac_cv_search_clock_gettime=$ac_res
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12483     conftest$ac_exeext
12484   if test ${ac_cv_search_clock_gettime+y}
12485 then :
12486   break
12487 fi
12488 done
12489 if test ${ac_cv_search_clock_gettime+y}
12490 then :
12491
12492 else $as_nop
12493   ac_cv_search_clock_gettime=no
12494 fi
12495 rm conftest.$ac_ext
12496 LIBS=$ac_func_search_save_LIBS
12497 fi
12498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12499 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
12500 ac_res=$ac_cv_search_clock_gettime
12501 if test "$ac_res" != no
12502 then :
12503   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12504
12505 fi
12506
12507   if test "$ac_cv_search_clock_gettime" != no
12508 then :
12509
12510 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12511
12512
12513 fi
12514
12515 fi
12516
12517 # See if we have a standard version of gettimeofday().  Since actual
12518 # implementations can differ, just make sure we have the most common
12519 # one.
12520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
12521 printf %s "checking for standard gettimeofday... " >&6; }
12522 if test ${ac_cv_func_gettimeofday+y}
12523 then :
12524   printf %s "(cached) " >&6
12525 else $as_nop
12526   ac_cv_func_gettimeofday=no
12527    if test "$cross_compiling" = yes
12528 then :
12529   ac_cv_func_gettimeofday="no (cross-compiling)"
12530 else $as_nop
12531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h.  */
12533 #include <sys/time.h>
12534                   int main ()
12535                   {
12536                     struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
12537                     return gettimeofday (&t, 0) != 0
12538                           || t.tv_sec < 0 || t.tv_usec < 0;
12539                   }
12540 _ACEOF
12541 if ac_fn_c_try_run "$LINENO"
12542 then :
12543   ac_cv_func_gettimeofday=yes
12544 else $as_nop
12545   ac_cv_func_gettimeofday=no
12546 fi
12547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12548   conftest.$ac_objext conftest.beam conftest.$ac_ext
12549 fi
12550
12551 fi
12552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
12553 printf "%s\n" "$ac_cv_func_gettimeofday" >&6; }
12554 if test "$ac_cv_func_gettimeofday" = yes
12555 then :
12556
12557 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
12558
12559
12560 fi
12561
12562 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
12563 if test "x$ac_cv_func_strtoll" = xyes
12564 then :
12565   printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
12566
12567 fi
12568 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
12569 if test "x$ac_cv_func_strdup" = xyes
12570 then :
12571   printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
12572
12573 fi
12574 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
12575 if test "x$ac_cv_func_strndup" = xyes
12576 then :
12577   printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
12578
12579 fi
12580 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
12581 if test "x$ac_cv_func_stpcpy" = xyes
12582 then :
12583   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
12584
12585 fi
12586 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
12587 if test "x$ac_cv_func_memrchr" = xyes
12588 then :
12589   printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
12590
12591 fi
12592 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
12593 if test "x$ac_cv_func_mempcpy" = xyes
12594 then :
12595   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
12596
12597 fi
12598 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
12599 if test "x$ac_cv_func_umask" = xyes
12600 then :
12601   printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
12602
12603 fi
12604 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
12605 if test "x$ac_cv_func_mkstemp" = xyes
12606 then :
12607   printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
12608
12609 fi
12610 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
12611 if test "x$ac_cv_func_mktemp" = xyes
12612 then :
12613   printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
12614
12615 fi
12616 ac_fn_c_check_func "$LINENO" "fdopen" "ac_cv_func_fdopen"
12617 if test "x$ac_cv_func_fdopen" = xyes
12618 then :
12619   printf "%s\n" "#define HAVE_FDOPEN 1" >>confdefs.h
12620
12621 fi
12622 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
12623 if test "x$ac_cv_func_dup" = xyes
12624 then :
12625   printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
12626
12627 fi
12628 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
12629 if test "x$ac_cv_func_dup2" = xyes
12630 then :
12631   printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
12632
12633 fi
12634 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
12635 if test "x$ac_cv_func_getcwd" = xyes
12636 then :
12637   printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
12638
12639 fi
12640 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
12641 if test "x$ac_cv_func_realpath" = xyes
12642 then :
12643   printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
12644
12645 fi
12646 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
12647 if test "x$ac_cv_func_sigsetmask" = xyes
12648 then :
12649   printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
12650
12651 fi
12652 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
12653 if test "x$ac_cv_func_sigaction" = xyes
12654 then :
12655   printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
12656
12657 fi
12658 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
12659 if test "x$ac_cv_func_getgroups" = xyes
12660 then :
12661   printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
12662
12663 fi
12664 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
12665 if test "x$ac_cv_func_seteuid" = xyes
12666 then :
12667   printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
12668
12669 fi
12670 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
12671 if test "x$ac_cv_func_setegid" = xyes
12672 then :
12673   printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
12674
12675 fi
12676 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
12677 if test "x$ac_cv_func_setlinebuf" = xyes
12678 then :
12679   printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
12680
12681 fi
12682 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
12683 if test "x$ac_cv_func_setreuid" = xyes
12684 then :
12685   printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
12686
12687 fi
12688 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
12689 if test "x$ac_cv_func_setregid" = xyes
12690 then :
12691   printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
12692
12693 fi
12694 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
12695 if test "x$ac_cv_func_mkfifo" = xyes
12696 then :
12697   printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
12698
12699 fi
12700 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
12701 if test "x$ac_cv_func_getrlimit" = xyes
12702 then :
12703   printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
12704
12705 fi
12706 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
12707 if test "x$ac_cv_func_setrlimit" = xyes
12708 then :
12709   printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
12710
12711 fi
12712 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
12713 if test "x$ac_cv_func_setvbuf" = xyes
12714 then :
12715   printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
12716
12717 fi
12718 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
12719 if test "x$ac_cv_func_pipe" = xyes
12720 then :
12721   printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
12722
12723 fi
12724 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
12725 if test "x$ac_cv_func_strerror" = xyes
12726 then :
12727   printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
12728
12729 fi
12730 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
12731 if test "x$ac_cv_func_strsignal" = xyes
12732 then :
12733   printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
12734
12735 fi
12736 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
12737 if test "x$ac_cv_func_lstat" = xyes
12738 then :
12739   printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
12740
12741 fi
12742 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
12743 if test "x$ac_cv_func_readlink" = xyes
12744 then :
12745   printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
12746
12747 fi
12748 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
12749 if test "x$ac_cv_func_atexit" = xyes
12750 then :
12751   printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
12752
12753 fi
12754 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
12755 if test "x$ac_cv_func_isatty" = xyes
12756 then :
12757   printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
12758
12759 fi
12760 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
12761 if test "x$ac_cv_func_ttyname" = xyes
12762 then :
12763   printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
12764
12765 fi
12766 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
12767 if test "x$ac_cv_func_pselect" = xyes
12768 then :
12769   printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
12770
12771 fi
12772 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
12773 if test "x$ac_cv_func_posix_spawn" = xyes
12774 then :
12775   printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
12776
12777 fi
12778 ac_fn_c_check_func "$LINENO" "posix_spawnattr_setsigmask" "ac_cv_func_posix_spawnattr_setsigmask"
12779 if test "x$ac_cv_func_posix_spawnattr_setsigmask" = xyes
12780 then :
12781   printf "%s\n" "#define HAVE_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
12782
12783 fi
12784
12785
12786 # We need to check declarations, not just existence, because on Tru64 this
12787 # function is not declared without special flags, which themselves cause
12788 # other problems.  We'll just use our own.
12789 ac_fn_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
12790 #include <signal.h>
12791 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12792 if test "x$ac_cv_have_decl_bsd_signal" = xyes
12793 then :
12794   ac_have_decl=1
12795 else $as_nop
12796   ac_have_decl=0
12797 fi
12798 printf "%s\n" "#define HAVE_DECL_BSD_SIGNAL $ac_have_decl" >>confdefs.h
12799
12800
12801
12802 ac_func=
12803 for ac_item in $ac_func_c_list
12804 do
12805   if test $ac_func; then
12806     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12807     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12808       echo "#define $ac_item 1" >> confdefs.h
12809     fi
12810     ac_func=
12811   else
12812     ac_func=$ac_item
12813   fi
12814 done
12815
12816
12817
12818 if test "x$ac_cv_func_fork" = xyes; then
12819   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12820 printf %s "checking for working fork... " >&6; }
12821 if test ${ac_cv_func_fork_works+y}
12822 then :
12823   printf %s "(cached) " >&6
12824 else $as_nop
12825   if test "$cross_compiling" = yes
12826 then :
12827   ac_cv_func_fork_works=cross
12828 else $as_nop
12829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h.  */
12831 $ac_includes_default
12832 int
12833 main (void)
12834 {
12835
12836           /* By Ruediger Kuhlmann. */
12837           return fork () < 0;
12838
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_run "$LINENO"
12844 then :
12845   ac_cv_func_fork_works=yes
12846 else $as_nop
12847   ac_cv_func_fork_works=no
12848 fi
12849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12850   conftest.$ac_objext conftest.beam conftest.$ac_ext
12851 fi
12852
12853 fi
12854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12855 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
12856
12857 else
12858   ac_cv_func_fork_works=$ac_cv_func_fork
12859 fi
12860 if test "x$ac_cv_func_fork_works" = xcross; then
12861   case $host in
12862     *-*-amigaos* | *-*-msdosdjgpp*)
12863       # Override, as these systems have only a dummy fork() stub
12864       ac_cv_func_fork_works=no
12865       ;;
12866     *)
12867       ac_cv_func_fork_works=yes
12868       ;;
12869   esac
12870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12871 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12872 fi
12873 ac_cv_func_vfork_works=$ac_cv_func_vfork
12874 if test "x$ac_cv_func_vfork" = xyes; then
12875   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12876 printf %s "checking for working vfork... " >&6; }
12877 if test ${ac_cv_func_vfork_works+y}
12878 then :
12879   printf %s "(cached) " >&6
12880 else $as_nop
12881   if test "$cross_compiling" = yes
12882 then :
12883   ac_cv_func_vfork_works=cross
12884 else $as_nop
12885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12886 /* end confdefs.h.  */
12887 /* Thanks to Paul Eggert for this test.  */
12888 $ac_includes_default
12889 #include <signal.h>
12890 #include <sys/wait.h>
12891 #ifdef HAVE_VFORK_H
12892 # include <vfork.h>
12893 #endif
12894
12895 static void
12896 do_nothing (int sig)
12897 {
12898   (void) sig;
12899 }
12900
12901 /* On some sparc systems, changes by the child to local and incoming
12902    argument registers are propagated back to the parent.  The compiler
12903    is told about this with #include <vfork.h>, but some compilers
12904    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12905    static variable whose address is put into a register that is
12906    clobbered by the vfork.  */
12907 static void
12908 sparc_address_test (int arg)
12909 {
12910   static pid_t child;
12911   if (!child) {
12912     child = vfork ();
12913     if (child < 0) {
12914       perror ("vfork");
12915       _exit(2);
12916     }
12917     if (!child) {
12918       arg = getpid();
12919       write(-1, "", 0);
12920       _exit (arg);
12921     }
12922   }
12923 }
12924
12925 int
12926 main (void)
12927 {
12928   pid_t parent = getpid ();
12929   pid_t child;
12930
12931   sparc_address_test (0);
12932
12933   /* On Solaris 2.4, changes by the child to the signal handler
12934      also munge signal handlers in the parent.  To detect this,
12935      start by putting the parent's handler in a known state.  */
12936   signal (SIGTERM, SIG_DFL);
12937
12938   child = vfork ();
12939
12940   if (child == 0) {
12941     /* Here is another test for sparc vfork register problems.  This
12942        test uses lots of local variables, at least as many local
12943        variables as main has allocated so far including compiler
12944        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12945        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12946        reuse the register of parent for one of the local variables,
12947        since it will think that parent can't possibly be used any more
12948        in this routine.  Assigning to the local variable will thus
12949        munge parent in the parent process.  */
12950     pid_t
12951       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12952       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12953     /* Convince the compiler that p..p7 are live; otherwise, it might
12954        use the same hardware register for all 8 local variables.  */
12955     if (p != p1 || p != p2 || p != p3 || p != p4
12956         || p != p5 || p != p6 || p != p7)
12957       _exit(1);
12958
12959     /* Alter the child's signal handler.  */
12960     if (signal (SIGTERM, do_nothing) != SIG_DFL)
12961       _exit(1);
12962
12963     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12964        from child file descriptors.  If the child closes a descriptor
12965        before it execs or exits, this munges the parent's descriptor
12966        as well.  Test for this by closing stdout in the child.  */
12967     _exit(close(fileno(stdout)) != 0);
12968   } else {
12969     int status;
12970     struct stat st;
12971
12972     while (wait(&status) != child)
12973       ;
12974     return (
12975          /* Was there some problem with vforking?  */
12976          child < 0
12977
12978          /* Did the child munge the parent's signal handler?  */
12979          || signal (SIGTERM, SIG_DFL) != SIG_DFL
12980
12981          /* Did the child fail?  (This shouldn't happen.)  */
12982          || status
12983
12984          /* Did the vfork/compiler bug occur?  */
12985          || parent != getpid()
12986
12987          /* Did the file descriptor bug occur?  */
12988          || fstat(fileno(stdout), &st) != 0
12989          );
12990   }
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_run "$LINENO"
12994 then :
12995   ac_cv_func_vfork_works=yes
12996 else $as_nop
12997   ac_cv_func_vfork_works=no
12998 fi
12999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13000   conftest.$ac_objext conftest.beam conftest.$ac_ext
13001 fi
13002
13003 fi
13004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13005 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
13006
13007 fi;
13008 if test "x$ac_cv_func_fork_works" = xcross; then
13009   ac_cv_func_vfork_works=$ac_cv_func_vfork
13010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13011 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13012 fi
13013
13014 if test "x$ac_cv_func_vfork_works" = xyes; then
13015
13016 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13017
13018 else
13019
13020 printf "%s\n" "#define vfork fork" >>confdefs.h
13021
13022 fi
13023 if test "x$ac_cv_func_fork_works" = xyes; then
13024
13025 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
13026
13027 fi
13028
13029
13030 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
13031 # It doesn't hurt much to use our own if we can't find it so I don't
13032 # make the effort here.
13033 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13034 if test "x$ac_cv_func_strcasecmp" = xyes
13035 then :
13036   printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13037
13038 fi
13039 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
13040 if test "x$ac_cv_func_strncasecmp" = xyes
13041 then :
13042   printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
13043
13044 fi
13045 ac_fn_c_check_func "$LINENO" "strcmpi" "ac_cv_func_strcmpi"
13046 if test "x$ac_cv_func_strcmpi" = xyes
13047 then :
13048   printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
13049
13050 fi
13051 ac_fn_c_check_func "$LINENO" "strncmpi" "ac_cv_func_strncmpi"
13052 if test "x$ac_cv_func_strncmpi" = xyes
13053 then :
13054   printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
13055
13056 fi
13057 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
13058 if test "x$ac_cv_func_stricmp" = xyes
13059 then :
13060   printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
13061
13062 fi
13063 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
13064 if test "x$ac_cv_func_strnicmp" = xyes
13065 then :
13066   printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
13067
13068 fi
13069
13070
13071 # strcoll() is used by the GNU glob library
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
13073 printf %s "checking for working strcoll... " >&6; }
13074 if test ${ac_cv_func_strcoll_works+y}
13075 then :
13076   printf %s "(cached) " >&6
13077 else $as_nop
13078   if test "$cross_compiling" = yes
13079 then :
13080   case "$host_os" in # ((
13081                           # Guess yes on glibc systems.
13082                   *-gnu*) ac_cv_func_strcoll_works=yes ;;
13083                           # If we don't know, assume the worst.
13084                   *)      ac_cv_func_strcoll_works=no ;;
13085                 esac
13086 else $as_nop
13087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h.  */
13089 $ac_includes_default
13090 int
13091 main (void)
13092 {
13093 return (strcoll ("abc", "def") >= 0 ||
13094          strcoll ("ABC", "DEF") >= 0 ||
13095          strcoll ("123", "456") >= 0)
13096   ;
13097   return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_run "$LINENO"
13101 then :
13102   ac_cv_func_strcoll_works=yes
13103 else $as_nop
13104   ac_cv_func_strcoll_works=no
13105 fi
13106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13107   conftest.$ac_objext conftest.beam conftest.$ac_ext
13108 fi
13109
13110 fi
13111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
13112 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
13113 if test $ac_cv_func_strcoll_works = yes; then
13114
13115 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
13116
13117 fi
13118
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13120 printf %s "checking whether closedir returns void... " >&6; }
13121 if test ${ac_cv_func_closedir_void+y}
13122 then :
13123   printf %s "(cached) " >&6
13124 else $as_nop
13125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h.  */
13127
13128 #include <$ac_header_dirent>
13129
13130 int
13131 main (void)
13132 {
13133
13134   return closedir(0);
13135
13136   ;
13137   return 0;
13138 }
13139 _ACEOF
13140 if ac_fn_c_try_compile "$LINENO"
13141 then :
13142   ac_cv_func_closedir_void=no
13143 else $as_nop
13144   ac_cv_func_closedir_void=yes
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13147 fi
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13149 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
13150 if test $ac_cv_func_closedir_void = yes; then
13151
13152 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
13153
13154 fi
13155
13156
13157 # dir.c and our glob.c use dirent.d_type if available
13158
13159
13160   ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
13161 #include <sys/types.h>
13162 #ifdef HAVE_DIRENT_H
13163 # include <dirent.h>
13164 #else
13165 # define dirent direct
13166 # ifdef HAVE_SYS_NDIR_H
13167 #  include <sys/ndir.h>
13168 # endif
13169 # ifdef HAVE_SYS_DIR_H
13170 #  include <sys/dir.h>
13171 # endif
13172 # ifdef HAVE_NDIR_H
13173 #  include <ndir.h>
13174 # endif
13175 #endif
13176
13177 "
13178 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
13179 then :
13180
13181 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
13182
13183
13184 fi
13185
13186
13187
13188 # See if the user wants to add (or not) GNU Guile support
13189
13190 # Check whether --with-guile was given.
13191 if test ${with_guile+y}
13192 then :
13193   withval=$with_guile;
13194 fi
13195
13196
13197 # Annoyingly, each version of Guile comes with it's own PC file so we have to
13198 # specify them as individual packages.  Ugh.
13199
13200
13201
13202
13203
13204
13205
13206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13207         if test -n "$ac_tool_prefix"; then
13208   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 printf %s "checking for $ac_word... " >&6; }
13212 if test ${ac_cv_path_PKG_CONFIG+y}
13213 then :
13214   printf %s "(cached) " >&6
13215 else $as_nop
13216   case $PKG_CONFIG in
13217   [\\/]* | ?:[\\/]*)
13218   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13219   ;;
13220   *)
13221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13222 for as_dir in $PATH
13223 do
13224   IFS=$as_save_IFS
13225   case $as_dir in #(((
13226     '') as_dir=./ ;;
13227     */) ;;
13228     *) as_dir=$as_dir/ ;;
13229   esac
13230     for ac_exec_ext in '' $ac_executable_extensions; do
13231   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13232     ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13233     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13234     break 2
13235   fi
13236 done
13237   done
13238 IFS=$as_save_IFS
13239
13240   ;;
13241 esac
13242 fi
13243 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13244 if test -n "$PKG_CONFIG"; then
13245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13246 printf "%s\n" "$PKG_CONFIG" >&6; }
13247 else
13248   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 printf "%s\n" "no" >&6; }
13250 fi
13251
13252
13253 fi
13254 if test -z "$ac_cv_path_PKG_CONFIG"; then
13255   ac_pt_PKG_CONFIG=$PKG_CONFIG
13256   # Extract the first word of "pkg-config", so it can be a program name with args.
13257 set dummy pkg-config; ac_word=$2
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13259 printf %s "checking for $ac_word... " >&6; }
13260 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13261 then :
13262   printf %s "(cached) " >&6
13263 else $as_nop
13264   case $ac_pt_PKG_CONFIG in
13265   [\\/]* | ?:[\\/]*)
13266   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13267   ;;
13268   *)
13269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270 for as_dir in $PATH
13271 do
13272   IFS=$as_save_IFS
13273   case $as_dir in #(((
13274     '') as_dir=./ ;;
13275     */) ;;
13276     *) as_dir=$as_dir/ ;;
13277   esac
13278     for ac_exec_ext in '' $ac_executable_extensions; do
13279   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13280     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13281     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13282     break 2
13283   fi
13284 done
13285   done
13286 IFS=$as_save_IFS
13287
13288   ;;
13289 esac
13290 fi
13291 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13292 if test -n "$ac_pt_PKG_CONFIG"; then
13293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13294 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13295 else
13296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13297 printf "%s\n" "no" >&6; }
13298 fi
13299
13300   if test "x$ac_pt_PKG_CONFIG" = x; then
13301     PKG_CONFIG=""
13302   else
13303     case $cross_compiling:$ac_tool_warned in
13304 yes:)
13305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13306 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13307 ac_tool_warned=yes ;;
13308 esac
13309     PKG_CONFIG=$ac_pt_PKG_CONFIG
13310   fi
13311 else
13312   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13313 fi
13314
13315 fi
13316 if test -n "$PKG_CONFIG"; then
13317         _pkg_min_version=0.9.0
13318         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13319 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13320         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13321                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13322 printf "%s\n" "yes" >&6; }
13323         else
13324                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 printf "%s\n" "no" >&6; }
13326                 PKG_CONFIG=""
13327         fi
13328 fi
13329
13330 if test "x$with_guile" != xno
13331 then :
13332    guile_versions="3.0 2.2 2.0 1.8"
13333   guile_version=no
13334   have_guile=no
13335   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
13336 printf %s "checking for GNU Guile... " >&6; }
13337   for v in $guile_versions; do
13338     if test -n "$PKG_CONFIG" && \
13339     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
13340   ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
13341   ac_status=$?
13342   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13343   test $ac_status = 0; }; then
13344   guile_version=$v; have_guile=yes; break
13345 fi
13346   done
13347   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
13348 printf "%s\n" "$guile_version" >&6; }
13349   if test "$have_guile" = yes
13350 then :
13351
13352 pkg_failed=no
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GUILE" >&5
13354 printf %s "checking for GUILE... " >&6; }
13355
13356 if test -n "$GUILE_CFLAGS"; then
13357     pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
13358  elif test -n "$PKG_CONFIG"; then
13359     if test -n "$PKG_CONFIG" && \
13360     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
13361   ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
13362   ac_status=$?
13363   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13364   test $ac_status = 0; }; then
13365   pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
13366                       test "x$?" != "x0" && pkg_failed=yes
13367 else
13368   pkg_failed=yes
13369 fi
13370  else
13371     pkg_failed=untried
13372 fi
13373 if test -n "$GUILE_LIBS"; then
13374     pkg_cv_GUILE_LIBS="$GUILE_LIBS"
13375  elif test -n "$PKG_CONFIG"; then
13376     if test -n "$PKG_CONFIG" && \
13377     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
13378   ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
13379   ac_status=$?
13380   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13381   test $ac_status = 0; }; then
13382   pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
13383                       test "x$?" != "x0" && pkg_failed=yes
13384 else
13385   pkg_failed=yes
13386 fi
13387  else
13388     pkg_failed=untried
13389 fi
13390
13391
13392
13393 if test $pkg_failed = yes; then
13394         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395 printf "%s\n" "no" >&6; }
13396
13397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13398         _pkg_short_errors_supported=yes
13399 else
13400         _pkg_short_errors_supported=no
13401 fi
13402         if test $_pkg_short_errors_supported = yes; then
13403                 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
13404         else
13405                 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
13406         fi
13407         # Put the nasty error message in config.log where it belongs
13408         echo "$GUILE_PKG_ERRORS" >&5
13409
13410         as_fn_error $? "Package requirements (guile-$guile_version) were not met:
13411
13412 $GUILE_PKG_ERRORS
13413
13414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13415 installed software in a non-standard prefix.
13416
13417 Alternatively, you may set the environment variables GUILE_CFLAGS
13418 and GUILE_LIBS to avoid the need to call pkg-config.
13419 See the pkg-config man page for more details." "$LINENO" 5
13420 elif test $pkg_failed = untried; then
13421         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422 printf "%s\n" "no" >&6; }
13423         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13424 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13425 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13426 is in your PATH or set the PKG_CONFIG environment variable to the full
13427 path to pkg-config.
13428
13429 Alternatively, you may set the environment variables GUILE_CFLAGS
13430 and GUILE_LIBS to avoid the need to call pkg-config.
13431 See the pkg-config man page for more details.
13432
13433 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13434 See \`config.log' for more details" "$LINENO" 5; }
13435 else
13436         GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
13437         GUILE_LIBS=$pkg_cv_GUILE_LIBS
13438         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439 printf "%s\n" "yes" >&6; }
13440
13441 fi
13442     # Unfortunately pkg doesn't help in multi-arch environments where the
13443     # package is installed for some architectures but not others; we need
13444     # to try to link.
13445     keep_CPPFLAGS="$CPPFLAGS"
13446     keep_LIBS="$LIBS"
13447     CPPFLAGS="$CPPFLAGS $GUILE_CFLAGS"
13448     LIBS="$LIBS $GUILE_LIBS"
13449     ac_fn_c_check_header_compile "$LINENO" "libguile.h" "ac_cv_header_libguile_h" "/* Avoid configuration error warnings. */
13450 "
13451 if test "x$ac_cv_header_libguile_h" = xyes
13452 then :
13453
13454 printf "%s\n" "#define HAVE_GUILE 1" >>confdefs.h
13455
13456 else $as_nop
13457   have_guile=no
13458 fi
13459
13460     if test "$have_guile" = yes
13461 then :
13462    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link GNU Guile" >&5
13463 printf %s "checking whether we can link GNU Guile... " >&6; }
13464       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h.  */
13466
13467 #include <libguile.h>
13468 static void *
13469 guile_init (void *arg)
13470 {
13471    (void) arg;
13472    return 0;
13473 }
13474
13475 int
13476 main (void)
13477 {
13478
13479     scm_with_guile (guile_init, 0);
13480
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 if ac_fn_c_try_link "$LINENO"
13486 then :
13487   have_guile=yes
13488 else $as_nop
13489   have_guile=no
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492     conftest$ac_exeext conftest.$ac_ext
13493       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_guile" >&5
13494 printf "%s\n" "$have_guile" >&6; }
13495 fi
13496     CPPFLAGS="$keep_CPPFLAGS"
13497     LIBS="$keep_LIBS"
13498
13499 fi
13500
13501 fi
13502
13503  if test "$have_guile" = "yes"; then
13504   HAVE_GUILE_TRUE=
13505   HAVE_GUILE_FALSE='#'
13506 else
13507   HAVE_GUILE_TRUE='#'
13508   HAVE_GUILE_FALSE=
13509 fi
13510
13511
13512 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
13513 #include <signal.h>
13514 /* NetBSD declares sys_siglist in unistd.h.  */
13515 #if HAVE_UNISTD_H
13516 # include <unistd.h>
13517 #endif
13518
13519 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13520 if test "x$ac_cv_have_decl_sys_siglist" = xyes
13521 then :
13522   ac_have_decl=1
13523 else $as_nop
13524   ac_have_decl=0
13525 fi
13526 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
13527 ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
13528 #include <signal.h>
13529 /* NetBSD declares sys_siglist in unistd.h.  */
13530 #if HAVE_UNISTD_H
13531 # include <unistd.h>
13532 #endif
13533
13534 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13535 if test "x$ac_cv_have_decl__sys_siglist" = xyes
13536 then :
13537   ac_have_decl=1
13538 else $as_nop
13539   ac_have_decl=0
13540 fi
13541 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
13542 ac_fn_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
13543 #include <signal.h>
13544 /* NetBSD declares sys_siglist in unistd.h.  */
13545 #if HAVE_UNISTD_H
13546 # include <unistd.h>
13547 #endif
13548
13549 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13550 if test "x$ac_cv_have_decl___sys_siglist" = xyes
13551 then :
13552   ac_have_decl=1
13553 else $as_nop
13554   ac_have_decl=0
13555 fi
13556 printf "%s\n" "#define HAVE_DECL___SYS_SIGLIST $ac_have_decl" >>confdefs.h
13557
13558
13559
13560 # Check out the wait reality.
13561 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
13562 "
13563 if test "x$ac_cv_header_sys_wait_h" = xyes
13564 then :
13565   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13566
13567 fi
13568
13569 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
13570 if test "x$ac_cv_func_waitpid" = xyes
13571 then :
13572   printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
13573
13574 fi
13575 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
13576 if test "x$ac_cv_func_wait3" = xyes
13577 then :
13578   printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
13579
13580 fi
13581
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
13583 printf %s "checking for union wait... " >&6; }
13584 if test ${make_cv_union_wait+y}
13585 then :
13586   printf %s "(cached) " >&6
13587 else $as_nop
13588    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590 #include <sys/types.h>
13591 #include <sys/wait.h>
13592 int
13593 main (void)
13594 {
13595 union wait status; int pid; pid = wait (&status);
13596 #ifdef WEXITSTATUS
13597 /* Some POSIXoid systems have both the new-style macros and the old
13598    union wait type, and they do not work together.  If union wait
13599    conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
13600         if (WEXITSTATUS (status) != 0) pid = -1;
13601 #ifdef WTERMSIG
13602         /* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
13603         -- blow chunks here --
13604 #endif
13605 #endif
13606 #ifdef HAVE_WAITPID
13607         /* Make sure union wait works with waitpid.  */
13608         pid = waitpid (-1, &status, 0);
13609 #endif
13610
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"
13616 then :
13617   make_cv_union_wait=yes
13618 else $as_nop
13619   make_cv_union_wait=no
13620 fi
13621 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13622     conftest$ac_exeext conftest.$ac_ext
13623
13624 fi
13625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
13626 printf "%s\n" "$make_cv_union_wait" >&6; }
13627 if test "$make_cv_union_wait" = yes
13628 then :
13629
13630 printf "%s\n" "#define HAVE_UNION_WAIT 1" >>confdefs.h
13631
13632
13633 fi
13634
13635
13636 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
13637 if test "$PATH_SEPARATOR" = ';'
13638 then :
13639
13640 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
13641
13642
13643 fi
13644
13645 # See if the user wants to use pmake's "customs" distributed build capability
13646  REMOTE=stub
13647 use_customs=false
13648
13649 # Check whether --with-customs was given.
13650 if test ${with_customs+y}
13651 then :
13652   withval=$with_customs;  case $withval in #(
13653   n|no) :
13654     : ;; #(
13655   *) :
13656     make_cppflags="$CPPFLAGS"
13657      case $withval in #(
13658   y|ye|yes) :
13659     : ;; #(
13660   *) :
13661     CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
13662               make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
13663 esac
13664
13665 cf_test_netlibs=no
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
13667 printf %s "checking for network libraries... " >&6; }
13668 if test ${cf_cv_netlibs+y}
13669 then :
13670   printf %s "(cached) " >&6
13671 else $as_nop
13672
13673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: working..." >&5
13674 printf "%s\n" "working..." >&6; }
13675 cf_cv_netlibs=""
13676 cf_test_netlibs=yes
13677
13678   for ac_func in gethostname
13679 do :
13680   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13681 if test "x$ac_cv_func_gethostname" = xyes
13682 then :
13683   printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13684
13685 else $as_nop
13686
13687
13688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
13689 printf %s "checking for gethostname in -lnsl... " >&6; }
13690 if test ${ac_cv_lib_nsl_gethostname+y}
13691 then :
13692   printf %s "(cached) " >&6
13693 else $as_nop
13694   ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lnsl $cf_cv_netlibs $LIBS"
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h.  */
13698
13699 /* Override any GCC internal prototype to avoid an error.
13700    Use char because int might match the return type of a GCC
13701    builtin and then its argument prototype would still apply.  */
13702 char gethostname ();
13703 int
13704 main (void)
13705 {
13706 return gethostname ();
13707   ;
13708   return 0;
13709 }
13710 _ACEOF
13711 if ac_fn_c_try_link "$LINENO"
13712 then :
13713   ac_cv_lib_nsl_gethostname=yes
13714 else $as_nop
13715   ac_cv_lib_nsl_gethostname=no
13716 fi
13717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13718     conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13720 fi
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
13722 printf "%s\n" "$ac_cv_lib_nsl_gethostname" >&6; }
13723 if test "x$ac_cv_lib_nsl_gethostname" = xyes
13724 then :
13725
13726
13727 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
13728
13729
13730 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13731
13732         ac_cv_func_gethostname=yes
13733         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
13734 else $as_nop
13735
13736         ac_cv_func_gethostname=unknown
13737         unset ac_cv_func_gethostname 2>/dev/null
13738
13739
13740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
13741 printf %s "checking for gethostname in -lsocket... " >&6; }
13742 if test ${ac_cv_lib_socket_gethostname+y}
13743 then :
13744   printf %s "(cached) " >&6
13745 else $as_nop
13746   ac_check_lib_save_LIBS=$LIBS
13747 LIBS="-lsocket $cf_cv_netlibs $LIBS"
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h.  */
13750
13751 /* Override any GCC internal prototype to avoid an error.
13752    Use char because int might match the return type of a GCC
13753    builtin and then its argument prototype would still apply.  */
13754 char gethostname ();
13755 int
13756 main (void)
13757 {
13758 return gethostname ();
13759   ;
13760   return 0;
13761 }
13762 _ACEOF
13763 if ac_fn_c_try_link "$LINENO"
13764 then :
13765   ac_cv_lib_socket_gethostname=yes
13766 else $as_nop
13767   ac_cv_lib_socket_gethostname=no
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13770     conftest$ac_exeext conftest.$ac_ext
13771 LIBS=$ac_check_lib_save_LIBS
13772 fi
13773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
13774 printf "%s\n" "$ac_cv_lib_socket_gethostname" >&6; }
13775 if test "x$ac_cv_lib_socket_gethostname" = xyes
13776 then :
13777
13778
13779 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
13780
13781
13782 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13783
13784         ac_cv_func_gethostname=yes
13785         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
13786 else $as_nop
13787
13788         ac_cv_func_gethostname=unknown
13789         unset ac_cv_func_gethostname 2>/dev/null
13790
13791 fi
13792
13793
13794 fi
13795
13796
13797 fi
13798
13799 done
13800 #
13801 # FIXME:  sequent needs this library (i.e., -lsocket -linet -lnsl), but
13802 # I don't know the entrypoints - 97/7/22 TD
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
13804 printf %s "checking for main in -linet... " >&6; }
13805 if test ${ac_cv_lib_inet_main+y}
13806 then :
13807   printf %s "(cached) " >&6
13808 else $as_nop
13809   ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-linet  $LIBS"
13811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h.  */
13813
13814
13815 int
13816 main (void)
13817 {
13818 return main ();
13819   ;
13820   return 0;
13821 }
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"
13824 then :
13825   ac_cv_lib_inet_main=yes
13826 else $as_nop
13827   ac_cv_lib_inet_main=no
13828 fi
13829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13830     conftest$ac_exeext conftest.$ac_ext
13831 LIBS=$ac_check_lib_save_LIBS
13832 fi
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
13834 printf "%s\n" "$ac_cv_lib_inet_main" >&6; }
13835 if test "x$ac_cv_lib_inet_main" = xyes
13836 then :
13837   cf_cv_netlibs="-linet $cf_cv_netlibs"
13838 fi
13839
13840 #
13841 if test "$ac_cv_func_lsocket" != no ; then
13842
13843   for ac_func in socket
13844 do :
13845   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13846 if test "x$ac_cv_func_socket" = xyes
13847 then :
13848   printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
13849
13850 else $as_nop
13851
13852
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13854 printf %s "checking for socket in -lsocket... " >&6; }
13855 if test ${ac_cv_lib_socket_socket+y}
13856 then :
13857   printf %s "(cached) " >&6
13858 else $as_nop
13859   ac_check_lib_save_LIBS=$LIBS
13860 LIBS="-lsocket $cf_cv_netlibs $LIBS"
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h.  */
13863
13864 /* Override any GCC internal prototype to avoid an error.
13865    Use char because int might match the return type of a GCC
13866    builtin and then its argument prototype would still apply.  */
13867 char socket ();
13868 int
13869 main (void)
13870 {
13871 return socket ();
13872   ;
13873   return 0;
13874 }
13875 _ACEOF
13876 if ac_fn_c_try_link "$LINENO"
13877 then :
13878   ac_cv_lib_socket_socket=yes
13879 else $as_nop
13880   ac_cv_lib_socket_socket=no
13881 fi
13882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13883     conftest$ac_exeext conftest.$ac_ext
13884 LIBS=$ac_check_lib_save_LIBS
13885 fi
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13887 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13888 if test "x$ac_cv_lib_socket_socket" = xyes
13889 then :
13890
13891
13892 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
13893
13894
13895 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13896
13897         ac_cv_func_socket=yes
13898         cf_cv_netlibs="-lsocket $cf_cv_netlibs"
13899 else $as_nop
13900
13901         ac_cv_func_socket=unknown
13902         unset ac_cv_func_socket 2>/dev/null
13903
13904
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
13906 printf %s "checking for socket in -lbsd... " >&6; }
13907 if test ${ac_cv_lib_bsd_socket+y}
13908 then :
13909   printf %s "(cached) " >&6
13910 else $as_nop
13911   ac_check_lib_save_LIBS=$LIBS
13912 LIBS="-lbsd $cf_cv_netlibs $LIBS"
13913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917    Use char because int might match the return type of a GCC
13918    builtin and then its argument prototype would still apply.  */
13919 char socket ();
13920 int
13921 main (void)
13922 {
13923 return socket ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_link "$LINENO"
13929 then :
13930   ac_cv_lib_bsd_socket=yes
13931 else $as_nop
13932   ac_cv_lib_bsd_socket=no
13933 fi
13934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13935     conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13937 fi
13938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
13939 printf "%s\n" "$ac_cv_lib_bsd_socket" >&6; }
13940 if test "x$ac_cv_lib_bsd_socket" = xyes
13941 then :
13942
13943
13944 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
13945
13946
13947 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
13948
13949         ac_cv_func_socket=yes
13950         cf_cv_netlibs="-lbsd $cf_cv_netlibs"
13951 else $as_nop
13952
13953         ac_cv_func_socket=unknown
13954         unset ac_cv_func_socket 2>/dev/null
13955
13956 fi
13957
13958
13959 fi
13960
13961
13962 fi
13963
13964 done
13965 fi
13966 #
13967
13968   for ac_func in gethostbyname
13969 do :
13970   ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13971 if test "x$ac_cv_func_gethostbyname" = xyes
13972 then :
13973   printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
13974
13975 else $as_nop
13976
13977
13978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13979 printf %s "checking for gethostbyname in -lnsl... " >&6; }
13980 if test ${ac_cv_lib_nsl_gethostbyname+y}
13981 then :
13982   printf %s "(cached) " >&6
13983 else $as_nop
13984   ac_check_lib_save_LIBS=$LIBS
13985 LIBS="-lnsl $cf_cv_netlibs $LIBS"
13986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13987 /* end confdefs.h.  */
13988
13989 /* Override any GCC internal prototype to avoid an error.
13990    Use char because int might match the return type of a GCC
13991    builtin and then its argument prototype would still apply.  */
13992 char gethostbyname ();
13993 int
13994 main (void)
13995 {
13996 return gethostbyname ();
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"
14002 then :
14003   ac_cv_lib_nsl_gethostbyname=yes
14004 else $as_nop
14005   ac_cv_lib_nsl_gethostbyname=no
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14008     conftest$ac_exeext conftest.$ac_ext
14009 LIBS=$ac_check_lib_save_LIBS
14010 fi
14011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14012 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
14013 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
14014 then :
14015
14016
14017 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
14018
14019
14020 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14021
14022         ac_cv_func_gethostbyname=yes
14023         cf_cv_netlibs="-lnsl $cf_cv_netlibs"
14024 else $as_nop
14025
14026         ac_cv_func_gethostbyname=unknown
14027         unset ac_cv_func_gethostbyname 2>/dev/null
14028
14029 fi
14030
14031
14032 fi
14033
14034 done
14035
14036 fi
14037
14038 LIBS="$LIBS $cf_cv_netlibs"
14039 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
14040
14041      ac_fn_c_check_header_compile "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
14042 if test "x$ac_cv_header_customs_h" = xyes
14043 then :
14044   use_customs=true
14045                       REMOTE=cstms
14046                       LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
14047 else $as_nop
14048   with_customs=no
14049                       CPPFLAGS="$make_cppflags" make_badcust=yes
14050 fi
14051
14052      ;;
14053 esac
14054
14055 fi
14056
14057
14058 # Tell automake about this, so it can include the right .c files.
14059  if test "$use_customs" = true; then
14060   USE_CUSTOMS_TRUE=
14061   USE_CUSTOMS_FALSE='#'
14062 else
14063   USE_CUSTOMS_TRUE='#'
14064   USE_CUSTOMS_FALSE=
14065 fi
14066
14067
14068 # See if the user asked to handle case insensitive file systems.
14069
14070 # Check whether --enable-case-insensitive-file-system was given.
14071 if test ${enable_case_insensitive_file_system+y}
14072 then :
14073   enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes
14074 then :
14075   printf "%s\n" "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
14076
14077 fi
14078 fi
14079
14080
14081 # See if we can handle the job server feature, and if the user wants it.
14082 # Check whether --enable-job-server was given.
14083 if test ${enable_job_server+y}
14084 then :
14085   enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
14086 else $as_nop
14087   make_cv_job_server="yes"
14088 fi
14089
14090
14091 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no
14092 then :
14093   has_wait_nohang=no
14094 else $as_nop
14095   has_wait_nohang=yes
14096 fi
14097
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
14099 printf %s "checking for SA_RESTART... " >&6; }
14100 if test ${make_cv_sa_restart+y}
14101 then :
14102   printf %s "(cached) " >&6
14103 else $as_nop
14104
14105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h.  */
14107 #include <signal.h>
14108 int
14109 main (void)
14110 {
14111 return SA_RESTART;
14112   ;
14113   return 0;
14114 }
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"
14117 then :
14118   make_cv_sa_restart=yes
14119 else $as_nop
14120   make_cv_sa_restart=no
14121 fi
14122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14123 fi
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
14125 printf "%s\n" "$make_cv_sa_restart" >&6; }
14126
14127 if test "$make_cv_sa_restart" != no
14128 then :
14129
14130 printf "%s\n" "#define HAVE_SA_RESTART 1" >>confdefs.h
14131
14132
14133 fi
14134
14135 # Only allow jobserver on systems that support it
14136 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
14137   */no/*) :
14138     make_cv_job_server=no ;; #(
14139   *) :
14140      ;;
14141 esac
14142
14143 # Also supported on OS2 and MinGW
14144 case $host_os in #(
14145   os2*|mingw*) :
14146     make_cv_job_server=yes ;; #(
14147   *) :
14148      ;;
14149 esac
14150
14151 # If we support it and the user didn't disable it, build with jobserver
14152 case /$make_cv_job_server/$user_job_server/ in #(
14153   */no/*) :
14154     : no jobserver ;; #(
14155   *) :
14156
14157 printf "%s\n" "#define MAKE_JOBSERVER 1" >>confdefs.h
14158
14159    ;;
14160 esac
14161
14162 # If dl*() functions are supported we can enable the load operation
14163 ac_fn_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
14164 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14165 if test "x$ac_cv_have_decl_dlopen" = xyes
14166 then :
14167   ac_have_decl=1
14168 else $as_nop
14169   ac_have_decl=0
14170 fi
14171 printf "%s\n" "#define HAVE_DECL_DLOPEN $ac_have_decl" >>confdefs.h
14172 ac_fn_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
14173 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14174 if test "x$ac_cv_have_decl_dlsym" = xyes
14175 then :
14176   ac_have_decl=1
14177 else $as_nop
14178   ac_have_decl=0
14179 fi
14180 printf "%s\n" "#define HAVE_DECL_DLSYM $ac_have_decl" >>confdefs.h
14181 ac_fn_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
14182 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14183 if test "x$ac_cv_have_decl_dlerror" = xyes
14184 then :
14185   ac_have_decl=1
14186 else $as_nop
14187   ac_have_decl=0
14188 fi
14189 printf "%s\n" "#define HAVE_DECL_DLERROR $ac_have_decl" >>confdefs.h
14190
14191
14192 # Check whether --enable-load was given.
14193 if test ${enable_load+y}
14194 then :
14195   enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
14196 else $as_nop
14197   make_cv_load="yes"
14198 fi
14199
14200
14201 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
14202   */no/*) :
14203     make_cv_load=no ;; #(
14204   *) :
14205      ;;
14206 esac
14207
14208 # We might need -ldl
14209 if test "$make_cv_load" = yes
14210 then :
14211
14212   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14213 printf %s "checking for library containing dlopen... " >&6; }
14214 if test ${ac_cv_search_dlopen+y}
14215 then :
14216   printf %s "(cached) " >&6
14217 else $as_nop
14218   ac_func_search_save_LIBS=$LIBS
14219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14220 /* end confdefs.h.  */
14221
14222 /* Override any GCC internal prototype to avoid an error.
14223    Use char because int might match the return type of a GCC
14224    builtin and then its argument prototype would still apply.  */
14225 char dlopen ();
14226 int
14227 main (void)
14228 {
14229 return dlopen ();
14230   ;
14231   return 0;
14232 }
14233 _ACEOF
14234 for ac_lib in '' dl
14235 do
14236   if test -z "$ac_lib"; then
14237     ac_res="none required"
14238   else
14239     ac_res=-l$ac_lib
14240     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14241   fi
14242   if ac_fn_c_try_link "$LINENO"
14243 then :
14244   ac_cv_search_dlopen=$ac_res
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14247     conftest$ac_exeext
14248   if test ${ac_cv_search_dlopen+y}
14249 then :
14250   break
14251 fi
14252 done
14253 if test ${ac_cv_search_dlopen+y}
14254 then :
14255
14256 else $as_nop
14257   ac_cv_search_dlopen=no
14258 fi
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14261 fi
14262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14263 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
14264 ac_res=$ac_cv_search_dlopen
14265 if test "$ac_res" != no
14266 then :
14267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14268
14269 else $as_nop
14270   make_cv_load=
14271 fi
14272
14273
14274 fi
14275
14276 case /$make_cv_load/$user_load/ in #(
14277   */no/*) :
14278     make_cv_load=no ;; #(
14279   *) :
14280
14281 printf "%s\n" "#define MAKE_LOAD 1" >>confdefs.h
14282
14283    ;;
14284 esac
14285
14286 # If we want load support, we might need to link with export-dynamic.
14287 # See if we can figure it out.  Unfortunately this is very difficult.
14288 # For example passing -rdynamic to the SunPRO linker gives a warning
14289 # but succeeds and creates a shared object, not an executable!
14290 if test "$make_cv_load" = yes
14291 then :
14292
14293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -Wl,--export-dynamic" >&5
14294 printf %s "checking If the linker accepts -Wl,--export-dynamic... " >&6; }
14295   old_LDFLAGS="$LDFLAGS"
14296   LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
14297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h.  */
14299 int main(){}
14300 _ACEOF
14301 if ac_fn_c_try_link "$LINENO"
14302 then :
14303   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14304 printf "%s\n" "yes" >&6; }
14305      AM_LDFLAGS=-Wl,--export-dynamic
14306
14307 else $as_nop
14308   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 printf "%s\n" "no" >&6; }
14310      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking If the linker accepts -rdynamic" >&5
14311 printf %s "checking If the linker accepts -rdynamic... " >&6; }
14312      LDFLAGS="$old_LDFLAGS -rdynamic"
14313      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h.  */
14315 int main(){}
14316 _ACEOF
14317 if ac_fn_c_try_link "$LINENO"
14318 then :
14319   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14320 printf "%s\n" "yes" >&6; }
14321         AM_LDFLAGS=-rdynamic
14322
14323 else $as_nop
14324   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14325 printf "%s\n" "no" >&6; }
14326 fi
14327 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14328     conftest$ac_exeext conftest.$ac_ext
14329
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14332     conftest$ac_exeext conftest.$ac_ext
14333   LDFLAGS="$old_LDFLAGS"
14334
14335 fi
14336
14337 # if we have both lstat() and readlink() then we can support symlink
14338 # timechecks.
14339 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes
14340 then :
14341
14342 printf "%s\n" "#define MAKE_SYMLINKS 1" >>confdefs.h
14343
14344
14345 fi
14346
14347 # Use posix_spawn if we have support and the user didn't disable it
14348
14349 # Check whether --enable-posix-spawn was given.
14350 if test ${enable_posix_spawn+y}
14351 then :
14352   enableval=$enable_posix_spawn; make_cv_posix_spawn="$enableval" user_posix_spawn="$enableval"
14353 else $as_nop
14354   make_cv_posix_spawn="yes"
14355 fi
14356
14357
14358 case /$ac_cv_header_spawn/$ac_cv_func_posix_spawn/ in #(
14359   */no/*) :
14360     make_cv_posix_spawn=no ;; #(
14361   *) :
14362      ;;
14363 esac
14364
14365 if test "$make_cv_posix_spawn" = yes
14366 then :
14367   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_spawn that fails synchronously" >&5
14368 printf %s "checking for posix_spawn that fails synchronously... " >&6; }
14369 if test ${make_cv_synchronous_posix_spawn+y}
14370 then :
14371   printf %s "(cached) " >&6
14372 else $as_nop
14373   make_cv_synchronous_posix_spawn=no
14374      if test "$cross_compiling" = yes
14375 then :
14376   make_cv_synchronous_posix_spawn="no (cross-compiling)"
14377 else $as_nop
14378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h.  */
14380
14381        #include <errno.h>
14382        #include <spawn.h>
14383        extern char **environ;
14384        int main () {
14385          char path[] = "./xxx-non-existent";
14386          char *argv[] = {path, 0};
14387          return posix_spawn (0, path, 0, 0, argv, environ) == ENOENT ? 0 : 1;
14388        }
14389 _ACEOF
14390 if ac_fn_c_try_run "$LINENO"
14391 then :
14392   make_cv_synchronous_posix_spawn=yes
14393 else $as_nop
14394   make_cv_synchronous_posix_spawn=no
14395 fi
14396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14397   conftest.$ac_objext conftest.beam conftest.$ac_ext
14398 fi
14399
14400 fi
14401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_synchronous_posix_spawn" >&5
14402 printf "%s\n" "$make_cv_synchronous_posix_spawn" >&6; }
14403 fi
14404
14405 case /$user_posix_spawn/$make_cv_posix_spawn/$make_cv_synchronous_posix_spawn/ in #(
14406   */no/*) :
14407     make_cv_posix_spawn=no ;; #(
14408   *) :
14409
14410 printf "%s\n" "#define USE_POSIX_SPAWN 1" >>confdefs.h
14411
14412    ;;
14413 esac
14414
14415 # Find the SCCS commands, so we can include them in our default rules.
14416
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
14418 printf %s "checking for location of SCCS get command... " >&6; }
14419 if test ${make_cv_path_sccs_get+y}
14420 then :
14421   printf %s "(cached) " >&6
14422 else $as_nop
14423
14424   if test -f /usr/sccs/get
14425 then :
14426   make_cv_path_sccs_get=/usr/sccs/get
14427 else $as_nop
14428   make_cv_path_sccs_get=get
14429 fi
14430
14431 fi
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
14433 printf "%s\n" "$make_cv_path_sccs_get" >&6; }
14434
14435 printf "%s\n" "#define SCCS_GET \"$make_cv_path_sccs_get\"" >>confdefs.h
14436
14437
14438 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
14439 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
14440    test -f s.conftest
14441 then :
14442    # We successfully created an SCCS file.
14443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
14444 printf %s "checking if SCCS get command understands -G... " >&6; }
14445 if test ${make_cv_sys_get_minus_G+y}
14446 then :
14447   printf %s "(cached) " >&6
14448 else $as_nop
14449   if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
14450             test -f conftoast
14451 then :
14452   make_cv_sys_get_minus_G=yes
14453 else $as_nop
14454   make_cv_sys_get_minus_G=no
14455 fi
14456
14457 fi
14458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
14459 printf "%s\n" "$make_cv_sys_get_minus_G" >&6; }
14460   if test "$make_cv_sys_get_minus_G" = yes
14461 then :
14462
14463 printf "%s\n" "#define SCCS_GET_MINUS_G 1" >>confdefs.h
14464
14465
14466 fi
14467
14468 fi
14469 rm -f s.conftest conftoast
14470
14471 # Let the makefile know what our build host is
14472
14473
14474 printf "%s\n" "#define MAKE_HOST \"$host\"" >>confdefs.h
14475
14476 MAKE_HOST="$host"
14477
14478
14479 w32_target_env=no
14480  if false; then
14481   WINDOWSENV_TRUE=
14482   WINDOWSENV_FALSE='#'
14483 else
14484   WINDOWSENV_TRUE='#'
14485   WINDOWSENV_FALSE=
14486 fi
14487
14488
14489 case $host in #(
14490   *-*-mingw32) :
14491      if true; then
14492   WINDOWSENV_TRUE=
14493   WINDOWSENV_FALSE='#'
14494 else
14495   WINDOWSENV_TRUE='#'
14496   WINDOWSENV_FALSE=
14497 fi
14498
14499     w32_target_env=yes
14500
14501 printf "%s\n" "#define WINDOWS32 1" >>confdefs.h
14502
14503
14504 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
14505
14506    ;; #(
14507   *) :
14508      ;;
14509 esac
14510
14511
14512 printf "%s\n" "#define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'" >>confdefs.h
14513
14514
14515
14516 printf "%s\n" "#define HAVE_DECL_GETLOADAVG $HAVE_DECL_GETLOADAVG" >>confdefs.h
14517
14518
14519 # Remember that we ran configure to generate config.h
14520
14521
14522 printf "%s\n" "#define MK_CONFIGURE 1" >>confdefs.h
14523
14524
14525 # Include the Maintainer's Makefile section, if it's here.
14526
14527 MAINT_MAKEFILE=/dev/null
14528 if test -r "$srcdir/maintMakefile"
14529 then :
14530    MAINT_MAKEFILE="$srcdir/maintMakefile"
14531
14532 fi
14533
14534
14535 # Allow building with dmalloc
14536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
14537 printf %s "checking if malloc debugging is wanted... " >&6; }
14538
14539 # Check whether --with-dmalloc was given.
14540 if test ${with_dmalloc+y}
14541 then :
14542   withval=$with_dmalloc; if test "$withval" = yes; then
14543   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14544 printf "%s\n" "yes" >&6; }
14545
14546 printf "%s\n" "#define WITH_DMALLOC 1" >>confdefs.h
14547
14548   LIBS="$LIBS -ldmalloc"
14549   LDFLAGS="$LDFLAGS -g"
14550 else
14551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14552 printf "%s\n" "no" >&6; }
14553 fi
14554 else $as_nop
14555   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 printf "%s\n" "no" >&6; }
14557 fi
14558
14559
14560
14561 # Forcibly disable SET_MAKE.  If it's set it breaks things like the test
14562 # scripts, etc.
14563 SET_MAKE=
14564
14565 # Sanity check and inform the user of what we found
14566
14567 if test "x$make_badcust" = xyes
14568 then :
14569
14570 echo
14571 echo "WARNING: --with-customs specified but no customs.h could be found;"
14572 echo "         disabling Customs support."
14573 echo
14574
14575 fi
14576
14577 case $with_customs in #(
14578   ""|n|no|y|ye|yes) :
14579     : ;; #(
14580   *) :
14581     if test -f "$with_customs/lib/libcustoms.a"
14582 then :
14583   :
14584 else $as_nop
14585    echo
14586   echo "WARNING: '$with_customs/lib' does not appear to contain the"
14587   echo "         Customs library.  You must build and install Customs"
14588   echo "         before compiling GNU make."
14589   echo
14590
14591 fi ;;
14592 esac
14593
14594 if test "x$has_wait_nohang" = xno
14595 then :
14596    echo
14597   echo "WARNING: Your system has neither waitpid() nor wait3()."
14598   echo "         Without one of these, signal handling is unreliable."
14599   echo "         You should be aware that running GNU make with -j"
14600   echo "         could result in erratic behavior."
14601   echo
14602
14603 fi
14604
14605 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes
14606 then :
14607    echo
14608   echo "WARNING: Make job server requires a POSIX-ish system that"
14609   echo "         supports the pipe(), sigaction(), and either"
14610   echo "         waitpid() or wait3() functions.  Your system doesn't"
14611   echo "         appear to provide one or more of those."
14612   echo "         Disabling job server support."
14613   echo
14614
14615 fi
14616
14617 if test "x$make_cv_load" = xno && test "x$user_load" = xyes
14618 then :
14619    echo
14620   echo "WARNING: 'load' support requires a POSIX-ish system that"
14621   echo "         supports the dlopen(), dlsym(), and dlerror() functions."
14622   echo "         Your system doesn't appear to provide one or more of these."
14623   echo "         Disabling 'load' support."
14624   echo
14625
14626 fi
14627
14628 if test "x$make_cv_posix_spawn" = xno && test "x$user_posix_spawn" = xyes
14629 then :
14630    echo
14631   echo "WARNING: posix_spawn() is not supported on this system."
14632   echo
14633
14634 fi
14635
14636 # autoconf initializes $prefix to NONE.
14637  if test "x$prefix" = xNONE -o "x$prefix" = x/usr/local \
14638                      -o "x$prefix" = x/usr/gnu -o "x$prefix" = x/usr; then
14639   KNOWN_PREFIX_TRUE=
14640   KNOWN_PREFIX_FALSE='#'
14641 else
14642   KNOWN_PREFIX_TRUE='#'
14643   KNOWN_PREFIX_FALSE=
14644 fi
14645
14646
14647 # Specify what files are to be created.
14648 ac_config_files="$ac_config_files build.cfg tests/config-flags.pm Makefile lib/Makefile doc/Makefile po/Makefile.in"
14649
14650 # We don't need this: the standard automake output suffices for POSIX systems.
14651 #mk/Posix.mk
14652
14653 # Put build.sh in the build directory so it's easy to find
14654 ac_config_links="$ac_config_links build.sh:build.sh"
14655
14656
14657 # OK, do it!
14658
14659 cat >confcache <<\_ACEOF
14660 # This file is a shell script that caches the results of configure
14661 # tests run on this system so they can be shared between configure
14662 # scripts and configure runs, see configure's option --config-cache.
14663 # It is not useful on other systems.  If it contains results you don't
14664 # want to keep, you may remove or edit it.
14665 #
14666 # config.status only pays attention to the cache file if you give it
14667 # the --recheck option to rerun configure.
14668 #
14669 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14671 # following values.
14672
14673 _ACEOF
14674
14675 # The following way of writing the cache mishandles newlines in values,
14676 # but we know of no workaround that is simple, portable, and efficient.
14677 # So, we kill variables containing newlines.
14678 # Ultrix sh set writes to stderr and can't be redirected directly,
14679 # and sets the high bit in the cache file unless we assign to the vars.
14680 (
14681   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14682     eval ac_val=\$$ac_var
14683     case $ac_val in #(
14684     *${as_nl}*)
14685       case $ac_var in #(
14686       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14687 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14688       esac
14689       case $ac_var in #(
14690       _ | IFS | as_nl) ;; #(
14691       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14692       *) { eval $ac_var=; unset $ac_var;} ;;
14693       esac ;;
14694     esac
14695   done
14696
14697   (set) 2>&1 |
14698     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14699     *${as_nl}ac_space=\ *)
14700       # `set' does not quote correctly, so add quotes: double-quote
14701       # substitution turns \\\\ into \\, and sed turns \\ into \.
14702       sed -n \
14703         "s/'/'\\\\''/g;
14704           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14705       ;; #(
14706     *)
14707       # `set' quotes correctly as required by POSIX, so do not add quotes.
14708       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14709       ;;
14710     esac |
14711     sort
14712 ) |
14713   sed '
14714      /^ac_cv_env_/b end
14715      t clear
14716      :clear
14717      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
14718      t end
14719      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14720      :end' >>confcache
14721 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14722   if test -w "$cache_file"; then
14723     if test "x$cache_file" != "x/dev/null"; then
14724       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14725 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
14726       if test ! -f "$cache_file" || test -h "$cache_file"; then
14727         cat confcache >"$cache_file"
14728       else
14729         case $cache_file in #(
14730         */* | ?:*)
14731           mv -f confcache "$cache_file"$$ &&
14732           mv -f "$cache_file"$$ "$cache_file" ;; #(
14733         *)
14734           mv -f confcache "$cache_file" ;;
14735         esac
14736       fi
14737     fi
14738   else
14739     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14740 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
14741   fi
14742 fi
14743 rm -f confcache
14744
14745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14746 # Let make expand exec_prefix.
14747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14748
14749 DEFS=-DHAVE_CONFIG_H
14750
14751 ac_libobjs=
14752 ac_ltlibobjs=
14753 U=
14754 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14755   # 1. Remove the extension, and $U if already installed.
14756   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14757   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
14758   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14759   #    will be set to the directory where LIBOBJS objects are built.
14760   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14761   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14762 done
14763 LIBOBJS=$ac_libobjs
14764
14765 LTLIBOBJS=$ac_ltlibobjs
14766
14767
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14769 printf %s "checking that generated files are newer than configure... " >&6; }
14770    if test -n "$am_sleep_pid"; then
14771      # Hide warnings about reused PIDs.
14772      wait $am_sleep_pid 2>/dev/null
14773    fi
14774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
14775 printf "%s\n" "done" >&6; }
14776  if test -n "$EXEEXT"; then
14777   am__EXEEXT_TRUE=
14778   am__EXEEXT_FALSE='#'
14779 else
14780   am__EXEEXT_TRUE='#'
14781   am__EXEEXT_FALSE=
14782 fi
14783
14784 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14785   as_fn_error $? "conditional \"AMDEP\" was never defined.
14786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14787 fi
14788 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14789   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14791 fi
14792 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14793   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14795 fi
14796 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14797   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
14798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14799 fi
14800 if test -z "${USE_SYSTEM_GLOB_TRUE}" && test -z "${USE_SYSTEM_GLOB_FALSE}"; then
14801   as_fn_error $? "conditional \"USE_SYSTEM_GLOB\" was never defined.
14802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14803 fi
14804
14805     gl_libobjs=
14806     gl_ltlibobjs=
14807     gl_libobjdeps=
14808     if test -n "$gl_LIBOBJS"; then
14809       # Remove the extension.
14810       sed_drop_objext='s/\.o$//;s/\.obj$//'
14811       sed_dirname1='s,//*,/,g'
14812       sed_dirname2='s,\(.\)/$,\1,'
14813       sed_dirname3='s,^[^/]*$,.,'
14814       sed_dirname4='s,\(.\)/[^/]*$,\1,'
14815       sed_basename1='s,.*/,,'
14816       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14817         gl_libobjs="$gl_libobjs $i.$ac_objext"
14818         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14819         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
14820         i_base=`echo "$i" | sed -e "$sed_basename1"`
14821         gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
14822       done
14823     fi
14824     gl_LIBOBJS=$gl_libobjs
14825
14826     gl_LTLIBOBJS=$gl_ltlibobjs
14827
14828     gl_LIBOBJDEPS=$gl_libobjdeps
14829
14830
14831
14832     gltests_libobjs=
14833     gltests_ltlibobjs=
14834     gltests_libobjdeps=
14835     if test -n "$gltests_LIBOBJS"; then
14836       # Remove the extension.
14837       sed_drop_objext='s/\.o$//;s/\.obj$//'
14838       sed_dirname1='s,//*,/,g'
14839       sed_dirname2='s,\(.\)/$,\1,'
14840       sed_dirname3='s,^[^/]*$,.,'
14841       sed_dirname4='s,\(.\)/[^/]*$,\1,'
14842       sed_basename1='s,.*/,,'
14843       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14844         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14845         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14846         i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
14847         i_base=`echo "$i" | sed -e "$sed_basename1"`
14848         gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
14849       done
14850     fi
14851     gltests_LIBOBJS=$gltests_libobjs
14852
14853     gltests_LTLIBOBJS=$gltests_ltlibobjs
14854
14855     gltests_LIBOBJDEPS=$gltests_libobjdeps
14856
14857
14858
14859 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
14860   as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
14861 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14862 fi
14863 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
14864   as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
14865 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14866 fi
14867 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
14868   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
14869 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14870 fi
14871 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
14872   as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
14873 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14874 fi
14875 if test -z "${KNOWN_PREFIX_TRUE}" && test -z "${KNOWN_PREFIX_FALSE}"; then
14876   as_fn_error $? "conditional \"KNOWN_PREFIX\" was never defined.
14877 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14878 fi
14879
14880 : "${CONFIG_STATUS=./config.status}"
14881 ac_write_fail=0
14882 ac_clean_files_save=$ac_clean_files
14883 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14885 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
14886 as_write_fail=0
14887 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14888 #! $SHELL
14889 # Generated by $as_me.
14890 # Run this file to recreate the current configuration.
14891 # Compiler output produced by configure, useful for debugging
14892 # configure, is in config.log if it exists.
14893
14894 debug=false
14895 ac_cs_recheck=false
14896 ac_cs_silent=false
14897
14898 SHELL=\${CONFIG_SHELL-$SHELL}
14899 export SHELL
14900 _ASEOF
14901 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14902 ## -------------------- ##
14903 ## M4sh Initialization. ##
14904 ## -------------------- ##
14905
14906 # Be more Bourne compatible
14907 DUALCASE=1; export DUALCASE # for MKS sh
14908 as_nop=:
14909 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
14910 then :
14911   emulate sh
14912   NULLCMD=:
14913   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14914   # is contrary to our usage.  Disable this feature.
14915   alias -g '${1+"$@"}'='"$@"'
14916   setopt NO_GLOB_SUBST
14917 else $as_nop
14918   case `(set -o) 2>/dev/null` in #(
14919   *posix*) :
14920     set -o posix ;; #(
14921   *) :
14922      ;;
14923 esac
14924 fi
14925
14926
14927
14928 # Reset variables that may have inherited troublesome values from
14929 # the environment.
14930
14931 # IFS needs to be set, to space, tab, and newline, in precisely that order.
14932 # (If _AS_PATH_WALK were called with IFS unset, it would have the
14933 # side effect of setting IFS to empty, thus disabling word splitting.)
14934 # Quoting is to prevent editors from complaining about space-tab.
14935 as_nl='
14936 '
14937 export as_nl
14938 IFS=" ""        $as_nl"
14939
14940 PS1='$ '
14941 PS2='> '
14942 PS4='+ '
14943
14944 # Ensure predictable behavior from utilities with locale-dependent output.
14945 LC_ALL=C
14946 export LC_ALL
14947 LANGUAGE=C
14948 export LANGUAGE
14949
14950 # We cannot yet rely on "unset" to work, but we need these variables
14951 # to be unset--not just set to an empty or harmless value--now, to
14952 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
14953 # also avoids known problems related to "unset" and subshell syntax
14954 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
14955 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
14956 do eval test \${$as_var+y} \
14957   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14958 done
14959
14960 # Ensure that fds 0, 1, and 2 are open.
14961 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
14962 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
14963 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
14964
14965 # The user is always right.
14966 if ${PATH_SEPARATOR+false} :; then
14967   PATH_SEPARATOR=:
14968   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14969     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14970       PATH_SEPARATOR=';'
14971   }
14972 fi
14973
14974
14975 # Find who we are.  Look in the path if we contain no directory separator.
14976 as_myself=
14977 case $0 in #((
14978   *[\\/]* ) as_myself=$0 ;;
14979   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14981 do
14982   IFS=$as_save_IFS
14983   case $as_dir in #(((
14984     '') as_dir=./ ;;
14985     */) ;;
14986     *) as_dir=$as_dir/ ;;
14987   esac
14988     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
14989   done
14990 IFS=$as_save_IFS
14991
14992      ;;
14993 esac
14994 # We did not find ourselves, most probably we were run as `sh COMMAND'
14995 # in which case we are not to be found in the path.
14996 if test "x$as_myself" = x; then
14997   as_myself=$0
14998 fi
14999 if test ! -f "$as_myself"; then
15000   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15001   exit 1
15002 fi
15003
15004
15005
15006 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15007 # ----------------------------------------
15008 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15009 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15010 # script with STATUS, using 1 if that was 0.
15011 as_fn_error ()
15012 {
15013   as_status=$1; test $as_status -eq 0 && as_status=1
15014   if test "$4"; then
15015     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15016     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15017   fi
15018   printf "%s\n" "$as_me: error: $2" >&2
15019   as_fn_exit $as_status
15020 } # as_fn_error
15021
15022
15023
15024 # as_fn_set_status STATUS
15025 # -----------------------
15026 # Set $? to STATUS, without forking.
15027 as_fn_set_status ()
15028 {
15029   return $1
15030 } # as_fn_set_status
15031
15032 # as_fn_exit STATUS
15033 # -----------------
15034 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15035 as_fn_exit ()
15036 {
15037   set +e
15038   as_fn_set_status $1
15039   exit $1
15040 } # as_fn_exit
15041
15042 # as_fn_unset VAR
15043 # ---------------
15044 # Portably unset VAR.
15045 as_fn_unset ()
15046 {
15047   { eval $1=; unset $1;}
15048 }
15049 as_unset=as_fn_unset
15050
15051 # as_fn_append VAR VALUE
15052 # ----------------------
15053 # Append the text in VALUE to the end of the definition contained in VAR. Take
15054 # advantage of any shell optimizations that allow amortized linear growth over
15055 # repeated appends, instead of the typical quadratic growth present in naive
15056 # implementations.
15057 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15058 then :
15059   eval 'as_fn_append ()
15060   {
15061     eval $1+=\$2
15062   }'
15063 else $as_nop
15064   as_fn_append ()
15065   {
15066     eval $1=\$$1\$2
15067   }
15068 fi # as_fn_append
15069
15070 # as_fn_arith ARG...
15071 # ------------------
15072 # Perform arithmetic evaluation on the ARGs, and store the result in the
15073 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15074 # must be portable across $(()) and expr.
15075 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15076 then :
15077   eval 'as_fn_arith ()
15078   {
15079     as_val=$(( $* ))
15080   }'
15081 else $as_nop
15082   as_fn_arith ()
15083   {
15084     as_val=`expr "$@" || test $? -eq 1`
15085   }
15086 fi # as_fn_arith
15087
15088
15089 if expr a : '\(a\)' >/dev/null 2>&1 &&
15090    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15091   as_expr=expr
15092 else
15093   as_expr=false
15094 fi
15095
15096 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15097   as_basename=basename
15098 else
15099   as_basename=false
15100 fi
15101
15102 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15103   as_dirname=dirname
15104 else
15105   as_dirname=false
15106 fi
15107
15108 as_me=`$as_basename -- "$0" ||
15109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15110          X"$0" : 'X\(//\)$' \| \
15111          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15112 printf "%s\n" X/"$0" |
15113     sed '/^.*\/\([^/][^/]*\)\/*$/{
15114             s//\1/
15115             q
15116           }
15117           /^X\/\(\/\/\)$/{
15118             s//\1/
15119             q
15120           }
15121           /^X\/\(\/\).*/{
15122             s//\1/
15123             q
15124           }
15125           s/.*/./; q'`
15126
15127 # Avoid depending upon Character Ranges.
15128 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15129 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15130 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15131 as_cr_digits='0123456789'
15132 as_cr_alnum=$as_cr_Letters$as_cr_digits
15133
15134
15135 # Determine whether it's possible to make 'echo' print without a newline.
15136 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15137 # for compatibility with existing Makefiles.
15138 ECHO_C= ECHO_N= ECHO_T=
15139 case `echo -n x` in #(((((
15140 -n*)
15141   case `echo 'xy\c'` in
15142   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15143   xy)  ECHO_C='\c';;
15144   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15145        ECHO_T=' ';;
15146   esac;;
15147 *)
15148   ECHO_N='-n';;
15149 esac
15150
15151 # For backward compatibility with old third-party macros, we provide
15152 # the shell variables $as_echo and $as_echo_n.  New code should use
15153 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15154 as_echo='printf %s\n'
15155 as_echo_n='printf %s'
15156
15157 rm -f conf$$ conf$$.exe conf$$.file
15158 if test -d conf$$.dir; then
15159   rm -f conf$$.dir/conf$$.file
15160 else
15161   rm -f conf$$.dir
15162   mkdir conf$$.dir 2>/dev/null
15163 fi
15164 if (echo >conf$$.file) 2>/dev/null; then
15165   if ln -s conf$$.file conf$$ 2>/dev/null; then
15166     as_ln_s='ln -s'
15167     # ... but there are two gotchas:
15168     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15169     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15170     # In both cases, we have to default to `cp -pR'.
15171     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15172       as_ln_s='cp -pR'
15173   elif ln conf$$.file conf$$ 2>/dev/null; then
15174     as_ln_s=ln
15175   else
15176     as_ln_s='cp -pR'
15177   fi
15178 else
15179   as_ln_s='cp -pR'
15180 fi
15181 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15182 rmdir conf$$.dir 2>/dev/null
15183
15184
15185 # as_fn_mkdir_p
15186 # -------------
15187 # Create "$as_dir" as a directory, including parents if necessary.
15188 as_fn_mkdir_p ()
15189 {
15190
15191   case $as_dir in #(
15192   -*) as_dir=./$as_dir;;
15193   esac
15194   test -d "$as_dir" || eval $as_mkdir_p || {
15195     as_dirs=
15196     while :; do
15197       case $as_dir in #(
15198       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15199       *) as_qdir=$as_dir;;
15200       esac
15201       as_dirs="'$as_qdir' $as_dirs"
15202       as_dir=`$as_dirname -- "$as_dir" ||
15203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15204          X"$as_dir" : 'X\(//\)[^/]' \| \
15205          X"$as_dir" : 'X\(//\)$' \| \
15206          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15207 printf "%s\n" X"$as_dir" |
15208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15209             s//\1/
15210             q
15211           }
15212           /^X\(\/\/\)[^/].*/{
15213             s//\1/
15214             q
15215           }
15216           /^X\(\/\/\)$/{
15217             s//\1/
15218             q
15219           }
15220           /^X\(\/\).*/{
15221             s//\1/
15222             q
15223           }
15224           s/.*/./; q'`
15225       test -d "$as_dir" && break
15226     done
15227     test -z "$as_dirs" || eval "mkdir $as_dirs"
15228   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15229
15230
15231 } # as_fn_mkdir_p
15232 if mkdir -p . 2>/dev/null; then
15233   as_mkdir_p='mkdir -p "$as_dir"'
15234 else
15235   test -d ./-p && rmdir ./-p
15236   as_mkdir_p=false
15237 fi
15238
15239
15240 # as_fn_executable_p FILE
15241 # -----------------------
15242 # Test if FILE is an executable regular file.
15243 as_fn_executable_p ()
15244 {
15245   test -f "$1" && test -x "$1"
15246 } # as_fn_executable_p
15247 as_test_x='test -x'
15248 as_executable_p=as_fn_executable_p
15249
15250 # Sed expression to map a string onto a valid CPP name.
15251 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15252
15253 # Sed expression to map a string onto a valid variable name.
15254 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15255
15256
15257 exec 6>&1
15258 ## ----------------------------------- ##
15259 ## Main body of $CONFIG_STATUS script. ##
15260 ## ----------------------------------- ##
15261 _ASEOF
15262 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15263
15264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15265 # Save the log message, to keep $0 and so on meaningful, and to
15266 # report actual input values of CONFIG_FILES etc. instead of their
15267 # values after options handling.
15268 ac_log="
15269 This file was extended by GNU Make $as_me 4.4, which was
15270 generated by GNU Autoconf 2.71.  Invocation command line was
15271
15272   CONFIG_FILES    = $CONFIG_FILES
15273   CONFIG_HEADERS  = $CONFIG_HEADERS
15274   CONFIG_LINKS    = $CONFIG_LINKS
15275   CONFIG_COMMANDS = $CONFIG_COMMANDS
15276   $ $0 $@
15277
15278 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15279 "
15280
15281 _ACEOF
15282
15283 case $ac_config_files in *"
15284 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15285 esac
15286
15287 case $ac_config_headers in *"
15288 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15289 esac
15290
15291
15292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15293 # Files that config.status was made for.
15294 config_files="$ac_config_files"
15295 config_headers="$ac_config_headers"
15296 config_links="$ac_config_links"
15297 config_commands="$ac_config_commands"
15298
15299 _ACEOF
15300
15301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15302 ac_cs_usage="\
15303 \`$as_me' instantiates files and other configuration actions
15304 from templates according to the current configuration.  Unless the files
15305 and actions are specified as TAGs, all are instantiated by default.
15306
15307 Usage: $0 [OPTION]... [TAG]...
15308
15309   -h, --help       print this help, then exit
15310   -V, --version    print version number and configuration settings, then exit
15311       --config     print configuration, then exit
15312   -q, --quiet, --silent
15313                    do not print progress messages
15314   -d, --debug      don't remove temporary files
15315       --recheck    update $as_me by reconfiguring in the same conditions
15316       --file=FILE[:TEMPLATE]
15317                    instantiate the configuration file FILE
15318       --header=FILE[:TEMPLATE]
15319                    instantiate the configuration header FILE
15320
15321 Configuration files:
15322 $config_files
15323
15324 Configuration headers:
15325 $config_headers
15326
15327 Configuration links:
15328 $config_links
15329
15330 Configuration commands:
15331 $config_commands
15332
15333 Report bugs to <bug-make@gnu.org>.
15334 GNU Make home page: <https://www.gnu.org/software/make/>.
15335 General help using GNU software: <https://www.gnu.org/gethelp/>."
15336
15337 _ACEOF
15338 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15339 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341 ac_cs_config='$ac_cs_config_escaped'
15342 ac_cs_version="\\
15343 GNU Make config.status 4.4
15344 configured by $0, generated by GNU Autoconf 2.71,
15345   with options \\"\$ac_cs_config\\"
15346
15347 Copyright (C) 2021 Free Software Foundation, Inc.
15348 This config.status script is free software; the Free Software Foundation
15349 gives unlimited permission to copy, distribute and modify it."
15350
15351 ac_pwd='$ac_pwd'
15352 srcdir='$srcdir'
15353 INSTALL='$INSTALL'
15354 MKDIR_P='$MKDIR_P'
15355 AWK='$AWK'
15356 test -n "\$AWK" || AWK=awk
15357 _ACEOF
15358
15359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15360 # The default lists apply if the user does not specify any file.
15361 ac_need_defaults=:
15362 while test $# != 0
15363 do
15364   case $1 in
15365   --*=?*)
15366     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15367     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15368     ac_shift=:
15369     ;;
15370   --*=)
15371     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15372     ac_optarg=
15373     ac_shift=:
15374     ;;
15375   *)
15376     ac_option=$1
15377     ac_optarg=$2
15378     ac_shift=shift
15379     ;;
15380   esac
15381
15382   case $ac_option in
15383   # Handling of the options.
15384   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15385     ac_cs_recheck=: ;;
15386   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15387     printf "%s\n" "$ac_cs_version"; exit ;;
15388   --config | --confi | --conf | --con | --co | --c )
15389     printf "%s\n" "$ac_cs_config"; exit ;;
15390   --debug | --debu | --deb | --de | --d | -d )
15391     debug=: ;;
15392   --file | --fil | --fi | --f )
15393     $ac_shift
15394     case $ac_optarg in
15395     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15396     '') as_fn_error $? "missing file argument" ;;
15397     esac
15398     as_fn_append CONFIG_FILES " '$ac_optarg'"
15399     ac_need_defaults=false;;
15400   --header | --heade | --head | --hea )
15401     $ac_shift
15402     case $ac_optarg in
15403     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15404     esac
15405     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15406     ac_need_defaults=false;;
15407   --he | --h)
15408     # Conflict between --help and --header
15409     as_fn_error $? "ambiguous option: \`$1'
15410 Try \`$0 --help' for more information.";;
15411   --help | --hel | -h )
15412     printf "%s\n" "$ac_cs_usage"; exit ;;
15413   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15414   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15415     ac_cs_silent=: ;;
15416
15417   # This is an error.
15418   -*) as_fn_error $? "unrecognized option: \`$1'
15419 Try \`$0 --help' for more information." ;;
15420
15421   *) as_fn_append ac_config_targets " $1"
15422      ac_need_defaults=false ;;
15423
15424   esac
15425   shift
15426 done
15427
15428 ac_configure_extra_args=
15429
15430 if $ac_cs_silent; then
15431   exec 6>/dev/null
15432   ac_configure_extra_args="$ac_configure_extra_args --silent"
15433 fi
15434
15435 _ACEOF
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437 if \$ac_cs_recheck; then
15438   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15439   shift
15440   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
15441   CONFIG_SHELL='$SHELL'
15442   export CONFIG_SHELL
15443   exec "\$@"
15444 fi
15445
15446 _ACEOF
15447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15448 exec 5>>config.log
15449 {
15450   echo
15451   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15452 ## Running $as_me. ##
15453 _ASBOX
15454   printf "%s\n" "$ac_log"
15455 } >&5
15456
15457 _ACEOF
15458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15459 #
15460 # INIT-COMMANDS
15461 #
15462 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
15463 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15464     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15465     # from automake < 1.5.
15466     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15467     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15468     LINGUAS="${LINGUAS-%UNSET%}"
15469
15470
15471 _ACEOF
15472
15473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15474
15475 # Handling of arguments.
15476 for ac_config_target in $ac_config_targets
15477 do
15478   case $ac_config_target in
15479     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
15480     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15481     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15482     "build.cfg") CONFIG_FILES="$CONFIG_FILES build.cfg" ;;
15483     "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
15484     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15485     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
15486     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15487     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15488     "build.sh") CONFIG_LINKS="$CONFIG_LINKS build.sh:build.sh" ;;
15489
15490   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15491   esac
15492 done
15493
15494
15495 # If the user did not use the arguments to specify the items to instantiate,
15496 # then the envvar interface is used.  Set only those that are not.
15497 # We use the long form for the default assignment because of an extremely
15498 # bizarre bug on SunOS 4.1.3.
15499 if $ac_need_defaults; then
15500   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
15501   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
15502   test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
15503   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
15504 fi
15505
15506 # Have a temporary directory for convenience.  Make it in the build tree
15507 # simply because there is no reason against having it here, and in addition,
15508 # creating and moving files from /tmp can sometimes cause problems.
15509 # Hook for its removal unless debugging.
15510 # Note that there is a small window in which the directory will not be cleaned:
15511 # after its creation but before its name has been assigned to `$tmp'.
15512 $debug ||
15513 {
15514   tmp= ac_tmp=
15515   trap 'exit_status=$?
15516   : "${ac_tmp:=$tmp}"
15517   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15518 ' 0
15519   trap 'as_fn_exit 1' 1 2 13 15
15520 }
15521 # Create a (secure) tmp directory for tmp files.
15522
15523 {
15524   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15525   test -d "$tmp"
15526 }  ||
15527 {
15528   tmp=./conf$$-$RANDOM
15529   (umask 077 && mkdir "$tmp")
15530 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15531 ac_tmp=$tmp
15532
15533 # Set up the scripts for CONFIG_FILES section.
15534 # No need to generate them if there are no CONFIG_FILES.
15535 # This happens for instance with `./config.status config.h'.
15536 if test -n "$CONFIG_FILES"; then
15537
15538 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15539   ac_cs_awk_getline=:
15540   ac_cs_awk_pipe_init=
15541   ac_cs_awk_read_file='
15542       while ((getline aline < (F[key])) > 0)
15543         print(aline)
15544       close(F[key])'
15545   ac_cs_awk_pipe_fini=
15546 else
15547   ac_cs_awk_getline=false
15548   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15549   ac_cs_awk_read_file='
15550       print "|#_!!_#|"
15551       print "cat " F[key] " &&"
15552       '$ac_cs_awk_pipe_init
15553   # The final `:' finishes the AND list.
15554   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15555 fi
15556 ac_cr=`echo X | tr X '\015'`
15557 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15558 # But we know of no other shell where ac_cr would be empty at this
15559 # point, so we can use a bashism as a fallback.
15560 if test "x$ac_cr" = x; then
15561   eval ac_cr=\$\'\\r\'
15562 fi
15563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15565   ac_cs_awk_cr='\\r'
15566 else
15567   ac_cs_awk_cr=$ac_cr
15568 fi
15569
15570 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15571 _ACEOF
15572
15573 # Create commands to substitute file output variables.
15574 {
15575   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15576   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
15577   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15578   echo "_ACAWK" &&
15579   echo "_ACEOF"
15580 } >conf$$files.sh &&
15581 . ./conf$$files.sh ||
15582   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15583 rm -f conf$$files.sh
15584
15585 {
15586   echo "cat >conf$$subs.awk <<_ACEOF" &&
15587   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15588   echo "_ACEOF"
15589 } >conf$$subs.sh ||
15590   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15591 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15592 ac_delim='%!_!# '
15593 for ac_last_try in false false false false false :; do
15594   . ./conf$$subs.sh ||
15595     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15596
15597   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15598   if test $ac_delim_n = $ac_delim_num; then
15599     break
15600   elif $ac_last_try; then
15601     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15602   else
15603     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15604   fi
15605 done
15606 rm -f conf$$subs.sh
15607
15608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15609 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15610 _ACEOF
15611 sed -n '
15612 h
15613 s/^/S["/; s/!.*/"]=/
15614 p
15615 g
15616 s/^[^!]*!//
15617 :repl
15618 t repl
15619 s/'"$ac_delim"'$//
15620 t delim
15621 :nl
15622 h
15623 s/\(.\{148\}\)..*/\1/
15624 t more1
15625 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15626 p
15627 n
15628 b repl
15629 :more1
15630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15631 p
15632 g
15633 s/.\{148\}//
15634 t nl
15635 :delim
15636 h
15637 s/\(.\{148\}\)..*/\1/
15638 t more2
15639 s/["\\]/\\&/g; s/^/"/; s/$/"/
15640 p
15641 b
15642 :more2
15643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15644 p
15645 g
15646 s/.\{148\}//
15647 t delim
15648 ' <conf$$subs.awk | sed '
15649 /^[^""]/{
15650   N
15651   s/\n//
15652 }
15653 ' >>$CONFIG_STATUS || ac_write_fail=1
15654 rm -f conf$$subs.awk
15655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15656 _ACAWK
15657 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15658   for (key in S) S_is_set[key] = 1
15659   FS = "\a"
15660   \$ac_cs_awk_pipe_init
15661 }
15662 {
15663   line = $ 0
15664   nfields = split(line, field, "@")
15665   substed = 0
15666   len = length(field[1])
15667   for (i = 2; i < nfields; i++) {
15668     key = field[i]
15669     keylen = length(key)
15670     if (S_is_set[key]) {
15671       value = S[key]
15672       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15673       len += length(value) + length(field[++i])
15674       substed = 1
15675     } else
15676       len += 1 + keylen
15677   }
15678   if (nfields == 3 && !substed) {
15679     key = field[2]
15680     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15681       \$ac_cs_awk_read_file
15682       next
15683     }
15684   }
15685   print line
15686 }
15687 \$ac_cs_awk_pipe_fini
15688 _ACAWK
15689 _ACEOF
15690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15691 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15692   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15693 else
15694   cat
15695 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15696   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15697 _ACEOF
15698
15699 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15700 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15701 # trailing colons and then remove the whole line if VPATH becomes empty
15702 # (actually we leave an empty line to preserve line numbers).
15703 if test "x$srcdir" = x.; then
15704   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15705 h
15706 s///
15707 s/^/:/
15708 s/[      ]*$/:/
15709 s/:\$(srcdir):/:/g
15710 s/:\${srcdir}:/:/g
15711 s/:@srcdir@:/:/g
15712 s/^:*//
15713 s/:*$//
15714 x
15715 s/\(=[   ]*\).*/\1/
15716 G
15717 s/\n//
15718 s/^[^=]*=[       ]*$//
15719 }'
15720 fi
15721
15722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15723 fi # test -n "$CONFIG_FILES"
15724
15725 # Set up the scripts for CONFIG_HEADERS section.
15726 # No need to generate them if there are no CONFIG_HEADERS.
15727 # This happens for instance with `./config.status Makefile'.
15728 if test -n "$CONFIG_HEADERS"; then
15729 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15730 BEGIN {
15731 _ACEOF
15732
15733 # Transform confdefs.h into an awk script `defines.awk', embedded as
15734 # here-document in config.status, that substitutes the proper values into
15735 # config.h.in to produce config.h.
15736
15737 # Create a delimiter string that does not exist in confdefs.h, to ease
15738 # handling of long lines.
15739 ac_delim='%!_!# '
15740 for ac_last_try in false false :; do
15741   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15742   if test -z "$ac_tt"; then
15743     break
15744   elif $ac_last_try; then
15745     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15746   else
15747     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15748   fi
15749 done
15750
15751 # For the awk script, D is an array of macro values keyed by name,
15752 # likewise P contains macro parameters if any.  Preserve backslash
15753 # newline sequences.
15754
15755 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15756 sed -n '
15757 s/.\{148\}/&'"$ac_delim"'/g
15758 t rset
15759 :rset
15760 s/^[     ]*#[    ]*define[       ][      ]*/ /
15761 t def
15762 d
15763 :def
15764 s/\\$//
15765 t bsnl
15766 s/["\\]/\\&/g
15767 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15768 D["\1"]=" \3"/p
15769 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15770 d
15771 :bsnl
15772 s/["\\]/\\&/g
15773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15774 D["\1"]=" \3\\\\\\n"\\/p
15775 t cont
15776 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15777 t cont
15778 d
15779 :cont
15780 n
15781 s/.\{148\}/&'"$ac_delim"'/g
15782 t clear
15783 :clear
15784 s/\\$//
15785 t bsnlc
15786 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15787 d
15788 :bsnlc
15789 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15790 b cont
15791 ' <confdefs.h | sed '
15792 s/'"$ac_delim"'/"\\\
15793 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15794
15795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15796   for (key in D) D_is_set[key] = 1
15797   FS = "\a"
15798 }
15799 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15800   line = \$ 0
15801   split(line, arg, " ")
15802   if (arg[1] == "#") {
15803     defundef = arg[2]
15804     mac1 = arg[3]
15805   } else {
15806     defundef = substr(arg[1], 2)
15807     mac1 = arg[2]
15808   }
15809   split(mac1, mac2, "(") #)
15810   macro = mac2[1]
15811   prefix = substr(line, 1, index(line, defundef) - 1)
15812   if (D_is_set[macro]) {
15813     # Preserve the white space surrounding the "#".
15814     print prefix "define", macro P[macro] D[macro]
15815     next
15816   } else {
15817     # Replace #undef with comments.  This is necessary, for example,
15818     # in the case of _POSIX_SOURCE, which is predefined and required
15819     # on some systems where configure will not decide to define it.
15820     if (defundef == "undef") {
15821       print "/*", prefix defundef, macro, "*/"
15822       next
15823     }
15824   }
15825 }
15826 { print }
15827 _ACAWK
15828 _ACEOF
15829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15830   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15831 fi # test -n "$CONFIG_HEADERS"
15832
15833
15834 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15835 shift
15836 for ac_tag
15837 do
15838   case $ac_tag in
15839   :[FHLC]) ac_mode=$ac_tag; continue;;
15840   esac
15841   case $ac_mode$ac_tag in
15842   :[FHL]*:*);;
15843   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15844   :[FH]-) ac_tag=-:-;;
15845   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15846   esac
15847   ac_save_IFS=$IFS
15848   IFS=:
15849   set x $ac_tag
15850   IFS=$ac_save_IFS
15851   shift
15852   ac_file=$1
15853   shift
15854
15855   case $ac_mode in
15856   :L) ac_source=$1;;
15857   :[FH])
15858     ac_file_inputs=
15859     for ac_f
15860     do
15861       case $ac_f in
15862       -) ac_f="$ac_tmp/stdin";;
15863       *) # Look for the file first in the build tree, then in the source tree
15864          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15865          # because $ac_f cannot contain `:'.
15866          test -f "$ac_f" ||
15867            case $ac_f in
15868            [\\/$]*) false;;
15869            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15870            esac ||
15871            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15872       esac
15873       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15874       as_fn_append ac_file_inputs " '$ac_f'"
15875     done
15876
15877     # Let's still pretend it is `configure' which instantiates (i.e., don't
15878     # use $as_me), people would be surprised to read:
15879     #    /* config.h.  Generated by config.status.  */
15880     configure_input='Generated from '`
15881           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15882         `' by configure.'
15883     if test x"$ac_file" != x-; then
15884       configure_input="$ac_file.  $configure_input"
15885       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15886 printf "%s\n" "$as_me: creating $ac_file" >&6;}
15887     fi
15888     # Neutralize special characters interpreted by sed in replacement strings.
15889     case $configure_input in #(
15890     *\&* | *\|* | *\\* )
15891        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
15892        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15893     *) ac_sed_conf_input=$configure_input;;
15894     esac
15895
15896     case $ac_tag in
15897     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15898       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15899     esac
15900     ;;
15901   esac
15902
15903   ac_dir=`$as_dirname -- "$ac_file" ||
15904 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15905          X"$ac_file" : 'X\(//\)[^/]' \| \
15906          X"$ac_file" : 'X\(//\)$' \| \
15907          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15908 printf "%s\n" X"$ac_file" |
15909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15910             s//\1/
15911             q
15912           }
15913           /^X\(\/\/\)[^/].*/{
15914             s//\1/
15915             q
15916           }
15917           /^X\(\/\/\)$/{
15918             s//\1/
15919             q
15920           }
15921           /^X\(\/\).*/{
15922             s//\1/
15923             q
15924           }
15925           s/.*/./; q'`
15926   as_dir="$ac_dir"; as_fn_mkdir_p
15927   ac_builddir=.
15928
15929 case "$ac_dir" in
15930 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15931 *)
15932   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
15933   # A ".." for each directory in $ac_dir_suffix.
15934   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15935   case $ac_top_builddir_sub in
15936   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15937   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15938   esac ;;
15939 esac
15940 ac_abs_top_builddir=$ac_pwd
15941 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15942 # for backward compatibility:
15943 ac_top_builddir=$ac_top_build_prefix
15944
15945 case $srcdir in
15946   .)  # We are building in place.
15947     ac_srcdir=.
15948     ac_top_srcdir=$ac_top_builddir_sub
15949     ac_abs_top_srcdir=$ac_pwd ;;
15950   [\\/]* | ?:[\\/]* )  # Absolute name.
15951     ac_srcdir=$srcdir$ac_dir_suffix;
15952     ac_top_srcdir=$srcdir
15953     ac_abs_top_srcdir=$srcdir ;;
15954   *) # Relative name.
15955     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15956     ac_top_srcdir=$ac_top_build_prefix$srcdir
15957     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15958 esac
15959 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15960
15961
15962   case $ac_mode in
15963   :F)
15964   #
15965   # CONFIG_FILE
15966   #
15967
15968   case $INSTALL in
15969   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15970   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15971   esac
15972   ac_MKDIR_P=$MKDIR_P
15973   case $MKDIR_P in
15974   [\\/$]* | ?:[\\/]* ) ;;
15975   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15976   esac
15977 _ACEOF
15978
15979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15980 # If the template does not know about datarootdir, expand it.
15981 # FIXME: This hack should be removed a few years after 2.60.
15982 ac_datarootdir_hack=; ac_datarootdir_seen=
15983 ac_sed_dataroot='
15984 /datarootdir/ {
15985   p
15986   q
15987 }
15988 /@datadir@/p
15989 /@docdir@/p
15990 /@infodir@/p
15991 /@localedir@/p
15992 /@mandir@/p'
15993 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15994 *datarootdir*) ac_datarootdir_seen=yes;;
15995 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15996   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15997 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15998 _ACEOF
15999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16000   ac_datarootdir_hack='
16001   s&@datadir@&$datadir&g
16002   s&@docdir@&$docdir&g
16003   s&@infodir@&$infodir&g
16004   s&@localedir@&$localedir&g
16005   s&@mandir@&$mandir&g
16006   s&\\\${datarootdir}&$datarootdir&g' ;;
16007 esac
16008 _ACEOF
16009
16010 # Neutralize VPATH when `$srcdir' = `.'.
16011 # Shell code in configure.ac might set extrasub.
16012 # FIXME: do we really want to maintain this feature?
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 ac_sed_extra="$ac_vpsub
16015 $extrasub
16016 _ACEOF
16017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16018 :t
16019 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16020 s|@configure_input@|$ac_sed_conf_input|;t t
16021 s&@top_builddir@&$ac_top_builddir_sub&;t t
16022 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16023 s&@srcdir@&$ac_srcdir&;t t
16024 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16025 s&@top_srcdir@&$ac_top_srcdir&;t t
16026 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16027 s&@builddir@&$ac_builddir&;t t
16028 s&@abs_builddir@&$ac_abs_builddir&;t t
16029 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16030 s&@INSTALL@&$ac_INSTALL&;t t
16031 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16032 $ac_datarootdir_hack
16033 "
16034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16035 if $ac_cs_awk_getline; then
16036   $AWK -f "$ac_tmp/subs.awk"
16037 else
16038   $AWK -f "$ac_tmp/subs.awk" | $SHELL
16039 fi \
16040   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16041
16042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16043   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16044   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16045       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16046   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined.  Please make sure it is defined" >&5
16048 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16049 which seems to be undefined.  Please make sure it is defined" >&2;}
16050
16051   rm -f "$ac_tmp/stdin"
16052   case $ac_file in
16053   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16054   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16055   esac \
16056   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16057  ;;
16058   :H)
16059   #
16060   # CONFIG_HEADER
16061   #
16062   if test x"$ac_file" != x-; then
16063     {
16064       printf "%s\n" "/* $configure_input  */" >&1 \
16065       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16066     } >"$ac_tmp/config.h" \
16067       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16068     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16069       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16070 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16071     else
16072       rm -f "$ac_file"
16073       mv "$ac_tmp/config.h" "$ac_file" \
16074         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16075     fi
16076   else
16077     printf "%s\n" "/* $configure_input  */" >&1 \
16078       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16079       || as_fn_error $? "could not create -" "$LINENO" 5
16080   fi
16081 # Compute "$ac_file"'s index in $config_headers.
16082 _am_arg="$ac_file"
16083 _am_stamp_count=1
16084 for _am_header in $config_headers :; do
16085   case $_am_header in
16086     $_am_arg | $_am_arg:* )
16087       break ;;
16088     * )
16089       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16090   esac
16091 done
16092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16094          X"$_am_arg" : 'X\(//\)[^/]' \| \
16095          X"$_am_arg" : 'X\(//\)$' \| \
16096          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16097 printf "%s\n" X"$_am_arg" |
16098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16099             s//\1/
16100             q
16101           }
16102           /^X\(\/\/\)[^/].*/{
16103             s//\1/
16104             q
16105           }
16106           /^X\(\/\/\)$/{
16107             s//\1/
16108             q
16109           }
16110           /^X\(\/\).*/{
16111             s//\1/
16112             q
16113           }
16114           s/.*/./; q'`/stamp-h$_am_stamp_count
16115  ;;
16116   :L)
16117   #
16118   # CONFIG_LINK
16119   #
16120
16121   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16122     :
16123   else
16124     # Prefer the file from the source tree if names are identical.
16125     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16126       ac_source=$srcdir/$ac_source
16127     fi
16128
16129     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16130 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
16131
16132     if test ! -r "$ac_source"; then
16133       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16134     fi
16135     rm -f "$ac_file"
16136
16137     # Try a relative symlink, then a hard link, then a copy.
16138     case $ac_source in
16139     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16140         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16141     esac
16142     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16143       ln "$ac_source" "$ac_file" 2>/dev/null ||
16144       cp -p "$ac_source" "$ac_file" ||
16145       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16146   fi
16147  ;;
16148   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16149 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16150  ;;
16151   esac
16152
16153
16154   case $ac_file$ac_mode in
16155     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16156   # Older Autoconf quotes --file arguments for eval, but not when files
16157   # are listed without --file.  Let's play safe and only enable the eval
16158   # if we detect the quoting.
16159   # TODO: see whether this extra hack can be removed once we start
16160   # requiring Autoconf 2.70 or later.
16161   case $CONFIG_FILES in #(
16162   *\'*) :
16163     eval set x "$CONFIG_FILES" ;; #(
16164   *) :
16165     set x $CONFIG_FILES ;; #(
16166   *) :
16167      ;;
16168 esac
16169   shift
16170   # Used to flag and report bootstrapping failures.
16171   am_rc=0
16172   for am_mf
16173   do
16174     # Strip MF so we end up with the name of the file.
16175     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16176     # Check whether this is an Automake generated Makefile which includes
16177     # dependency-tracking related rules and includes.
16178     # Grep'ing the whole file directly is not great: AIX grep has a line
16179     # limit of 2048, but all sed's we know have understand at least 4000.
16180     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16181       || continue
16182     am_dirpart=`$as_dirname -- "$am_mf" ||
16183 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16184          X"$am_mf" : 'X\(//\)[^/]' \| \
16185          X"$am_mf" : 'X\(//\)$' \| \
16186          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16187 printf "%s\n" X"$am_mf" |
16188     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16189             s//\1/
16190             q
16191           }
16192           /^X\(\/\/\)[^/].*/{
16193             s//\1/
16194             q
16195           }
16196           /^X\(\/\/\)$/{
16197             s//\1/
16198             q
16199           }
16200           /^X\(\/\).*/{
16201             s//\1/
16202             q
16203           }
16204           s/.*/./; q'`
16205     am_filepart=`$as_basename -- "$am_mf" ||
16206 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16207          X"$am_mf" : 'X\(//\)$' \| \
16208          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16209 printf "%s\n" X/"$am_mf" |
16210     sed '/^.*\/\([^/][^/]*\)\/*$/{
16211             s//\1/
16212             q
16213           }
16214           /^X\/\(\/\/\)$/{
16215             s//\1/
16216             q
16217           }
16218           /^X\/\(\/\).*/{
16219             s//\1/
16220             q
16221           }
16222           s/.*/./; q'`
16223     { echo "$as_me:$LINENO: cd "$am_dirpart" \
16224       && sed -e '/# am--include-marker/d' "$am_filepart" \
16225         | $MAKE -f - am--depfiles" >&5
16226    (cd "$am_dirpart" \
16227       && sed -e '/# am--include-marker/d' "$am_filepart" \
16228         | $MAKE -f - am--depfiles) >&5 2>&5
16229    ac_status=$?
16230    echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231    (exit $ac_status); } || am_rc=$?
16232   done
16233   if test $am_rc -ne 0; then
16234     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16235 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16236 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16237     for automatic dependency tracking.  If GNU make was not used, consider
16238     re-running the configure script with MAKE=\"gmake\" (or whatever is
16239     necessary).  You can also try re-running configure with the
16240     '--disable-dependency-tracking' option to at least be able to build
16241     the package (albeit without support for automatic dependency tracking).
16242 See \`config.log' for more details" "$LINENO" 5; }
16243   fi
16244   { am_dirpart=; unset am_dirpart;}
16245   { am_filepart=; unset am_filepart;}
16246   { am_mf=; unset am_mf;}
16247   { am_rc=; unset am_rc;}
16248   rm -f conftest-deps.mk
16249 }
16250  ;;
16251     "po-directories":C)
16252     for ac_file in $CONFIG_FILES; do
16253       # Support "outfile[:infile[:infile...]]"
16254       case "$ac_file" in
16255         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16256       esac
16257       # PO directories have a Makefile.in generated from Makefile.in.in.
16258       case "$ac_file" in */Makefile.in)
16259         # Adjust a relative srcdir.
16260         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16261         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16262         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16263         # In autoconf-2.13 it is called $ac_given_srcdir.
16264         # In autoconf-2.50 it is called $srcdir.
16265         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16266         case "$ac_given_srcdir" in
16267           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16268           /*) top_srcdir="$ac_given_srcdir" ;;
16269           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16270         esac
16271         # Treat a directory as a PO directory if and only if it has a
16272         # POTFILES.in file. This allows packages to have multiple PO
16273         # directories under different names or in different locations.
16274         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16275           rm -f "$ac_dir/POTFILES"
16276           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16277           gt_tab=`printf '\t'`
16278           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16279           POMAKEFILEDEPS="POTFILES.in"
16280           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16281           # on $ac_dir but don't depend on user-specified configuration
16282           # parameters.
16283           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16284             # The LINGUAS file contains the set of available languages.
16285             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16286               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16287             fi
16288             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16289             # Hide the ALL_LINGUAS assignment from automake < 1.5.
16290             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16291             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16292           else
16293             # The set of available languages was given in configure.in.
16294             # Hide the ALL_LINGUAS assignment from automake < 1.5.
16295             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16296           fi
16297           # Compute POFILES
16298           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16299           # Compute UPDATEPOFILES
16300           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16301           # Compute DUMMYPOFILES
16302           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16303           # Compute GMOFILES
16304           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16305           case "$ac_given_srcdir" in
16306             .) srcdirpre= ;;
16307             *) srcdirpre='$(srcdir)/' ;;
16308           esac
16309           POFILES=
16310           UPDATEPOFILES=
16311           DUMMYPOFILES=
16312           GMOFILES=
16313           for lang in $ALL_LINGUAS; do
16314             POFILES="$POFILES $srcdirpre$lang.po"
16315             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16316             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16317             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16318           done
16319           # CATALOGS depends on both $ac_dir and the user's LINGUAS
16320           # environment variable.
16321           INST_LINGUAS=
16322           if test -n "$ALL_LINGUAS"; then
16323             for presentlang in $ALL_LINGUAS; do
16324               useit=no
16325               if test "%UNSET%" != "$LINGUAS"; then
16326                 desiredlanguages="$LINGUAS"
16327               else
16328                 desiredlanguages="$ALL_LINGUAS"
16329               fi
16330               for desiredlang in $desiredlanguages; do
16331                 # Use the presentlang catalog if desiredlang is
16332                 #   a. equal to presentlang, or
16333                 #   b. a variant of presentlang (because in this case,
16334                 #      presentlang can be used as a fallback for messages
16335                 #      which are not translated in the desiredlang catalog).
16336                 case "$desiredlang" in
16337                   "$presentlang"*) useit=yes;;
16338                 esac
16339               done
16340               if test $useit = yes; then
16341                 INST_LINGUAS="$INST_LINGUAS $presentlang"
16342               fi
16343             done
16344           fi
16345           CATALOGS=
16346           if test -n "$INST_LINGUAS"; then
16347             for lang in $INST_LINGUAS; do
16348               CATALOGS="$CATALOGS $lang.gmo"
16349             done
16350           fi
16351           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16352           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"
16353           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16354             if test -f "$f"; then
16355               case "$f" in
16356                 *.orig | *.bak | *~) ;;
16357                 *) cat "$f" >> "$ac_dir/Makefile" ;;
16358               esac
16359             fi
16360           done
16361         fi
16362         ;;
16363       esac
16364     done ;;
16365
16366   esac
16367 done # for ac_tag
16368
16369
16370 as_fn_exit 0
16371 _ACEOF
16372 ac_clean_files=$ac_clean_files_save
16373
16374 test $ac_write_fail = 0 ||
16375   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16376
16377
16378 # configure is writing to config.log, and then calls config.status.
16379 # config.status does its own redirection, appending to config.log.
16380 # Unfortunately, on DOS this fails, as config.log is still kept open
16381 # by configure, so config.status won't be able to write to it; its
16382 # output is simply discarded.  So we exec the FD to /dev/null,
16383 # effectively closing config.log, so it can be properly (re)opened and
16384 # appended to by config.status.  When coming back to configure, we
16385 # need to make the FD available again.
16386 if test "$no_create" != yes; then
16387   ac_cs_success=:
16388   ac_config_status_args=
16389   test "$silent" = yes &&
16390     ac_config_status_args="$ac_config_status_args --quiet"
16391   exec 5>/dev/null
16392   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16393   exec 5>>config.log
16394   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16395   # would make configure fail if this is the last instruction.
16396   $ac_cs_success || as_fn_exit 1
16397 fi
16398 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16399   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16400 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16401 fi
16402
16403
16404