Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU Awk 5.3.2.
4 #
5 # Report bugs to <[email protected]>.
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 [email protected] and [email protected]
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 Awk'
613 PACKAGE_TARNAME='gawk'
614 PACKAGE_VERSION='5.3.2'
615 PACKAGE_STRING='GNU Awk 5.3.2'
616 PACKAGE_BUGREPORT='[email protected]'
617 PACKAGE_URL='https://www.gnu.org/software/gawk/'
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 gt_needs=
652 ac_func_c_list=
653 enable_option_checking=no
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 subdirs
658 GAWKLIBEXT
659 LIBMPFR
660 LIBREADLINE
661 SOCKET_LIBS
662 ENABLE_EXTENSIONS_FALSE
663 ENABLE_EXTENSIONS_TRUE
664 HAVE_ADDR_NO_RANDOMIZE_FALSE
665 HAVE_ADDR_NO_RANDOMIZE_TRUE
666 USE_PERSISTENT_MALLOC_FALSE
667 USE_PERSISTENT_MALLOC_TRUE
668 LIBOBJS
669 TEST_CROSS_COMPILE_FALSE
670 TEST_CROSS_COMPILE_TRUE
671 POSUB
672 LTLIBINTL
673 LIBINTL
674 INTLLIBS
675 LTLIBICONV
676 LIBICONV
677 INTL_MACOSX_LIBS
678 XGETTEXT_EXTRA_OPTIONS
679 MSGMERGE_FOR_MSGFMT_OPTION
680 MSGMERGE
681 XGETTEXT_015
682 XGETTEXT
683 GMSGFMT_015
684 GMSGFMT
685 MSGFMT
686 GETTEXT_MACRO_VERSION
687 USE_NLS
688 SED
689 ZOS_FAIL
690 acl_shlibext
691 ac_ct_AR
692 AR
693 RANLIB
694 CPP
695 LN_S
696 YFLAGS
697 YACC
698 EGREP
699 GREP
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__include
708 DEPDIR
709 OBJEXT
710 EXEEXT
711 ac_ct_CC
712 CPPFLAGS
713 LDFLAGS
714 CFLAGS
715 CC
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 pkgextensiondir
725 AM_BACKSLASH
726 AM_DEFAULT_VERBOSITY
727 AM_DEFAULT_V
728 AM_V
729 CSCOPE
730 ETAGS
731 CTAGS
732 am__untar
733 am__tar
734 AMTAR
735 am__leading_dot
736 SET_MAKE
737 AWK
738 mkdir_p
739 MKDIR_P
740 INSTALL_STRIP_PROGRAM
741 STRIP
742 install_sh
743 MAKEINFO
744 AUTOHEADER
745 AUTOMAKE
746 AUTOCONF
747 ACLOCAL
748 VERSION
749 PACKAGE
750 CYGPATH_W
751 am__isrc
752 INSTALL_DATA
753 INSTALL_SCRIPT
754 INSTALL_PROGRAM
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 runstatedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL
794 am__quote'
795 ac_subst_files=''
796 ac_user_opts='
797 enable_option_checking
798 enable_silent_rules
799 enable_lint
800 enable_builtin_intdiv0
801 enable_mpfr
802 enable_pma
803 enable_versioned_extension_dir
804 enable_dependency_tracking
805 enable_largefile
806 enable_nls
807 with_gnu_ld
808 enable_rpath
809 with_libiconv_prefix
810 with_libintl_prefix
811 enable_extensions
812 with_readline
813 with_mpfr
814 '
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
818 CC
819 CFLAGS
820 LDFLAGS
821 LIBS
822 CPPFLAGS
823 YACC
824 YFLAGS
825 CPP'
826 ac_subdirs_all='extension'
827
828 # Initialize some variables set by options.
829 ac_init_help=
830 ac_init_version=false
831 ac_unrecognized_opts=
832 ac_unrecognized_sep=
833 # The variables have the same names as the options, with
834 # dashes changed to underlines.
835 cache_file=/dev/null
836 exec_prefix=NONE
837 no_create=
838 no_recursion=
839 prefix=NONE
840 program_prefix=NONE
841 program_suffix=NONE
842 program_transform_name=s,x,x,
843 silent=
844 site=
845 srcdir=
846 verbose=
847 x_includes=NONE
848 x_libraries=NONE
849
850 # Installation directory options.
851 # These are left unexpanded so users can "make install exec_prefix=/foo"
852 # and all the variables that are supposed to be based on exec_prefix
853 # by default will actually change.
854 # Use braces instead of parens because sh, perl, etc. also accept them.
855 # (The list follows the same order as the GNU Coding Standards.)
856 bindir='${exec_prefix}/bin'
857 sbindir='${exec_prefix}/sbin'
858 libexecdir='${exec_prefix}/libexec'
859 datarootdir='${prefix}/share'
860 datadir='${datarootdir}'
861 sysconfdir='${prefix}/etc'
862 sharedstatedir='${prefix}/com'
863 localstatedir='${prefix}/var'
864 runstatedir='${localstatedir}/run'
865 includedir='${prefix}/include'
866 oldincludedir='/usr/include'
867 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir='${datarootdir}/info'
869 htmldir='${docdir}'
870 dvidir='${docdir}'
871 pdfdir='${docdir}'
872 psdir='${docdir}'
873 libdir='${exec_prefix}/lib'
874 localedir='${datarootdir}/locale'
875 mandir='${datarootdir}/man'
876
877 ac_prev=
878 ac_dashdash=
879 for ac_option
880 do
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\$ac_option
884 ac_prev=
885 continue
886 fi
887
888 case $ac_option in
889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *=) ac_optarg= ;;
891 *) ac_optarg=yes ;;
892 esac
893
894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
897
898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901 bindir=$ac_optarg ;;
902
903 -build | --build | --buil | --bui | --bu)
904 ac_prev=build_alias ;;
905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906 build_alias=$ac_optarg ;;
907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
917
918 -datadir | --datadir | --datadi | --datad)
919 ac_prev=datadir ;;
920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
921 datadir=$ac_optarg ;;
922
923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
930 -disable-* | --disable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: \`$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
955
956 -enable-* | --enable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error $? "invalid feature name: \`$ac_useropt'"
961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965 "enable_$ac_useropt"
966 "*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
979 exec_prefix=$ac_optarg ;;
980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
991
992 -host | --host | --hos | --ho)
993 ac_prev=host_alias ;;
994 -host=* | --host=* | --hos=* | --ho=*)
995 host_alias=$ac_optarg ;;
996
997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
1003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
1008 includedir=$ac_optarg ;;
1009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013 infodir=$ac_optarg ;;
1014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018 libdir=$ac_optarg ;;
1019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
1025 libexecdir=$ac_optarg ;;
1026
1027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
1032 -localstatedir | --localstatedir | --localstatedi | --localstated \
1033 | --localstate | --localstat | --localsta | --localst | --locals)
1034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037 localstatedir=$ac_optarg ;;
1038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042 mandir=$ac_optarg ;;
1043
1044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049 | --no-cr | --no-c | -n)
1050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063 oldincludedir=$ac_optarg ;;
1064
1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068 prefix=$ac_optarg ;;
1069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075 program_prefix=$ac_optarg ;;
1076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082 program_suffix=$ac_optarg ;;
1083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
1099 program_transform_name=$ac_optarg ;;
1100
1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
1115 -runstatedir | --runstatedir | --runstatedi | --runstated \
1116 | --runstate | --runstat | --runsta | --runst | --runs \
1117 | --run | --ru | --r)
1118 ac_prev=runstatedir ;;
1119 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1120 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1121 | --run=* | --ru=* | --r=*)
1122 runstatedir=$ac_optarg ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: \`$ac_useropt'"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: \`$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir runstatedir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 printf "%s\n" X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures GNU Awk 5.3.2 to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/gawk]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1441 fi
1442
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of GNU Awk 5.3.2:";;
1446 esac
1447 cat <<\_ACEOF
1448
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-silent-rules less verbose build output (undo: "make V=1")
1454 --disable-silent-rules verbose build output (undo: "make V=0")
1455 --disable-lint do not compile in gawk lint checking
1456 --enable-builtin-intdiv0
1457 enable built-in intdiv0 function
1458 --disable-mpfr do not check for MPFR
1459 --disable-pma do not build gawk with the persistent memory
1460 allocator
1461 --enable-versioned-extension-dir
1462 use a versioned directory for extensions
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --disable-largefile omit support for large files
1468 --disable-nls do not use Native Language Support
1469 --disable-rpath do not hardcode runtime library paths
1470 --disable-extensions disable dynamic extensions (default is detect)
1471
1472 Optional Packages:
1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1475 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1476 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1477 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1478 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1479 --without-libintl-prefix don't search for libintl in includedir and libdir
1480 --with-readline=DIR look for the readline library in DIR
1481 --with-mpfr=DIR look for the mpfr and gmp libraries in DIR
1482
1483 Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 YACC The `Yet Another Compiler Compiler' implementation to use.
1492 Defaults to the first program found out of: `bison -y', `byacc',
1493 `yacc'.
1494 YFLAGS The list of arguments that will be passed by default to $YACC.
1495 This script will default YFLAGS to the empty string to avoid a
1496 default value of `-d' given by some make applications.
1497 CPP C preprocessor
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <[email protected]>.
1503 GNU Awk home page: <https://www.gnu.org/software/gawk/>.
1504 General help using GNU software: <https://www.gnu.org/gethelp/>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for configure.gnu first; this name is used for a wrapper for
1551 # Metaconfig's "Configure" on case-insensitive file systems.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
1558 else
1559 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
1562 done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567 cat <<\_ACEOF
1568 GNU Awk configure 5.3.2
1569 generated by GNU Autoconf 2.71
1570
1571 Copyright (C) 2021 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577
1578 ## ------------------------ ##
1579 ## Autoconf initialization. ##
1580 ## ------------------------ ##
1581
1582 # ac_fn_c_try_compile LINENO
1583 # --------------------------
1584 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_compile ()
1586 {
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext conftest.beam
1589 if { { ac_try="$ac_compile"
1590 case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 printf "%s\n" "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext
1608 then :
1609 ac_retval=0
1610 else $as_nop
1611 printf "%s\n" "$as_me: failed program was:" >&5
1612 sed 's/^/| /' conftest.$ac_ext >&5
1613
1614 ac_retval=1
1615 fi
1616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617 as_fn_set_status $ac_retval
1618
1619 } # ac_fn_c_try_compile
1620
1621 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1622 # -------------------------------------------------------
1623 # Tests whether HEADER exists and can be compiled using the include files in
1624 # INCLUDES, setting the cache variable VAR accordingly.
1625 ac_fn_c_check_header_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629 printf %s "checking for $2... " >&6; }
1630 if eval test \${$3+y}
1631 then :
1632 printf %s "(cached) " >&6
1633 else $as_nop
1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1635 /* end confdefs.h. */
1636 $4
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"
1640 then :
1641 eval "$3=yes"
1642 else $as_nop
1643 eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1646 fi
1647 eval ac_res=\$$3
1648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 printf "%s\n" "$ac_res" >&6; }
1650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651
1652 } # ac_fn_c_check_header_compile
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 printf "%s\n" "$ac_try_echo"; } >&5
1667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } > conftest.i && {
1676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677 test ! -s conftest.err
1678 }
1679 then :
1680 ac_retval=0
1681 else $as_nop
1682 printf "%s\n" "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685 ac_retval=1
1686 fi
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_cpp
1691
1692 # ac_fn_c_try_link LINENO
1693 # -----------------------
1694 # Try to link conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_link ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf "%s\n" "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest$ac_exeext && {
1718 test "$cross_compiling" = yes ||
1719 test -x conftest$ac_exeext
1720 }
1721 then :
1722 ac_retval=0
1723 else $as_nop
1724 printf "%s\n" "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728 fi
1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1731 # interfere with the next link command; also delete a directory that is
1732 # left behind by Apple's compiler. We do this before executing the actions.
1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_c_try_link
1738
1739 # ac_fn_c_try_run LINENO
1740 # ----------------------
1741 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1742 # executables *can* be run.
1743 ac_fn_c_try_run ()
1744 {
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if { { ac_try="$ac_link"
1747 case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 printf "%s\n" "$ac_try_echo"; } >&5
1753 (eval "$ac_link") 2>&5
1754 ac_status=$?
1755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1757 { { case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 printf "%s\n" "$ac_try_echo"; } >&5
1763 (eval "$ac_try") 2>&5
1764 ac_status=$?
1765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766 test $ac_status = 0; }; }
1767 then :
1768 ac_retval=0
1769 else $as_nop
1770 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1771 printf "%s\n" "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1783 # -------------------------------------------
1784 # Tests whether TYPE exists after having included INCLUDES, setting cache
1785 # variable VAR accordingly.
1786 ac_fn_c_check_type ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 printf %s "checking for $2... " >&6; }
1791 if eval test \${$3+y}
1792 then :
1793 printf %s "(cached) " >&6
1794 else $as_nop
1795 eval "$3=no"
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 $4
1799 int
1800 main (void)
1801 {
1802 if (sizeof ($2))
1803 return 0;
1804 ;
1805 return 0;
1806 }
1807 _ACEOF
1808 if ac_fn_c_try_compile "$LINENO"
1809 then :
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1812 $4
1813 int
1814 main (void)
1815 {
1816 if (sizeof (($2)))
1817 return 0;
1818 ;
1819 return 0;
1820 }
1821 _ACEOF
1822 if ac_fn_c_try_compile "$LINENO"
1823 then :
1824
1825 else $as_nop
1826 eval "$3=yes"
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1831 fi
1832 eval ac_res=\$$3
1833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 printf "%s\n" "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836
1837 } # ac_fn_c_check_type
1838
1839 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1840 # --------------------------------------------
1841 # Tries to find the compile-time value of EXPR in a program that includes
1842 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1843 # computed
1844 ac_fn_c_compute_int ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if test "$cross_compiling" = yes; then
1848 # Depending upon the size, compute the lo and hi bounds.
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 int
1853 main (void)
1854 {
1855 static int test_array [1 - 2 * !(($2) >= 0)];
1856 test_array [0] = 0;
1857 return test_array [0];
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"
1864 then :
1865 ac_lo=0 ac_mid=0
1866 while :; do
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1869 $4
1870 int
1871 main (void)
1872 {
1873 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1874 test_array [0] = 0;
1875 return test_array [0];
1876
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_compile "$LINENO"
1882 then :
1883 ac_hi=$ac_mid; break
1884 else $as_nop
1885 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1886 if test $ac_lo -le $ac_mid; then
1887 ac_lo= ac_hi=
1888 break
1889 fi
1890 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1893 done
1894 else $as_nop
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 $4
1898 int
1899 main (void)
1900 {
1901 static int test_array [1 - 2 * !(($2) < 0)];
1902 test_array [0] = 0;
1903 return test_array [0];
1904
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"
1910 then :
1911 ac_hi=-1 ac_mid=-1
1912 while :; do
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 $4
1916 int
1917 main (void)
1918 {
1919 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1920 test_array [0] = 0;
1921 return test_array [0];
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 if ac_fn_c_try_compile "$LINENO"
1928 then :
1929 ac_lo=$ac_mid; break
1930 else $as_nop
1931 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1932 if test $ac_mid -le $ac_hi; then
1933 ac_lo= ac_hi=
1934 break
1935 fi
1936 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1939 done
1940 else $as_nop
1941 ac_lo= ac_hi=
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1944 fi
1945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1946 # Binary search between lo and hi bounds.
1947 while test "x$ac_lo" != "x$ac_hi"; do
1948 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $4
1952 int
1953 main (void)
1954 {
1955 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1956 test_array [0] = 0;
1957 return test_array [0];
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"
1964 then :
1965 ac_hi=$ac_mid
1966 else $as_nop
1967 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1970 done
1971 case $ac_lo in #((
1972 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1973 '') ac_retval=1 ;;
1974 esac
1975 else
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1978 $4
1979 static long int longval (void) { return $2; }
1980 static unsigned long int ulongval (void) { return $2; }
1981 #include <stdio.h>
1982 #include <stdlib.h>
1983 int
1984 main (void)
1985 {
1986
1987 FILE *f = fopen ("conftest.val", "w");
1988 if (! f)
1989 return 1;
1990 if (($2) < 0)
1991 {
1992 long int i = longval ();
1993 if (i != ($2))
1994 return 1;
1995 fprintf (f, "%ld", i);
1996 }
1997 else
1998 {
1999 unsigned long int i = ulongval ();
2000 if (i != ($2))
2001 return 1;
2002 fprintf (f, "%lu", i);
2003 }
2004 /* Do not output a trailing newline, as this causes \r\n confusion
2005 on some platforms. */
2006 return ferror (f) || fclose (f) != 0;
2007
2008 ;
2009 return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_run "$LINENO"
2013 then :
2014 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2015 else $as_nop
2016 ac_retval=1
2017 fi
2018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2019 conftest.$ac_objext conftest.beam conftest.$ac_ext
2020 rm -f conftest.val
2021
2022 fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 as_fn_set_status $ac_retval
2025
2026 } # ac_fn_c_compute_int
2027
2028 # ac_fn_c_check_func LINENO FUNC VAR
2029 # ----------------------------------
2030 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2031 ac_fn_c_check_func ()
2032 {
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 printf %s "checking for $2... " >&6; }
2036 if eval test \${$3+y}
2037 then :
2038 printf %s "(cached) " >&6
2039 else $as_nop
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2044 #define $2 innocuous_$2
2045
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $2 (); below. */
2048
2049 #include <limits.h>
2050 #undef $2
2051
2052 /* Override any GCC internal prototype to avoid an error.
2053 Use char because int might match the return type of a GCC
2054 builtin and then its argument prototype would still apply. */
2055 #ifdef __cplusplus
2056 extern "C"
2057 #endif
2058 char $2 ();
2059 /* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062 #if defined __stub_$2 || defined __stub___$2
2063 choke me
2064 #endif
2065
2066 int
2067 main (void)
2068 {
2069 return $2 ();
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_link "$LINENO"
2075 then :
2076 eval "$3=yes"
2077 else $as_nop
2078 eval "$3=no"
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2081 conftest$ac_exeext conftest.$ac_ext
2082 fi
2083 eval ac_res=\$$3
2084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 printf "%s\n" "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
2088 } # ac_fn_c_check_func
2089
2090 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2091 # ----------------------------------------------------
2092 # Tries to find if the field MEMBER exists in type AGGR, after including
2093 # INCLUDES, setting cache variable VAR accordingly.
2094 ac_fn_c_check_member ()
2095 {
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2098 printf %s "checking for $2.$3... " >&6; }
2099 if eval test \${$4+y}
2100 then :
2101 printf %s "(cached) " >&6
2102 else $as_nop
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $5
2106 int
2107 main (void)
2108 {
2109 static $2 ac_aggr;
2110 if (ac_aggr.$3)
2111 return 0;
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"
2117 then :
2118 eval "$4=yes"
2119 else $as_nop
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $5
2123 int
2124 main (void)
2125 {
2126 static $2 ac_aggr;
2127 if (sizeof ac_aggr.$3)
2128 return 0;
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"
2134 then :
2135 eval "$4=yes"
2136 else $as_nop
2137 eval "$4=no"
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2142 fi
2143 eval ac_res=\$$4
2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 printf "%s\n" "$ac_res" >&6; }
2146 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148 } # ac_fn_c_check_member
2149
2150 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2151 # ------------------------------------------------------------------
2152 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2153 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2154 ac_fn_check_decl ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 as_decl_name=`echo $2|sed 's/ *(.*//'`
2158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2159 printf %s "checking whether $as_decl_name is declared... " >&6; }
2160 if eval test \${$3+y}
2161 then :
2162 printf %s "(cached) " >&6
2163 else $as_nop
2164 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2165 eval ac_save_FLAGS=\$$6
2166 as_fn_append $6 " $5"
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 $4
2170 int
2171 main (void)
2172 {
2173 #ifndef $as_decl_name
2174 #ifdef __cplusplus
2175 (void) $as_decl_use;
2176 #else
2177 (void) $as_decl_name;
2178 #endif
2179 #endif
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"
2186 then :
2187 eval "$3=yes"
2188 else $as_nop
2189 eval "$3=no"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2192 eval $6=\$ac_save_FLAGS
2193
2194 fi
2195 eval ac_res=\$$3
2196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 printf "%s\n" "$ac_res" >&6; }
2198 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200 } # ac_fn_check_decl
2201 ac_configure_args_raw=
2202 for ac_arg
2203 do
2204 case $ac_arg in
2205 *\'*)
2206 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 esac
2208 as_fn_append ac_configure_args_raw " '$ac_arg'"
2209 done
2210
2211 case $ac_configure_args_raw in
2212 *$as_nl*)
2213 ac_safe_unquote= ;;
2214 *)
2215 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2216 ac_unsafe_a="$ac_unsafe_z#~"
2217 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2218 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2219 esac
2220
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2224
2225 It was created by GNU Awk $as_me 5.3.2, which was
2226 generated by GNU Autoconf 2.71. Invocation command line was
2227
2228 $ $0$ac_configure_args_raw
2229
2230 _ACEOF
2231 exec 5>>config.log
2232 {
2233 cat <<_ASUNAME
2234 ## --------- ##
2235 ## Platform. ##
2236 ## --------- ##
2237
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2246
2247 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2248 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2251 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2252 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2253 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2254
2255 _ASUNAME
2256
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260 IFS=$as_save_IFS
2261 case $as_dir in #(((
2262 '') as_dir=./ ;;
2263 */) ;;
2264 *) as_dir=$as_dir/ ;;
2265 esac
2266 printf "%s\n" "PATH: $as_dir"
2267 done
2268 IFS=$as_save_IFS
2269
2270 } >&5
2271
2272 cat >&5 <<_ACEOF
2273
2274
2275 ## ----------- ##
2276 ## Core tests. ##
2277 ## ----------- ##
2278
2279 _ACEOF
2280
2281
2282 # Keep a trace of the command line.
2283 # Strip out --no-create and --no-recursion so they do not pile up.
2284 # Strip out --silent because we don't want to record it for future runs.
2285 # Also quote any args containing shell meta-characters.
2286 # Make two passes to allow for proper duplicate-argument suppression.
2287 ac_configure_args=
2288 ac_configure_args0=
2289 ac_configure_args1=
2290 ac_must_keep_next=false
2291 for ac_pass in 1 2
2292 do
2293 for ac_arg
2294 do
2295 case $ac_arg in
2296 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298 | -silent | --silent | --silen | --sile | --sil)
2299 continue ;;
2300 *\'*)
2301 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302 esac
2303 case $ac_pass in
2304 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305 2)
2306 as_fn_append ac_configure_args1 " '$ac_arg'"
2307 if test $ac_must_keep_next = true; then
2308 ac_must_keep_next=false # Got value, back to normal.
2309 else
2310 case $ac_arg in
2311 *=* | --config-cache | -C | -disable-* | --disable-* \
2312 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314 | -with-* | --with-* | -without-* | --without-* | --x)
2315 case "$ac_configure_args0 " in
2316 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317 esac
2318 ;;
2319 -* ) ac_must_keep_next=true ;;
2320 esac
2321 fi
2322 as_fn_append ac_configure_args " '$ac_arg'"
2323 ;;
2324 esac
2325 done
2326 done
2327 { ac_configure_args0=; unset ac_configure_args0;}
2328 { ac_configure_args1=; unset ac_configure_args1;}
2329
2330 # When interrupted or exit'd, cleanup temporary files, and complete
2331 # config.log. We remove comments because anyway the quotes in there
2332 # would cause problems or look ugly.
2333 # WARNING: Use '\'' to represent an apostrophe within the trap.
2334 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335 trap 'exit_status=$?
2336 # Sanitize IFS.
2337 IFS=" "" $as_nl"
2338 # Save into config.log some information that might help in debugging.
2339 {
2340 echo
2341
2342 printf "%s\n" "## ---------------- ##
2343 ## Cache variables. ##
2344 ## ---------------- ##"
2345 echo
2346 # The following way of writing the cache mishandles newlines in values,
2347 (
2348 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in #(
2351 *${as_nl}*)
2352 case $ac_var in #(
2353 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2354 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2355 esac
2356 case $ac_var in #(
2357 _ | IFS | as_nl) ;; #(
2358 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2359 *) { eval $ac_var=; unset $ac_var;} ;;
2360 esac ;;
2361 esac
2362 done
2363 (set) 2>&1 |
2364 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2365 *${as_nl}ac_space=\ *)
2366 sed -n \
2367 "s/'\''/'\''\\\\'\'''\''/g;
2368 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2369 ;; #(
2370 *)
2371 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2372 ;;
2373 esac |
2374 sort
2375 )
2376 echo
2377
2378 printf "%s\n" "## ----------------- ##
2379 ## Output variables. ##
2380 ## ----------------- ##"
2381 echo
2382 for ac_var in $ac_subst_vars
2383 do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in
2386 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2387 esac
2388 printf "%s\n" "$ac_var='\''$ac_val'\''"
2389 done | sort
2390 echo
2391
2392 if test -n "$ac_subst_files"; then
2393 printf "%s\n" "## ------------------- ##
2394 ## File substitutions. ##
2395 ## ------------------- ##"
2396 echo
2397 for ac_var in $ac_subst_files
2398 do
2399 eval ac_val=\$$ac_var
2400 case $ac_val in
2401 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402 esac
2403 printf "%s\n" "$ac_var='\''$ac_val'\''"
2404 done | sort
2405 echo
2406 fi
2407
2408 if test -s confdefs.h; then
2409 printf "%s\n" "## ----------- ##
2410 ## confdefs.h. ##
2411 ## ----------- ##"
2412 echo
2413 cat confdefs.h
2414 echo
2415 fi
2416 test "$ac_signal" != 0 &&
2417 printf "%s\n" "$as_me: caught signal $ac_signal"
2418 printf "%s\n" "$as_me: exit $exit_status"
2419 } >&5
2420 rm -f core *.core core.conftest.* &&
2421 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2422 exit $exit_status
2423 ' 0
2424 for ac_signal in 1 2 13 15; do
2425 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2426 done
2427 ac_signal=0
2428
2429 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2430 rm -f -r conftest* confdefs.h
2431
2432 printf "%s\n" "/* confdefs.h */" > confdefs.h
2433
2434 # Predefined preprocessor variables.
2435
2436 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2437
2438 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2439
2440 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2441
2442 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2443
2444 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2445
2446 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2447
2448
2449 # Let the site file select an alternate cache file if it wants to.
2450 # Prefer an explicitly selected file to automatically selected ones.
2451 if test -n "$CONFIG_SITE"; then
2452 ac_site_files="$CONFIG_SITE"
2453 elif test "x$prefix" != xNONE; then
2454 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2455 else
2456 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2457 fi
2458
2459 for ac_site_file in $ac_site_files
2460 do
2461 case $ac_site_file in #(
2462 */*) :
2463 ;; #(
2464 *) :
2465 ac_site_file=./$ac_site_file ;;
2466 esac
2467 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2469 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2470 sed 's/^/| /' "$ac_site_file" >&5
2471 . "$ac_site_file" \
2472 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2474 as_fn_error $? "failed to load site script $ac_site_file
2475 See \`config.log' for more details" "$LINENO" 5; }
2476 fi
2477 done
2478
2479 if test -r "$cache_file"; then
2480 # Some versions of bash will fail to source /dev/null (special files
2481 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2482 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2484 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2485 case $cache_file in
2486 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2487 *) . "./$cache_file";;
2488 esac
2489 fi
2490 else
2491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2492 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2493 >$cache_file
2494 fi
2495
2496 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2497 # Test code for whether the C compiler supports C89 (global declarations)
2498 ac_c_conftest_c89_globals='
2499 /* Does the compiler advertise C89 conformance?
2500 Do not test the value of __STDC__, because some compilers set it to 0
2501 while being otherwise adequately conformant. */
2502 #if !defined __STDC__
2503 # error "Compiler does not advertise C89 conformance"
2504 #endif
2505
2506 #include <stddef.h>
2507 #include <stdarg.h>
2508 struct stat;
2509 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2510 struct buf { int x; };
2511 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2512 static char *e (p, i)
2513 char **p;
2514 int i;
2515 {
2516 return p[i];
2517 }
2518 static char *f (char * (*g) (char **, int), char **p, ...)
2519 {
2520 char *s;
2521 va_list v;
2522 va_start (v,p);
2523 s = g (p, va_arg (v,int));
2524 va_end (v);
2525 return s;
2526 }
2527
2528 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2529 function prototypes and stuff, but not \xHH hex character constants.
2530 These do not provoke an error unfortunately, instead are silently treated
2531 as an "x". The following induces an error, until -std is added to get
2532 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2533 array size at least. It is necessary to write \x00 == 0 to get something
2534 that is true only with -std. */
2535 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2536
2537 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2538 inside strings and character constants. */
2539 #define FOO(x) '\''x'\''
2540 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2541
2542 int test (int i, double x);
2543 struct s1 {int (*f) (int a);};
2544 struct s2 {int (*f) (double a);};
2545 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2546 int, int);'
2547
2548 # Test code for whether the C compiler supports C89 (body of main).
2549 ac_c_conftest_c89_main='
2550 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2551 '
2552
2553 # Test code for whether the C compiler supports C99 (global declarations)
2554 ac_c_conftest_c99_globals='
2555 // Does the compiler advertise C99 conformance?
2556 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2557 # error "Compiler does not advertise C99 conformance"
2558 #endif
2559
2560 #include <stdbool.h>
2561 extern int puts (const char *);
2562 extern int printf (const char *, ...);
2563 extern int dprintf (int, const char *, ...);
2564 extern void *malloc (size_t);
2565
2566 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2567 // dprintf is used instead of fprintf to avoid needing to declare
2568 // FILE and stderr.
2569 #define debug(...) dprintf (2, __VA_ARGS__)
2570 #define showlist(...) puts (#__VA_ARGS__)
2571 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2572 static void
2573 test_varargs_macros (void)
2574 {
2575 int x = 1234;
2576 int y = 5678;
2577 debug ("Flag");
2578 debug ("X = %d\n", x);
2579 showlist (The first, second, and third items.);
2580 report (x>y, "x is %d but y is %d", x, y);
2581 }
2582
2583 // Check long long types.
2584 #define BIG64 18446744073709551615ull
2585 #define BIG32 4294967295ul
2586 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2587 #if !BIG_OK
2588 #error "your preprocessor is broken"
2589 #endif
2590 #if BIG_OK
2591 #else
2592 #error "your preprocessor is broken"
2593 #endif
2594 static long long int bignum = -9223372036854775807LL;
2595 static unsigned long long int ubignum = BIG64;
2596
2597 struct incomplete_array
2598 {
2599 int datasize;
2600 double data[];
2601 };
2602
2603 struct named_init {
2604 int number;
2605 const wchar_t *name;
2606 double average;
2607 };
2608
2609 typedef const char *ccp;
2610
2611 static inline int
2612 test_restrict (ccp restrict text)
2613 {
2614 // See if C++-style comments work.
2615 // Iterate through items via the restricted pointer.
2616 // Also check for declarations in for loops.
2617 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2618 continue;
2619 return 0;
2620 }
2621
2622 // Check varargs and va_copy.
2623 static bool
2624 test_varargs (const char *format, ...)
2625 {
2626 va_list args;
2627 va_start (args, format);
2628 va_list args_copy;
2629 va_copy (args_copy, args);
2630
2631 const char *str = "";
2632 int number = 0;
2633 float fnumber = 0;
2634
2635 while (*format)
2636 {
2637 switch (*format++)
2638 {
2639 case '\''s'\'': // string
2640 str = va_arg (args_copy, const char *);
2641 break;
2642 case '\''d'\'': // int
2643 number = va_arg (args_copy, int);
2644 break;
2645 case '\''f'\'': // float
2646 fnumber = va_arg (args_copy, double);
2647 break;
2648 default:
2649 break;
2650 }
2651 }
2652 va_end (args_copy);
2653 va_end (args);
2654
2655 return *str && number && fnumber;
2656 }
2657 '
2658
2659 # Test code for whether the C compiler supports C99 (body of main).
2660 ac_c_conftest_c99_main='
2661 // Check bool.
2662 _Bool success = false;
2663 success |= (argc != 0);
2664
2665 // Check restrict.
2666 if (test_restrict ("String literal") == 0)
2667 success = true;
2668 char *restrict newvar = "Another string";
2669
2670 // Check varargs.
2671 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2672 test_varargs_macros ();
2673
2674 // Check flexible array members.
2675 struct incomplete_array *ia =
2676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2677 ia->datasize = 10;
2678 for (int i = 0; i < ia->datasize; ++i)
2679 ia->data[i] = i * 1.234;
2680
2681 // Check named initializers.
2682 struct named_init ni = {
2683 .number = 34,
2684 .name = L"Test wide string",
2685 .average = 543.34343,
2686 };
2687
2688 ni.number = 58;
2689
2690 int dynamic_array[ni.number];
2691 dynamic_array[0] = argv[0][0];
2692 dynamic_array[ni.number - 1] = 543;
2693
2694 // work around unused variable warnings
2695 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2696 || dynamic_array[ni.number - 1] != 543);
2697 '
2698
2699 # Test code for whether the C compiler supports C11 (global declarations)
2700 ac_c_conftest_c11_globals='
2701 // Does the compiler advertise C11 conformance?
2702 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2703 # error "Compiler does not advertise C11 conformance"
2704 #endif
2705
2706 // Check _Alignas.
2707 char _Alignas (double) aligned_as_double;
2708 char _Alignas (0) no_special_alignment;
2709 extern char aligned_as_int;
2710 char _Alignas (0) _Alignas (int) aligned_as_int;
2711
2712 // Check _Alignof.
2713 enum
2714 {
2715 int_alignment = _Alignof (int),
2716 int_array_alignment = _Alignof (int[100]),
2717 char_alignment = _Alignof (char)
2718 };
2719 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2720
2721 // Check _Noreturn.
2722 int _Noreturn does_not_return (void) { for (;;) continue; }
2723
2724 // Check _Static_assert.
2725 struct test_static_assert
2726 {
2727 int x;
2728 _Static_assert (sizeof (int) <= sizeof (long int),
2729 "_Static_assert does not work in struct");
2730 long int y;
2731 };
2732
2733 // Check UTF-8 literals.
2734 #define u8 syntax error!
2735 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2736
2737 // Check duplicate typedefs.
2738 typedef long *long_ptr;
2739 typedef long int *long_ptr;
2740 typedef long_ptr long_ptr;
2741
2742 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2743 struct anonymous
2744 {
2745 union {
2746 struct { int i; int j; };
2747 struct { int k; long int l; } w;
2748 };
2749 int m;
2750 } v1;
2751 '
2752
2753 # Test code for whether the C compiler supports C11 (body of main).
2754 ac_c_conftest_c11_main='
2755 _Static_assert ((offsetof (struct anonymous, i)
2756 == offsetof (struct anonymous, w.k)),
2757 "Anonymous union alignment botch");
2758 v1.i = 2;
2759 v1.w.k = 5;
2760 ok |= v1.i != 5;
2761 '
2762
2763 # Test code for whether the C compiler supports C11 (complete).
2764 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2765 ${ac_c_conftest_c99_globals}
2766 ${ac_c_conftest_c11_globals}
2767
2768 int
2769 main (int argc, char **argv)
2770 {
2771 int ok = 0;
2772 ${ac_c_conftest_c89_main}
2773 ${ac_c_conftest_c99_main}
2774 ${ac_c_conftest_c11_main}
2775 return ok;
2776 }
2777 "
2778
2779 # Test code for whether the C compiler supports C99 (complete).
2780 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2781 ${ac_c_conftest_c99_globals}
2782
2783 int
2784 main (int argc, char **argv)
2785 {
2786 int ok = 0;
2787 ${ac_c_conftest_c89_main}
2788 ${ac_c_conftest_c99_main}
2789 return ok;
2790 }
2791 "
2792
2793 # Test code for whether the C compiler supports C89 (complete).
2794 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2795
2796 int
2797 main (int argc, char **argv)
2798 {
2799 int ok = 0;
2800 ${ac_c_conftest_c89_main}
2801 return ok;
2802 }
2803 "
2804
2805 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2806 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2807 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2808 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2809 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2810 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2811 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2812 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2813 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2814 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2815 gt_needs="$gt_needs "
2816 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
2817 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2818 as_fn_append ac_func_c_list " alarm HAVE_ALARM"
2819
2820 # Auxiliary files required by this configure script.
2821 ac_aux_files="config.rpath ar-lib compile config.guess config.sub missing install-sh"
2822
2823 # Locations in which to look for auxiliary files.
2824 ac_aux_dir_candidates="${srcdir}/build-aux"
2825
2826 # Search for a directory containing all of the required auxiliary files,
2827 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2828 # If we don't find one directory that contains all the files we need,
2829 # we report the set of missing files from the *first* directory in
2830 # $ac_aux_dir_candidates and give up.
2831 ac_missing_aux_files=""
2832 ac_first_candidate=:
2833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 as_found=false
2836 for as_dir in $ac_aux_dir_candidates
2837 do
2838 IFS=$as_save_IFS
2839 case $as_dir in #(((
2840 '') as_dir=./ ;;
2841 */) ;;
2842 *) as_dir=$as_dir/ ;;
2843 esac
2844 as_found=:
2845
2846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2847 ac_aux_dir_found=yes
2848 ac_install_sh=
2849 for ac_aux in $ac_aux_files
2850 do
2851 # As a special case, if "install-sh" is required, that requirement
2852 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2853 # and $ac_install_sh is set appropriately for whichever one is found.
2854 if test x"$ac_aux" = x"install-sh"
2855 then
2856 if test -f "${as_dir}install-sh"; then
2857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2858 ac_install_sh="${as_dir}install-sh -c"
2859 elif test -f "${as_dir}install.sh"; then
2860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2861 ac_install_sh="${as_dir}install.sh -c"
2862 elif test -f "${as_dir}shtool"; then
2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2864 ac_install_sh="${as_dir}shtool install -c"
2865 else
2866 ac_aux_dir_found=no
2867 if $ac_first_candidate; then
2868 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2869 else
2870 break
2871 fi
2872 fi
2873 else
2874 if test -f "${as_dir}${ac_aux}"; then
2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2876 else
2877 ac_aux_dir_found=no
2878 if $ac_first_candidate; then
2879 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2880 else
2881 break
2882 fi
2883 fi
2884 fi
2885 done
2886 if test "$ac_aux_dir_found" = yes; then
2887 ac_aux_dir="$as_dir"
2888 break
2889 fi
2890 ac_first_candidate=false
2891
2892 as_found=false
2893 done
2894 IFS=$as_save_IFS
2895 if $as_found
2896 then :
2897
2898 else $as_nop
2899 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2900 fi
2901
2902
2903 # These three variables are undocumented and unsupported,
2904 # and are intended to be withdrawn in a future Autoconf release.
2905 # They can cause serious problems if a builder's source tree is in a directory
2906 # whose full name contains unusual characters.
2907 if test -f "${ac_aux_dir}config.guess"; then
2908 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2909 fi
2910 if test -f "${ac_aux_dir}config.sub"; then
2911 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2912 fi
2913 if test -f "$ac_aux_dir/configure"; then
2914 ac_configure="$SHELL ${ac_aux_dir}configure"
2915 fi
2916
2917 # Check that the precious variables saved in the cache have kept the same
2918 # value.
2919 ac_cache_corrupted=false
2920 for ac_var in $ac_precious_vars; do
2921 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2922 eval ac_new_set=\$ac_env_${ac_var}_set
2923 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2924 eval ac_new_val=\$ac_env_${ac_var}_value
2925 case $ac_old_set,$ac_new_set in
2926 set,)
2927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2928 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2929 ac_cache_corrupted=: ;;
2930 ,set)
2931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2932 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2933 ac_cache_corrupted=: ;;
2934 ,);;
2935 *)
2936 if test "x$ac_old_val" != "x$ac_new_val"; then
2937 # differences in whitespace do not lead to failure.
2938 ac_old_val_w=`echo x $ac_old_val`
2939 ac_new_val_w=`echo x $ac_new_val`
2940 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2942 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2943 ac_cache_corrupted=:
2944 else
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2946 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2947 eval $ac_var=\$ac_old_val
2948 fi
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2950 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2952 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2953 fi;;
2954 esac
2955 # Pass precious variables to config.status.
2956 if test "$ac_new_set" = set; then
2957 case $ac_new_val in
2958 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2959 *) ac_arg=$ac_var=$ac_new_val ;;
2960 esac
2961 case " $ac_configure_args " in
2962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2963 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2964 esac
2965 fi
2966 done
2967 if $ac_cache_corrupted; then
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2971 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2972 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2973 and start over" "$LINENO" 5
2974 fi
2975 ## -------------------- ##
2976 ## Main body of script. ##
2977 ## -------------------- ##
2978
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984
2985
2986
2987 # This is a hack. Different versions of install on different systems
2988 # are just too different. Chuck it and use install-sh.
2989 #
2990 # If the user supplies $INSTALL, figure they know what they're doing.
2991 #
2992 # With Autoconf 2.5x, this needs to come very early on, but *after*
2993 # the INIT macro. Sigh.
2994
2995 if test "$INSTALL" = ""
2996 then
2997 INSTALL="$srcdir/build-aux/install-sh -c"
2998 export INSTALL
2999 fi
3000
3001
3002
3003
3004
3005
3006 am__api_version='1.16'
3007
3008
3009
3010 # Find a good install program. We prefer a C program (faster),
3011 # so one script is as good as another. But avoid the broken or
3012 # incompatible versions:
3013 # SysV /etc/install, /usr/sbin/install
3014 # SunOS /usr/etc/install
3015 # IRIX /sbin/install
3016 # AIX /bin/install
3017 # AmigaOS /C/install, which installs bootblocks on floppy discs
3018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3021 # OS/2's system install, which has a completely different semantic
3022 # ./install, which can be erroneously created by make from ./install.sh.
3023 # Reject install programs that cannot install multiple files.
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3025 printf %s "checking for a BSD-compatible install... " >&6; }
3026 if test -z "$INSTALL"; then
3027 if test ${ac_cv_path_install+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else $as_nop
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032 for as_dir in $PATH
3033 do
3034 IFS=$as_save_IFS
3035 case $as_dir in #(((
3036 '') as_dir=./ ;;
3037 */) ;;
3038 *) as_dir=$as_dir/ ;;
3039 esac
3040 # Account for fact that we put trailing slashes in our PATH walk.
3041 case $as_dir in #((
3042 ./ | /[cC]/* | \
3043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3044 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3045 /usr/ucb/* ) ;;
3046 *)
3047 # OSF1 and SCO ODT 3.0 have their own names for install.
3048 # Don't use installbsd from OSF since it installs stuff as root
3049 # by default.
3050 for ac_prog in ginstall scoinst install; do
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3053 if test $ac_prog = install &&
3054 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055 # AIX install. It has an incompatible calling convention.
3056 :
3057 elif test $ac_prog = install &&
3058 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3059 # program-specific install script used by HP pwplus--don't use.
3060 :
3061 else
3062 rm -rf conftest.one conftest.two conftest.dir
3063 echo one > conftest.one
3064 echo two > conftest.two
3065 mkdir conftest.dir
3066 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3067 test -s conftest.one && test -s conftest.two &&
3068 test -s conftest.dir/conftest.one &&
3069 test -s conftest.dir/conftest.two
3070 then
3071 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3072 break 3
3073 fi
3074 fi
3075 fi
3076 done
3077 done
3078 ;;
3079 esac
3080
3081 done
3082 IFS=$as_save_IFS
3083
3084 rm -rf conftest.one conftest.two conftest.dir
3085
3086 fi
3087 if test ${ac_cv_path_install+y}; then
3088 INSTALL=$ac_cv_path_install
3089 else
3090 # As a last resort, use the slow shell script. Don't cache a
3091 # value for INSTALL within a source directory, because that will
3092 # break other packages using the cache if that directory is
3093 # removed, or if the value is a relative name.
3094 INSTALL=$ac_install_sh
3095 fi
3096 fi
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3098 printf "%s\n" "$INSTALL" >&6; }
3099
3100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3101 # It thinks the first close brace ends the variable substitution.
3102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3103
3104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3105
3106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3107
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3109 printf %s "checking whether build environment is sane... " >&6; }
3110 # Reject unsafe characters in $srcdir or the absolute working directory
3111 # name. Accept space and tab only in the latter.
3112 am_lf='
3113 '
3114 case `pwd` in
3115 *[\\\"\#\$\&\'\`$am_lf]*)
3116 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3117 esac
3118 case $srcdir in
3119 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3120 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3121 esac
3122
3123 # Do 'set' in a subshell so we don't clobber the current shell's
3124 # arguments. Must try -L first in case configure is actually a
3125 # symlink; some systems play weird games with the mod time of symlinks
3126 # (eg FreeBSD returns the mod time of the symlink's containing
3127 # directory).
3128 if (
3129 am_has_slept=no
3130 for am_try in 1 2; do
3131 echo "timestamp, slept: $am_has_slept" > conftest.file
3132 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3133 if test "$*" = "X"; then
3134 # -L didn't work.
3135 set X `ls -t "$srcdir/configure" conftest.file`
3136 fi
3137 if test "$*" != "X $srcdir/configure conftest.file" \
3138 && test "$*" != "X conftest.file $srcdir/configure"; then
3139
3140 # If neither matched, then we have a broken ls. This can happen
3141 # if, for instance, CONFIG_SHELL is bash and it inherits a
3142 # broken ls alias from the environment. This has actually
3143 # happened. Such a system could not be considered "sane".
3144 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3145 alias in your environment" "$LINENO" 5
3146 fi
3147 if test "$2" = conftest.file || test $am_try -eq 2; then
3148 break
3149 fi
3150 # Just in case.
3151 sleep 1
3152 am_has_slept=yes
3153 done
3154 test "$2" = conftest.file
3155 )
3156 then
3157 # Ok.
3158 :
3159 else
3160 as_fn_error $? "newly created file is older than distributed files!
3161 Check your system clock" "$LINENO" 5
3162 fi
3163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 printf "%s\n" "yes" >&6; }
3165 # If we didn't sleep, we still need to ensure time stamps of config.status and
3166 # generated files are strictly newer.
3167 am_sleep_pid=
3168 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3169 ( sleep 1 ) &
3170 am_sleep_pid=$!
3171 fi
3172
3173 rm -f conftest.file
3174
3175 test "$program_prefix" != NONE &&
3176 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3177 # Use a double $ so make ignores it.
3178 test "$program_suffix" != NONE &&
3179 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3180 # Double any \ or $.
3181 # By default was `s,x,x', remove it if useless.
3182 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3183 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3184
3185
3186 # Expand $ac_aux_dir to an absolute path.
3187 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3188
3189
3190 if test x"${MISSING+set}" != xset; then
3191 MISSING="\${SHELL} '$am_aux_dir/missing'"
3192 fi
3193 # Use eval to expand $SHELL
3194 if eval "$MISSING --is-lightweight"; then
3195 am_missing_run="$MISSING "
3196 else
3197 am_missing_run=
3198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3199 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3200 fi
3201
3202 if test x"${install_sh+set}" != xset; then
3203 case $am_aux_dir in
3204 *\ * | *\ *)
3205 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3206 *)
3207 install_sh="\${SHELL} $am_aux_dir/install-sh"
3208 esac
3209 fi
3210
3211 # Installed binaries are usually stripped using 'strip' when the user
3212 # run "make install-strip". However 'strip' might not be the right
3213 # tool to use in cross-compilation environments, therefore Automake
3214 # will honor the 'STRIP' environment variable to overrule this program.
3215 if test "$cross_compiling" != no; then
3216 if test -n "$ac_tool_prefix"; then
3217 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3218 set dummy ${ac_tool_prefix}strip; ac_word=$2
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3220 printf %s "checking for $ac_word... " >&6; }
3221 if test ${ac_cv_prog_STRIP+y}
3222 then :
3223 printf %s "(cached) " >&6
3224 else $as_nop
3225 if test -n "$STRIP"; then
3226 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 case $as_dir in #(((
3233 '') as_dir=./ ;;
3234 */) ;;
3235 *) as_dir=$as_dir/ ;;
3236 esac
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3239 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3241 break 2
3242 fi
3243 done
3244 done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 STRIP=$ac_cv_prog_STRIP
3250 if test -n "$STRIP"; then
3251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3252 printf "%s\n" "$STRIP" >&6; }
3253 else
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 printf "%s\n" "no" >&6; }
3256 fi
3257
3258
3259 fi
3260 if test -z "$ac_cv_prog_STRIP"; then
3261 ac_ct_STRIP=$STRIP
3262 # Extract the first word of "strip", so it can be a program name with args.
3263 set dummy strip; ac_word=$2
3264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 printf %s "checking for $ac_word... " >&6; }
3266 if test ${ac_cv_prog_ac_ct_STRIP+y}
3267 then :
3268 printf %s "(cached) " >&6
3269 else $as_nop
3270 if test -n "$ac_ct_STRIP"; then
3271 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3272 else
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH
3275 do
3276 IFS=$as_save_IFS
3277 case $as_dir in #(((
3278 '') as_dir=./ ;;
3279 */) ;;
3280 *) as_dir=$as_dir/ ;;
3281 esac
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3284 ac_cv_prog_ac_ct_STRIP="strip"
3285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288 done
3289 done
3290 IFS=$as_save_IFS
3291
3292 fi
3293 fi
3294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3295 if test -n "$ac_ct_STRIP"; then
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3297 printf "%s\n" "$ac_ct_STRIP" >&6; }
3298 else
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 printf "%s\n" "no" >&6; }
3301 fi
3302
3303 if test "x$ac_ct_STRIP" = x; then
3304 STRIP=":"
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307 yes:)
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310 ac_tool_warned=yes ;;
3311 esac
3312 STRIP=$ac_ct_STRIP
3313 fi
3314 else
3315 STRIP="$ac_cv_prog_STRIP"
3316 fi
3317
3318 fi
3319 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3320
3321
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3323 printf %s "checking for a race-free mkdir -p... " >&6; }
3324 if test -z "$MKDIR_P"; then
3325 if test ${ac_cv_path_mkdir+y}
3326 then :
3327 printf %s "(cached) " >&6
3328 else $as_nop
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3331 do
3332 IFS=$as_save_IFS
3333 case $as_dir in #(((
3334 '') as_dir=./ ;;
3335 */) ;;
3336 *) as_dir=$as_dir/ ;;
3337 esac
3338 for ac_prog in mkdir gmkdir; do
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3341 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3342 'mkdir ('*'coreutils) '* | \
3343 'BusyBox '* | \
3344 'mkdir (fileutils) '4.1*)
3345 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3346 break 3;;
3347 esac
3348 done
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 fi
3354
3355 test -d ./--version && rmdir ./--version
3356 if test ${ac_cv_path_mkdir+y}; then
3357 MKDIR_P="$ac_cv_path_mkdir -p"
3358 else
3359 # As a last resort, use the slow shell script. Don't cache a
3360 # value for MKDIR_P within a source directory, because that will
3361 # break other packages using the cache if that directory is
3362 # removed, or if the value is a relative name.
3363 MKDIR_P="$ac_install_sh -d"
3364 fi
3365 fi
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3367 printf "%s\n" "$MKDIR_P" >&6; }
3368
3369 for ac_prog in gawk mawk nawk awk
3370 do
3371 # Extract the first word of "$ac_prog", so it can be a program name with args.
3372 set dummy $ac_prog; ac_word=$2
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_AWK+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else $as_nop
3379 if test -n "$AWK"; then
3380 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_AWK="$ac_prog"
3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 AWK=$ac_cv_prog_AWK
3404 if test -n "$AWK"; then
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3406 printf "%s\n" "$AWK" >&6; }
3407 else
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 printf "%s\n" "no" >&6; }
3410 fi
3411
3412
3413 test -n "$AWK" && break
3414 done
3415
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3417 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3418 set x ${MAKE-make}
3419 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3420 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3421 then :
3422 printf %s "(cached) " >&6
3423 else $as_nop
3424 cat >conftest.make <<\_ACEOF
3425 SHELL = /bin/sh
3426 all:
3427 @echo '@@@%%%=$(MAKE)=@@@%%%'
3428 _ACEOF
3429 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3430 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3431 *@@@%%%=?*=@@@%%%*)
3432 eval ac_cv_prog_make_${ac_make}_set=yes;;
3433 *)
3434 eval ac_cv_prog_make_${ac_make}_set=no;;
3435 esac
3436 rm -f conftest.make
3437 fi
3438 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3440 printf "%s\n" "yes" >&6; }
3441 SET_MAKE=
3442 else
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 printf "%s\n" "no" >&6; }
3445 SET_MAKE="MAKE=${MAKE-make}"
3446 fi
3447
3448 rm -rf .tst 2>/dev/null
3449 mkdir .tst 2>/dev/null
3450 if test -d .tst; then
3451 am__leading_dot=.
3452 else
3453 am__leading_dot=_
3454 fi
3455 rmdir .tst 2>/dev/null
3456
3457 # Check whether --enable-silent-rules was given.
3458 if test ${enable_silent_rules+y}
3459 then :
3460 enableval=$enable_silent_rules;
3461 fi
3462
3463 case $enable_silent_rules in # (((
3464 yes) AM_DEFAULT_VERBOSITY=0;;
3465 no) AM_DEFAULT_VERBOSITY=1;;
3466 *) AM_DEFAULT_VERBOSITY=1;;
3467 esac
3468 am_make=${MAKE-make}
3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3470 printf %s "checking whether $am_make supports nested variables... " >&6; }
3471 if test ${am_cv_make_support_nested_variables+y}
3472 then :
3473 printf %s "(cached) " >&6
3474 else $as_nop
3475 if printf "%s\n" 'TRUE=$(BAR$(V))
3476 BAR0=false
3477 BAR1=true
3478 V=1
3479 am__doit:
3480 @$(TRUE)
3481 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3482 am_cv_make_support_nested_variables=yes
3483 else
3484 am_cv_make_support_nested_variables=no
3485 fi
3486 fi
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3488 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3489 if test $am_cv_make_support_nested_variables = yes; then
3490 AM_V='$(V)'
3491 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3492 else
3493 AM_V=$AM_DEFAULT_VERBOSITY
3494 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3495 fi
3496 AM_BACKSLASH='\'
3497
3498 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3499 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3500 # is not polluted with repeated "-I."
3501 am__isrc=' -I$(srcdir)'
3502 # test to see if srcdir already configured
3503 if test -f $srcdir/config.status; then
3504 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3505 fi
3506 fi
3507
3508 # test whether we have cygpath
3509 if test -z "$CYGPATH_W"; then
3510 if (cygpath --version) >/dev/null 2>/dev/null; then
3511 CYGPATH_W='cygpath -w'
3512 else
3513 CYGPATH_W=echo
3514 fi
3515 fi
3516
3517
3518 # Define the identity of the package.
3519 PACKAGE='gawk'
3520 VERSION='5.3.2'
3521
3522
3523 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3524
3525
3526 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3527
3528 # Some tools Automake needs.
3529
3530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3531
3532
3533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3534
3535
3536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3537
3538
3539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3540
3541
3542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3543
3544 # For better backward compatibility. To be removed once Automake 1.9.x
3545 # dies out for good. For more background, see:
3546 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3547 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3548 mkdir_p='$(MKDIR_P)'
3549
3550 # We need awk for the "check" target (and possibly the TAP driver). The
3551 # system "awk" is bad on some platforms.
3552 # Always define AMTAR for backward compatibility. Yes, it's still used
3553 # in the wild :-( We should find a proper way to deprecate it ...
3554 AMTAR='$${TAR-tar}'
3555
3556
3557 # We'll loop over all known methods to create a tar archive until one works.
3558 _am_tools='gnutar pax cpio none'
3559
3560 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3561
3562
3563
3564
3565
3566 # Variables for tags utilities; see am/tags.am
3567 if test -z "$CTAGS"; then
3568 CTAGS=ctags
3569 fi
3570
3571 if test -z "$ETAGS"; then
3572 ETAGS=etags
3573 fi
3574
3575 if test -z "$CSCOPE"; then
3576 CSCOPE=cscope
3577 fi
3578
3579
3580
3581 # POSIX will say in a future version that running "rm -f" with no argument
3582 # is OK; and we want to be able to make that assumption in our Makefile
3583 # recipes. So use an aggressive probe to check that the usage we want is
3584 # actually supported "in the wild" to an acceptable degree.
3585 # See automake bug#10828.
3586 # To make any issue more visible, cause the running configure to be aborted
3587 # by default if the 'rm' program in use doesn't match our expectations; the
3588 # user can still override this though.
3589 if rm -f && rm -fr && rm -rf; then : OK; else
3590 cat >&2 <<'END'
3591 Oops!
3592
3593 Your 'rm' program seems unable to run without file operands specified
3594 on the command line, even when the '-f' option is present. This is contrary
3595 to the behaviour of most rm programs out there, and not conforming with
3596 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3597
3598 Please tell [email protected] about your system, including the value
3599 of your $PATH and any error possibly output before this message. This
3600 can help us improve future automake versions.
3601
3602 END
3603 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3604 echo 'Configuration will proceed anyway, since you have set the' >&2
3605 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3606 echo >&2
3607 else
3608 cat >&2 <<'END'
3609 Aborting the configuration process, to ensure you take notice of the issue.
3610
3611 You can download and install GNU coreutils to get an 'rm' implementation
3612 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3613
3614 If you want to complete the configuration process using your problematic
3615 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3616 to "yes", and re-run configure.
3617
3618 END
3619 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3620 fi
3621 fi
3622
3623
3624 # Check whether --enable-lint was given.
3625 if test ${enable_lint+y}
3626 then :
3627 enableval=$enable_lint; if test "$enableval" = no
3628 then
3629
3630 printf "%s\n" "#define NO_LINT 1" >>confdefs.h
3631
3632 fi
3633
3634 fi
3635
3636 # Check whether --enable-builtin-intdiv0 was given.
3637 if test ${enable_builtin_intdiv0+y}
3638 then :
3639 enableval=$enable_builtin_intdiv0; if test "$enableval" = yes
3640 then
3641
3642 printf "%s\n" "#define SUPPLY_INTDIV 1" >>confdefs.h
3643
3644 sed '/^@set PATCHLEVEL/a\
3645 @set INTDIV' < "$srcdir"/doc/gawktexi.in > foo
3646 cp foo "$srcdir"/doc/gawktexi.in
3647 rm foo
3648 fi
3649
3650 fi
3651
3652
3653 SKIP_MPFR=no
3654 # Check whether --enable-mpfr was given.
3655 if test ${enable_mpfr+y}
3656 then :
3657 enableval=$enable_mpfr; if test "$enableval" = no
3658 then
3659 SKIP_MPFR=yes
3660 fi
3661
3662 fi
3663
3664
3665 SKIP_PERSIST_MALLOC=no
3666 # Check whether --enable-pma was given.
3667 if test ${enable_pma+y}
3668 then :
3669 enableval=$enable_pma; if test "$enableval" = no
3670 then
3671 SKIP_PERSIST_MALLOC=yes
3672 fi
3673
3674 fi
3675
3676
3677 EXTENSIONDIR=
3678 # Check whether --enable-versioned-extension-dir was given.
3679 if test ${enable_versioned_extension_dir+y}
3680 then :
3681 enableval=$enable_versioned_extension_dir; if test "$enableval" = yes
3682 then
3683 MAJOR=`awk '/define gawk_api_major_version/ { print $3 }' < $srcdir/gawkapi.h`
3684 MINOR=`awk '/define gawk_api_minor_version/ { print $3 }' < $srcdir/gawkapi.h`
3685
3686 # note leading slash on the value
3687 export EXTENSIONDIR=/ext-$MAJOR.$MINOR
3688 fi
3689
3690 fi
3691
3692
3693 # set default shared library location
3694 pkgextensiondir='${pkglibdir}'${EXTENSIONDIR}
3695
3696
3697
3698
3699 # Make sure we can run config.sub.
3700 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3701 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3702
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3704 printf %s "checking build system type... " >&6; }
3705 if test ${ac_cv_build+y}
3706 then :
3707 printf %s "(cached) " >&6
3708 else $as_nop
3709 ac_build_alias=$build_alias
3710 test "x$ac_build_alias" = x &&
3711 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3712 test "x$ac_build_alias" = x &&
3713 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3714 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3715 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3716
3717 fi
3718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3719 printf "%s\n" "$ac_cv_build" >&6; }
3720 case $ac_cv_build in
3721 *-*-*) ;;
3722 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3723 esac
3724 build=$ac_cv_build
3725 ac_save_IFS=$IFS; IFS='-'
3726 set x $ac_cv_build
3727 shift
3728 build_cpu=$1
3729 build_vendor=$2
3730 shift; shift
3731 # Remember, the first character of IFS is used to create $*,
3732 # except with old shells:
3733 build_os=$*
3734 IFS=$ac_save_IFS
3735 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3736
3737
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3739 printf %s "checking host system type... " >&6; }
3740 if test ${ac_cv_host+y}
3741 then :
3742 printf %s "(cached) " >&6
3743 else $as_nop
3744 if test "x$host_alias" = x; then
3745 ac_cv_host=$ac_cv_build
3746 else
3747 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3748 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3749 fi
3750
3751 fi
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3753 printf "%s\n" "$ac_cv_host" >&6; }
3754 case $ac_cv_host in
3755 *-*-*) ;;
3756 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3757 esac
3758 host=$ac_cv_host
3759 ac_save_IFS=$IFS; IFS='-'
3760 set x $ac_cv_host
3761 shift
3762 host_cpu=$1
3763 host_vendor=$2
3764 shift; shift
3765 # Remember, the first character of IFS is used to create $*,
3766 # except with old shells:
3767 host_os=$*
3768 IFS=$ac_save_IFS
3769 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3770
3771
3772 ax_tt_header_is_printed=:
3773 case x$ax_disable_triplet_transform/`uname` in #(
3774 x/MSYS*) :
3775
3776
3777 if test x$ac_cv_build != x; then
3778 ax_tt_var=`echo $ac_cv_build | sed 's|-msys$|-cygwin|'`
3779 if test x$ax_tt_var = x; then
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: sed script: build triplet conversion \`$ac_cv_build' with sed script \`s|-msys$|-cygwin|'failed." >&5
3781 printf "%s\n" "$as_me: sed script: build triplet conversion \`$ac_cv_build' with sed script \`s|-msys$|-cygwin|'failed." >&6;}
3782 elif test x$ax_tt_var != x`$SHELL "$ac_aux_dir/config.sub" $ax_tt_var`; then
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \`config.sub' test: build triplet conversion of \`$ac_cv_build' produced invalid triplet \`$ax_tt_var'." >&5
3784 printf "%s\n" "$as_me: \`config.sub' test: build triplet conversion of \`$ac_cv_build' produced invalid triplet \`$ax_tt_var'." >&6;}
3785 elif test x$ax_tt_var != x$ac_cv_build; then
3786 if test x$ax_tt_header_is_printed != xyes; then
3787 ax_tt_header_is_printed=yes
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Triplet conversion on MSYS platform:" >&5
3789 printf "%s\n" "$as_me: Triplet conversion on MSYS platform:" >&6;}
3790 fi
3791 gawk_cv_build_orig=$ac_cv_build
3792 ac_cv_build=$ax_tt_var
3793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: build: replacing $gawk_cv_build_orig -> $ac_cv_build" >&5
3794 printf "%s\n" "$as_me: build: replacing $gawk_cv_build_orig -> $ac_cv_build" >&6;}
3795 ax_tt_var=
3796 case $ac_cv_build in
3797 *-*-*) ;;
3798 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3799 esac
3800 build=$ac_cv_build
3801 ac_save_IFS=$IFS; IFS='-'
3802 set x $ac_cv_build
3803 shift
3804 build_cpu=$1
3805 build_vendor=$2
3806 shift; shift
3807 # Remember, the first character of IFS is used to create $*,
3808 # except with old shells:
3809 build_os=$*
3810 IFS=$ac_save_IFS
3811 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3812
3813 fi
3814 ax_tt_var=
3815 fi
3816
3817
3818
3819 if test x$ac_cv_host != x; then
3820 ax_tt_var=`echo $ac_cv_host | sed 's|-msys$|-cygwin|'`
3821 if test x$ax_tt_var = x; then
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: sed script: host triplet conversion \`$ac_cv_host' with sed script \`s|-msys$|-cygwin|'failed." >&5
3823 printf "%s\n" "$as_me: sed script: host triplet conversion \`$ac_cv_host' with sed script \`s|-msys$|-cygwin|'failed." >&6;}
3824 elif test x$ax_tt_var != x`$SHELL "$ac_aux_dir/config.sub" $ax_tt_var`; then
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \`config.sub' test: host triplet conversion of \`$ac_cv_host' produced invalid triplet \`$ax_tt_var'." >&5
3826 printf "%s\n" "$as_me: \`config.sub' test: host triplet conversion of \`$ac_cv_host' produced invalid triplet \`$ax_tt_var'." >&6;}
3827 elif test x$ax_tt_var != x$ac_cv_host; then
3828 if test x$ax_tt_header_is_printed != xyes; then
3829 ax_tt_header_is_printed=yes
3830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Triplet conversion on MSYS platform:" >&5
3831 printf "%s\n" "$as_me: Triplet conversion on MSYS platform:" >&6;}
3832 fi
3833 gawk_cv_host_orig=$ac_cv_host
3834 ac_cv_host=$ax_tt_var
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: host: replacing $gawk_cv_host_orig -> $ac_cv_host" >&5
3836 printf "%s\n" "$as_me: host: replacing $gawk_cv_host_orig -> $ac_cv_host" >&6;}
3837 ax_tt_var=
3838 case $ac_cv_host in
3839 *-*-*) ;;
3840 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3841 esac
3842 host=$ac_cv_host
3843 ac_save_IFS=$IFS; IFS='-'
3844 set x $ac_cv_host
3845 shift
3846 host_cpu=$1
3847 host_vendor=$2
3848 shift; shift
3849 # Remember, the first character of IFS is used to create $*,
3850 # except with old shells:
3851 host_os=$*
3852 IFS=$ac_save_IFS
3853 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3854
3855 fi
3856 ax_tt_var=
3857 fi
3858
3859
3860 ;; #(
3861 *) :
3862 ;;
3863 esac
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875 DEPDIR="${am__leading_dot}deps"
3876
3877 ac_config_commands="$ac_config_commands depfiles"
3878
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3880 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3881 cat > confinc.mk << 'END'
3882 am__doit:
3883 @echo this is the am__doit target >confinc.out
3884 .PHONY: am__doit
3885 END
3886 am__include="#"
3887 am__quote=
3888 # BSD make does it like this.
3889 echo '.include "confinc.mk" # ignored' > confmf.BSD
3890 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3891 echo 'include confinc.mk # ignored' > confmf.GNU
3892 _am_result=no
3893 for s in GNU BSD; do
3894 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3895 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }
3899 case $?:`cat confinc.out 2>/dev/null` in #(
3900 '0:this is the am__doit target') :
3901 case $s in #(
3902 BSD) :
3903 am__include='.include' am__quote='"' ;; #(
3904 *) :
3905 am__include='include' am__quote='' ;;
3906 esac ;; #(
3907 *) :
3908 ;;
3909 esac
3910 if test "$am__include" != "#"; then
3911 _am_result="yes ($s style)"
3912 break
3913 fi
3914 done
3915 rm -f confinc.* confmf.*
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3917 printf "%s\n" "${_am_result}" >&6; }
3918
3919 # Check whether --enable-dependency-tracking was given.
3920 if test ${enable_dependency_tracking+y}
3921 then :
3922 enableval=$enable_dependency_tracking;
3923 fi
3924
3925 if test "x$enable_dependency_tracking" != xno; then
3926 am_depcomp="$ac_aux_dir/depcomp"
3927 AMDEPBACKSLASH='\'
3928 am__nodep='_no'
3929 fi
3930 if test "x$enable_dependency_tracking" != xno; then
3931 AMDEP_TRUE=
3932 AMDEP_FALSE='#'
3933 else
3934 AMDEP_TRUE='#'
3935 AMDEP_FALSE=
3936 fi
3937
3938
3939 ac_ext=c
3940 ac_cpp='$CPP $CPPFLAGS'
3941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944 if test -n "$ac_tool_prefix"; then
3945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3946 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948 printf %s "checking for $ac_word... " >&6; }
3949 if test ${ac_cv_prog_CC+y}
3950 then :
3951 printf %s "(cached) " >&6
3952 else $as_nop
3953 if test -n "$CC"; then
3954 ac_cv_prog_CC="$CC" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959 IFS=$as_save_IFS
3960 case $as_dir in #(((
3961 '') as_dir=./ ;;
3962 */) ;;
3963 *) as_dir=$as_dir/ ;;
3964 esac
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3967 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3968 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971 done
3972 done
3973 IFS=$as_save_IFS
3974
3975 fi
3976 fi
3977 CC=$ac_cv_prog_CC
3978 if test -n "$CC"; then
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3980 printf "%s\n" "$CC" >&6; }
3981 else
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 printf "%s\n" "no" >&6; }
3984 fi
3985
3986
3987 fi
3988 if test -z "$ac_cv_prog_CC"; then
3989 ac_ct_CC=$CC
3990 # Extract the first word of "gcc", so it can be a program name with args.
3991 set dummy gcc; ac_word=$2
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 printf %s "checking for $ac_word... " >&6; }
3994 if test ${ac_cv_prog_ac_ct_CC+y}
3995 then :
3996 printf %s "(cached) " >&6
3997 else $as_nop
3998 if test -n "$ac_ct_CC"; then
3999 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004 IFS=$as_save_IFS
4005 case $as_dir in #(((
4006 '') as_dir=./ ;;
4007 */) ;;
4008 *) as_dir=$as_dir/ ;;
4009 esac
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4012 ac_cv_prog_ac_ct_CC="gcc"
4013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023 if test -n "$ac_ct_CC"; then
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025 printf "%s\n" "$ac_ct_CC" >&6; }
4026 else
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 printf "%s\n" "no" >&6; }
4029 fi
4030
4031 if test "x$ac_ct_CC" = x; then
4032 CC=""
4033 else
4034 case $cross_compiling:$ac_tool_warned in
4035 yes:)
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4037 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4038 ac_tool_warned=yes ;;
4039 esac
4040 CC=$ac_ct_CC
4041 fi
4042 else
4043 CC="$ac_cv_prog_CC"
4044 fi
4045
4046 if test -z "$CC"; then
4047 if test -n "$ac_tool_prefix"; then
4048 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4049 set dummy ${ac_tool_prefix}cc; ac_word=$2
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 printf %s "checking for $ac_word... " >&6; }
4052 if test ${ac_cv_prog_CC+y}
4053 then :
4054 printf %s "(cached) " >&6
4055 else $as_nop
4056 if test -n "$CC"; then
4057 ac_cv_prog_CC="$CC" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062 IFS=$as_save_IFS
4063 case $as_dir in #(((
4064 '') as_dir=./ ;;
4065 */) ;;
4066 *) as_dir=$as_dir/ ;;
4067 esac
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC="${ac_tool_prefix}cc"
4071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4072 break 2
4073 fi
4074 done
4075 done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CC=$ac_cv_prog_CC
4081 if test -n "$CC"; then
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4083 printf "%s\n" "$CC" >&6; }
4084 else
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 printf "%s\n" "no" >&6; }
4087 fi
4088
4089
4090 fi
4091 fi
4092 if test -z "$CC"; then
4093 # Extract the first word of "cc", so it can be a program name with args.
4094 set dummy cc; ac_word=$2
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 printf %s "checking for $ac_word... " >&6; }
4097 if test ${ac_cv_prog_CC+y}
4098 then :
4099 printf %s "(cached) " >&6
4100 else $as_nop
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC="$CC" # Let the user override the test.
4103 else
4104 ac_prog_rejected=no
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 case $as_dir in #(((
4110 '') as_dir=./ ;;
4111 */) ;;
4112 *) as_dir=$as_dir/ ;;
4113 esac
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4116 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4117 ac_prog_rejected=yes
4118 continue
4119 fi
4120 ac_cv_prog_CC="cc"
4121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4122 break 2
4123 fi
4124 done
4125 done
4126 IFS=$as_save_IFS
4127
4128 if test $ac_prog_rejected = yes; then
4129 # We found a bogon in the path, so make sure we never use it.
4130 set dummy $ac_cv_prog_CC
4131 shift
4132 if test $# != 0; then
4133 # We chose a different compiler from the bogus one.
4134 # However, it has the same basename, so the bogon will be chosen
4135 # first if we set CC to just the basename; use the full file name.
4136 shift
4137 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4138 fi
4139 fi
4140 fi
4141 fi
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4145 printf "%s\n" "$CC" >&6; }
4146 else
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 printf "%s\n" "no" >&6; }
4149 fi
4150
4151
4152 fi
4153 if test -z "$CC"; then
4154 if test -n "$ac_tool_prefix"; then
4155 for ac_prog in cl.exe
4156 do
4157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 printf %s "checking for $ac_word... " >&6; }
4161 if test ${ac_cv_prog_CC+y}
4162 then :
4163 printf %s "(cached) " >&6
4164 else $as_nop
4165 if test -n "$CC"; then
4166 ac_cv_prog_CC="$CC" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171 IFS=$as_save_IFS
4172 case $as_dir in #(((
4173 '') as_dir=./ ;;
4174 */) ;;
4175 *) as_dir=$as_dir/ ;;
4176 esac
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4180 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4181 break 2
4182 fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 CC=$ac_cv_prog_CC
4190 if test -n "$CC"; then
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4192 printf "%s\n" "$CC" >&6; }
4193 else
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 printf "%s\n" "no" >&6; }
4196 fi
4197
4198
4199 test -n "$CC" && break
4200 done
4201 fi
4202 if test -z "$CC"; then
4203 ac_ct_CC=$CC
4204 for ac_prog in cl.exe
4205 do
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 printf %s "checking for $ac_word... " >&6; }
4210 if test ${ac_cv_prog_ac_ct_CC+y}
4211 then :
4212 printf %s "(cached) " >&6
4213 else $as_nop
4214 if test -n "$ac_ct_CC"; then
4215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4219 do
4220 IFS=$as_save_IFS
4221 case $as_dir in #(((
4222 '') as_dir=./ ;;
4223 */) ;;
4224 *) as_dir=$as_dir/ ;;
4225 esac
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4228 ac_cv_prog_ac_ct_CC="$ac_prog"
4229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4239 if test -n "$ac_ct_CC"; then
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4241 printf "%s\n" "$ac_ct_CC" >&6; }
4242 else
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 printf "%s\n" "no" >&6; }
4245 fi
4246
4247
4248 test -n "$ac_ct_CC" && break
4249 done
4250
4251 if test "x$ac_ct_CC" = x; then
4252 CC=""
4253 else
4254 case $cross_compiling:$ac_tool_warned in
4255 yes:)
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4257 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4258 ac_tool_warned=yes ;;
4259 esac
4260 CC=$ac_ct_CC
4261 fi
4262 fi
4263
4264 fi
4265 if test -z "$CC"; then
4266 if test -n "$ac_tool_prefix"; then
4267 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4268 set dummy ${ac_tool_prefix}clang; ac_word=$2
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 printf %s "checking for $ac_word... " >&6; }
4271 if test ${ac_cv_prog_CC+y}
4272 then :
4273 printf %s "(cached) " >&6
4274 else $as_nop
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4277 else
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279 for as_dir in $PATH
4280 do
4281 IFS=$as_save_IFS
4282 case $as_dir in #(((
4283 '') as_dir=./ ;;
4284 */) ;;
4285 *) as_dir=$as_dir/ ;;
4286 esac
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CC="${ac_tool_prefix}clang"
4290 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4291 break 2
4292 fi
4293 done
4294 done
4295 IFS=$as_save_IFS
4296
4297 fi
4298 fi
4299 CC=$ac_cv_prog_CC
4300 if test -n "$CC"; then
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4302 printf "%s\n" "$CC" >&6; }
4303 else
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 printf "%s\n" "no" >&6; }
4306 fi
4307
4308
4309 fi
4310 if test -z "$ac_cv_prog_CC"; then
4311 ac_ct_CC=$CC
4312 # Extract the first word of "clang", so it can be a program name with args.
4313 set dummy clang; ac_word=$2
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 printf %s "checking for $ac_word... " >&6; }
4316 if test ${ac_cv_prog_ac_ct_CC+y}
4317 then :
4318 printf %s "(cached) " >&6
4319 else $as_nop
4320 if test -n "$ac_ct_CC"; then
4321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326 IFS=$as_save_IFS
4327 case $as_dir in #(((
4328 '') as_dir=./ ;;
4329 */) ;;
4330 *) as_dir=$as_dir/ ;;
4331 esac
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4334 ac_cv_prog_ac_ct_CC="clang"
4335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4336 break 2
4337 fi
4338 done
4339 done
4340 IFS=$as_save_IFS
4341
4342 fi
4343 fi
4344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4345 if test -n "$ac_ct_CC"; then
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4347 printf "%s\n" "$ac_ct_CC" >&6; }
4348 else
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 printf "%s\n" "no" >&6; }
4351 fi
4352
4353 if test "x$ac_ct_CC" = x; then
4354 CC=""
4355 else
4356 case $cross_compiling:$ac_tool_warned in
4357 yes:)
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4359 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4360 ac_tool_warned=yes ;;
4361 esac
4362 CC=$ac_ct_CC
4363 fi
4364 else
4365 CC="$ac_cv_prog_CC"
4366 fi
4367
4368 fi
4369
4370
4371 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error $? "no acceptable C compiler found in \$PATH
4374 See \`config.log' for more details" "$LINENO" 5; }
4375
4376 # Provide some information about the compiler.
4377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4378 set X $ac_compile
4379 ac_compiler=$2
4380 for ac_option in --version -v -V -qversion -version; do
4381 { { ac_try="$ac_compiler $ac_option >&5"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 printf "%s\n" "$ac_try_echo"; } >&5
4388 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4389 ac_status=$?
4390 if test -s conftest.err; then
4391 sed '10a\
4392 ... rest of stderr output deleted ...
4393 10q' conftest.err >conftest.er1
4394 cat conftest.er1 >&5
4395 fi
4396 rm -f conftest.er1 conftest.err
4397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4398 test $ac_status = 0; }
4399 done
4400
4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4402 /* end confdefs.h. */
4403
4404 int
4405 main (void)
4406 {
4407
4408 ;
4409 return 0;
4410 }
4411 _ACEOF
4412 ac_clean_files_save=$ac_clean_files
4413 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4414 # Try to create an executable without -o first, disregard a.out.
4415 # It will help us diagnose broken compilers, and finding out an intuition
4416 # of exeext.
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4418 printf %s "checking whether the C compiler works... " >&6; }
4419 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4420
4421 # The possible output files:
4422 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4423
4424 ac_rmfiles=
4425 for ac_file in $ac_files
4426 do
4427 case $ac_file in
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4429 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4430 esac
4431 done
4432 rm -f $ac_rmfiles
4433
4434 if { { ac_try="$ac_link_default"
4435 case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 printf "%s\n" "$ac_try_echo"; } >&5
4441 (eval "$ac_link_default") 2>&5
4442 ac_status=$?
4443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444 test $ac_status = 0; }
4445 then :
4446 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4447 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4448 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4449 # so that the user can short-circuit this test for compilers unknown to
4450 # Autoconf.
4451 for ac_file in $ac_files ''
4452 do
4453 test -f "$ac_file" || continue
4454 case $ac_file in
4455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4456 ;;
4457 [ab].out )
4458 # We found the default executable, but exeext='' is most
4459 # certainly right.
4460 break;;
4461 *.* )
4462 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4463 then :; else
4464 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4465 fi
4466 # We set ac_cv_exeext here because the later test for it is not
4467 # safe: cross compilers may not add the suffix if given an `-o'
4468 # argument, so we may need to know it at that point already.
4469 # Even if this section looks crufty: it has the advantage of
4470 # actually working.
4471 break;;
4472 * )
4473 break;;
4474 esac
4475 done
4476 test "$ac_cv_exeext" = no && ac_cv_exeext=
4477
4478 else $as_nop
4479 ac_file=''
4480 fi
4481 if test -z "$ac_file"
4482 then :
4483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 printf "%s\n" "no" >&6; }
4485 printf "%s\n" "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4487
4488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4489 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4490 as_fn_error 77 "C compiler cannot create executables
4491 See \`config.log' for more details" "$LINENO" 5; }
4492 else $as_nop
4493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4494 printf "%s\n" "yes" >&6; }
4495 fi
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4497 printf %s "checking for C compiler default output file name... " >&6; }
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4499 printf "%s\n" "$ac_file" >&6; }
4500 ac_exeext=$ac_cv_exeext
4501
4502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4503 ac_clean_files=$ac_clean_files_save
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4505 printf %s "checking for suffix of executables... " >&6; }
4506 if { { ac_try="$ac_link"
4507 case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510 esac
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 printf "%s\n" "$ac_try_echo"; } >&5
4513 (eval "$ac_link") 2>&5
4514 ac_status=$?
4515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4517 then :
4518 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4519 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4520 # work properly (i.e., refer to `conftest.exe'), while it won't with
4521 # `rm'.
4522 for ac_file in conftest.exe conftest conftest.*; do
4523 test -f "$ac_file" || continue
4524 case $ac_file in
4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4526 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 break;;
4528 * ) break;;
4529 esac
4530 done
4531 else $as_nop
4532 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4533 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4534 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4535 See \`config.log' for more details" "$LINENO" 5; }
4536 fi
4537 rm -f conftest conftest$ac_cv_exeext
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4539 printf "%s\n" "$ac_cv_exeext" >&6; }
4540
4541 rm -f conftest.$ac_ext
4542 EXEEXT=$ac_cv_exeext
4543 ac_exeext=$EXEEXT
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #include <stdio.h>
4547 int
4548 main (void)
4549 {
4550 FILE *f = fopen ("conftest.out", "w");
4551 return ferror (f) || fclose (f) != 0;
4552
4553 ;
4554 return 0;
4555 }
4556 _ACEOF
4557 ac_clean_files="$ac_clean_files conftest.out"
4558 # Check that the compiler produces executables we can run. If not, either
4559 # the compiler is broken, or we cross compile.
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4561 printf %s "checking whether we are cross compiling... " >&6; }
4562 if test "$cross_compiling" != yes; then
4563 { { ac_try="$ac_link"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 printf "%s\n" "$ac_try_echo"; } >&5
4570 (eval "$ac_link") 2>&5
4571 ac_status=$?
4572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }
4574 if { ac_try='./conftest$ac_cv_exeext'
4575 { { case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4580 printf "%s\n" "$ac_try_echo"; } >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4584 test $ac_status = 0; }; }; then
4585 cross_compiling=no
4586 else
4587 if test "$cross_compiling" = maybe; then
4588 cross_compiling=yes
4589 else
4590 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error 77 "cannot run C compiled programs.
4593 If you meant to cross compile, use \`--host'.
4594 See \`config.log' for more details" "$LINENO" 5; }
4595 fi
4596 fi
4597 fi
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4599 printf "%s\n" "$cross_compiling" >&6; }
4600
4601 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4602 ac_clean_files=$ac_clean_files_save
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4604 printf %s "checking for suffix of object files... " >&6; }
4605 if test ${ac_cv_objext+y}
4606 then :
4607 printf %s "(cached) " >&6
4608 else $as_nop
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611
4612 int
4613 main (void)
4614 {
4615
4616 ;
4617 return 0;
4618 }
4619 _ACEOF
4620 rm -f conftest.o conftest.obj
4621 if { { ac_try="$ac_compile"
4622 case "(($ac_try" in
4623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624 *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4627 printf "%s\n" "$ac_try_echo"; } >&5
4628 (eval "$ac_compile") 2>&5
4629 ac_status=$?
4630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4631 test $ac_status = 0; }
4632 then :
4633 for ac_file in conftest.o conftest.obj conftest.*; do
4634 test -f "$ac_file" || continue;
4635 case $ac_file in
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4637 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4638 break;;
4639 esac
4640 done
4641 else $as_nop
4642 printf "%s\n" "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.$ac_ext >&5
4644
4645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "cannot compute suffix of object files: cannot compile
4648 See \`config.log' for more details" "$LINENO" 5; }
4649 fi
4650 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4651 fi
4652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4653 printf "%s\n" "$ac_cv_objext" >&6; }
4654 OBJEXT=$ac_cv_objext
4655 ac_objext=$OBJEXT
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4657 printf %s "checking whether the compiler supports GNU C... " >&6; }
4658 if test ${ac_cv_c_compiler_gnu+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else $as_nop
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 int
4666 main (void)
4667 {
4668 #ifndef __GNUC__
4669 choke me
4670 #endif
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 if ac_fn_c_try_compile "$LINENO"
4677 then :
4678 ac_compiler_gnu=yes
4679 else $as_nop
4680 ac_compiler_gnu=no
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684
4685 fi
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4687 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689
4690 if test $ac_compiler_gnu = yes; then
4691 GCC=yes
4692 else
4693 GCC=
4694 fi
4695 ac_test_CFLAGS=${CFLAGS+y}
4696 ac_save_CFLAGS=$CFLAGS
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4698 printf %s "checking whether $CC accepts -g... " >&6; }
4699 if test ${ac_cv_prog_cc_g+y}
4700 then :
4701 printf %s "(cached) " >&6
4702 else $as_nop
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 ac_cv_prog_cc_g=no
4706 CFLAGS="-g"
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709
4710 int
4711 main (void)
4712 {
4713
4714 ;
4715 return 0;
4716 }
4717 _ACEOF
4718 if ac_fn_c_try_compile "$LINENO"
4719 then :
4720 ac_cv_prog_cc_g=yes
4721 else $as_nop
4722 CFLAGS=""
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725
4726 int
4727 main (void)
4728 {
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"
4735 then :
4736
4737 else $as_nop
4738 ac_c_werror_flag=$ac_save_c_werror_flag
4739 CFLAGS="-g"
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4742
4743 int
4744 main (void)
4745 {
4746
4747 ;
4748 return 0;
4749 }
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"
4752 then :
4753 ac_cv_prog_cc_g=yes
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4756 fi
4757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4760 ac_c_werror_flag=$ac_save_c_werror_flag
4761 fi
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4763 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4764 if test $ac_test_CFLAGS; then
4765 CFLAGS=$ac_save_CFLAGS
4766 elif test $ac_cv_prog_cc_g = yes; then
4767 if test "$GCC" = yes; then
4768 CFLAGS="-g -O2"
4769 else
4770 CFLAGS="-g"
4771 fi
4772 else
4773 if test "$GCC" = yes; then
4774 CFLAGS="-O2"
4775 else
4776 CFLAGS=
4777 fi
4778 fi
4779 ac_prog_cc_stdc=no
4780 if test x$ac_prog_cc_stdc = xno
4781 then :
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4783 printf %s "checking for $CC option to enable C11 features... " >&6; }
4784 if test ${ac_cv_prog_cc_c11+y}
4785 then :
4786 printf %s "(cached) " >&6
4787 else $as_nop
4788 ac_cv_prog_cc_c11=no
4789 ac_save_CC=$CC
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 $ac_c_conftest_c11_program
4793 _ACEOF
4794 for ac_arg in '' -std=gnu11
4795 do
4796 CC="$ac_save_CC $ac_arg"
4797 if ac_fn_c_try_compile "$LINENO"
4798 then :
4799 ac_cv_prog_cc_c11=$ac_arg
4800 fi
4801 rm -f core conftest.err conftest.$ac_objext conftest.beam
4802 test "x$ac_cv_prog_cc_c11" != "xno" && break
4803 done
4804 rm -f conftest.$ac_ext
4805 CC=$ac_save_CC
4806 fi
4807
4808 if test "x$ac_cv_prog_cc_c11" = xno
4809 then :
4810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4811 printf "%s\n" "unsupported" >&6; }
4812 else $as_nop
4813 if test "x$ac_cv_prog_cc_c11" = x
4814 then :
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4816 printf "%s\n" "none needed" >&6; }
4817 else $as_nop
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4819 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4820 CC="$CC $ac_cv_prog_cc_c11"
4821 fi
4822 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4823 ac_prog_cc_stdc=c11
4824 fi
4825 fi
4826 if test x$ac_prog_cc_stdc = xno
4827 then :
4828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4829 printf %s "checking for $CC option to enable C99 features... " >&6; }
4830 if test ${ac_cv_prog_cc_c99+y}
4831 then :
4832 printf %s "(cached) " >&6
4833 else $as_nop
4834 ac_cv_prog_cc_c99=no
4835 ac_save_CC=$CC
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 $ac_c_conftest_c99_program
4839 _ACEOF
4840 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4841 do
4842 CC="$ac_save_CC $ac_arg"
4843 if ac_fn_c_try_compile "$LINENO"
4844 then :
4845 ac_cv_prog_cc_c99=$ac_arg
4846 fi
4847 rm -f core conftest.err conftest.$ac_objext conftest.beam
4848 test "x$ac_cv_prog_cc_c99" != "xno" && break
4849 done
4850 rm -f conftest.$ac_ext
4851 CC=$ac_save_CC
4852 fi
4853
4854 if test "x$ac_cv_prog_cc_c99" = xno
4855 then :
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4857 printf "%s\n" "unsupported" >&6; }
4858 else $as_nop
4859 if test "x$ac_cv_prog_cc_c99" = x
4860 then :
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4862 printf "%s\n" "none needed" >&6; }
4863 else $as_nop
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4865 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4866 CC="$CC $ac_cv_prog_cc_c99"
4867 fi
4868 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4869 ac_prog_cc_stdc=c99
4870 fi
4871 fi
4872 if test x$ac_prog_cc_stdc = xno
4873 then :
4874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4875 printf %s "checking for $CC option to enable C89 features... " >&6; }
4876 if test ${ac_cv_prog_cc_c89+y}
4877 then :
4878 printf %s "(cached) " >&6
4879 else $as_nop
4880 ac_cv_prog_cc_c89=no
4881 ac_save_CC=$CC
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 $ac_c_conftest_c89_program
4885 _ACEOF
4886 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4887 do
4888 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"
4890 then :
4891 ac_cv_prog_cc_c89=$ac_arg
4892 fi
4893 rm -f core conftest.err conftest.$ac_objext conftest.beam
4894 test "x$ac_cv_prog_cc_c89" != "xno" && break
4895 done
4896 rm -f conftest.$ac_ext
4897 CC=$ac_save_CC
4898 fi
4899
4900 if test "x$ac_cv_prog_cc_c89" = xno
4901 then :
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4903 printf "%s\n" "unsupported" >&6; }
4904 else $as_nop
4905 if test "x$ac_cv_prog_cc_c89" = x
4906 then :
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4908 printf "%s\n" "none needed" >&6; }
4909 else $as_nop
4910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4911 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4912 CC="$CC $ac_cv_prog_cc_c89"
4913 fi
4914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4915 ac_prog_cc_stdc=c89
4916 fi
4917 fi
4918
4919 ac_ext=c
4920 ac_cpp='$CPP $CPPFLAGS'
4921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924
4925
4926 ac_ext=c
4927 ac_cpp='$CPP $CPPFLAGS'
4928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4932 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4933 if test ${am_cv_prog_cc_c_o+y}
4934 then :
4935 printf %s "(cached) " >&6
4936 else $as_nop
4937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938 /* end confdefs.h. */
4939
4940 int
4941 main (void)
4942 {
4943
4944 ;
4945 return 0;
4946 }
4947 _ACEOF
4948 # Make sure it works both with $CC and with simple cc.
4949 # Following AC_PROG_CC_C_O, we do the test twice because some
4950 # compilers refuse to overwrite an existing .o file with -o,
4951 # though they will create one.
4952 am_cv_prog_cc_c_o=yes
4953 for am_i in 1 2; do
4954 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4955 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } \
4959 && test -f conftest2.$ac_objext; then
4960 : OK
4961 else
4962 am_cv_prog_cc_c_o=no
4963 break
4964 fi
4965 done
4966 rm -f core conftest*
4967 unset am_i
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4970 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4971 if test "$am_cv_prog_cc_c_o" != yes; then
4972 # Losing compiler, so override with the script.
4973 # FIXME: It is wrong to rewrite CC.
4974 # But if we don't then we get into trouble of one sort or another.
4975 # A longer-term fix would be to have automake use am__CC in this case,
4976 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4977 CC="$am_aux_dir/compile $CC"
4978 fi
4979 ac_ext=c
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984
4985
4986 depcc="$CC" am_compiler_list=
4987
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4989 printf %s "checking dependency style of $depcc... " >&6; }
4990 if test ${am_cv_CC_dependencies_compiler_type+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else $as_nop
4994 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4995 # We make a subdir and do the tests there. Otherwise we can end up
4996 # making bogus files that we don't know about and never remove. For
4997 # instance it was reported that on HP-UX the gcc test will end up
4998 # making a dummy file named 'D' -- because '-MD' means "put the output
4999 # in D".
5000 rm -rf conftest.dir
5001 mkdir conftest.dir
5002 # Copy depcomp to subdir because otherwise we won't find it if we're
5003 # using a relative directory.
5004 cp "$am_depcomp" conftest.dir
5005 cd conftest.dir
5006 # We will build objects and dependencies in a subdirectory because
5007 # it helps to detect inapplicable dependency modes. For instance
5008 # both Tru64's cc and ICC support -MD to output dependencies as a
5009 # side effect of compilation, but ICC will put the dependencies in
5010 # the current directory while Tru64 will put them in the object
5011 # directory.
5012 mkdir sub
5013
5014 am_cv_CC_dependencies_compiler_type=none
5015 if test "$am_compiler_list" = ""; then
5016 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5017 fi
5018 am__universal=false
5019 case " $depcc " in #(
5020 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5021 esac
5022
5023 for depmode in $am_compiler_list; do
5024 # Setup a source with many dependencies, because some compilers
5025 # like to wrap large dependency lists on column 80 (with \), and
5026 # we should not choose a depcomp mode which is confused by this.
5027 #
5028 # We need to recreate these files for each test, as the compiler may
5029 # overwrite some of them when testing with obscure command lines.
5030 # This happens at least with the AIX C compiler.
5031 : > sub/conftest.c
5032 for i in 1 2 3 4 5 6; do
5033 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5034 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5035 # Solaris 10 /bin/sh.
5036 echo '/* dummy */' > sub/conftst$i.h
5037 done
5038 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5039
5040 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5041 # mode. It turns out that the SunPro C++ compiler does not properly
5042 # handle '-M -o', and we need to detect this. Also, some Intel
5043 # versions had trouble with output in subdirs.
5044 am__obj=sub/conftest.${OBJEXT-o}
5045 am__minus_obj="-o $am__obj"
5046 case $depmode in
5047 gcc)
5048 # This depmode causes a compiler race in universal mode.
5049 test "$am__universal" = false || continue
5050 ;;
5051 nosideeffect)
5052 # After this tag, mechanisms are not by side-effect, so they'll
5053 # only be used when explicitly requested.
5054 if test "x$enable_dependency_tracking" = xyes; then
5055 continue
5056 else
5057 break
5058 fi
5059 ;;
5060 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5061 # This compiler won't grok '-c -o', but also, the minuso test has
5062 # not run yet. These depmodes are late enough in the game, and
5063 # so weak that their functioning should not be impacted.
5064 am__obj=conftest.${OBJEXT-o}
5065 am__minus_obj=
5066 ;;
5067 none) break ;;
5068 esac
5069 if depmode=$depmode \
5070 source=sub/conftest.c object=$am__obj \
5071 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5072 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5073 >/dev/null 2>conftest.err &&
5074 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5075 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5076 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5077 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5078 # icc doesn't choke on unknown options, it will just issue warnings
5079 # or remarks (even with -Werror). So we grep stderr for any message
5080 # that says an option was ignored or not supported.
5081 # When given -MP, icc 7.0 and 7.1 complain thusly:
5082 # icc: Command line warning: ignoring option '-M'; no argument required
5083 # The diagnosis changed in icc 8.0:
5084 # icc: Command line remark: option '-MP' not supported
5085 if (grep 'ignoring option' conftest.err ||
5086 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5087 am_cv_CC_dependencies_compiler_type=$depmode
5088 break
5089 fi
5090 fi
5091 done
5092
5093 cd ..
5094 rm -rf conftest.dir
5095 else
5096 am_cv_CC_dependencies_compiler_type=none
5097 fi
5098
5099 fi
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5101 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5102 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5103
5104 if
5105 test "x$enable_dependency_tracking" != xno \
5106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5107 am__fastdepCC_TRUE=
5108 am__fastdepCC_FALSE='#'
5109 else
5110 am__fastdepCC_TRUE='#'
5111 am__fastdepCC_FALSE=
5112 fi
5113
5114
5115
5116 ac_header= ac_cache=
5117 for ac_item in $ac_header_c_list
5118 do
5119 if test $ac_cache; then
5120 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5121 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5122 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5123 fi
5124 ac_header= ac_cache=
5125 elif test $ac_header; then
5126 ac_cache=$ac_item
5127 else
5128 ac_header=$ac_item
5129 fi
5130 done
5131
5132
5133
5134
5135
5136
5137
5138
5139 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5140 then :
5141
5142 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5143
5144 fi
5145
5146
5147
5148
5149
5150
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5152 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5153 if test ${ac_cv_safe_to_define___extensions__+y}
5154 then :
5155 printf %s "(cached) " >&6
5156 else $as_nop
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159
5160 # define __EXTENSIONS__ 1
5161 $ac_includes_default
5162 int
5163 main (void)
5164 {
5165
5166 ;
5167 return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"
5171 then :
5172 ac_cv_safe_to_define___extensions__=yes
5173 else $as_nop
5174 ac_cv_safe_to_define___extensions__=no
5175 fi
5176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5177 fi
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5179 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5180
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5182 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5183 if test ${ac_cv_should_define__xopen_source+y}
5184 then :
5185 printf %s "(cached) " >&6
5186 else $as_nop
5187 ac_cv_should_define__xopen_source=no
5188 if test $ac_cv_header_wchar_h = yes
5189 then :
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5192
5193 #include <wchar.h>
5194 mbstate_t x;
5195 int
5196 main (void)
5197 {
5198
5199 ;
5200 return 0;
5201 }
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"
5204 then :
5205
5206 else $as_nop
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209
5210 #define _XOPEN_SOURCE 500
5211 #include <wchar.h>
5212 mbstate_t x;
5213 int
5214 main (void)
5215 {
5216
5217 ;
5218 return 0;
5219 }
5220 _ACEOF
5221 if ac_fn_c_try_compile "$LINENO"
5222 then :
5223 ac_cv_should_define__xopen_source=yes
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5226 fi
5227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5228 fi
5229 fi
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5231 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5232
5233 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5234
5235 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5236
5237 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5238
5239 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5240
5241 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5242
5243 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5244
5245 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5246
5247 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5248
5249 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5250
5251 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5252
5253 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5254
5255 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5256
5257 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5258
5259 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5260
5261 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5262
5263 if test $ac_cv_header_minix_config_h = yes
5264 then :
5265 MINIX=yes
5266 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5267
5268 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5269
5270 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5271
5272 else $as_nop
5273 MINIX=
5274 fi
5275 if test $ac_cv_safe_to_define___extensions__ = yes
5276 then :
5277 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5278
5279 fi
5280 if test $ac_cv_should_define__xopen_source = yes
5281 then :
5282 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5283
5284 fi
5285
5286
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5288 printf %s "checking for grep that handles long lines and -e... " >&6; }
5289 if test ${ac_cv_path_GREP+y}
5290 then :
5291 printf %s "(cached) " >&6
5292 else $as_nop
5293 if test -z "$GREP"; then
5294 ac_path_GREP_found=false
5295 # Loop through the user's path and test for each of PROGNAME-LIST
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5298 do
5299 IFS=$as_save_IFS
5300 case $as_dir in #(((
5301 '') as_dir=./ ;;
5302 */) ;;
5303 *) as_dir=$as_dir/ ;;
5304 esac
5305 for ac_prog in grep ggrep
5306 do
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5309 as_fn_executable_p "$ac_path_GREP" || continue
5310 # Check for GNU ac_path_GREP and select it if it is found.
5311 # Check for GNU $ac_path_GREP
5312 case `"$ac_path_GREP" --version 2>&1` in
5313 *GNU*)
5314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5315 *)
5316 ac_count=0
5317 printf %s 0123456789 >"conftest.in"
5318 while :
5319 do
5320 cat "conftest.in" "conftest.in" >"conftest.tmp"
5321 mv "conftest.tmp" "conftest.in"
5322 cp "conftest.in" "conftest.nl"
5323 printf "%s\n" 'GREP' >> "conftest.nl"
5324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5326 as_fn_arith $ac_count + 1 && ac_count=$as_val
5327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5328 # Best one so far, save it but keep looking for a better one
5329 ac_cv_path_GREP="$ac_path_GREP"
5330 ac_path_GREP_max=$ac_count
5331 fi
5332 # 10*(2^10) chars as input seems more than enough
5333 test $ac_count -gt 10 && break
5334 done
5335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5336 esac
5337
5338 $ac_path_GREP_found && break 3
5339 done
5340 done
5341 done
5342 IFS=$as_save_IFS
5343 if test -z "$ac_cv_path_GREP"; then
5344 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5345 fi
5346 else
5347 ac_cv_path_GREP=$GREP
5348 fi
5349
5350 fi
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5352 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5353 GREP="$ac_cv_path_GREP"
5354
5355
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5357 printf %s "checking for egrep... " >&6; }
5358 if test ${ac_cv_path_EGREP+y}
5359 then :
5360 printf %s "(cached) " >&6
5361 else $as_nop
5362 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5363 then ac_cv_path_EGREP="$GREP -E"
5364 else
5365 if test -z "$EGREP"; then
5366 ac_path_EGREP_found=false
5367 # Loop through the user's path and test for each of PROGNAME-LIST
5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5370 do
5371 IFS=$as_save_IFS
5372 case $as_dir in #(((
5373 '') as_dir=./ ;;
5374 */) ;;
5375 *) as_dir=$as_dir/ ;;
5376 esac
5377 for ac_prog in egrep
5378 do
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5381 as_fn_executable_p "$ac_path_EGREP" || continue
5382 # Check for GNU ac_path_EGREP and select it if it is found.
5383 # Check for GNU $ac_path_EGREP
5384 case `"$ac_path_EGREP" --version 2>&1` in
5385 *GNU*)
5386 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5387 *)
5388 ac_count=0
5389 printf %s 0123456789 >"conftest.in"
5390 while :
5391 do
5392 cat "conftest.in" "conftest.in" >"conftest.tmp"
5393 mv "conftest.tmp" "conftest.in"
5394 cp "conftest.in" "conftest.nl"
5395 printf "%s\n" 'EGREP' >> "conftest.nl"
5396 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5398 as_fn_arith $ac_count + 1 && ac_count=$as_val
5399 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5400 # Best one so far, save it but keep looking for a better one
5401 ac_cv_path_EGREP="$ac_path_EGREP"
5402 ac_path_EGREP_max=$ac_count
5403 fi
5404 # 10*(2^10) chars as input seems more than enough
5405 test $ac_count -gt 10 && break
5406 done
5407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5408 esac
5409
5410 $ac_path_EGREP_found && break 3
5411 done
5412 done
5413 done
5414 IFS=$as_save_IFS
5415 if test -z "$ac_cv_path_EGREP"; then
5416 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5417 fi
5418 else
5419 ac_cv_path_EGREP=$EGREP
5420 fi
5421
5422 fi
5423 fi
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5425 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5426 EGREP="$ac_cv_path_EGREP"
5427
5428
5429 for ac_prog in 'bison -y' byacc
5430 do
5431 # Extract the first word of "$ac_prog", so it can be a program name with args.
5432 set dummy $ac_prog; ac_word=$2
5433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 printf %s "checking for $ac_word... " >&6; }
5435 if test ${ac_cv_prog_YACC+y}
5436 then :
5437 printf %s "(cached) " >&6
5438 else $as_nop
5439 if test -n "$YACC"; then
5440 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5441 else
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443 for as_dir in $PATH
5444 do
5445 IFS=$as_save_IFS
5446 case $as_dir in #(((
5447 '') as_dir=./ ;;
5448 */) ;;
5449 *) as_dir=$as_dir/ ;;
5450 esac
5451 for ac_exec_ext in '' $ac_executable_extensions; do
5452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5453 ac_cv_prog_YACC="$ac_prog"
5454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5455 break 2
5456 fi
5457 done
5458 done
5459 IFS=$as_save_IFS
5460
5461 fi
5462 fi
5463 YACC=$ac_cv_prog_YACC
5464 if test -n "$YACC"; then
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5466 printf "%s\n" "$YACC" >&6; }
5467 else
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 printf "%s\n" "no" >&6; }
5470 fi
5471
5472
5473 test -n "$YACC" && break
5474 done
5475 test -n "$YACC" || YACC="yacc"
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5478 printf %s "checking whether ln -s works... " >&6; }
5479 LN_S=$as_ln_s
5480 if test "$LN_S" = "ln -s"; then
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482 printf "%s\n" "yes" >&6; }
5483 else
5484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5485 printf "%s\n" "no, using $LN_S" >&6; }
5486 fi
5487
5488 ac_ext=c
5489 ac_cpp='$CPP $CPPFLAGS'
5490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5495 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 printf %s "checking for $ac_word... " >&6; }
5498 if test ${ac_cv_prog_CC+y}
5499 then :
5500 printf %s "(cached) " >&6
5501 else $as_nop
5502 if test -n "$CC"; then
5503 ac_cv_prog_CC="$CC" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 case $as_dir in #(((
5510 '') as_dir=./ ;;
5511 */) ;;
5512 *) as_dir=$as_dir/ ;;
5513 esac
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5516 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 fi
5525 fi
5526 CC=$ac_cv_prog_CC
5527 if test -n "$CC"; then
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5529 printf "%s\n" "$CC" >&6; }
5530 else
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 printf "%s\n" "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$ac_cv_prog_CC"; then
5538 ac_ct_CC=$CC
5539 # Extract the first word of "gcc", so it can be a program name with args.
5540 set dummy gcc; ac_word=$2
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 printf %s "checking for $ac_word... " >&6; }
5543 if test ${ac_cv_prog_ac_ct_CC+y}
5544 then :
5545 printf %s "(cached) " >&6
5546 else $as_nop
5547 if test -n "$ac_ct_CC"; then
5548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5552 do
5553 IFS=$as_save_IFS
5554 case $as_dir in #(((
5555 '') as_dir=./ ;;
5556 */) ;;
5557 *) as_dir=$as_dir/ ;;
5558 esac
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_ac_ct_CC="gcc"
5562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565 done
5566 done
5567 IFS=$as_save_IFS
5568
5569 fi
5570 fi
5571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5572 if test -n "$ac_ct_CC"; then
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5574 printf "%s\n" "$ac_ct_CC" >&6; }
5575 else
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 printf "%s\n" "no" >&6; }
5578 fi
5579
5580 if test "x$ac_ct_CC" = x; then
5581 CC=""
5582 else
5583 case $cross_compiling:$ac_tool_warned in
5584 yes:)
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5586 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5587 ac_tool_warned=yes ;;
5588 esac
5589 CC=$ac_ct_CC
5590 fi
5591 else
5592 CC="$ac_cv_prog_CC"
5593 fi
5594
5595 if test -z "$CC"; then
5596 if test -n "$ac_tool_prefix"; then
5597 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5598 set dummy ${ac_tool_prefix}cc; ac_word=$2
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 printf %s "checking for $ac_word... " >&6; }
5601 if test ${ac_cv_prog_CC+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else $as_nop
5605 if test -n "$CC"; then
5606 ac_cv_prog_CC="$CC" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 case $as_dir in #(((
5613 '') as_dir=./ ;;
5614 */) ;;
5615 *) as_dir=$as_dir/ ;;
5616 esac
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5619 ac_cv_prog_CC="${ac_tool_prefix}cc"
5620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5621 break 2
5622 fi
5623 done
5624 done
5625 IFS=$as_save_IFS
5626
5627 fi
5628 fi
5629 CC=$ac_cv_prog_CC
5630 if test -n "$CC"; then
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5632 printf "%s\n" "$CC" >&6; }
5633 else
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5635 printf "%s\n" "no" >&6; }
5636 fi
5637
5638
5639 fi
5640 fi
5641 if test -z "$CC"; then
5642 # Extract the first word of "cc", so it can be a program name with args.
5643 set dummy cc; ac_word=$2
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 printf %s "checking for $ac_word... " >&6; }
5646 if test ${ac_cv_prog_CC+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else $as_nop
5650 if test -n "$CC"; then
5651 ac_cv_prog_CC="$CC" # Let the user override the test.
5652 else
5653 ac_prog_rejected=no
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657 IFS=$as_save_IFS
5658 case $as_dir in #(((
5659 '') as_dir=./ ;;
5660 */) ;;
5661 *) as_dir=$as_dir/ ;;
5662 esac
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5665 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5666 ac_prog_rejected=yes
5667 continue
5668 fi
5669 ac_cv_prog_CC="cc"
5670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673 done
5674 done
5675 IFS=$as_save_IFS
5676
5677 if test $ac_prog_rejected = yes; then
5678 # We found a bogon in the path, so make sure we never use it.
5679 set dummy $ac_cv_prog_CC
5680 shift
5681 if test $# != 0; then
5682 # We chose a different compiler from the bogus one.
5683 # However, it has the same basename, so the bogon will be chosen
5684 # first if we set CC to just the basename; use the full file name.
5685 shift
5686 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5687 fi
5688 fi
5689 fi
5690 fi
5691 CC=$ac_cv_prog_CC
5692 if test -n "$CC"; then
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5694 printf "%s\n" "$CC" >&6; }
5695 else
5696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697 printf "%s\n" "no" >&6; }
5698 fi
5699
5700
5701 fi
5702 if test -z "$CC"; then
5703 if test -n "$ac_tool_prefix"; then
5704 for ac_prog in cl.exe
5705 do
5706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 printf %s "checking for $ac_word... " >&6; }
5710 if test ${ac_cv_prog_CC+y}
5711 then :
5712 printf %s "(cached) " >&6
5713 else $as_nop
5714 if test -n "$CC"; then
5715 ac_cv_prog_CC="$CC" # Let the user override the test.
5716 else
5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718 for as_dir in $PATH
5719 do
5720 IFS=$as_save_IFS
5721 case $as_dir in #(((
5722 '') as_dir=./ ;;
5723 */) ;;
5724 *) as_dir=$as_dir/ ;;
5725 esac
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5730 break 2
5731 fi
5732 done
5733 done
5734 IFS=$as_save_IFS
5735
5736 fi
5737 fi
5738 CC=$ac_cv_prog_CC
5739 if test -n "$CC"; then
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5741 printf "%s\n" "$CC" >&6; }
5742 else
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 printf "%s\n" "no" >&6; }
5745 fi
5746
5747
5748 test -n "$CC" && break
5749 done
5750 fi
5751 if test -z "$CC"; then
5752 ac_ct_CC=$CC
5753 for ac_prog in cl.exe
5754 do
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 printf %s "checking for $ac_word... " >&6; }
5759 if test ${ac_cv_prog_ac_ct_CC+y}
5760 then :
5761 printf %s "(cached) " >&6
5762 else $as_nop
5763 if test -n "$ac_ct_CC"; then
5764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5768 do
5769 IFS=$as_save_IFS
5770 case $as_dir in #(((
5771 '') as_dir=./ ;;
5772 */) ;;
5773 *) as_dir=$as_dir/ ;;
5774 esac
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_ac_ct_CC="$ac_prog"
5778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5779 break 2
5780 fi
5781 done
5782 done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5788 if test -n "$ac_ct_CC"; then
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5790 printf "%s\n" "$ac_ct_CC" >&6; }
5791 else
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 printf "%s\n" "no" >&6; }
5794 fi
5795
5796
5797 test -n "$ac_ct_CC" && break
5798 done
5799
5800 if test "x$ac_ct_CC" = x; then
5801 CC=""
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804 yes:)
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807 ac_tool_warned=yes ;;
5808 esac
5809 CC=$ac_ct_CC
5810 fi
5811 fi
5812
5813 fi
5814 if test -z "$CC"; then
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}clang; ac_word=$2
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 printf %s "checking for $ac_word... " >&6; }
5820 if test ${ac_cv_prog_CC+y}
5821 then :
5822 printf %s "(cached) " >&6
5823 else $as_nop
5824 if test -n "$CC"; then
5825 ac_cv_prog_CC="$CC" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830 IFS=$as_save_IFS
5831 case $as_dir in #(((
5832 '') as_dir=./ ;;
5833 */) ;;
5834 *) as_dir=$as_dir/ ;;
5835 esac
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_CC="${ac_tool_prefix}clang"
5839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 CC=$ac_cv_prog_CC
5849 if test -n "$CC"; then
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5851 printf "%s\n" "$CC" >&6; }
5852 else
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 printf "%s\n" "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 if test -z "$ac_cv_prog_CC"; then
5860 ac_ct_CC=$CC
5861 # Extract the first word of "clang", so it can be a program name with args.
5862 set dummy clang; ac_word=$2
5863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 printf %s "checking for $ac_word... " >&6; }
5865 if test ${ac_cv_prog_ac_ct_CC+y}
5866 then :
5867 printf %s "(cached) " >&6
5868 else $as_nop
5869 if test -n "$ac_ct_CC"; then
5870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875 IFS=$as_save_IFS
5876 case $as_dir in #(((
5877 '') as_dir=./ ;;
5878 */) ;;
5879 *) as_dir=$as_dir/ ;;
5880 esac
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_ac_ct_CC="clang"
5884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5885 break 2
5886 fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5894 if test -n "$ac_ct_CC"; then
5895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5896 printf "%s\n" "$ac_ct_CC" >&6; }
5897 else
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 printf "%s\n" "no" >&6; }
5900 fi
5901
5902 if test "x$ac_ct_CC" = x; then
5903 CC=""
5904 else
5905 case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911 CC=$ac_ct_CC
5912 fi
5913 else
5914 CC="$ac_cv_prog_CC"
5915 fi
5916
5917 fi
5918
5919
5920 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5922 as_fn_error $? "no acceptable C compiler found in \$PATH
5923 See \`config.log' for more details" "$LINENO" 5; }
5924
5925 # Provide some information about the compiler.
5926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5927 set X $ac_compile
5928 ac_compiler=$2
5929 for ac_option in --version -v -V -qversion -version; do
5930 { { ac_try="$ac_compiler $ac_option >&5"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5936 printf "%s\n" "$ac_try_echo"; } >&5
5937 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5938 ac_status=$?
5939 if test -s conftest.err; then
5940 sed '10a\
5941 ... rest of stderr output deleted ...
5942 10q' conftest.err >conftest.er1
5943 cat conftest.er1 >&5
5944 fi
5945 rm -f conftest.er1 conftest.err
5946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5947 test $ac_status = 0; }
5948 done
5949
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5951 printf %s "checking whether the compiler supports GNU C... " >&6; }
5952 if test ${ac_cv_c_compiler_gnu+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else $as_nop
5956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5957 /* end confdefs.h. */
5958
5959 int
5960 main (void)
5961 {
5962 #ifndef __GNUC__
5963 choke me
5964 #endif
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_compile "$LINENO"
5971 then :
5972 ac_compiler_gnu=yes
5973 else $as_nop
5974 ac_compiler_gnu=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5978
5979 fi
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5981 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5983
5984 if test $ac_compiler_gnu = yes; then
5985 GCC=yes
5986 else
5987 GCC=
5988 fi
5989 ac_test_CFLAGS=${CFLAGS+y}
5990 ac_save_CFLAGS=$CFLAGS
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5992 printf %s "checking whether $CC accepts -g... " >&6; }
5993 if test ${ac_cv_prog_cc_g+y}
5994 then :
5995 printf %s "(cached) " >&6
5996 else $as_nop
5997 ac_save_c_werror_flag=$ac_c_werror_flag
5998 ac_c_werror_flag=yes
5999 ac_cv_prog_cc_g=no
6000 CFLAGS="-g"
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003
6004 int
6005 main (void)
6006 {
6007
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"
6013 then :
6014 ac_cv_prog_cc_g=yes
6015 else $as_nop
6016 CFLAGS=""
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019
6020 int
6021 main (void)
6022 {
6023
6024 ;
6025 return 0;
6026 }
6027 _ACEOF
6028 if ac_fn_c_try_compile "$LINENO"
6029 then :
6030
6031 else $as_nop
6032 ac_c_werror_flag=$ac_save_c_werror_flag
6033 CFLAGS="-g"
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036
6037 int
6038 main (void)
6039 {
6040
6041 ;
6042 return 0;
6043 }
6044 _ACEOF
6045 if ac_fn_c_try_compile "$LINENO"
6046 then :
6047 ac_cv_prog_cc_g=yes
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6054 ac_c_werror_flag=$ac_save_c_werror_flag
6055 fi
6056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6057 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6058 if test $ac_test_CFLAGS; then
6059 CFLAGS=$ac_save_CFLAGS
6060 elif test $ac_cv_prog_cc_g = yes; then
6061 if test "$GCC" = yes; then
6062 CFLAGS="-g -O2"
6063 else
6064 CFLAGS="-g"
6065 fi
6066 else
6067 if test "$GCC" = yes; then
6068 CFLAGS="-O2"
6069 else
6070 CFLAGS=
6071 fi
6072 fi
6073 ac_prog_cc_stdc=no
6074 if test x$ac_prog_cc_stdc = xno
6075 then :
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6077 printf %s "checking for $CC option to enable C11 features... " >&6; }
6078 if test ${ac_cv_prog_cc_c11+y}
6079 then :
6080 printf %s "(cached) " >&6
6081 else $as_nop
6082 ac_cv_prog_cc_c11=no
6083 ac_save_CC=$CC
6084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086 $ac_c_conftest_c11_program
6087 _ACEOF
6088 for ac_arg in '' -std=gnu11
6089 do
6090 CC="$ac_save_CC $ac_arg"
6091 if ac_fn_c_try_compile "$LINENO"
6092 then :
6093 ac_cv_prog_cc_c11=$ac_arg
6094 fi
6095 rm -f core conftest.err conftest.$ac_objext conftest.beam
6096 test "x$ac_cv_prog_cc_c11" != "xno" && break
6097 done
6098 rm -f conftest.$ac_ext
6099 CC=$ac_save_CC
6100 fi
6101
6102 if test "x$ac_cv_prog_cc_c11" = xno
6103 then :
6104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6105 printf "%s\n" "unsupported" >&6; }
6106 else $as_nop
6107 if test "x$ac_cv_prog_cc_c11" = x
6108 then :
6109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6110 printf "%s\n" "none needed" >&6; }
6111 else $as_nop
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6113 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6114 CC="$CC $ac_cv_prog_cc_c11"
6115 fi
6116 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6117 ac_prog_cc_stdc=c11
6118 fi
6119 fi
6120 if test x$ac_prog_cc_stdc = xno
6121 then :
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6123 printf %s "checking for $CC option to enable C99 features... " >&6; }
6124 if test ${ac_cv_prog_cc_c99+y}
6125 then :
6126 printf %s "(cached) " >&6
6127 else $as_nop
6128 ac_cv_prog_cc_c99=no
6129 ac_save_CC=$CC
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 $ac_c_conftest_c99_program
6133 _ACEOF
6134 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6135 do
6136 CC="$ac_save_CC $ac_arg"
6137 if ac_fn_c_try_compile "$LINENO"
6138 then :
6139 ac_cv_prog_cc_c99=$ac_arg
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext conftest.beam
6142 test "x$ac_cv_prog_cc_c99" != "xno" && break
6143 done
6144 rm -f conftest.$ac_ext
6145 CC=$ac_save_CC
6146 fi
6147
6148 if test "x$ac_cv_prog_cc_c99" = xno
6149 then :
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6151 printf "%s\n" "unsupported" >&6; }
6152 else $as_nop
6153 if test "x$ac_cv_prog_cc_c99" = x
6154 then :
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6156 printf "%s\n" "none needed" >&6; }
6157 else $as_nop
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6159 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6160 CC="$CC $ac_cv_prog_cc_c99"
6161 fi
6162 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6163 ac_prog_cc_stdc=c99
6164 fi
6165 fi
6166 if test x$ac_prog_cc_stdc = xno
6167 then :
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6169 printf %s "checking for $CC option to enable C89 features... " >&6; }
6170 if test ${ac_cv_prog_cc_c89+y}
6171 then :
6172 printf %s "(cached) " >&6
6173 else $as_nop
6174 ac_cv_prog_cc_c89=no
6175 ac_save_CC=$CC
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 $ac_c_conftest_c89_program
6179 _ACEOF
6180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6181 do
6182 CC="$ac_save_CC $ac_arg"
6183 if ac_fn_c_try_compile "$LINENO"
6184 then :
6185 ac_cv_prog_cc_c89=$ac_arg
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.beam
6188 test "x$ac_cv_prog_cc_c89" != "xno" && break
6189 done
6190 rm -f conftest.$ac_ext
6191 CC=$ac_save_CC
6192 fi
6193
6194 if test "x$ac_cv_prog_cc_c89" = xno
6195 then :
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6197 printf "%s\n" "unsupported" >&6; }
6198 else $as_nop
6199 if test "x$ac_cv_prog_cc_c89" = x
6200 then :
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6202 printf "%s\n" "none needed" >&6; }
6203 else $as_nop
6204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6205 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6206 CC="$CC $ac_cv_prog_cc_c89"
6207 fi
6208 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6209 ac_prog_cc_stdc=c89
6210 fi
6211 fi
6212
6213 ac_ext=c
6214 ac_cpp='$CPP $CPPFLAGS'
6215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219
6220 ac_ext=c
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6226 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6227 if test ${am_cv_prog_cc_c_o+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else $as_nop
6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233
6234 int
6235 main (void)
6236 {
6237
6238 ;
6239 return 0;
6240 }
6241 _ACEOF
6242 # Make sure it works both with $CC and with simple cc.
6243 # Following AC_PROG_CC_C_O, we do the test twice because some
6244 # compilers refuse to overwrite an existing .o file with -o,
6245 # though they will create one.
6246 am_cv_prog_cc_c_o=yes
6247 for am_i in 1 2; do
6248 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6249 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); } \
6253 && test -f conftest2.$ac_objext; then
6254 : OK
6255 else
6256 am_cv_prog_cc_c_o=no
6257 break
6258 fi
6259 done
6260 rm -f core conftest*
6261 unset am_i
6262 fi
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6264 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6265 if test "$am_cv_prog_cc_c_o" != yes; then
6266 # Losing compiler, so override with the script.
6267 # FIXME: It is wrong to rewrite CC.
6268 # But if we don't then we get into trouble of one sort or another.
6269 # A longer-term fix would be to have automake use am__CC in this case,
6270 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6271 CC="$am_aux_dir/compile $CC"
6272 fi
6273 ac_ext=c
6274 ac_cpp='$CPP $CPPFLAGS'
6275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278
6279
6280 depcc="$CC" am_compiler_list=
6281
6282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6283 printf %s "checking dependency style of $depcc... " >&6; }
6284 if test ${am_cv_CC_dependencies_compiler_type+y}
6285 then :
6286 printf %s "(cached) " >&6
6287 else $as_nop
6288 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6289 # We make a subdir and do the tests there. Otherwise we can end up
6290 # making bogus files that we don't know about and never remove. For
6291 # instance it was reported that on HP-UX the gcc test will end up
6292 # making a dummy file named 'D' -- because '-MD' means "put the output
6293 # in D".
6294 rm -rf conftest.dir
6295 mkdir conftest.dir
6296 # Copy depcomp to subdir because otherwise we won't find it if we're
6297 # using a relative directory.
6298 cp "$am_depcomp" conftest.dir
6299 cd conftest.dir
6300 # We will build objects and dependencies in a subdirectory because
6301 # it helps to detect inapplicable dependency modes. For instance
6302 # both Tru64's cc and ICC support -MD to output dependencies as a
6303 # side effect of compilation, but ICC will put the dependencies in
6304 # the current directory while Tru64 will put them in the object
6305 # directory.
6306 mkdir sub
6307
6308 am_cv_CC_dependencies_compiler_type=none
6309 if test "$am_compiler_list" = ""; then
6310 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6311 fi
6312 am__universal=false
6313 case " $depcc " in #(
6314 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6315 esac
6316
6317 for depmode in $am_compiler_list; do
6318 # Setup a source with many dependencies, because some compilers
6319 # like to wrap large dependency lists on column 80 (with \), and
6320 # we should not choose a depcomp mode which is confused by this.
6321 #
6322 # We need to recreate these files for each test, as the compiler may
6323 # overwrite some of them when testing with obscure command lines.
6324 # This happens at least with the AIX C compiler.
6325 : > sub/conftest.c
6326 for i in 1 2 3 4 5 6; do
6327 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6328 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6329 # Solaris 10 /bin/sh.
6330 echo '/* dummy */' > sub/conftst$i.h
6331 done
6332 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6333
6334 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6335 # mode. It turns out that the SunPro C++ compiler does not properly
6336 # handle '-M -o', and we need to detect this. Also, some Intel
6337 # versions had trouble with output in subdirs.
6338 am__obj=sub/conftest.${OBJEXT-o}
6339 am__minus_obj="-o $am__obj"
6340 case $depmode in
6341 gcc)
6342 # This depmode causes a compiler race in universal mode.
6343 test "$am__universal" = false || continue
6344 ;;
6345 nosideeffect)
6346 # After this tag, mechanisms are not by side-effect, so they'll
6347 # only be used when explicitly requested.
6348 if test "x$enable_dependency_tracking" = xyes; then
6349 continue
6350 else
6351 break
6352 fi
6353 ;;
6354 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6355 # This compiler won't grok '-c -o', but also, the minuso test has
6356 # not run yet. These depmodes are late enough in the game, and
6357 # so weak that their functioning should not be impacted.
6358 am__obj=conftest.${OBJEXT-o}
6359 am__minus_obj=
6360 ;;
6361 none) break ;;
6362 esac
6363 if depmode=$depmode \
6364 source=sub/conftest.c object=$am__obj \
6365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6366 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6367 >/dev/null 2>conftest.err &&
6368 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6369 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6370 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6371 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6372 # icc doesn't choke on unknown options, it will just issue warnings
6373 # or remarks (even with -Werror). So we grep stderr for any message
6374 # that says an option was ignored or not supported.
6375 # When given -MP, icc 7.0 and 7.1 complain thusly:
6376 # icc: Command line warning: ignoring option '-M'; no argument required
6377 # The diagnosis changed in icc 8.0:
6378 # icc: Command line remark: option '-MP' not supported
6379 if (grep 'ignoring option' conftest.err ||
6380 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6381 am_cv_CC_dependencies_compiler_type=$depmode
6382 break
6383 fi
6384 fi
6385 done
6386
6387 cd ..
6388 rm -rf conftest.dir
6389 else
6390 am_cv_CC_dependencies_compiler_type=none
6391 fi
6392
6393 fi
6394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6395 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6396 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6397
6398 if
6399 test "x$enable_dependency_tracking" != xno \
6400 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6401 am__fastdepCC_TRUE=
6402 am__fastdepCC_FALSE='#'
6403 else
6404 am__fastdepCC_TRUE='#'
6405 am__fastdepCC_FALSE=
6406 fi
6407
6408
6409 ac_ext=c
6410 ac_cpp='$CPP $CPPFLAGS'
6411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6415 printf %s "checking how to run the C preprocessor... " >&6; }
6416 # On Suns, sometimes $CPP names a directory.
6417 if test -n "$CPP" && test -d "$CPP"; then
6418 CPP=
6419 fi
6420 if test -z "$CPP"; then
6421 if test ${ac_cv_prog_CPP+y}
6422 then :
6423 printf %s "(cached) " >&6
6424 else $as_nop
6425 # Double quotes because $CC needs to be expanded
6426 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6427 do
6428 ac_preproc_ok=false
6429 for ac_c_preproc_warn_flag in '' yes
6430 do
6431 # Use a header file that comes with gcc, so configuring glibc
6432 # with a fresh cross-compiler works.
6433 # On the NeXT, cc -E runs the code through the compiler's parser,
6434 # not just through cpp. "Syntax error" is here to catch this case.
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 #include <limits.h>
6438 Syntax error
6439 _ACEOF
6440 if ac_fn_c_try_cpp "$LINENO"
6441 then :
6442
6443 else $as_nop
6444 # Broken: fails on valid input.
6445 continue
6446 fi
6447 rm -f conftest.err conftest.i conftest.$ac_ext
6448
6449 # OK, works on sane cases. Now check whether nonexistent headers
6450 # can be detected and how.
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6453 #include <ac_nonexistent.h>
6454 _ACEOF
6455 if ac_fn_c_try_cpp "$LINENO"
6456 then :
6457 # Broken: success on invalid input.
6458 continue
6459 else $as_nop
6460 # Passes both tests.
6461 ac_preproc_ok=:
6462 break
6463 fi
6464 rm -f conftest.err conftest.i conftest.$ac_ext
6465
6466 done
6467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6468 rm -f conftest.i conftest.err conftest.$ac_ext
6469 if $ac_preproc_ok
6470 then :
6471 break
6472 fi
6473
6474 done
6475 ac_cv_prog_CPP=$CPP
6476
6477 fi
6478 CPP=$ac_cv_prog_CPP
6479 else
6480 ac_cv_prog_CPP=$CPP
6481 fi
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6483 printf "%s\n" "$CPP" >&6; }
6484 ac_preproc_ok=false
6485 for ac_c_preproc_warn_flag in '' yes
6486 do
6487 # Use a header file that comes with gcc, so configuring glibc
6488 # with a fresh cross-compiler works.
6489 # On the NeXT, cc -E runs the code through the compiler's parser,
6490 # not just through cpp. "Syntax error" is here to catch this case.
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6492 /* end confdefs.h. */
6493 #include <limits.h>
6494 Syntax error
6495 _ACEOF
6496 if ac_fn_c_try_cpp "$LINENO"
6497 then :
6498
6499 else $as_nop
6500 # Broken: fails on valid input.
6501 continue
6502 fi
6503 rm -f conftest.err conftest.i conftest.$ac_ext
6504
6505 # OK, works on sane cases. Now check whether nonexistent headers
6506 # can be detected and how.
6507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6508 /* end confdefs.h. */
6509 #include <ac_nonexistent.h>
6510 _ACEOF
6511 if ac_fn_c_try_cpp "$LINENO"
6512 then :
6513 # Broken: success on invalid input.
6514 continue
6515 else $as_nop
6516 # Passes both tests.
6517 ac_preproc_ok=:
6518 break
6519 fi
6520 rm -f conftest.err conftest.i conftest.$ac_ext
6521
6522 done
6523 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6524 rm -f conftest.i conftest.err conftest.$ac_ext
6525 if $ac_preproc_ok
6526 then :
6527
6528 else $as_nop
6529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6530 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6532 See \`config.log' for more details" "$LINENO" 5; }
6533 fi
6534
6535 ac_ext=c
6536 ac_cpp='$CPP $CPPFLAGS'
6537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6540
6541
6542
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
6544 printf %s "checking for variable-length arrays... " >&6; }
6545 if test ${ac_cv_c_vararrays+y}
6546 then :
6547 printf %s "(cached) " >&6
6548 else $as_nop
6549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6550 /* end confdefs.h. */
6551 #ifdef __STDC_NO_VLA__
6552 defined
6553 #endif
6554
6555 _ACEOF
6556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6557 $EGREP "defined" >/dev/null 2>&1
6558 then :
6559 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
6560 else $as_nop
6561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562 /* end confdefs.h. */
6563 /* Test for VLA support. This test is partly inspired
6564 from examples in the C standard. Use at least two VLA
6565 functions to detect the GCC 3.4.3 bug described in:
6566 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
6567 */
6568 #ifdef __STDC_NO_VLA__
6569 syntax error;
6570 #else
6571 extern int n;
6572 int B[100];
6573 int fvla (int m, int C[m][m]);
6574
6575 int
6576 simple (int count, int all[static count])
6577 {
6578 return all[count - 1];
6579 }
6580
6581 int
6582 fvla (int m, int C[m][m])
6583 {
6584 typedef int VLA[m][m];
6585 VLA x;
6586 int D[m];
6587 static int (*q)[m] = &B;
6588 int (*s)[n] = q;
6589 return C && &x[0][0] == &D[0] && &D[0] == s[0];
6590 }
6591 #endif
6592
6593 int
6594 main (void)
6595 {
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_compile "$LINENO"
6602 then :
6603 ac_cv_c_vararrays=yes
6604 else $as_nop
6605 ac_cv_c_vararrays=no
6606 fi
6607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6608 fi
6609 rm -rf conftest*
6610
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
6613 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
6614 if test "$ac_cv_c_vararrays" = yes; then
6615
6616 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
6617
6618 elif test "$ac_cv_c_vararrays" = no; then
6619
6620 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
6621
6622 fi
6623
6624 ac_ext=c
6625 ac_cpp='$CPP $CPPFLAGS'
6626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6630 printf %s "checking how to run the C preprocessor... " >&6; }
6631 # On Suns, sometimes $CPP names a directory.
6632 if test -n "$CPP" && test -d "$CPP"; then
6633 CPP=
6634 fi
6635 if test -z "$CPP"; then
6636 if test ${ac_cv_prog_CPP+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 # Double quotes because $CC needs to be expanded
6641 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6642 do
6643 ac_preproc_ok=false
6644 for ac_c_preproc_warn_flag in '' yes
6645 do
6646 # Use a header file that comes with gcc, so configuring glibc
6647 # with a fresh cross-compiler works.
6648 # On the NeXT, cc -E runs the code through the compiler's parser,
6649 # not just through cpp. "Syntax error" is here to catch this case.
6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6651 /* end confdefs.h. */
6652 #include <limits.h>
6653 Syntax error
6654 _ACEOF
6655 if ac_fn_c_try_cpp "$LINENO"
6656 then :
6657
6658 else $as_nop
6659 # Broken: fails on valid input.
6660 continue
6661 fi
6662 rm -f conftest.err conftest.i conftest.$ac_ext
6663
6664 # OK, works on sane cases. Now check whether nonexistent headers
6665 # can be detected and how.
6666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 #include <ac_nonexistent.h>
6669 _ACEOF
6670 if ac_fn_c_try_cpp "$LINENO"
6671 then :
6672 # Broken: success on invalid input.
6673 continue
6674 else $as_nop
6675 # Passes both tests.
6676 ac_preproc_ok=:
6677 break
6678 fi
6679 rm -f conftest.err conftest.i conftest.$ac_ext
6680
6681 done
6682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6683 rm -f conftest.i conftest.err conftest.$ac_ext
6684 if $ac_preproc_ok
6685 then :
6686 break
6687 fi
6688
6689 done
6690 ac_cv_prog_CPP=$CPP
6691
6692 fi
6693 CPP=$ac_cv_prog_CPP
6694 else
6695 ac_cv_prog_CPP=$CPP
6696 fi
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6698 printf "%s\n" "$CPP" >&6; }
6699 ac_preproc_ok=false
6700 for ac_c_preproc_warn_flag in '' yes
6701 do
6702 # Use a header file that comes with gcc, so configuring glibc
6703 # with a fresh cross-compiler works.
6704 # On the NeXT, cc -E runs the code through the compiler's parser,
6705 # not just through cpp. "Syntax error" is here to catch this case.
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6708 #include <limits.h>
6709 Syntax error
6710 _ACEOF
6711 if ac_fn_c_try_cpp "$LINENO"
6712 then :
6713
6714 else $as_nop
6715 # Broken: fails on valid input.
6716 continue
6717 fi
6718 rm -f conftest.err conftest.i conftest.$ac_ext
6719
6720 # OK, works on sane cases. Now check whether nonexistent headers
6721 # can be detected and how.
6722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723 /* end confdefs.h. */
6724 #include <ac_nonexistent.h>
6725 _ACEOF
6726 if ac_fn_c_try_cpp "$LINENO"
6727 then :
6728 # Broken: success on invalid input.
6729 continue
6730 else $as_nop
6731 # Passes both tests.
6732 ac_preproc_ok=:
6733 break
6734 fi
6735 rm -f conftest.err conftest.i conftest.$ac_ext
6736
6737 done
6738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6739 rm -f conftest.i conftest.err conftest.$ac_ext
6740 if $ac_preproc_ok
6741 then :
6742
6743 else $as_nop
6744 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6745 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6746 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6747 See \`config.log' for more details" "$LINENO" 5; }
6748 fi
6749
6750 ac_ext=c
6751 ac_cpp='$CPP $CPPFLAGS'
6752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6755
6756 if test -n "$ac_tool_prefix"; then
6757 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6758 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 printf %s "checking for $ac_word... " >&6; }
6761 if test ${ac_cv_prog_RANLIB+y}
6762 then :
6763 printf %s "(cached) " >&6
6764 else $as_nop
6765 if test -n "$RANLIB"; then
6766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771 IFS=$as_save_IFS
6772 case $as_dir in #(((
6773 '') as_dir=./ ;;
6774 */) ;;
6775 *) as_dir=$as_dir/ ;;
6776 esac
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6779 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6781 break 2
6782 fi
6783 done
6784 done
6785 IFS=$as_save_IFS
6786
6787 fi
6788 fi
6789 RANLIB=$ac_cv_prog_RANLIB
6790 if test -n "$RANLIB"; then
6791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6792 printf "%s\n" "$RANLIB" >&6; }
6793 else
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6795 printf "%s\n" "no" >&6; }
6796 fi
6797
6798
6799 fi
6800 if test -z "$ac_cv_prog_RANLIB"; then
6801 ac_ct_RANLIB=$RANLIB
6802 # Extract the first word of "ranlib", so it can be a program name with args.
6803 set dummy ranlib; ac_word=$2
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 printf %s "checking for $ac_word... " >&6; }
6806 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else $as_nop
6810 if test -n "$ac_ct_RANLIB"; then
6811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 case $as_dir in #(((
6818 '') as_dir=./ ;;
6819 */) ;;
6820 *) as_dir=$as_dir/ ;;
6821 esac
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_ac_ct_RANLIB="ranlib"
6825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835 if test -n "$ac_ct_RANLIB"; then
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6838 else
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 printf "%s\n" "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_RANLIB" = x; then
6844 RANLIB=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 RANLIB=$ac_ct_RANLIB
6853 fi
6854 else
6855 RANLIB="$ac_cv_prog_RANLIB"
6856 fi
6857
6858
6859
6860
6861
6862
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6864 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6865 set x ${MAKE-make}
6866 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6867 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6868 then :
6869 printf %s "(cached) " >&6
6870 else $as_nop
6871 cat >conftest.make <<\_ACEOF
6872 SHELL = /bin/sh
6873 all:
6874 @echo '@@@%%%=$(MAKE)=@@@%%%'
6875 _ACEOF
6876 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6877 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6878 *@@@%%%=?*=@@@%%%*)
6879 eval ac_cv_prog_make_${ac_make}_set=yes;;
6880 *)
6881 eval ac_cv_prog_make_${ac_make}_set=no;;
6882 esac
6883 rm -f conftest.make
6884 fi
6885 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887 printf "%s\n" "yes" >&6; }
6888 SET_MAKE=
6889 else
6890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 printf "%s\n" "no" >&6; }
6892 SET_MAKE="MAKE=${MAKE-make}"
6893 fi
6894
6895
6896 # support/ builds libsupport.a, allow for cross version of ar
6897
6898 if test -n "$ac_tool_prefix"; then
6899 for ac_prog in ar lib "link -lib"
6900 do
6901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 printf %s "checking for $ac_word... " >&6; }
6905 if test ${ac_cv_prog_AR+y}
6906 then :
6907 printf %s "(cached) " >&6
6908 else $as_nop
6909 if test -n "$AR"; then
6910 ac_cv_prog_AR="$AR" # Let the user override the test.
6911 else
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915 IFS=$as_save_IFS
6916 case $as_dir in #(((
6917 '') as_dir=./ ;;
6918 */) ;;
6919 *) as_dir=$as_dir/ ;;
6920 esac
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6923 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6925 break 2
6926 fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931 fi
6932 fi
6933 AR=$ac_cv_prog_AR
6934 if test -n "$AR"; then
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6936 printf "%s\n" "$AR" >&6; }
6937 else
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 printf "%s\n" "no" >&6; }
6940 fi
6941
6942
6943 test -n "$AR" && break
6944 done
6945 fi
6946 if test -z "$AR"; then
6947 ac_ct_AR=$AR
6948 for ac_prog in ar lib "link -lib"
6949 do
6950 # Extract the first word of "$ac_prog", so it can be a program name with args.
6951 set dummy $ac_prog; ac_word=$2
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 printf %s "checking for $ac_word... " >&6; }
6954 if test ${ac_cv_prog_ac_ct_AR+y}
6955 then :
6956 printf %s "(cached) " >&6
6957 else $as_nop
6958 if test -n "$ac_ct_AR"; then
6959 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6960 else
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964 IFS=$as_save_IFS
6965 case $as_dir in #(((
6966 '') as_dir=./ ;;
6967 */) ;;
6968 *) as_dir=$as_dir/ ;;
6969 esac
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_ac_ct_AR="$ac_prog"
6973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976 done
6977 done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6983 if test -n "$ac_ct_AR"; then
6984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6985 printf "%s\n" "$ac_ct_AR" >&6; }
6986 else
6987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 printf "%s\n" "no" >&6; }
6989 fi
6990
6991
6992 test -n "$ac_ct_AR" && break
6993 done
6994
6995 if test "x$ac_ct_AR" = x; then
6996 AR="false"
6997 else
6998 case $cross_compiling:$ac_tool_warned in
6999 yes:)
7000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7002 ac_tool_warned=yes ;;
7003 esac
7004 AR=$ac_ct_AR
7005 fi
7006 fi
7007
7008 : ${AR=ar}
7009
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7011 printf %s "checking the archiver ($AR) interface... " >&6; }
7012 if test ${am_cv_ar_interface+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else $as_nop
7016 ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022 am_cv_ar_interface=ar
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 int some_variable = 0;
7026 _ACEOF
7027 if ac_fn_c_try_compile "$LINENO"
7028 then :
7029 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7031 (eval $am_ar_try) 2>&5
7032 ac_status=$?
7033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }
7035 if test "$ac_status" -eq 0; then
7036 am_cv_ar_interface=ar
7037 else
7038 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7040 (eval $am_ar_try) 2>&5
7041 ac_status=$?
7042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }
7044 if test "$ac_status" -eq 0; then
7045 am_cv_ar_interface=lib
7046 else
7047 am_cv_ar_interface=unknown
7048 fi
7049 fi
7050 rm -f conftest.lib libconftest.a
7051
7052 fi
7053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7054 ac_ext=c
7055 ac_cpp='$CPP $CPPFLAGS'
7056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7059
7060 fi
7061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7062 printf "%s\n" "$am_cv_ar_interface" >&6; }
7063
7064 case $am_cv_ar_interface in
7065 ar)
7066 ;;
7067 lib)
7068 # Microsoft lib, so override with the ar-lib wrapper script.
7069 # FIXME: It is wrong to rewrite AR.
7070 # But if we don't then we get into trouble of one sort or another.
7071 # A longer-term fix would be to have automake use am__AR in this case,
7072 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7073 # similar.
7074 AR="$am_aux_dir/ar-lib $AR"
7075 ;;
7076 unknown)
7077 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7078 ;;
7079 esac
7080
7081
7082 ARFLAGS=cru # set default
7083
7084
7085 # This is mainly for my use during testing and development.
7086 # Yes, it's a bit of a hack.
7087 # Keep in sync with same code in extension/configure.ac
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special development options" >&5
7089 printf %s "checking for special development options... " >&6; }
7090 if test -f $srcdir/.developing
7091 then
7092 # add other debug flags as appropriate, save GAWKDEBUG for emergencies
7093 CFLAGS="$CFLAGS -DARRAYDEBUG -DYYDEBUG -DLOCALEDEBUG -DMEMDEBUG"
7094
7095 # turn on compiler warnings if we're doing development
7096 # enable debugging using macros also
7097 if test "$GCC" = yes
7098 then
7099 CFLAGS="$CFLAGS -Wall -fno-builtin"
7100 fi
7101
7102 if grep -i '^mallocdebug$' $srcdir/.developing > /dev/null
7103 then
7104 CFLAGS="$CFLAGS -DUSE_REAL_MALLOC"
7105 fi
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7107 printf "%s\n" "yes" >&6; }
7108 else
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7111 CFLAGS="$CFLAGS -DNDEBUG" # turn off assertions
7112 fi
7113
7114
7115
7116 # shared library suffix for dynamic loading:
7117
7118
7119
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for z/OS USS compilation" >&5
7121 printf %s "checking for z/OS USS compilation... " >&6; }
7122 if test ${ac_cv_zos_uss+y}
7123 then :
7124 printf %s "(cached) " >&6
7125 else $as_nop
7126
7127 if test "OS/390" = "`uname`"
7128 then
7129 ac_cv_zos_uss=yes
7130 else
7131 ac_cv_zos_uss=no
7132 fi
7133
7134 fi
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_zos_uss}" >&5
7136 printf "%s\n" "${ac_cv_zos_uss}" >&6; }
7137 if test "x$ac_cv_zos_uss" = "xyes"
7138 then
7139 ac_zos_uss_cc_id=unknown
7140 echo " $CC " | $EGREP ' (/bin/)?c89[ |_]' >/dev/null && ac_zos_uss_cc_id=c89
7141 echo " $CC " | $EGREP ' (/bin/)?c99[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc
7142 echo " $CC " | $EGREP ' (/bin/)?cc[ |_]' >/dev/null && ac_zos_uss_cc_id=cc
7143 echo " $CC " | $EGREP ' (/bin/)?xlc[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc
7144 echo " $CC " | $EGREP ' (/bin/)?xlC[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc++
7145 echo " $CC " | $EGREP ' (/bin/)?xlc\+\+[ |_]' >/dev/null && ac_zos_uss_cc_id=xlc++
7146 test "x$GCC" = "xyes" && ac_zos_uss_cc_id=gcc
7147 CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE -D_OPEN_SYS_UNLOCKED_EXT"
7148 test "$ac_zos_uss_cc_id" != xlc++ && CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=600"
7149 case "$ac_zos_uss_cc_id" in
7150 c89)
7151 if test -n "$_C89_OPTIONS"
7152 then
7153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: CC = $CC" >&5
7154 printf "%s\n" "$as_me: CC = $CC" >&6;}
7155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: _C89_OPTIONS = $_C89_OPTIONS" >&5
7156 printf "%s\n" "$as_me: _C89_OPTIONS = $_C89_OPTIONS" >&6;}
7157 else
7158 as_fn_error $? "c89-setup-required
7159 To build GNU Awk using \"c89\", please set
7160
7161 _C89_OPTIONS=\"-W c,langlvl(stdc99,libext),haltonmsg(CCN3296)\"
7162
7163 in your environment, and reconfigure. (The above flags cannot be specified
7164 in CFLAGS/CPPFLAGS, due to the parentheses.)" "$LINENO" 5
7165 fi
7166 ;;
7167 gcc)
7168 ;;
7169 cc)
7170 as_fn_error $? "cc-invalid
7171 The z/OS \"cc\" compiler does not build GNU Awk correctly.
7172
7173 If the \"xlc\" or \"c89\" compiler is available, please set CC accordingly
7174 and reconfigure. (\"xlc\" is the recommended compiler on z/OS.)" "$LINENO" 5
7175 ;;
7176 xlc*)
7177 CFLAGS="$CFLAGS -qlanglvl=stdc99:libext"
7178 cat >zos-cc <<EOF
7179 #!/bin/sh
7180 #
7181 # This wrapper script addresses two annoying peculiarities of the IBM
7182 # xlc/c99 compiler on z/OS:
7183 #
7184 # 1. Missing header files are considered warnings by default rather
7185 # than fatal errors;
7186 #
7187 # 2. Include directories specified with -I are searched _after_ the
7188 # system include directories (for #include<> directives) rather
7189 # than before.
7190 #
7191 # This script allows the code and the build system to assume standard
7192 # compiler behavior.
7193 #
7194
7195 PS4='zos-cc: '
7196 REAL_CC="$CC"
7197
7198 set -x
7199 \$REAL_CC -qhaltonmsg=CCN3296 -qnosearch "\$@" -qsearch=/usr/include
7200 EOF
7201 chmod +x zos-cc
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: wrapping $CC with zos-cc to obtain standard behavior" >&5
7203 printf "%s\n" "$as_me: wrapping $CC with zos-cc to obtain standard behavior" >&6;}
7204 CC="`pwd`/zos-cc"
7205 ;;
7206 *)
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized compiler environment" >&5
7208 printf "%s\n" "$as_me: WARNING: unrecognized compiler environment" >&2;}
7209 ;;
7210 esac
7211 fi # ac_cv_zos_uss = yes
7212
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
7214 printf %s "checking for library containing strerror... " >&6; }
7215 if test ${ac_cv_search_strerror+y}
7216 then :
7217 printf %s "(cached) " >&6
7218 else $as_nop
7219 ac_func_search_save_LIBS=$LIBS
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7222
7223 /* Override any GCC internal prototype to avoid an error.
7224 Use char because int might match the return type of a GCC
7225 builtin and then its argument prototype would still apply. */
7226 char strerror ();
7227 int
7228 main (void)
7229 {
7230 return strerror ();
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 for ac_lib in '' cposix
7236 do
7237 if test -z "$ac_lib"; then
7238 ac_res="none required"
7239 else
7240 ac_res=-l$ac_lib
7241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7242 fi
7243 if ac_fn_c_try_link "$LINENO"
7244 then :
7245 ac_cv_search_strerror=$ac_res
7246 fi
7247 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7248 conftest$ac_exeext
7249 if test ${ac_cv_search_strerror+y}
7250 then :
7251 break
7252 fi
7253 done
7254 if test ${ac_cv_search_strerror+y}
7255 then :
7256
7257 else $as_nop
7258 ac_cv_search_strerror=no
7259 fi
7260 rm conftest.$ac_ext
7261 LIBS=$ac_func_search_save_LIBS
7262 fi
7263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
7264 printf "%s\n" "$ac_cv_search_strerror" >&6; }
7265 ac_res=$ac_cv_search_strerror
7266 if test "$ac_res" != no
7267 then :
7268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7269
7270 fi
7271
7272 # Check whether --enable-largefile was given.
7273 if test ${enable_largefile+y}
7274 then :
7275 enableval=$enable_largefile;
7276 fi
7277
7278 if test "$enable_largefile" != no; then
7279
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7281 printf %s "checking for special C compiler options needed for large files... " >&6; }
7282 if test ${ac_cv_sys_largefile_CC+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else $as_nop
7286 ac_cv_sys_largefile_CC=no
7287 if test "$GCC" != yes; then
7288 ac_save_CC=$CC
7289 while :; do
7290 # IRIX 6.2 and later do not support large files by default,
7291 # so use the C compiler's -n32 option if that helps.
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 #include <sys/types.h>
7295 /* Check that off_t can represent 2**63 - 1 correctly.
7296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7297 since some C++ compilers masquerading as C compilers
7298 incorrectly reject 9223372036854775807. */
7299 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7301 && LARGE_OFF_T % 2147483647 == 1)
7302 ? 1 : -1];
7303 int
7304 main (void)
7305 {
7306
7307 ;
7308 return 0;
7309 }
7310 _ACEOF
7311 if ac_fn_c_try_compile "$LINENO"
7312 then :
7313 break
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext conftest.beam
7316 CC="$CC -n32"
7317 if ac_fn_c_try_compile "$LINENO"
7318 then :
7319 ac_cv_sys_largefile_CC=' -n32'; break
7320 fi
7321 rm -f core conftest.err conftest.$ac_objext conftest.beam
7322 break
7323 done
7324 CC=$ac_save_CC
7325 rm -f conftest.$ac_ext
7326 fi
7327 fi
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7329 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7330 if test "$ac_cv_sys_largefile_CC" != no; then
7331 CC=$CC$ac_cv_sys_largefile_CC
7332 fi
7333
7334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7335 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7336 if test ${ac_cv_sys_file_offset_bits+y}
7337 then :
7338 printf %s "(cached) " >&6
7339 else $as_nop
7340 while :; do
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #include <sys/types.h>
7344 /* Check that off_t can represent 2**63 - 1 correctly.
7345 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7346 since some C++ compilers masquerading as C compilers
7347 incorrectly reject 9223372036854775807. */
7348 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7349 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7350 && LARGE_OFF_T % 2147483647 == 1)
7351 ? 1 : -1];
7352 int
7353 main (void)
7354 {
7355
7356 ;
7357 return 0;
7358 }
7359 _ACEOF
7360 if ac_fn_c_try_compile "$LINENO"
7361 then :
7362 ac_cv_sys_file_offset_bits=no; break
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7367 #define _FILE_OFFSET_BITS 64
7368 #include <sys/types.h>
7369 /* Check that off_t can represent 2**63 - 1 correctly.
7370 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7371 since some C++ compilers masquerading as C compilers
7372 incorrectly reject 9223372036854775807. */
7373 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7374 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7375 && LARGE_OFF_T % 2147483647 == 1)
7376 ? 1 : -1];
7377 int
7378 main (void)
7379 {
7380
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 if ac_fn_c_try_compile "$LINENO"
7386 then :
7387 ac_cv_sys_file_offset_bits=64; break
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7390 ac_cv_sys_file_offset_bits=unknown
7391 break
7392 done
7393 fi
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7395 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7396 case $ac_cv_sys_file_offset_bits in #(
7397 no | unknown) ;;
7398 *)
7399 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7400 ;;
7401 esac
7402 rm -rf conftest*
7403 if test $ac_cv_sys_file_offset_bits = unknown; then
7404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7405 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7406 if test ${ac_cv_sys_large_files+y}
7407 then :
7408 printf %s "(cached) " >&6
7409 else $as_nop
7410 while :; do
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7413 #include <sys/types.h>
7414 /* Check that off_t can represent 2**63 - 1 correctly.
7415 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7416 since some C++ compilers masquerading as C compilers
7417 incorrectly reject 9223372036854775807. */
7418 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7419 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7420 && LARGE_OFF_T % 2147483647 == 1)
7421 ? 1 : -1];
7422 int
7423 main (void)
7424 {
7425
7426 ;
7427 return 0;
7428 }
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"
7431 then :
7432 ac_cv_sys_large_files=no; break
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #define _LARGE_FILES 1
7438 #include <sys/types.h>
7439 /* Check that off_t can represent 2**63 - 1 correctly.
7440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7441 since some C++ compilers masquerading as C compilers
7442 incorrectly reject 9223372036854775807. */
7443 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7445 && LARGE_OFF_T % 2147483647 == 1)
7446 ? 1 : -1];
7447 int
7448 main (void)
7449 {
7450
7451 ;
7452 return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_compile "$LINENO"
7456 then :
7457 ac_cv_sys_large_files=1; break
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7460 ac_cv_sys_large_files=unknown
7461 break
7462 done
7463 fi
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7465 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7466 case $ac_cv_sys_large_files in #(
7467 no | unknown) ;;
7468 *)
7469 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7470 ;;
7471 esac
7472 rm -rf conftest*
7473 fi
7474 fi
7475
7476
7477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we are using EBCDIC" >&5
7478 printf %s "checking if we are using EBCDIC... " >&6; }
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7481 #if 'a' == 0x81
7482 gnu_gawk_in_ebcdic
7483 #endif
7484 _ACEOF
7485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7486 $EGREP "gnu_gawk_in_ebcdic" >/dev/null 2>&1
7487 then :
7488
7489 printf "%s\n" "#define USE_EBCDIC 1" >>confdefs.h
7490
7491 use_ebcdic=yes
7492 else $as_nop
7493 use_ebcdic=no
7494 fi
7495 rm -rf conftest*
7496
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_ebcdic" >&5
7498 printf "%s\n" "$use_ebcdic" >&6; }
7499 if test "$use_ebcdic" = yes
7500 then
7501 ZOS_FAIL='; echo Expect $@ to fail on z/OS.'
7502 fi
7503
7504
7505 ac_ext=c
7506 ac_cpp='$CPP $CPPFLAGS'
7507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7510
7511
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7513 printf %s "checking for a sed that does not truncate output... " >&6; }
7514 if test ${ac_cv_path_SED+y}
7515 then :
7516 printf %s "(cached) " >&6
7517 else $as_nop
7518 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7519 for ac_i in 1 2 3 4 5 6 7; do
7520 ac_script="$ac_script$as_nl$ac_script"
7521 done
7522 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7523 { ac_script=; unset ac_script;}
7524 if test -z "$SED"; then
7525 ac_path_SED_found=false
7526 # Loop through the user's path and test for each of PROGNAME-LIST
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530 IFS=$as_save_IFS
7531 case $as_dir in #(((
7532 '') as_dir=./ ;;
7533 */) ;;
7534 *) as_dir=$as_dir/ ;;
7535 esac
7536 for ac_prog in sed gsed
7537 do
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7540 as_fn_executable_p "$ac_path_SED" || continue
7541 # Check for GNU ac_path_SED and select it if it is found.
7542 # Check for GNU $ac_path_SED
7543 case `"$ac_path_SED" --version 2>&1` in
7544 *GNU*)
7545 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7546 *)
7547 ac_count=0
7548 printf %s 0123456789 >"conftest.in"
7549 while :
7550 do
7551 cat "conftest.in" "conftest.in" >"conftest.tmp"
7552 mv "conftest.tmp" "conftest.in"
7553 cp "conftest.in" "conftest.nl"
7554 printf "%s\n" '' >> "conftest.nl"
7555 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7557 as_fn_arith $ac_count + 1 && ac_count=$as_val
7558 if test $ac_count -gt ${ac_path_SED_max-0}; then
7559 # Best one so far, save it but keep looking for a better one
7560 ac_cv_path_SED="$ac_path_SED"
7561 ac_path_SED_max=$ac_count
7562 fi
7563 # 10*(2^10) chars as input seems more than enough
7564 test $ac_count -gt 10 && break
7565 done
7566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7567 esac
7568
7569 $ac_path_SED_found && break 3
7570 done
7571 done
7572 done
7573 IFS=$as_save_IFS
7574 if test -z "$ac_cv_path_SED"; then
7575 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7576 fi
7577 else
7578 ac_cv_path_SED=$SED
7579 fi
7580
7581 fi
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7583 printf "%s\n" "$ac_cv_path_SED" >&6; }
7584 SED="$ac_cv_path_SED"
7585 rm -f conftest.sed
7586
7587
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7589 printf %s "checking whether NLS is requested... " >&6; }
7590 # Check whether --enable-nls was given.
7591 if test ${enable_nls+y}
7592 then :
7593 enableval=$enable_nls; USE_NLS=$enableval
7594 else $as_nop
7595 USE_NLS=yes
7596 fi
7597
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7599 printf "%s\n" "$USE_NLS" >&6; }
7600
7601
7602
7603
7604 GETTEXT_MACRO_VERSION=0.20
7605
7606
7607
7608
7609 # Prepare PATH_SEPARATOR.
7610 # The user is always right.
7611 if test "${PATH_SEPARATOR+set}" != set; then
7612 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7613 # contains only /bin. Note that ksh looks also at the FPATH variable,
7614 # so we have to set that as well for the test.
7615 PATH_SEPARATOR=:
7616 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7617 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7618 || PATH_SEPARATOR=';'
7619 }
7620 fi
7621
7622 # Find out how to test for executable files. Don't use a zero-byte file,
7623 # as systems may use methods other than mode bits to determine executability.
7624 cat >conf$$.file <<_ASEOF
7625 #! /bin/sh
7626 exit 0
7627 _ASEOF
7628 chmod +x conf$$.file
7629 if test -x conf$$.file >/dev/null 2>&1; then
7630 ac_executable_p="test -x"
7631 else
7632 ac_executable_p="test -f"
7633 fi
7634 rm -f conf$$.file
7635
7636 # Extract the first word of "msgfmt", so it can be a program name with args.
7637 set dummy msgfmt; ac_word=$2
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 printf %s "checking for $ac_word... " >&6; }
7640 if test ${ac_cv_path_MSGFMT+y}
7641 then :
7642 printf %s "(cached) " >&6
7643 else $as_nop
7644 case "$MSGFMT" in
7645 [\\/]* | ?:[\\/]*)
7646 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7647 ;;
7648 *)
7649 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7650 for ac_dir in $PATH; do
7651 IFS="$ac_save_IFS"
7652 test -z "$ac_dir" && ac_dir=.
7653 for ac_exec_ext in '' $ac_executable_extensions; do
7654 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7655 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7656 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
7657 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7658 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7659 break 2
7660 fi
7661 fi
7662 done
7663 done
7664 IFS="$ac_save_IFS"
7665 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7666 ;;
7667 esac
7668 fi
7669 MSGFMT="$ac_cv_path_MSGFMT"
7670 if test "$MSGFMT" != ":"; then
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7672 printf "%s\n" "$MSGFMT" >&6; }
7673 else
7674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 printf "%s\n" "no" >&6; }
7676 fi
7677
7678 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7679 set dummy gmsgfmt; ac_word=$2
7680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 printf %s "checking for $ac_word... " >&6; }
7682 if test ${ac_cv_path_GMSGFMT+y}
7683 then :
7684 printf %s "(cached) " >&6
7685 else $as_nop
7686 case $GMSGFMT in
7687 [\\/]* | ?:[\\/]*)
7688 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7689 ;;
7690 *)
7691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 for as_dir in $PATH
7693 do
7694 IFS=$as_save_IFS
7695 case $as_dir in #(((
7696 '') as_dir=./ ;;
7697 */) ;;
7698 *) as_dir=$as_dir/ ;;
7699 esac
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7702 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
7703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7704 break 2
7705 fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7711 ;;
7712 esac
7713 fi
7714 GMSGFMT=$ac_cv_path_GMSGFMT
7715 if test -n "$GMSGFMT"; then
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7717 printf "%s\n" "$GMSGFMT" >&6; }
7718 else
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 printf "%s\n" "no" >&6; }
7721 fi
7722
7723
7724
7725 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7726 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7727 *) GMSGFMT_015=$GMSGFMT ;;
7728 esac
7729
7730
7731
7732 # Prepare PATH_SEPARATOR.
7733 # The user is always right.
7734 if test "${PATH_SEPARATOR+set}" != set; then
7735 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7736 # contains only /bin. Note that ksh looks also at the FPATH variable,
7737 # so we have to set that as well for the test.
7738 PATH_SEPARATOR=:
7739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7740 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7741 || PATH_SEPARATOR=';'
7742 }
7743 fi
7744
7745 # Find out how to test for executable files. Don't use a zero-byte file,
7746 # as systems may use methods other than mode bits to determine executability.
7747 cat >conf$$.file <<_ASEOF
7748 #! /bin/sh
7749 exit 0
7750 _ASEOF
7751 chmod +x conf$$.file
7752 if test -x conf$$.file >/dev/null 2>&1; then
7753 ac_executable_p="test -x"
7754 else
7755 ac_executable_p="test -f"
7756 fi
7757 rm -f conf$$.file
7758
7759 # Extract the first word of "xgettext", so it can be a program name with args.
7760 set dummy xgettext; ac_word=$2
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 printf %s "checking for $ac_word... " >&6; }
7763 if test ${ac_cv_path_XGETTEXT+y}
7764 then :
7765 printf %s "(cached) " >&6
7766 else $as_nop
7767 case "$XGETTEXT" in
7768 [\\/]* | ?:[\\/]*)
7769 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7770 ;;
7771 *)
7772 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7773 for ac_dir in $PATH; do
7774 IFS="$ac_save_IFS"
7775 test -z "$ac_dir" && ac_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7778 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7779 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7780 (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
7781 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7782 break 2
7783 fi
7784 fi
7785 done
7786 done
7787 IFS="$ac_save_IFS"
7788 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7789 ;;
7790 esac
7791 fi
7792 XGETTEXT="$ac_cv_path_XGETTEXT"
7793 if test "$XGETTEXT" != ":"; then
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7795 printf "%s\n" "$XGETTEXT" >&6; }
7796 else
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 printf "%s\n" "no" >&6; }
7799 fi
7800
7801 rm -f messages.po
7802
7803 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7804 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7805 *) XGETTEXT_015=$XGETTEXT ;;
7806 esac
7807
7808
7809
7810 # Prepare PATH_SEPARATOR.
7811 # The user is always right.
7812 if test "${PATH_SEPARATOR+set}" != set; then
7813 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7814 # contains only /bin. Note that ksh looks also at the FPATH variable,
7815 # so we have to set that as well for the test.
7816 PATH_SEPARATOR=:
7817 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7818 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7819 || PATH_SEPARATOR=';'
7820 }
7821 fi
7822
7823 # Find out how to test for executable files. Don't use a zero-byte file,
7824 # as systems may use methods other than mode bits to determine executability.
7825 cat >conf$$.file <<_ASEOF
7826 #! /bin/sh
7827 exit 0
7828 _ASEOF
7829 chmod +x conf$$.file
7830 if test -x conf$$.file >/dev/null 2>&1; then
7831 ac_executable_p="test -x"
7832 else
7833 ac_executable_p="test -f"
7834 fi
7835 rm -f conf$$.file
7836
7837 # Extract the first word of "msgmerge", so it can be a program name with args.
7838 set dummy msgmerge; ac_word=$2
7839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 printf %s "checking for $ac_word... " >&6; }
7841 if test ${ac_cv_path_MSGMERGE+y}
7842 then :
7843 printf %s "(cached) " >&6
7844 else $as_nop
7845 case "$MSGMERGE" in
7846 [\\/]* | ?:[\\/]*)
7847 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7848 ;;
7849 *)
7850 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7851 for ac_dir in $PATH; do
7852 IFS="$ac_save_IFS"
7853 test -z "$ac_dir" && ac_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7856 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7857 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7858 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7859 break 2
7860 fi
7861 fi
7862 done
7863 done
7864 IFS="$ac_save_IFS"
7865 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7866 ;;
7867 esac
7868 fi
7869 MSGMERGE="$ac_cv_path_MSGMERGE"
7870 if test "$MSGMERGE" != ":"; then
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7872 printf "%s\n" "$MSGMERGE" >&6; }
7873 else
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 printf "%s\n" "no" >&6; }
7876 fi
7877
7878
7879 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7880 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7881 else
7882 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7883 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7884 else
7885 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7886 fi
7887 fi
7888
7889
7890 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7891
7892
7893 ac_config_commands="$ac_config_commands po-directories"
7894
7895
7896
7897 if test "X$prefix" = "XNONE"; then
7898 acl_final_prefix="$ac_default_prefix"
7899 else
7900 acl_final_prefix="$prefix"
7901 fi
7902 if test "X$exec_prefix" = "XNONE"; then
7903 acl_final_exec_prefix='${prefix}'
7904 else
7905 acl_final_exec_prefix="$exec_prefix"
7906 fi
7907 acl_save_prefix="$prefix"
7908 prefix="$acl_final_prefix"
7909 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7910 prefix="$acl_save_prefix"
7911
7912
7913
7914 # Check whether --with-gnu-ld was given.
7915 if test ${with_gnu_ld+y}
7916 then :
7917 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7918 else $as_nop
7919 with_gnu_ld=no
7920 fi
7921
7922 # Prepare PATH_SEPARATOR.
7923 # The user is always right.
7924 if test "${PATH_SEPARATOR+set}" != set; then
7925 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7926 # contains only /bin. Note that ksh looks also at the FPATH variable,
7927 # so we have to set that as well for the test.
7928 PATH_SEPARATOR=:
7929 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7930 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7931 || PATH_SEPARATOR=';'
7932 }
7933 fi
7934
7935 if test -n "$LD"; then
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7937 printf %s "checking for ld... " >&6; }
7938 elif test "$GCC" = yes; then
7939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7940 printf %s "checking for ld used by $CC... " >&6; }
7941 elif test "$with_gnu_ld" = yes; then
7942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7943 printf %s "checking for GNU ld... " >&6; }
7944 else
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7946 printf %s "checking for non-GNU ld... " >&6; }
7947 fi
7948 if test -n "$LD"; then
7949 # Let the user override the test with a path.
7950 :
7951 else
7952 if test ${acl_cv_path_LD+y}
7953 then :
7954 printf %s "(cached) " >&6
7955 else $as_nop
7956
7957 acl_cv_path_LD= # Final result of this test
7958 ac_prog=ld # Program to search in $PATH
7959 if test "$GCC" = yes; then
7960 # Check if gcc -print-prog-name=ld gives a path.
7961 case $host in
7962 *-*-mingw*)
7963 # gcc leaves a trailing carriage return which upsets mingw
7964 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7965 *)
7966 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7967 esac
7968 case $acl_output in
7969 # Accept absolute paths.
7970 [\\/]* | ?:[\\/]*)
7971 re_direlt='/[^/][^/]*/\.\./'
7972 # Canonicalize the pathname of ld
7973 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7974 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7975 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7976 done
7977 # Got the pathname. No search in PATH is needed.
7978 acl_cv_path_LD="$acl_output"
7979 ac_prog=
7980 ;;
7981 "")
7982 # If it fails, then pretend we aren't using GCC.
7983 ;;
7984 *)
7985 # If it is relative, then search for the first ld in PATH.
7986 with_gnu_ld=unknown
7987 ;;
7988 esac
7989 fi
7990 if test -n "$ac_prog"; then
7991 # Search for $ac_prog in $PATH.
7992 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7993 for ac_dir in $PATH; do
7994 IFS="$acl_save_ifs"
7995 test -z "$ac_dir" && ac_dir=.
7996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7997 acl_cv_path_LD="$ac_dir/$ac_prog"
7998 # Check to see if the program is GNU ld. I'd rather use --version,
7999 # but apparently some variants of GNU ld only accept -v.
8000 # Break only if it was the GNU/non-GNU ld that we prefer.
8001 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8002 *GNU* | *'with BFD'*)
8003 test "$with_gnu_ld" != no && break
8004 ;;
8005 *)
8006 test "$with_gnu_ld" != yes && break
8007 ;;
8008 esac
8009 fi
8010 done
8011 IFS="$acl_save_ifs"
8012 fi
8013 case $host in
8014 *-*-aix*)
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #if defined __powerpc64__ || defined _ARCH_PPC64
8018 int ok;
8019 #else
8020 error fail
8021 #endif
8022
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"
8025 then :
8026 # The compiler produces 64-bit code. Add option '-b64' so that the
8027 # linker groks 64-bit object files.
8028 case "$acl_cv_path_LD " in
8029 *" -b64 "*) ;;
8030 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8031 esac
8032
8033 fi
8034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8035 ;;
8036 sparc64-*-netbsd*)
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 #if defined __sparcv9 || defined __arch64__
8040 int ok;
8041 #else
8042 error fail
8043 #endif
8044
8045 _ACEOF
8046 if ac_fn_c_try_compile "$LINENO"
8047 then :
8048
8049 else $as_nop
8050 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8051 # so that the linker groks 32-bit object files.
8052 case "$acl_cv_path_LD " in
8053 *" -m elf32_sparc "*) ;;
8054 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8055 esac
8056
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8059 ;;
8060 esac
8061
8062 fi
8063
8064 LD="$acl_cv_path_LD"
8065 fi
8066 if test -n "$LD"; then
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8068 printf "%s\n" "$LD" >&6; }
8069 else
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 printf "%s\n" "no" >&6; }
8072 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8073 fi
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8075 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8076 if test ${acl_cv_prog_gnu_ld+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else $as_nop
8080 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8081 case `$LD -v 2>&1 </dev/null` in
8082 *GNU* | *'with BFD'*)
8083 acl_cv_prog_gnu_ld=yes
8084 ;;
8085 *)
8086 acl_cv_prog_gnu_ld=no
8087 ;;
8088 esac
8089 fi
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8091 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
8092 with_gnu_ld=$acl_cv_prog_gnu_ld
8093
8094
8095
8096
8097
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8099 printf %s "checking for shared library run path origin... " >&6; }
8100 if test ${acl_cv_rpath+y}
8101 then :
8102 printf %s "(cached) " >&6
8103 else $as_nop
8104
8105 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8106 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8107 . ./conftest.sh
8108 rm -f ./conftest.sh
8109 acl_cv_rpath=done
8110
8111 fi
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8113 printf "%s\n" "$acl_cv_rpath" >&6; }
8114 wl="$acl_cv_wl"
8115 acl_libext="$acl_cv_libext"
8116 acl_shlibext="$acl_cv_shlibext"
8117 acl_libname_spec="$acl_cv_libname_spec"
8118 acl_library_names_spec="$acl_cv_library_names_spec"
8119 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8120 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8121 acl_hardcode_direct="$acl_cv_hardcode_direct"
8122 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8123 # Check whether --enable-rpath was given.
8124 if test ${enable_rpath+y}
8125 then :
8126 enableval=$enable_rpath; :
8127 else $as_nop
8128 enable_rpath=yes
8129 fi
8130
8131
8132
8133
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8135 printf %s "checking 32-bit host C ABI... " >&6; }
8136 if test ${gl_cv_host_cpu_c_abi_32bit+y}
8137 then :
8138 printf %s "(cached) " >&6
8139 else $as_nop
8140 if test -n "$gl_cv_host_cpu_c_abi"; then
8141 case "$gl_cv_host_cpu_c_abi" in
8142 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8143 gl_cv_host_cpu_c_abi_32bit=yes ;;
8144 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8145 gl_cv_host_cpu_c_abi_32bit=no ;;
8146 *)
8147 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8148 esac
8149 else
8150 case "$host_cpu" in
8151
8152 # CPUs that only support a 32-bit ABI.
8153 arc \
8154 | bfin \
8155 | cris* \
8156 | csky \
8157 | epiphany \
8158 | ft32 \
8159 | h8300 \
8160 | m68k \
8161 | microblaze | microblazeel \
8162 | nds32 | nds32le | nds32be \
8163 | nios2 | nios2eb | nios2el \
8164 | or1k* \
8165 | or32 \
8166 | sh | sh1234 | sh1234elb \
8167 | tic6x \
8168 | xtensa* )
8169 gl_cv_host_cpu_c_abi_32bit=yes
8170 ;;
8171
8172 # CPUs that only support a 64-bit ABI.
8173 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8174 | mmix )
8175 gl_cv_host_cpu_c_abi_32bit=no
8176 ;;
8177
8178 i[34567]86 )
8179 gl_cv_host_cpu_c_abi_32bit=yes
8180 ;;
8181
8182 x86_64 )
8183 # On x86_64 systems, the C compiler may be generating code in one of
8184 # these ABIs:
8185 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8186 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8187 # with native Windows (mingw, MSVC).
8188 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8189 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8191 /* end confdefs.h. */
8192 #if (defined __x86_64__ || defined __amd64__ \
8193 || defined _M_X64 || defined _M_AMD64) \
8194 && !(defined __ILP32__ || defined _ILP32)
8195 int ok;
8196 #else
8197 error fail
8198 #endif
8199
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"
8202 then :
8203 gl_cv_host_cpu_c_abi_32bit=no
8204 else $as_nop
8205 gl_cv_host_cpu_c_abi_32bit=yes
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8208 ;;
8209
8210 arm* | aarch64 )
8211 # Assume arm with EABI.
8212 # On arm64 systems, the C compiler may be generating code in one of
8213 # these ABIs:
8214 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8215 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8216 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8219 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8220 int ok;
8221 #else
8222 error fail
8223 #endif
8224
8225 _ACEOF
8226 if ac_fn_c_try_compile "$LINENO"
8227 then :
8228 gl_cv_host_cpu_c_abi_32bit=no
8229 else $as_nop
8230 gl_cv_host_cpu_c_abi_32bit=yes
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8233 ;;
8234
8235 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8236 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8237 # code. In the latter case, it defines _LP64 and __LP64__.
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 #ifdef __LP64__
8241 int ok;
8242 #else
8243 error fail
8244 #endif
8245
8246 _ACEOF
8247 if ac_fn_c_try_compile "$LINENO"
8248 then :
8249 gl_cv_host_cpu_c_abi_32bit=no
8250 else $as_nop
8251 gl_cv_host_cpu_c_abi_32bit=yes
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8254 ;;
8255
8256 ia64* )
8257 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8258 # 32-bit code. In the latter case, it defines _ILP32.
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 #ifdef _ILP32
8262 int ok;
8263 #else
8264 error fail
8265 #endif
8266
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"
8269 then :
8270 gl_cv_host_cpu_c_abi_32bit=yes
8271 else $as_nop
8272 gl_cv_host_cpu_c_abi_32bit=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8275 ;;
8276
8277 mips* )
8278 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8279 # at 32.
8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8281 /* end confdefs.h. */
8282 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8283 int ok;
8284 #else
8285 error fail
8286 #endif
8287
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"
8290 then :
8291 gl_cv_host_cpu_c_abi_32bit=no
8292 else $as_nop
8293 gl_cv_host_cpu_c_abi_32bit=yes
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8296 ;;
8297
8298 powerpc* )
8299 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8300 # No need to distinguish them here; the caller may distinguish
8301 # them based on the OS.
8302 # On powerpc64 systems, the C compiler may still be generating
8303 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8304 # be generating 64-bit code.
8305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8306 /* end confdefs.h. */
8307 #if defined __powerpc64__ || defined _ARCH_PPC64
8308 int ok;
8309 #else
8310 error fail
8311 #endif
8312
8313 _ACEOF
8314 if ac_fn_c_try_compile "$LINENO"
8315 then :
8316 gl_cv_host_cpu_c_abi_32bit=no
8317 else $as_nop
8318 gl_cv_host_cpu_c_abi_32bit=yes
8319 fi
8320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8321 ;;
8322
8323 rs6000 )
8324 gl_cv_host_cpu_c_abi_32bit=yes
8325 ;;
8326
8327 riscv32 | riscv64 )
8328 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8329 # Size of 'long' and 'void *':
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8332 #if defined __LP64__
8333 int ok;
8334 #else
8335 error fail
8336 #endif
8337
8338 _ACEOF
8339 if ac_fn_c_try_compile "$LINENO"
8340 then :
8341 gl_cv_host_cpu_c_abi_32bit=no
8342 else $as_nop
8343 gl_cv_host_cpu_c_abi_32bit=yes
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8346 ;;
8347
8348 s390* )
8349 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8350 # or 31-bit (= s390) code.
8351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352 /* end confdefs.h. */
8353 #if defined __LP64__ || defined __s390x__
8354 int ok;
8355 #else
8356 error fail
8357 #endif
8358
8359 _ACEOF
8360 if ac_fn_c_try_compile "$LINENO"
8361 then :
8362 gl_cv_host_cpu_c_abi_32bit=no
8363 else $as_nop
8364 gl_cv_host_cpu_c_abi_32bit=yes
8365 fi
8366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8367 ;;
8368
8369 sparc | sparc64 )
8370 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8371 # C compiler still generates 32-bit code.
8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8374 #if defined __sparcv9 || defined __arch64__
8375 int ok;
8376 #else
8377 error fail
8378 #endif
8379
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"
8382 then :
8383 gl_cv_host_cpu_c_abi_32bit=no
8384 else $as_nop
8385 gl_cv_host_cpu_c_abi_32bit=yes
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8388 ;;
8389
8390 *)
8391 gl_cv_host_cpu_c_abi_32bit=unknown
8392 ;;
8393 esac
8394 fi
8395
8396 fi
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
8398 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
8399
8400 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
8401
8402
8403
8404
8405
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
8407 printf %s "checking for ELF binary format... " >&6; }
8408 if test ${gl_cv_elf+y}
8409 then :
8410 printf %s "(cached) " >&6
8411 else $as_nop
8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8413 /* end confdefs.h. */
8414 #ifdef __ELF__
8415 Extensible Linking Format
8416 #endif
8417
8418 _ACEOF
8419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8420 $EGREP "Extensible Linking Format" >/dev/null 2>&1
8421 then :
8422 gl_cv_elf=yes
8423 else $as_nop
8424 gl_cv_elf=no
8425 fi
8426 rm -rf conftest*
8427
8428
8429 fi
8430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
8431 printf "%s\n" "$gl_cv_elf" >&6; }
8432 if test $gl_cv_elf; then
8433 # Extract the ELF class of a file (5th byte) in decimal.
8434 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
8435 if od -A x < /dev/null >/dev/null 2>/dev/null; then
8436 # Use POSIX od.
8437 func_elfclass ()
8438 {
8439 od -A n -t d1 -j 4 -N 1
8440 }
8441 else
8442 # Use BSD hexdump.
8443 func_elfclass ()
8444 {
8445 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
8446 echo
8447 }
8448 fi
8449 case $HOST_CPU_C_ABI_32BIT in
8450 yes)
8451 # 32-bit ABI.
8452 acl_is_expected_elfclass ()
8453 {
8454 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
8455 }
8456 ;;
8457 no)
8458 # 64-bit ABI.
8459 acl_is_expected_elfclass ()
8460 {
8461 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
8462 }
8463 ;;
8464 *)
8465 # Unknown.
8466 acl_is_expected_elfclass ()
8467 {
8468 :
8469 }
8470 ;;
8471 esac
8472 else
8473 acl_is_expected_elfclass ()
8474 {
8475 :
8476 }
8477 fi
8478
8479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
8480 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
8481 if test ${acl_cv_libdirstems+y}
8482 then :
8483 printf %s "(cached) " >&6
8484 else $as_nop
8485 acl_libdirstem=lib
8486 acl_libdirstem2=
8487 acl_libdirstem3=
8488 case "$host_os" in
8489 solaris*)
8490 if test $HOST_CPU_C_ABI_32BIT = no; then
8491 acl_libdirstem2=lib/64
8492 case "$host_cpu" in
8493 sparc*) acl_libdirstem3=lib/sparcv9 ;;
8494 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
8495 esac
8496 fi
8497 ;;
8498 *)
8499 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
8500 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
8501 if test $HOST_CPU_C_ABI_32BIT != no; then
8502 # 32-bit or unknown ABI.
8503 if test -d /usr/lib32; then
8504 acl_libdirstem2=lib32
8505 fi
8506 fi
8507 if test $HOST_CPU_C_ABI_32BIT != yes; then
8508 # 64-bit or unknown ABI.
8509 if test -d /usr/lib64; then
8510 acl_libdirstem3=lib64
8511 fi
8512 fi
8513 if test -n "$searchpath"; then
8514 acl_save_IFS="${IFS= }"; IFS=":"
8515 for searchdir in $searchpath; do
8516 if test -d "$searchdir"; then
8517 case "$searchdir" in
8518 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
8519 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
8520 */../ | */.. )
8521 # Better ignore directories of this form. They are misleading.
8522 ;;
8523 *) searchdir=`cd "$searchdir" && pwd`
8524 case "$searchdir" in
8525 */lib32 ) acl_libdirstem2=lib32 ;;
8526 */lib64 ) acl_libdirstem3=lib64 ;;
8527 esac ;;
8528 esac
8529 fi
8530 done
8531 IFS="$acl_save_IFS"
8532 if test $HOST_CPU_C_ABI_32BIT = yes; then
8533 # 32-bit ABI.
8534 acl_libdirstem3=
8535 fi
8536 if test $HOST_CPU_C_ABI_32BIT = no; then
8537 # 64-bit ABI.
8538 acl_libdirstem2=
8539 fi
8540 fi
8541 ;;
8542 esac
8543 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
8544 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
8545 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
8546
8547 fi
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
8549 printf "%s\n" "$acl_cv_libdirstems" >&6; }
8550 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
8551 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
8552 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 use_additional=yes
8565
8566 acl_save_prefix="$prefix"
8567 prefix="$acl_final_prefix"
8568 acl_save_exec_prefix="$exec_prefix"
8569 exec_prefix="$acl_final_exec_prefix"
8570
8571 eval additional_includedir=\"$includedir\"
8572 eval additional_libdir=\"$libdir\"
8573 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8574 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8575
8576 exec_prefix="$acl_save_exec_prefix"
8577 prefix="$acl_save_prefix"
8578
8579
8580 # Check whether --with-libiconv-prefix was given.
8581 if test ${with_libiconv_prefix+y}
8582 then :
8583 withval=$with_libiconv_prefix;
8584 if test "X$withval" = "Xno"; then
8585 use_additional=no
8586 else
8587 if test "X$withval" = "X"; then
8588
8589 acl_save_prefix="$prefix"
8590 prefix="$acl_final_prefix"
8591 acl_save_exec_prefix="$exec_prefix"
8592 exec_prefix="$acl_final_exec_prefix"
8593
8594 eval additional_includedir=\"$includedir\"
8595 eval additional_libdir=\"$libdir\"
8596 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8597 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
8598
8599 exec_prefix="$acl_save_exec_prefix"
8600 prefix="$acl_save_prefix"
8601
8602 else
8603 additional_includedir="$withval/include"
8604 additional_libdir="$withval/$acl_libdirstem"
8605 additional_libdir2="$withval/$acl_libdirstem2"
8606 additional_libdir3="$withval/$acl_libdirstem3"
8607 fi
8608 fi
8609
8610 fi
8611
8612 if test "X$additional_libdir2" = "X$additional_libdir"; then
8613 additional_libdir2=
8614 fi
8615 if test "X$additional_libdir3" = "X$additional_libdir"; then
8616 additional_libdir3=
8617 fi
8618 LIBICONV=
8619 LTLIBICONV=
8620 INCICONV=
8621 LIBICONV_PREFIX=
8622 HAVE_LIBICONV=
8623 rpathdirs=
8624 ltrpathdirs=
8625 names_already_handled=
8626 names_next_round='iconv '
8627 while test -n "$names_next_round"; do
8628 names_this_round="$names_next_round"
8629 names_next_round=
8630 for name in $names_this_round; do
8631 already_handled=
8632 for n in $names_already_handled; do
8633 if test "$n" = "$name"; then
8634 already_handled=yes
8635 break
8636 fi
8637 done
8638 if test -z "$already_handled"; then
8639 names_already_handled="$names_already_handled $name"
8640 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8641 eval value=\"\$HAVE_LIB$uppername\"
8642 if test -n "$value"; then
8643 if test "$value" = yes; then
8644 eval value=\"\$LIB$uppername\"
8645 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8646 eval value=\"\$LTLIB$uppername\"
8647 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8648 else
8649 :
8650 fi
8651 else
8652 found_dir=
8653 found_la=
8654 found_so=
8655 found_a=
8656 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8657 if test -n "$acl_shlibext"; then
8658 shrext=".$acl_shlibext" # typically: shrext=.so
8659 else
8660 shrext=
8661 fi
8662 if test $use_additional = yes; then
8663 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8664 if test "X$found_dir" = "X"; then
8665 eval dir=\$$additional_libdir_variable
8666 if test -n "$dir"; then
8667 if test -n "$acl_shlibext"; then
8668 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8669 found_dir="$dir"
8670 found_so="$dir/$libname$shrext"
8671 else
8672 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8673 ver=`(cd "$dir" && \
8674 for f in "$libname$shrext".*; do echo "$f"; done \
8675 | sed -e "s,^$libname$shrext\\\\.,," \
8676 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8677 | sed 1q ) 2>/dev/null`
8678 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8679 found_dir="$dir"
8680 found_so="$dir/$libname$shrext.$ver"
8681 fi
8682 else
8683 eval library_names=\"$acl_library_names_spec\"
8684 for f in $library_names; do
8685 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8686 found_dir="$dir"
8687 found_so="$dir/$f"
8688 break
8689 fi
8690 done
8691 fi
8692 fi
8693 fi
8694 if test "X$found_dir" = "X"; then
8695 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8696 found_dir="$dir"
8697 found_a="$dir/$libname.$acl_libext"
8698 fi
8699 fi
8700 if test "X$found_dir" != "X"; then
8701 if test -f "$dir/$libname.la"; then
8702 found_la="$dir/$libname.la"
8703 fi
8704 fi
8705 fi
8706 fi
8707 done
8708 fi
8709 if test "X$found_dir" = "X"; then
8710 for x in $LDFLAGS $LTLIBICONV; do
8711
8712 acl_save_prefix="$prefix"
8713 prefix="$acl_final_prefix"
8714 acl_save_exec_prefix="$exec_prefix"
8715 exec_prefix="$acl_final_exec_prefix"
8716 eval x=\"$x\"
8717 exec_prefix="$acl_save_exec_prefix"
8718 prefix="$acl_save_prefix"
8719
8720 case "$x" in
8721 -L*)
8722 dir=`echo "X$x" | sed -e 's/^X-L//'`
8723 if test -n "$acl_shlibext"; then
8724 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8725 found_dir="$dir"
8726 found_so="$dir/$libname$shrext"
8727 else
8728 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8729 ver=`(cd "$dir" && \
8730 for f in "$libname$shrext".*; do echo "$f"; done \
8731 | sed -e "s,^$libname$shrext\\\\.,," \
8732 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8733 | sed 1q ) 2>/dev/null`
8734 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8735 found_dir="$dir"
8736 found_so="$dir/$libname$shrext.$ver"
8737 fi
8738 else
8739 eval library_names=\"$acl_library_names_spec\"
8740 for f in $library_names; do
8741 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8742 found_dir="$dir"
8743 found_so="$dir/$f"
8744 break
8745 fi
8746 done
8747 fi
8748 fi
8749 fi
8750 if test "X$found_dir" = "X"; then
8751 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
8752 found_dir="$dir"
8753 found_a="$dir/$libname.$acl_libext"
8754 fi
8755 fi
8756 if test "X$found_dir" != "X"; then
8757 if test -f "$dir/$libname.la"; then
8758 found_la="$dir/$libname.la"
8759 fi
8760 fi
8761 ;;
8762 esac
8763 if test "X$found_dir" != "X"; then
8764 break
8765 fi
8766 done
8767 fi
8768 if test "X$found_dir" != "X"; then
8769 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8770 if test "X$found_so" != "X"; then
8771 if test "$enable_rpath" = no \
8772 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8773 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8774 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
8775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8776 else
8777 haveit=
8778 for x in $ltrpathdirs; do
8779 if test "X$x" = "X$found_dir"; then
8780 haveit=yes
8781 break
8782 fi
8783 done
8784 if test -z "$haveit"; then
8785 ltrpathdirs="$ltrpathdirs $found_dir"
8786 fi
8787 if test "$acl_hardcode_direct" = yes; then
8788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8789 else
8790 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8792 haveit=
8793 for x in $rpathdirs; do
8794 if test "X$x" = "X$found_dir"; then
8795 haveit=yes
8796 break
8797 fi
8798 done
8799 if test -z "$haveit"; then
8800 rpathdirs="$rpathdirs $found_dir"
8801 fi
8802 else
8803 haveit=
8804 for x in $LDFLAGS $LIBICONV; do
8805
8806 acl_save_prefix="$prefix"
8807 prefix="$acl_final_prefix"
8808 acl_save_exec_prefix="$exec_prefix"
8809 exec_prefix="$acl_final_exec_prefix"
8810 eval x=\"$x\"
8811 exec_prefix="$acl_save_exec_prefix"
8812 prefix="$acl_save_prefix"
8813
8814 if test "X$x" = "X-L$found_dir"; then
8815 haveit=yes
8816 break
8817 fi
8818 done
8819 if test -z "$haveit"; then
8820 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8821 fi
8822 if test "$acl_hardcode_minus_L" != no; then
8823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8824 else
8825 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8826 fi
8827 fi
8828 fi
8829 fi
8830 else
8831 if test "X$found_a" != "X"; then
8832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8833 else
8834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8835 fi
8836 fi
8837 additional_includedir=
8838 case "$found_dir" in
8839 */$acl_libdirstem | */$acl_libdirstem/)
8840 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8841 if test "$name" = 'iconv'; then
8842 LIBICONV_PREFIX="$basedir"
8843 fi
8844 additional_includedir="$basedir/include"
8845 ;;
8846 */$acl_libdirstem2 | */$acl_libdirstem2/)
8847 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8848 if test "$name" = 'iconv'; then
8849 LIBICONV_PREFIX="$basedir"
8850 fi
8851 additional_includedir="$basedir/include"
8852 ;;
8853 */$acl_libdirstem3 | */$acl_libdirstem3/)
8854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8855 if test "$name" = 'iconv'; then
8856 LIBICONV_PREFIX="$basedir"
8857 fi
8858 additional_includedir="$basedir/include"
8859 ;;
8860 esac
8861 if test "X$additional_includedir" != "X"; then
8862 if test "X$additional_includedir" != "X/usr/include"; then
8863 haveit=
8864 if test "X$additional_includedir" = "X/usr/local/include"; then
8865 if test -n "$GCC"; then
8866 case $host_os in
8867 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8868 esac
8869 fi
8870 fi
8871 if test -z "$haveit"; then
8872 for x in $CPPFLAGS $INCICONV; do
8873
8874 acl_save_prefix="$prefix"
8875 prefix="$acl_final_prefix"
8876 acl_save_exec_prefix="$exec_prefix"
8877 exec_prefix="$acl_final_exec_prefix"
8878 eval x=\"$x\"
8879 exec_prefix="$acl_save_exec_prefix"
8880 prefix="$acl_save_prefix"
8881
8882 if test "X$x" = "X-I$additional_includedir"; then
8883 haveit=yes
8884 break
8885 fi
8886 done
8887 if test -z "$haveit"; then
8888 if test -d "$additional_includedir"; then
8889 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8890 fi
8891 fi
8892 fi
8893 fi
8894 fi
8895 if test -n "$found_la"; then
8896 save_libdir="$libdir"
8897 case "$found_la" in
8898 */* | *\\*) . "$found_la" ;;
8899 *) . "./$found_la" ;;
8900 esac
8901 libdir="$save_libdir"
8902 for dep in $dependency_libs; do
8903 case "$dep" in
8904 -L*)
8905 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8906 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8907 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8908 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
8909 haveit=
8910 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8911 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8912 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
8913 if test -n "$GCC"; then
8914 case $host_os in
8915 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8916 esac
8917 fi
8918 fi
8919 if test -z "$haveit"; then
8920 haveit=
8921 for x in $LDFLAGS $LIBICONV; do
8922
8923 acl_save_prefix="$prefix"
8924 prefix="$acl_final_prefix"
8925 acl_save_exec_prefix="$exec_prefix"
8926 exec_prefix="$acl_final_exec_prefix"
8927 eval x=\"$x\"
8928 exec_prefix="$acl_save_exec_prefix"
8929 prefix="$acl_save_prefix"
8930
8931 if test "X$x" = "X-L$dependency_libdir"; then
8932 haveit=yes
8933 break
8934 fi
8935 done
8936 if test -z "$haveit"; then
8937 if test -d "$dependency_libdir"; then
8938 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
8939 fi
8940 fi
8941 haveit=
8942 for x in $LDFLAGS $LTLIBICONV; do
8943
8944 acl_save_prefix="$prefix"
8945 prefix="$acl_final_prefix"
8946 acl_save_exec_prefix="$exec_prefix"
8947 exec_prefix="$acl_final_exec_prefix"
8948 eval x=\"$x\"
8949 exec_prefix="$acl_save_exec_prefix"
8950 prefix="$acl_save_prefix"
8951
8952 if test "X$x" = "X-L$dependency_libdir"; then
8953 haveit=yes
8954 break
8955 fi
8956 done
8957 if test -z "$haveit"; then
8958 if test -d "$dependency_libdir"; then
8959 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
8960 fi
8961 fi
8962 fi
8963 fi
8964 ;;
8965 -R*)
8966 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8967 if test "$enable_rpath" != no; then
8968 haveit=
8969 for x in $rpathdirs; do
8970 if test "X$x" = "X$dir"; then
8971 haveit=yes
8972 break
8973 fi
8974 done
8975 if test -z "$haveit"; then
8976 rpathdirs="$rpathdirs $dir"
8977 fi
8978 haveit=
8979 for x in $ltrpathdirs; do
8980 if test "X$x" = "X$dir"; then
8981 haveit=yes
8982 break
8983 fi
8984 done
8985 if test -z "$haveit"; then
8986 ltrpathdirs="$ltrpathdirs $dir"
8987 fi
8988 fi
8989 ;;
8990 -l*)
8991 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8992 ;;
8993 *.la)
8994 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8995 ;;
8996 *)
8997 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8999 ;;
9000 esac
9001 done
9002 fi
9003 else
9004 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9005 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9006 fi
9007 fi
9008 fi
9009 done
9010 done
9011 if test "X$rpathdirs" != "X"; then
9012 if test -n "$acl_hardcode_libdir_separator"; then
9013 alldirs=
9014 for found_dir in $rpathdirs; do
9015 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9016 done
9017 acl_save_libdir="$libdir"
9018 libdir="$alldirs"
9019 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9020 libdir="$acl_save_libdir"
9021 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9022 else
9023 for found_dir in $rpathdirs; do
9024 acl_save_libdir="$libdir"
9025 libdir="$found_dir"
9026 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9027 libdir="$acl_save_libdir"
9028 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9029 done
9030 fi
9031 fi
9032 if test "X$ltrpathdirs" != "X"; then
9033 for found_dir in $ltrpathdirs; do
9034 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9035 done
9036 fi
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9067 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9068 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9069 then :
9070 printf %s "(cached) " >&6
9071 else $as_nop
9072 gt_save_LIBS="$LIBS"
9073 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 #include <CoreFoundation/CFPreferences.h>
9077 int
9078 main (void)
9079 {
9080 CFPreferencesCopyAppValue(NULL, NULL)
9081 ;
9082 return 0;
9083 }
9084 _ACEOF
9085 if ac_fn_c_try_link "$LINENO"
9086 then :
9087 gt_cv_func_CFPreferencesCopyAppValue=yes
9088 else $as_nop
9089 gt_cv_func_CFPreferencesCopyAppValue=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9092 conftest$ac_exeext conftest.$ac_ext
9093 LIBS="$gt_save_LIBS"
9094 fi
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9096 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
9097 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9098
9099 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
9100
9101 fi
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9103 printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9104 if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9105 then :
9106 printf %s "(cached) " >&6
9107 else $as_nop
9108 gt_save_LIBS="$LIBS"
9109 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h. */
9112 #include <CoreFoundation/CFLocale.h>
9113 int
9114 main (void)
9115 {
9116 CFLocaleCopyPreferredLanguages();
9117 ;
9118 return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_link "$LINENO"
9122 then :
9123 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
9124 else $as_nop
9125 gt_cv_func_CFLocaleCopyPreferredLanguages=no
9126 fi
9127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9128 conftest$ac_exeext conftest.$ac_ext
9129 LIBS="$gt_save_LIBS"
9130 fi
9131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9132 printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
9133 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9134
9135 printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
9136
9137 fi
9138 INTL_MACOSX_LIBS=
9139 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9140 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
9141 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9142 fi
9143
9144
9145
9146
9147
9148
9149 LIBINTL=
9150 LTLIBINTL=
9151 POSUB=
9152
9153 case " $gt_needs " in
9154 *" need-formatstring-macros "*) gt_api_version=3 ;;
9155 *" need-ngettext "*) gt_api_version=2 ;;
9156 *) gt_api_version=1 ;;
9157 esac
9158 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9159 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9160
9161 if test "$USE_NLS" = "yes"; then
9162 gt_use_preinstalled_gnugettext=no
9163
9164
9165 if test $gt_api_version -ge 3; then
9166 gt_revision_test_code='
9167 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9168 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9169 #endif
9170 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9171 '
9172 else
9173 gt_revision_test_code=
9174 fi
9175 if test $gt_api_version -ge 2; then
9176 gt_expression_test_code=' + * ngettext ("", "", 0)'
9177 else
9178 gt_expression_test_code=
9179 fi
9180
9181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9182 printf %s "checking for GNU gettext in libc... " >&6; }
9183 if eval test \${$gt_func_gnugettext_libc+y}
9184 then :
9185 printf %s "(cached) " >&6
9186 else $as_nop
9187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9188 /* end confdefs.h. */
9189
9190 #include <libintl.h>
9191 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9192 extern int _nl_msg_cat_cntr;
9193 extern int *_nl_domain_bindings;
9194 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9195 #else
9196 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9197 #endif
9198 $gt_revision_test_code
9199
9200 int
9201 main (void)
9202 {
9203
9204 bindtextdomain ("", "");
9205 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9206
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 if ac_fn_c_try_link "$LINENO"
9212 then :
9213 eval "$gt_func_gnugettext_libc=yes"
9214 else $as_nop
9215 eval "$gt_func_gnugettext_libc=no"
9216 fi
9217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9218 conftest$ac_exeext conftest.$ac_ext
9219 fi
9220 eval ac_res=\$$gt_func_gnugettext_libc
9221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9222 printf "%s\n" "$ac_res" >&6; }
9223
9224 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9225
9226
9227
9228
9229
9230 am_save_CPPFLAGS="$CPPFLAGS"
9231
9232 for element in $INCICONV; do
9233 haveit=
9234 for x in $CPPFLAGS; do
9235
9236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
9240 eval x=\"$x\"
9241 exec_prefix="$acl_save_exec_prefix"
9242 prefix="$acl_save_prefix"
9243
9244 if test "X$x" = "X$element"; then
9245 haveit=yes
9246 break
9247 fi
9248 done
9249 if test -z "$haveit"; then
9250 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9251 fi
9252 done
9253
9254
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9256 printf %s "checking for iconv... " >&6; }
9257 if test ${am_cv_func_iconv+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else $as_nop
9261
9262 am_cv_func_iconv="no, consider installing GNU libiconv"
9263 am_cv_lib_iconv=no
9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265 /* end confdefs.h. */
9266
9267 #include <stdlib.h>
9268 #include <iconv.h>
9269
9270 int
9271 main (void)
9272 {
9273 iconv_t cd = iconv_open("","");
9274 iconv(cd,NULL,NULL,NULL,NULL);
9275 iconv_close(cd);
9276 ;
9277 return 0;
9278 }
9279 _ACEOF
9280 if ac_fn_c_try_link "$LINENO"
9281 then :
9282 am_cv_func_iconv=yes
9283 fi
9284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9285 conftest$ac_exeext conftest.$ac_ext
9286 if test "$am_cv_func_iconv" != yes; then
9287 am_save_LIBS="$LIBS"
9288 LIBS="$LIBS $LIBICONV"
9289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9290 /* end confdefs.h. */
9291
9292 #include <stdlib.h>
9293 #include <iconv.h>
9294
9295 int
9296 main (void)
9297 {
9298 iconv_t cd = iconv_open("","");
9299 iconv(cd,NULL,NULL,NULL,NULL);
9300 iconv_close(cd);
9301 ;
9302 return 0;
9303 }
9304 _ACEOF
9305 if ac_fn_c_try_link "$LINENO"
9306 then :
9307 am_cv_lib_iconv=yes
9308 am_cv_func_iconv=yes
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9311 conftest$ac_exeext conftest.$ac_ext
9312 LIBS="$am_save_LIBS"
9313 fi
9314
9315 fi
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9317 printf "%s\n" "$am_cv_func_iconv" >&6; }
9318 if test "$am_cv_func_iconv" = yes; then
9319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9320 printf %s "checking for working iconv... " >&6; }
9321 if test ${am_cv_func_iconv_works+y}
9322 then :
9323 printf %s "(cached) " >&6
9324 else $as_nop
9325
9326 am_save_LIBS="$LIBS"
9327 if test $am_cv_lib_iconv = yes; then
9328 LIBS="$LIBS $LIBICONV"
9329 fi
9330 am_cv_func_iconv_works=no
9331 for ac_iconv_const in '' 'const'; do
9332 if test "$cross_compiling" = yes
9333 then :
9334 case "$host_os" in
9335 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9336 *) am_cv_func_iconv_works="guessing yes" ;;
9337 esac
9338 else $as_nop
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341
9342 #include <iconv.h>
9343 #include <string.h>
9344
9345 #ifndef ICONV_CONST
9346 # define ICONV_CONST $ac_iconv_const
9347 #endif
9348
9349 int
9350 main (void)
9351 {
9352 int result = 0;
9353 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9354 returns. */
9355 {
9356 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9357 if (cd_utf8_to_88591 != (iconv_t)(-1))
9358 {
9359 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
9360 char buf[10];
9361 ICONV_CONST char *inptr = input;
9362 size_t inbytesleft = strlen (input);
9363 char *outptr = buf;
9364 size_t outbytesleft = sizeof (buf);
9365 size_t res = iconv (cd_utf8_to_88591,
9366 &inptr, &inbytesleft,
9367 &outptr, &outbytesleft);
9368 if (res == 0)
9369 result |= 1;
9370 iconv_close (cd_utf8_to_88591);
9371 }
9372 }
9373 /* Test against Solaris 10 bug: Failures are not distinguishable from
9374 successful returns. */
9375 {
9376 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9377 if (cd_ascii_to_88591 != (iconv_t)(-1))
9378 {
9379 static ICONV_CONST char input[] = "\263";
9380 char buf[10];
9381 ICONV_CONST char *inptr = input;
9382 size_t inbytesleft = strlen (input);
9383 char *outptr = buf;
9384 size_t outbytesleft = sizeof (buf);
9385 size_t res = iconv (cd_ascii_to_88591,
9386 &inptr, &inbytesleft,
9387 &outptr, &outbytesleft);
9388 if (res == 0)
9389 result |= 2;
9390 iconv_close (cd_ascii_to_88591);
9391 }
9392 }
9393 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9394 {
9395 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9396 if (cd_88591_to_utf8 != (iconv_t)(-1))
9397 {
9398 static ICONV_CONST char input[] = "\304";
9399 static char buf[2] = { (char)0xDE, (char)0xAD };
9400 ICONV_CONST char *inptr = input;
9401 size_t inbytesleft = 1;
9402 char *outptr = buf;
9403 size_t outbytesleft = 1;
9404 size_t res = iconv (cd_88591_to_utf8,
9405 &inptr, &inbytesleft,
9406 &outptr, &outbytesleft);
9407 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9408 result |= 4;
9409 iconv_close (cd_88591_to_utf8);
9410 }
9411 }
9412 #if 0 /* This bug could be worked around by the caller. */
9413 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9414 {
9415 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9416 if (cd_88591_to_utf8 != (iconv_t)(-1))
9417 {
9418 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9419 char buf[50];
9420 ICONV_CONST char *inptr = input;
9421 size_t inbytesleft = strlen (input);
9422 char *outptr = buf;
9423 size_t outbytesleft = sizeof (buf);
9424 size_t res = iconv (cd_88591_to_utf8,
9425 &inptr, &inbytesleft,
9426 &outptr, &outbytesleft);
9427 if ((int)res > 0)
9428 result |= 8;
9429 iconv_close (cd_88591_to_utf8);
9430 }
9431 }
9432 #endif
9433 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9434 provided. */
9435 {
9436 /* Try standardized names. */
9437 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
9438 /* Try IRIX, OSF/1 names. */
9439 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
9440 /* Try AIX names. */
9441 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
9442 /* Try HP-UX names. */
9443 iconv_t cd4 = iconv_open ("utf8", "eucJP");
9444 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
9445 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
9446 result |= 16;
9447 if (cd1 != (iconv_t)(-1))
9448 iconv_close (cd1);
9449 if (cd2 != (iconv_t)(-1))
9450 iconv_close (cd2);
9451 if (cd3 != (iconv_t)(-1))
9452 iconv_close (cd3);
9453 if (cd4 != (iconv_t)(-1))
9454 iconv_close (cd4);
9455 }
9456 return result;
9457
9458 ;
9459 return 0;
9460 }
9461 _ACEOF
9462 if ac_fn_c_try_run "$LINENO"
9463 then :
9464 am_cv_func_iconv_works=yes
9465 fi
9466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9467 conftest.$ac_objext conftest.beam conftest.$ac_ext
9468 fi
9469
9470 test "$am_cv_func_iconv_works" = no || break
9471 done
9472 LIBS="$am_save_LIBS"
9473
9474 fi
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9476 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
9477 case "$am_cv_func_iconv_works" in
9478 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9479 *) am_func_iconv=yes ;;
9480 esac
9481 else
9482 am_func_iconv=no am_cv_lib_iconv=no
9483 fi
9484 if test "$am_func_iconv" = yes; then
9485
9486 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
9487
9488 fi
9489 if test "$am_cv_lib_iconv" = yes; then
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9491 printf %s "checking how to link with libiconv... " >&6; }
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9493 printf "%s\n" "$LIBICONV" >&6; }
9494 else
9495 CPPFLAGS="$am_save_CPPFLAGS"
9496 LIBICONV=
9497 LTLIBICONV=
9498 fi
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509 use_additional=yes
9510
9511 acl_save_prefix="$prefix"
9512 prefix="$acl_final_prefix"
9513 acl_save_exec_prefix="$exec_prefix"
9514 exec_prefix="$acl_final_exec_prefix"
9515
9516 eval additional_includedir=\"$includedir\"
9517 eval additional_libdir=\"$libdir\"
9518 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9519 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9520
9521 exec_prefix="$acl_save_exec_prefix"
9522 prefix="$acl_save_prefix"
9523
9524
9525 # Check whether --with-libintl-prefix was given.
9526 if test ${with_libintl_prefix+y}
9527 then :
9528 withval=$with_libintl_prefix;
9529 if test "X$withval" = "Xno"; then
9530 use_additional=no
9531 else
9532 if test "X$withval" = "X"; then
9533
9534 acl_save_prefix="$prefix"
9535 prefix="$acl_final_prefix"
9536 acl_save_exec_prefix="$exec_prefix"
9537 exec_prefix="$acl_final_exec_prefix"
9538
9539 eval additional_includedir=\"$includedir\"
9540 eval additional_libdir=\"$libdir\"
9541 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9542 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
9543
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9546
9547 else
9548 additional_includedir="$withval/include"
9549 additional_libdir="$withval/$acl_libdirstem"
9550 additional_libdir2="$withval/$acl_libdirstem2"
9551 additional_libdir3="$withval/$acl_libdirstem3"
9552 fi
9553 fi
9554
9555 fi
9556
9557 if test "X$additional_libdir2" = "X$additional_libdir"; then
9558 additional_libdir2=
9559 fi
9560 if test "X$additional_libdir3" = "X$additional_libdir"; then
9561 additional_libdir3=
9562 fi
9563 LIBINTL=
9564 LTLIBINTL=
9565 INCINTL=
9566 LIBINTL_PREFIX=
9567 HAVE_LIBINTL=
9568 rpathdirs=
9569 ltrpathdirs=
9570 names_already_handled=
9571 names_next_round='intl '
9572 while test -n "$names_next_round"; do
9573 names_this_round="$names_next_round"
9574 names_next_round=
9575 for name in $names_this_round; do
9576 already_handled=
9577 for n in $names_already_handled; do
9578 if test "$n" = "$name"; then
9579 already_handled=yes
9580 break
9581 fi
9582 done
9583 if test -z "$already_handled"; then
9584 names_already_handled="$names_already_handled $name"
9585 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9586 eval value=\"\$HAVE_LIB$uppername\"
9587 if test -n "$value"; then
9588 if test "$value" = yes; then
9589 eval value=\"\$LIB$uppername\"
9590 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9591 eval value=\"\$LTLIB$uppername\"
9592 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9593 else
9594 :
9595 fi
9596 else
9597 found_dir=
9598 found_la=
9599 found_so=
9600 found_a=
9601 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9602 if test -n "$acl_shlibext"; then
9603 shrext=".$acl_shlibext" # typically: shrext=.so
9604 else
9605 shrext=
9606 fi
9607 if test $use_additional = yes; then
9608 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9609 if test "X$found_dir" = "X"; then
9610 eval dir=\$$additional_libdir_variable
9611 if test -n "$dir"; then
9612 if test -n "$acl_shlibext"; then
9613 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9614 found_dir="$dir"
9615 found_so="$dir/$libname$shrext"
9616 else
9617 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9618 ver=`(cd "$dir" && \
9619 for f in "$libname$shrext".*; do echo "$f"; done \
9620 | sed -e "s,^$libname$shrext\\\\.,," \
9621 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9622 | sed 1q ) 2>/dev/null`
9623 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9624 found_dir="$dir"
9625 found_so="$dir/$libname$shrext.$ver"
9626 fi
9627 else
9628 eval library_names=\"$acl_library_names_spec\"
9629 for f in $library_names; do
9630 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9631 found_dir="$dir"
9632 found_so="$dir/$f"
9633 break
9634 fi
9635 done
9636 fi
9637 fi
9638 fi
9639 if test "X$found_dir" = "X"; then
9640 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9641 found_dir="$dir"
9642 found_a="$dir/$libname.$acl_libext"
9643 fi
9644 fi
9645 if test "X$found_dir" != "X"; then
9646 if test -f "$dir/$libname.la"; then
9647 found_la="$dir/$libname.la"
9648 fi
9649 fi
9650 fi
9651 fi
9652 done
9653 fi
9654 if test "X$found_dir" = "X"; then
9655 for x in $LDFLAGS $LTLIBINTL; do
9656
9657 acl_save_prefix="$prefix"
9658 prefix="$acl_final_prefix"
9659 acl_save_exec_prefix="$exec_prefix"
9660 exec_prefix="$acl_final_exec_prefix"
9661 eval x=\"$x\"
9662 exec_prefix="$acl_save_exec_prefix"
9663 prefix="$acl_save_prefix"
9664
9665 case "$x" in
9666 -L*)
9667 dir=`echo "X$x" | sed -e 's/^X-L//'`
9668 if test -n "$acl_shlibext"; then
9669 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9670 found_dir="$dir"
9671 found_so="$dir/$libname$shrext"
9672 else
9673 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9674 ver=`(cd "$dir" && \
9675 for f in "$libname$shrext".*; do echo "$f"; done \
9676 | sed -e "s,^$libname$shrext\\\\.,," \
9677 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9678 | sed 1q ) 2>/dev/null`
9679 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9680 found_dir="$dir"
9681 found_so="$dir/$libname$shrext.$ver"
9682 fi
9683 else
9684 eval library_names=\"$acl_library_names_spec\"
9685 for f in $library_names; do
9686 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9687 found_dir="$dir"
9688 found_so="$dir/$f"
9689 break
9690 fi
9691 done
9692 fi
9693 fi
9694 fi
9695 if test "X$found_dir" = "X"; then
9696 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
9697 found_dir="$dir"
9698 found_a="$dir/$libname.$acl_libext"
9699 fi
9700 fi
9701 if test "X$found_dir" != "X"; then
9702 if test -f "$dir/$libname.la"; then
9703 found_la="$dir/$libname.la"
9704 fi
9705 fi
9706 ;;
9707 esac
9708 if test "X$found_dir" != "X"; then
9709 break
9710 fi
9711 done
9712 fi
9713 if test "X$found_dir" != "X"; then
9714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9715 if test "X$found_so" != "X"; then
9716 if test "$enable_rpath" = no \
9717 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9718 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9719 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
9720 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9721 else
9722 haveit=
9723 for x in $ltrpathdirs; do
9724 if test "X$x" = "X$found_dir"; then
9725 haveit=yes
9726 break
9727 fi
9728 done
9729 if test -z "$haveit"; then
9730 ltrpathdirs="$ltrpathdirs $found_dir"
9731 fi
9732 if test "$acl_hardcode_direct" = yes; then
9733 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9734 else
9735 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9736 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9737 haveit=
9738 for x in $rpathdirs; do
9739 if test "X$x" = "X$found_dir"; then
9740 haveit=yes
9741 break
9742 fi
9743 done
9744 if test -z "$haveit"; then
9745 rpathdirs="$rpathdirs $found_dir"
9746 fi
9747 else
9748 haveit=
9749 for x in $LDFLAGS $LIBINTL; do
9750
9751 acl_save_prefix="$prefix"
9752 prefix="$acl_final_prefix"
9753 acl_save_exec_prefix="$exec_prefix"
9754 exec_prefix="$acl_final_exec_prefix"
9755 eval x=\"$x\"
9756 exec_prefix="$acl_save_exec_prefix"
9757 prefix="$acl_save_prefix"
9758
9759 if test "X$x" = "X-L$found_dir"; then
9760 haveit=yes
9761 break
9762 fi
9763 done
9764 if test -z "$haveit"; then
9765 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9766 fi
9767 if test "$acl_hardcode_minus_L" != no; then
9768 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9769 else
9770 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9771 fi
9772 fi
9773 fi
9774 fi
9775 else
9776 if test "X$found_a" != "X"; then
9777 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9778 else
9779 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9780 fi
9781 fi
9782 additional_includedir=
9783 case "$found_dir" in
9784 */$acl_libdirstem | */$acl_libdirstem/)
9785 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9786 if test "$name" = 'intl'; then
9787 LIBINTL_PREFIX="$basedir"
9788 fi
9789 additional_includedir="$basedir/include"
9790 ;;
9791 */$acl_libdirstem2 | */$acl_libdirstem2/)
9792 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9793 if test "$name" = 'intl'; then
9794 LIBINTL_PREFIX="$basedir"
9795 fi
9796 additional_includedir="$basedir/include"
9797 ;;
9798 */$acl_libdirstem3 | */$acl_libdirstem3/)
9799 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9800 if test "$name" = 'intl'; then
9801 LIBINTL_PREFIX="$basedir"
9802 fi
9803 additional_includedir="$basedir/include"
9804 ;;
9805 esac
9806 if test "X$additional_includedir" != "X"; then
9807 if test "X$additional_includedir" != "X/usr/include"; then
9808 haveit=
9809 if test "X$additional_includedir" = "X/usr/local/include"; then
9810 if test -n "$GCC"; then
9811 case $host_os in
9812 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9813 esac
9814 fi
9815 fi
9816 if test -z "$haveit"; then
9817 for x in $CPPFLAGS $INCINTL; do
9818
9819 acl_save_prefix="$prefix"
9820 prefix="$acl_final_prefix"
9821 acl_save_exec_prefix="$exec_prefix"
9822 exec_prefix="$acl_final_exec_prefix"
9823 eval x=\"$x\"
9824 exec_prefix="$acl_save_exec_prefix"
9825 prefix="$acl_save_prefix"
9826
9827 if test "X$x" = "X-I$additional_includedir"; then
9828 haveit=yes
9829 break
9830 fi
9831 done
9832 if test -z "$haveit"; then
9833 if test -d "$additional_includedir"; then
9834 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9835 fi
9836 fi
9837 fi
9838 fi
9839 fi
9840 if test -n "$found_la"; then
9841 save_libdir="$libdir"
9842 case "$found_la" in
9843 */* | *\\*) . "$found_la" ;;
9844 *) . "./$found_la" ;;
9845 esac
9846 libdir="$save_libdir"
9847 for dep in $dependency_libs; do
9848 case "$dep" in
9849 -L*)
9850 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9851 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9852 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9853 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
9854 haveit=
9855 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9856 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9857 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
9858 if test -n "$GCC"; then
9859 case $host_os in
9860 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9861 esac
9862 fi
9863 fi
9864 if test -z "$haveit"; then
9865 haveit=
9866 for x in $LDFLAGS $LIBINTL; do
9867
9868 acl_save_prefix="$prefix"
9869 prefix="$acl_final_prefix"
9870 acl_save_exec_prefix="$exec_prefix"
9871 exec_prefix="$acl_final_exec_prefix"
9872 eval x=\"$x\"
9873 exec_prefix="$acl_save_exec_prefix"
9874 prefix="$acl_save_prefix"
9875
9876 if test "X$x" = "X-L$dependency_libdir"; then
9877 haveit=yes
9878 break
9879 fi
9880 done
9881 if test -z "$haveit"; then
9882 if test -d "$dependency_libdir"; then
9883 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
9884 fi
9885 fi
9886 haveit=
9887 for x in $LDFLAGS $LTLIBINTL; do
9888
9889 acl_save_prefix="$prefix"
9890 prefix="$acl_final_prefix"
9891 acl_save_exec_prefix="$exec_prefix"
9892 exec_prefix="$acl_final_exec_prefix"
9893 eval x=\"$x\"
9894 exec_prefix="$acl_save_exec_prefix"
9895 prefix="$acl_save_prefix"
9896
9897 if test "X$x" = "X-L$dependency_libdir"; then
9898 haveit=yes
9899 break
9900 fi
9901 done
9902 if test -z "$haveit"; then
9903 if test -d "$dependency_libdir"; then
9904 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
9905 fi
9906 fi
9907 fi
9908 fi
9909 ;;
9910 -R*)
9911 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9912 if test "$enable_rpath" != no; then
9913 haveit=
9914 for x in $rpathdirs; do
9915 if test "X$x" = "X$dir"; then
9916 haveit=yes
9917 break
9918 fi
9919 done
9920 if test -z "$haveit"; then
9921 rpathdirs="$rpathdirs $dir"
9922 fi
9923 haveit=
9924 for x in $ltrpathdirs; do
9925 if test "X$x" = "X$dir"; then
9926 haveit=yes
9927 break
9928 fi
9929 done
9930 if test -z "$haveit"; then
9931 ltrpathdirs="$ltrpathdirs $dir"
9932 fi
9933 fi
9934 ;;
9935 -l*)
9936 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9937 ;;
9938 *.la)
9939 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9940 ;;
9941 *)
9942 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9943 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9944 ;;
9945 esac
9946 done
9947 fi
9948 else
9949 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9950 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9951 fi
9952 fi
9953 fi
9954 done
9955 done
9956 if test "X$rpathdirs" != "X"; then
9957 if test -n "$acl_hardcode_libdir_separator"; then
9958 alldirs=
9959 for found_dir in $rpathdirs; do
9960 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9961 done
9962 acl_save_libdir="$libdir"
9963 libdir="$alldirs"
9964 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9965 libdir="$acl_save_libdir"
9966 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9967 else
9968 for found_dir in $rpathdirs; do
9969 acl_save_libdir="$libdir"
9970 libdir="$found_dir"
9971 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9972 libdir="$acl_save_libdir"
9973 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9974 done
9975 fi
9976 fi
9977 if test "X$ltrpathdirs" != "X"; then
9978 for found_dir in $ltrpathdirs; do
9979 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9980 done
9981 fi
9982
9983
9984
9985
9986
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9988 printf %s "checking for GNU gettext in libintl... " >&6; }
9989 if eval test \${$gt_func_gnugettext_libintl+y}
9990 then :
9991 printf %s "(cached) " >&6
9992 else $as_nop
9993 gt_save_CPPFLAGS="$CPPFLAGS"
9994 CPPFLAGS="$CPPFLAGS $INCINTL"
9995 gt_save_LIBS="$LIBS"
9996 LIBS="$LIBS $LIBINTL"
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999
10000 #include <libintl.h>
10001 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10002 extern int _nl_msg_cat_cntr;
10003 extern
10004 #ifdef __cplusplus
10005 "C"
10006 #endif
10007 const char *_nl_expand_alias (const char *);
10008 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10009 #else
10010 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10011 #endif
10012 $gt_revision_test_code
10013
10014 int
10015 main (void)
10016 {
10017
10018 bindtextdomain ("", "");
10019 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10020
10021 ;
10022 return 0;
10023 }
10024 _ACEOF
10025 if ac_fn_c_try_link "$LINENO"
10026 then :
10027 eval "$gt_func_gnugettext_libintl=yes"
10028 else $as_nop
10029 eval "$gt_func_gnugettext_libintl=no"
10030 fi
10031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10032 conftest$ac_exeext conftest.$ac_ext
10033 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
10034 LIBS="$LIBS $LIBICONV"
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10036 /* end confdefs.h. */
10037
10038 #include <libintl.h>
10039 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10040 extern int _nl_msg_cat_cntr;
10041 extern
10042 #ifdef __cplusplus
10043 "C"
10044 #endif
10045 const char *_nl_expand_alias (const char *);
10046 #define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10047 #else
10048 #define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10049 #endif
10050 $gt_revision_test_code
10051
10052 int
10053 main (void)
10054 {
10055
10056 bindtextdomain ("", "");
10057 return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
10058
10059 ;
10060 return 0;
10061 }
10062 _ACEOF
10063 if ac_fn_c_try_link "$LINENO"
10064 then :
10065 LIBINTL="$LIBINTL $LIBICONV"
10066 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10067 eval "$gt_func_gnugettext_libintl=yes"
10068
10069 fi
10070 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10071 conftest$ac_exeext conftest.$ac_ext
10072 fi
10073 CPPFLAGS="$gt_save_CPPFLAGS"
10074 LIBS="$gt_save_LIBS"
10075 fi
10076 eval ac_res=\$$gt_func_gnugettext_libintl
10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10078 printf "%s\n" "$ac_res" >&6; }
10079 fi
10080
10081 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10082 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
10083 && test "$PACKAGE" != gettext-runtime \
10084 && test "$PACKAGE" != gettext-tools; }; then
10085 gt_use_preinstalled_gnugettext=yes
10086 else
10087 LIBINTL=
10088 LTLIBINTL=
10089 INCINTL=
10090 fi
10091
10092
10093
10094 if test -n "$INTL_MACOSX_LIBS"; then
10095 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10096 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10097 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10098 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10099 fi
10100 fi
10101
10102 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10103 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10104
10105 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
10106
10107 else
10108 USE_NLS=no
10109 fi
10110 fi
10111
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10113 printf %s "checking whether to use NLS... " >&6; }
10114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10115 printf "%s\n" "$USE_NLS" >&6; }
10116 if test "$USE_NLS" = "yes"; then
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10118 printf %s "checking where the gettext function comes from... " >&6; }
10119 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10120 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10121 gt_source="external libintl"
10122 else
10123 gt_source="libc"
10124 fi
10125 else
10126 gt_source="included intl directory"
10127 fi
10128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10129 printf "%s\n" "$gt_source" >&6; }
10130 fi
10131
10132 if test "$USE_NLS" = "yes"; then
10133
10134 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10135 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10137 printf %s "checking how to link with libintl... " >&6; }
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10139 printf "%s\n" "$LIBINTL" >&6; }
10140
10141 for element in $INCINTL; do
10142 haveit=
10143 for x in $CPPFLAGS; do
10144
10145 acl_save_prefix="$prefix"
10146 prefix="$acl_final_prefix"
10147 acl_save_exec_prefix="$exec_prefix"
10148 exec_prefix="$acl_final_exec_prefix"
10149 eval x=\"$x\"
10150 exec_prefix="$acl_save_exec_prefix"
10151 prefix="$acl_save_prefix"
10152
10153 if test "X$x" = "X$element"; then
10154 haveit=yes
10155 break
10156 fi
10157 done
10158 if test -z "$haveit"; then
10159 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10160 fi
10161 done
10162
10163 fi
10164
10165
10166 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
10167
10168
10169 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
10170
10171 fi
10172
10173 POSUB=po
10174 fi
10175
10176
10177
10178 INTLLIBS="$LIBINTL"
10179
10180
10181
10182
10183
10184
10185
10186
10187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10188 printf %s "checking for nl_langinfo and CODESET... " >&6; }
10189 if test ${am_cv_langinfo_codeset+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else $as_nop
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 #include <langinfo.h>
10196 int
10197 main (void)
10198 {
10199 char* cs = nl_langinfo(CODESET); return !cs;
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"
10205 then :
10206 am_cv_langinfo_codeset=yes
10207 else $as_nop
10208 am_cv_langinfo_codeset=no
10209 fi
10210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10211 conftest$ac_exeext conftest.$ac_ext
10212
10213 fi
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10215 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
10216 if test $am_cv_langinfo_codeset = yes; then
10217
10218 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10219
10220 fi
10221
10222
10223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10224 printf %s "checking for LC_MESSAGES... " >&6; }
10225 if test ${gt_cv_val_LC_MESSAGES+y}
10226 then :
10227 printf %s "(cached) " >&6
10228 else $as_nop
10229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10230 /* end confdefs.h. */
10231 #include <locale.h>
10232 int
10233 main (void)
10234 {
10235 return LC_MESSAGES
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"
10241 then :
10242 gt_cv_val_LC_MESSAGES=yes
10243 else $as_nop
10244 gt_cv_val_LC_MESSAGES=no
10245 fi
10246 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10247 conftest$ac_exeext conftest.$ac_ext
10248 fi
10249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10250 printf "%s\n" "$gt_cv_val_LC_MESSAGES" >&6; }
10251 if test $gt_cv_val_LC_MESSAGES = yes; then
10252
10253 printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10254
10255 fi
10256
10257
10258 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
10259 if test "x$ac_cv_header_arpa_inet_h" = xyes
10260 then :
10261 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
10262
10263 fi
10264 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
10265 if test "x$ac_cv_header_fcntl_h" = xyes
10266 then :
10267 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
10268
10269 fi
10270 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
10271 if test "x$ac_cv_header_locale_h" = xyes
10272 then :
10273 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
10274
10275 fi
10276 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10277 if test "x$ac_cv_header_libintl_h" = xyes
10278 then :
10279 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
10280
10281 fi
10282 ac_fn_c_check_header_compile "$LINENO" "mcheck.h" "ac_cv_header_mcheck_h" "$ac_includes_default"
10283 if test "x$ac_cv_header_mcheck_h" = xyes
10284 then :
10285 printf "%s\n" "#define HAVE_MCHECK_H 1" >>confdefs.h
10286
10287 fi
10288 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
10289 if test "x$ac_cv_header_netdb_h" = xyes
10290 then :
10291 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
10292
10293 fi
10294 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10295 if test "x$ac_cv_header_netinet_in_h" = xyes
10296 then :
10297 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
10298
10299 fi
10300 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
10301 if test "x$ac_cv_header_stddef_h" = xyes
10302 then :
10303 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
10304
10305 fi
10306 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10307 if test "x$ac_cv_header_string_h" = xyes
10308 then :
10309 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
10310
10311 fi
10312 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
10313 if test "x$ac_cv_header_spawn_h" = xyes
10314 then :
10315 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
10316
10317 fi
10318 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
10319 if test "x$ac_cv_header_sys_ioctl_h" = xyes
10320 then :
10321 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
10322
10323 fi
10324 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
10325 if test "x$ac_cv_header_sys_param_h" = xyes
10326 then :
10327 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
10328
10329 fi
10330 ac_fn_c_check_header_compile "$LINENO" "sys/personality.h" "ac_cv_header_sys_personality_h" "$ac_includes_default"
10331 if test "x$ac_cv_header_sys_personality_h" = xyes
10332 then :
10333 printf "%s\n" "#define HAVE_SYS_PERSONALITY_H 1" >>confdefs.h
10334
10335 fi
10336 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
10337 if test "x$ac_cv_header_sys_select_h" = xyes
10338 then :
10339 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
10340
10341 fi
10342 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
10343 if test "x$ac_cv_header_sys_socket_h" = xyes
10344 then :
10345 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
10346
10347 fi
10348 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
10349 if test "x$ac_cv_header_sys_time_h" = xyes
10350 then :
10351 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
10352
10353 fi
10354 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
10355 if test "x$ac_cv_header_unistd_h" = xyes
10356 then :
10357 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
10358
10359 fi
10360 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
10361 if test "x$ac_cv_header_termios_h" = xyes
10362 then :
10363 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
10364
10365 fi
10366 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
10367 if test "x$ac_cv_header_stropts_h" = xyes
10368 then :
10369 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
10370
10371 fi
10372 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
10373 if test "x$ac_cv_header_wchar_h" = xyes
10374 then :
10375 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
10376
10377 fi
10378 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
10379 if test "x$ac_cv_header_wctype_h" = xyes
10380 then :
10381 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
10382
10383 fi
10384
10385
10386
10387
10388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
10389 printf %s "checking for bool, true, false... " >&6; }
10390 if test ${gl_cv_c_bool+y}
10391 then :
10392 printf %s "(cached) " >&6
10393 else $as_nop
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10396
10397 #if true == false
10398 #error "true == false"
10399 #endif
10400 extern bool b;
10401 bool b = true == false;
10402 _ACEOF
10403 if ac_fn_c_try_compile "$LINENO"
10404 then :
10405 gl_cv_c_bool=yes
10406 else $as_nop
10407 gl_cv_c_bool=no
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10410 fi
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
10412 printf "%s\n" "$gl_cv_c_bool" >&6; }
10413 if test "$gl_cv_c_bool" = yes; then
10414
10415 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
10416
10417 fi
10418
10419
10420
10421
10422
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
10424 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
10425 if test ${ac_cv_header_sys_wait_h+y}
10426 then :
10427 printf %s "(cached) " >&6
10428 else $as_nop
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431 #include <sys/types.h>
10432 #include <sys/wait.h>
10433 #ifndef WEXITSTATUS
10434 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10435 #endif
10436 #ifndef WIFEXITED
10437 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10438 #endif
10439
10440 int
10441 main (void)
10442 {
10443 int s;
10444 wait (&s);
10445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10446 ;
10447 return 0;
10448 }
10449 _ACEOF
10450 if ac_fn_c_try_compile "$LINENO"
10451 then :
10452 ac_cv_header_sys_wait_h=yes
10453 else $as_nop
10454 ac_cv_header_sys_wait_h=no
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10457 fi
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
10459 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
10460 if test $ac_cv_header_sys_wait_h = yes; then
10461
10462 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
10463
10464 fi
10465
10466
10467
10468
10469
10470 if test "$ac_cv_header_string_h" = yes
10471 then
10472 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
10473 if test "x$ac_cv_header_memory_h" = xyes
10474 then :
10475 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
10476
10477 fi
10478
10479 else
10480 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
10481 if test "x$ac_cv_header_strings_h" = xyes
10482 then :
10483 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
10484
10485 fi
10486
10487 fi
10488
10489 if test "$build_alias" != "$host_alias"; then
10490 TEST_CROSS_COMPILE_TRUE=
10491 TEST_CROSS_COMPILE_FALSE='#'
10492 else
10493 TEST_CROSS_COMPILE_TRUE='#'
10494 TEST_CROSS_COMPILE_FALSE=
10495 fi
10496
10497
10498
10499 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
10500 "
10501 if test "x$ac_cv_type_pid_t" = xyes
10502 then :
10503
10504 else $as_nop
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507
10508 #if defined _WIN64 && !defined __CYGWIN__
10509 LLP64
10510 #endif
10511
10512 int
10513 main (void)
10514 {
10515
10516 ;
10517 return 0;
10518 }
10519
10520 _ACEOF
10521 if ac_fn_c_try_compile "$LINENO"
10522 then :
10523 ac_pid_type='int'
10524 else $as_nop
10525 ac_pid_type='__int64'
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10528
10529 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
10530
10531
10532 fi
10533
10534
10535 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
10536 if test "x$ac_cv_type_size_t" = xyes
10537 then :
10538
10539 else $as_nop
10540
10541 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
10542
10543 fi
10544
10545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
10546 printf %s "checking for uid_t in sys/types.h... " >&6; }
10547 if test ${ac_cv_type_uid_t+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else $as_nop
10551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553 #include <sys/types.h>
10554
10555 _ACEOF
10556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10557 $EGREP "uid_t" >/dev/null 2>&1
10558 then :
10559 ac_cv_type_uid_t=yes
10560 else $as_nop
10561 ac_cv_type_uid_t=no
10562 fi
10563 rm -rf conftest*
10564
10565 fi
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
10567 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
10568 if test $ac_cv_type_uid_t = no; then
10569
10570 printf "%s\n" "#define uid_t int" >>confdefs.h
10571
10572
10573 printf "%s\n" "#define gid_t int" >>confdefs.h
10574
10575 fi
10576
10577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
10578 printf %s "checking type of array argument to getgroups... " >&6; }
10579 if test ${ac_cv_type_getgroups+y}
10580 then :
10581 printf %s "(cached) " >&6
10582 else $as_nop
10583 if test "$cross_compiling" = yes
10584 then :
10585 ac_cv_type_getgroups=cross
10586 else $as_nop
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 /* Thanks to Mike Rendell for this test. */
10590 $ac_includes_default
10591 #define NGID 256
10592 #undef MAX
10593 #define MAX(x, y) ((x) > (y) ? (x) : (y))
10594
10595 int
10596 main (void)
10597 {
10598 gid_t gidset[NGID];
10599 int i, n;
10600 union { gid_t gval; long int lval; } val;
10601
10602 val.lval = -1;
10603 for (i = 0; i < NGID; i++)
10604 gidset[i] = val.gval;
10605 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
10606 gidset);
10607 /* Exit non-zero if getgroups seems to require an array of ints. This
10608 happens when gid_t is short int but getgroups modifies an array
10609 of ints. */
10610 return n > 0 && gidset[n] != val.gval;
10611 }
10612 _ACEOF
10613 if ac_fn_c_try_run "$LINENO"
10614 then :
10615 ac_cv_type_getgroups=gid_t
10616 else $as_nop
10617 ac_cv_type_getgroups=int
10618 fi
10619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10620 conftest.$ac_objext conftest.beam conftest.$ac_ext
10621 fi
10622
10623 if test $ac_cv_type_getgroups = cross; then
10624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10626 #include <unistd.h>
10627
10628 _ACEOF
10629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10630 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1
10631 then :
10632 ac_cv_type_getgroups=gid_t
10633 else $as_nop
10634 ac_cv_type_getgroups=int
10635 fi
10636 rm -rf conftest*
10637
10638 fi
10639 fi
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
10641 printf "%s\n" "$ac_cv_type_getgroups" >&6; }
10642
10643 printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h
10644
10645
10646
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10648 printf %s "checking for unsigned long long int... " >&6; }
10649 if test ${ac_cv_type_unsigned_long_long_int+y}
10650 then :
10651 printf %s "(cached) " >&6
10652 else $as_nop
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 unsigned long long int ull = 18446744073709551615ULL;
10656 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
10657 ? 1 : -1)];
10658 int i = 63;
10659 int
10660 main (void)
10661 {
10662 unsigned long long int ullmax = 18446744073709551615ull;
10663 return (ull << 63 | ull >> 63 | ull << i | ull >> i
10664 | ullmax / ull | ullmax % ull);
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 if ac_fn_c_try_link "$LINENO"
10670 then :
10671 ac_cv_type_unsigned_long_long_int=yes
10672 else $as_nop
10673 ac_cv_type_unsigned_long_long_int=no
10674 fi
10675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10676 conftest$ac_exeext conftest.$ac_ext
10677 fi
10678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10679 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
10680 if test $ac_cv_type_unsigned_long_long_int = yes; then
10681
10682 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10683
10684 fi
10685
10686
10687
10688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10689 printf %s "checking for long long int... " >&6; }
10690 if test ${ac_cv_type_long_long_int+y}
10691 then :
10692 printf %s "(cached) " >&6
10693 else $as_nop
10694 ac_cv_type_long_long_int=yes
10695 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
10696 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
10697 if test $ac_cv_type_long_long_int = yes; then
10698 if test "$cross_compiling" = yes
10699 then :
10700 :
10701 else $as_nop
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 #include <limits.h>
10705 #ifndef LLONG_MAX
10706 # define HALF \
10707 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
10708 # define LLONG_MAX (HALF - 1 + HALF)
10709 #endif
10710 int
10711 main (void)
10712 {
10713 long long int n = 1;
10714 int i;
10715 for (i = 0; ; i++)
10716 {
10717 long long int m = n << i;
10718 if (m >> i != n)
10719 return 1;
10720 if (LLONG_MAX / 2 < m)
10721 break;
10722 }
10723 return 0;
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_run "$LINENO"
10729 then :
10730
10731 else $as_nop
10732 ac_cv_type_long_long_int=no
10733 fi
10734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10735 conftest.$ac_objext conftest.beam conftest.$ac_ext
10736 fi
10737
10738 fi
10739 fi
10740 fi
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
10742 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
10743 if test $ac_cv_type_long_long_int = yes; then
10744
10745 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10746
10747 fi
10748
10749
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
10751 printf %s "checking for unsigned long long int... " >&6; }
10752 if test ${ac_cv_type_unsigned_long_long_int+y}
10753 then :
10754 printf %s "(cached) " >&6
10755 else $as_nop
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 unsigned long long int ull = 18446744073709551615ULL;
10759 typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1
10760 ? 1 : -1)];
10761 int i = 63;
10762 int
10763 main (void)
10764 {
10765 unsigned long long int ullmax = 18446744073709551615ull;
10766 return (ull << 63 | ull >> 63 | ull << i | ull >> i
10767 | ullmax / ull | ullmax % ull);
10768 ;
10769 return 0;
10770 }
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"
10773 then :
10774 ac_cv_type_unsigned_long_long_int=yes
10775 else $as_nop
10776 ac_cv_type_unsigned_long_long_int=no
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10779 conftest$ac_exeext conftest.$ac_ext
10780 fi
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
10782 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
10783 if test $ac_cv_type_unsigned_long_long_int = yes; then
10784
10785 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10786
10787 fi
10788
10789
10790
10791 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
10792 if test "x$ac_cv_type_intmax_t" = xyes
10793 then :
10794
10795 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
10796
10797 else $as_nop
10798 test $ac_cv_type_long_long_int = yes \
10799 && ac_type='long long int' \
10800 || ac_type='long int'
10801
10802 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
10803
10804 fi
10805
10806
10807
10808
10809 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
10810 if test "x$ac_cv_type_uintmax_t" = xyes
10811 then :
10812
10813 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
10814
10815 else $as_nop
10816 test $ac_cv_type_unsigned_long_long_int = yes \
10817 && ac_type='unsigned long long int' \
10818 || ac_type='unsigned long int'
10819
10820 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
10821
10822 fi
10823
10824
10825 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
10826 if test "x$ac_cv_type_ssize_t" = xyes
10827 then :
10828
10829 else $as_nop
10830
10831 printf "%s\n" "#define ssize_t int" >>confdefs.h
10832
10833 fi
10834
10835 # The cast to long int works around a bug in the HP C Compiler
10836 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10837 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10838 # This bug is HP SR number 8606223364.
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
10840 printf %s "checking size of unsigned int... " >&6; }
10841 if test ${ac_cv_sizeof_unsigned_int+y}
10842 then :
10843 printf %s "(cached) " >&6
10844 else $as_nop
10845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"
10846 then :
10847
10848 else $as_nop
10849 if test "$ac_cv_type_unsigned_int" = yes; then
10850 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10851 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10852 as_fn_error 77 "cannot compute sizeof (unsigned int)
10853 See \`config.log' for more details" "$LINENO" 5; }
10854 else
10855 ac_cv_sizeof_unsigned_int=0
10856 fi
10857 fi
10858
10859 fi
10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
10861 printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; }
10862
10863
10864
10865 printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h
10866
10867
10868 # The cast to long int works around a bug in the HP C Compiler
10869 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10870 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10871 # This bug is HP SR number 8606223364.
10872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
10873 printf %s "checking size of unsigned long... " >&6; }
10874 if test ${ac_cv_sizeof_unsigned_long+y}
10875 then :
10876 printf %s "(cached) " >&6
10877 else $as_nop
10878 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"
10879 then :
10880
10881 else $as_nop
10882 if test "$ac_cv_type_unsigned_long" = yes; then
10883 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10884 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
10885 as_fn_error 77 "cannot compute sizeof (unsigned long)
10886 See \`config.log' for more details" "$LINENO" 5; }
10887 else
10888 ac_cv_sizeof_unsigned_long=0
10889 fi
10890 fi
10891
10892 fi
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
10894 printf "%s\n" "$ac_cv_sizeof_unsigned_long" >&6; }
10895
10896
10897
10898 printf "%s\n" "#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long" >>confdefs.h
10899
10900
10901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10902 /* end confdefs.h. */
10903 #include <sys/types.h>
10904 int
10905 main (void)
10906 {
10907
10908 time_t foo;
10909 foo = 0;
10910
10911 ;
10912 return 0;
10913 }
10914 _ACEOF
10915 if ac_fn_c_try_compile "$LINENO"
10916 then :
10917
10918 printf "%s\n" "#define TIME_T_IN_SYS_TYPES_H 1" >>confdefs.h
10919
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924 #include <wctype.h>
10925 int
10926 main (void)
10927 {
10928
10929 wctype_t foo;
10930 foo = 0;
10931
10932 ;
10933 return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_compile "$LINENO"
10937 then :
10938
10939 printf "%s\n" "#define HAVE_WCTYPE_T 1" >>confdefs.h
10940
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10945 #include <wctype.h>
10946 int
10947 main (void)
10948 {
10949
10950 wint_t foo;
10951 foo = 0;
10952
10953 ;
10954 return 0;
10955 }
10956 _ACEOF
10957 if ac_fn_c_try_compile "$LINENO"
10958 then :
10959
10960 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
10961
10962 fi
10963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966 #include <sys/types.h>
10967 #include <sys/socket.h>
10968 int
10969 main (void)
10970 {
10971
10972 struct sockaddr_storage foo;
10973
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_compile "$LINENO"
10979 then :
10980
10981 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
10982
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10985
10986
10987
10988
10989
10990
10991 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10992 #include <sys/socket.h>
10993 "
10994 if test "x$ac_cv_type_socklen_t" = xyes
10995 then :
10996
10997 else $as_nop
10998
10999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
11000 printf %s "checking for socklen_t equivalent... " >&6; }
11001 if test ${rsync_cv_socklen_t_equiv+y}
11002 then :
11003 printf %s "(cached) " >&6
11004 else $as_nop
11005
11006 # Systems have either "struct sockaddr *" or
11007 # "void *" as the second argument to getpeername
11008 rsync_cv_socklen_t_equiv=
11009 for arg2 in "struct sockaddr" void
11010 do
11011 for t in int size_t unsigned long "unsigned long"
11012 do
11013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015
11016 #include <sys/types.h>
11017 #include <sys/socket.h>
11018
11019 int getpeername (int, $arg2 *, $t *);
11020
11021 int
11022 main (void)
11023 {
11024
11025 $t len;
11026 getpeername(0,0,&len);
11027
11028 ;
11029 return 0;
11030 }
11031 _ACEOF
11032 if ac_fn_c_try_compile "$LINENO"
11033 then :
11034
11035 rsync_cv_socklen_t_equiv="$t"
11036 break
11037
11038 fi
11039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11040 done
11041 done
11042
11043 if test "$rsync_cv_socklen_t_equiv" = ""
11044 then
11045 rsync_cv_socklen_t_equiv=int
11046 fi
11047
11048 fi
11049
11050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rsync_cv_socklen_t_equiv" >&5
11051 printf "%s\n" "$rsync_cv_socklen_t_equiv" >&6; }
11052
11053 printf "%s\n" "#define socklen_t $rsync_cv_socklen_t_equiv" >>confdefs.h
11054
11055 fi
11056
11057
11058
11059
11060
11061
11062 ac_func=
11063 for ac_item in $ac_func_c_list
11064 do
11065 if test $ac_func; then
11066 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
11067 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
11068 echo "#define $ac_item 1" >> confdefs.h
11069 fi
11070 ac_func=
11071 else
11072 ac_func=$ac_item
11073 fi
11074 done
11075
11076
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
11078 printf %s "checking for working mktime... " >&6; }
11079 if test ${ac_cv_func_working_mktime+y}
11080 then :
11081 printf %s "(cached) " >&6
11082 else $as_nop
11083 if test "$cross_compiling" = yes
11084 then :
11085 ac_cv_func_working_mktime=no
11086 else $as_nop
11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11088 /* end confdefs.h. */
11089 /* Test program from Paul Eggert and Tony Leneis. */
11090 #include <time.h>
11091 #ifdef HAVE_SYS_TIME_H
11092 # include <sys/time.h>
11093 #endif
11094
11095 #include <limits.h>
11096 #include <stdlib.h>
11097
11098 #ifdef HAVE_UNISTD_H
11099 # include <unistd.h>
11100 #endif
11101
11102 #ifndef HAVE_ALARM
11103 # define alarm(X) /* empty */
11104 #endif
11105
11106 /* Work around redefinition to rpl_putenv by other config tests. */
11107 #undef putenv
11108
11109 static time_t time_t_max;
11110 static time_t time_t_min;
11111
11112 /* Values we'll use to set the TZ environment variable. */
11113 static const char *tz_strings[] = {
11114 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
11115 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
11116 };
11117 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
11118
11119 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
11120 Based on a problem report from Andreas Jaeger. */
11121 static int
11122 spring_forward_gap ()
11123 {
11124 /* glibc (up to about 1998-10-07) failed this test. */
11125 struct tm tm;
11126
11127 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11128 instead of "TZ=America/Vancouver" in order to detect the bug even
11129 on systems that don't support the Olson extension, or don't have the
11130 full zoneinfo tables installed. */
11131 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11132
11133 tm.tm_year = 98;
11134 tm.tm_mon = 3;
11135 tm.tm_mday = 5;
11136 tm.tm_hour = 2;
11137 tm.tm_min = 0;
11138 tm.tm_sec = 0;
11139 tm.tm_isdst = -1;
11140 return mktime (&tm) != (time_t) -1;
11141 }
11142
11143 static int
11144 mktime_test1 (time_t now)
11145 {
11146 struct tm *lt;
11147 return ! (lt = localtime (&now)) || mktime (lt) == now;
11148 }
11149
11150 static int
11151 mktime_test (time_t now)
11152 {
11153 return (mktime_test1 (now)
11154 && mktime_test1 ((time_t) (time_t_max - now))
11155 && mktime_test1 ((time_t) (time_t_min + now)));
11156 }
11157
11158 static int
11159 irix_6_4_bug ()
11160 {
11161 /* Based on code from Ariel Faigon. */
11162 struct tm tm;
11163 tm.tm_year = 96;
11164 tm.tm_mon = 3;
11165 tm.tm_mday = 0;
11166 tm.tm_hour = 0;
11167 tm.tm_min = 0;
11168 tm.tm_sec = 0;
11169 tm.tm_isdst = -1;
11170 mktime (&tm);
11171 return tm.tm_mon == 2 && tm.tm_mday == 31;
11172 }
11173
11174 static int
11175 bigtime_test (int j)
11176 {
11177 struct tm tm;
11178 time_t now;
11179 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
11180 now = mktime (&tm);
11181 if (now != (time_t) -1)
11182 {
11183 struct tm *lt = localtime (&now);
11184 if (! (lt
11185 && lt->tm_year == tm.tm_year
11186 && lt->tm_mon == tm.tm_mon
11187 && lt->tm_mday == tm.tm_mday
11188 && lt->tm_hour == tm.tm_hour
11189 && lt->tm_min == tm.tm_min
11190 && lt->tm_sec == tm.tm_sec
11191 && lt->tm_yday == tm.tm_yday
11192 && lt->tm_wday == tm.tm_wday
11193 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
11194 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
11195 return 0;
11196 }
11197 return 1;
11198 }
11199
11200 static int
11201 year_2050_test ()
11202 {
11203 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
11204 ignoring leap seconds. */
11205 unsigned long int answer = 2527315200UL;
11206
11207 struct tm tm;
11208 time_t t;
11209 tm.tm_year = 2050 - 1900;
11210 tm.tm_mon = 2 - 1;
11211 tm.tm_mday = 1;
11212 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
11213 tm.tm_isdst = -1;
11214
11215 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
11216 instead of "TZ=America/Vancouver" in order to detect the bug even
11217 on systems that don't support the Olson extension, or don't have the
11218 full zoneinfo tables installed. */
11219 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
11220
11221 t = mktime (&tm);
11222
11223 /* Check that the result is either a failure, or close enough
11224 to the correct answer that we can assume the discrepancy is
11225 due to leap seconds. */
11226 return (t == (time_t) -1
11227 || (0 < t && answer - 120 <= t && t <= answer + 120));
11228 }
11229
11230 int
11231 main (void)
11232 {
11233 time_t t, delta;
11234 int i, j;
11235
11236 /* This test makes some buggy mktime implementations loop.
11237 Give up after 60 seconds; a mktime slower than that
11238 isn't worth using anyway. */
11239 alarm (60);
11240
11241 for (;;)
11242 {
11243 t = (time_t_max << 1) + 1;
11244 if (t <= time_t_max)
11245 break;
11246 time_t_max = t;
11247 }
11248 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
11249
11250 delta = time_t_max / 997; /* a suitable prime number */
11251 for (i = 0; i < N_STRINGS; i++)
11252 {
11253 if (tz_strings[i])
11254 putenv ((char*) tz_strings[i]);
11255
11256 for (t = 0; t <= time_t_max - delta; t += delta)
11257 if (! mktime_test (t))
11258 return 1;
11259 if (! (mktime_test ((time_t) 1)
11260 && mktime_test ((time_t) (60 * 60))
11261 && mktime_test ((time_t) (60 * 60 * 24))))
11262 return 1;
11263
11264 for (j = 1; ; j <<= 1)
11265 if (! bigtime_test (j))
11266 return 1;
11267 else if (INT_MAX / 2 < j)
11268 break;
11269 if (! bigtime_test (INT_MAX))
11270 return 1;
11271 }
11272 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11273 }
11274 _ACEOF
11275 if ac_fn_c_try_run "$LINENO"
11276 then :
11277 ac_cv_func_working_mktime=yes
11278 else $as_nop
11279 ac_cv_func_working_mktime=no
11280 fi
11281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11282 conftest.$ac_objext conftest.beam conftest.$ac_ext
11283 fi
11284
11285 fi
11286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
11287 printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
11288 if test $ac_cv_func_working_mktime = no; then
11289 case " $LIBOBJS " in
11290 *" mktime.$ac_objext "* ) ;;
11291 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11292 ;;
11293 esac
11294
11295 fi
11296
11297 case "$ac_cv_func_working_mktime" in
11298 yes)
11299 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
11300
11301 ;;
11302 esac
11303
11304 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
11305 if test "x$ac_cv_func_getaddrinfo" = xyes
11306 then :
11307
11308 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
11309
11310 else $as_nop
11311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
11312 printf %s "checking for getaddrinfo in -lsocket... " >&6; }
11313 if test ${ac_cv_lib_socket_getaddrinfo+y}
11314 then :
11315 printf %s "(cached) " >&6
11316 else $as_nop
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-lsocket $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 char getaddrinfo ();
11326 int
11327 main (void)
11328 {
11329 return getaddrinfo ();
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"
11335 then :
11336 ac_cv_lib_socket_getaddrinfo=yes
11337 else $as_nop
11338 ac_cv_lib_socket_getaddrinfo=no
11339 fi
11340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11341 conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11343 fi
11344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
11345 printf "%s\n" "$ac_cv_lib_socket_getaddrinfo" >&6; }
11346 if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
11347 then :
11348
11349 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
11350
11351 fi
11352
11353 fi
11354
11355
11356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
11357 printf %s "checking for library containing fmod... " >&6; }
11358 if test ${ac_cv_search_fmod+y}
11359 then :
11360 printf %s "(cached) " >&6
11361 else $as_nop
11362 ac_func_search_save_LIBS=$LIBS
11363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11369 char fmod ();
11370 int
11371 main (void)
11372 {
11373 return fmod ();
11374 ;
11375 return 0;
11376 }
11377 _ACEOF
11378 for ac_lib in '' m
11379 do
11380 if test -z "$ac_lib"; then
11381 ac_res="none required"
11382 else
11383 ac_res=-l$ac_lib
11384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11385 fi
11386 if ac_fn_c_try_link "$LINENO"
11387 then :
11388 ac_cv_search_fmod=$ac_res
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11391 conftest$ac_exeext
11392 if test ${ac_cv_search_fmod+y}
11393 then :
11394 break
11395 fi
11396 done
11397 if test ${ac_cv_search_fmod+y}
11398 then :
11399
11400 else $as_nop
11401 ac_cv_search_fmod=no
11402 fi
11403 rm conftest.$ac_ext
11404 LIBS=$ac_func_search_save_LIBS
11405 fi
11406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
11407 printf "%s\n" "$ac_cv_search_fmod" >&6; }
11408 ac_res=$ac_cv_search_fmod
11409 if test "$ac_res" != no
11410 then :
11411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11412
11413 fi
11414
11415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing isinf" >&5
11416 printf %s "checking for library containing isinf... " >&6; }
11417 if test ${ac_cv_search_isinf+y}
11418 then :
11419 printf %s "(cached) " >&6
11420 else $as_nop
11421 ac_func_search_save_LIBS=$LIBS
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424
11425 /* Override any GCC internal prototype to avoid an error.
11426 Use char because int might match the return type of a GCC
11427 builtin and then its argument prototype would still apply. */
11428 char isinf ();
11429 int
11430 main (void)
11431 {
11432 return isinf ();
11433 ;
11434 return 0;
11435 }
11436 _ACEOF
11437 for ac_lib in '' m
11438 do
11439 if test -z "$ac_lib"; then
11440 ac_res="none required"
11441 else
11442 ac_res=-l$ac_lib
11443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11444 fi
11445 if ac_fn_c_try_link "$LINENO"
11446 then :
11447 ac_cv_search_isinf=$ac_res
11448 fi
11449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11450 conftest$ac_exeext
11451 if test ${ac_cv_search_isinf+y}
11452 then :
11453 break
11454 fi
11455 done
11456 if test ${ac_cv_search_isinf+y}
11457 then :
11458
11459 else $as_nop
11460 ac_cv_search_isinf=no
11461 fi
11462 rm conftest.$ac_ext
11463 LIBS=$ac_func_search_save_LIBS
11464 fi
11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_isinf" >&5
11466 printf "%s\n" "$ac_cv_search_isinf" >&6; }
11467 ac_res=$ac_cv_search_isinf
11468 if test "$ac_res" != no
11469 then :
11470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11471
11472 fi
11473
11474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ismod" >&5
11475 printf %s "checking for library containing ismod... " >&6; }
11476 if test ${ac_cv_search_ismod+y}
11477 then :
11478 printf %s "(cached) " >&6
11479 else $as_nop
11480 ac_func_search_save_LIBS=$LIBS
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483
11484 /* Override any GCC internal prototype to avoid an error.
11485 Use char because int might match the return type of a GCC
11486 builtin and then its argument prototype would still apply. */
11487 char ismod ();
11488 int
11489 main (void)
11490 {
11491 return ismod ();
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 for ac_lib in '' m
11497 do
11498 if test -z "$ac_lib"; then
11499 ac_res="none required"
11500 else
11501 ac_res=-l$ac_lib
11502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11503 fi
11504 if ac_fn_c_try_link "$LINENO"
11505 then :
11506 ac_cv_search_ismod=$ac_res
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11509 conftest$ac_exeext
11510 if test ${ac_cv_search_ismod+y}
11511 then :
11512 break
11513 fi
11514 done
11515 if test ${ac_cv_search_ismod+y}
11516 then :
11517
11518 else $as_nop
11519 ac_cv_search_ismod=no
11520 fi
11521 rm conftest.$ac_ext
11522 LIBS=$ac_func_search_save_LIBS
11523 fi
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ismod" >&5
11525 printf "%s\n" "$ac_cv_search_ismod" >&6; }
11526 ac_res=$ac_cv_search_ismod
11527 if test "$ac_res" != no
11528 then :
11529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11530
11531 fi
11532
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing isnan" >&5
11534 printf %s "checking for library containing isnan... " >&6; }
11535 if test ${ac_cv_search_isnan+y}
11536 then :
11537 printf %s "(cached) " >&6
11538 else $as_nop
11539 ac_func_search_save_LIBS=$LIBS
11540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541 /* end confdefs.h. */
11542
11543 /* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546 char isnan ();
11547 int
11548 main (void)
11549 {
11550 return isnan ();
11551 ;
11552 return 0;
11553 }
11554 _ACEOF
11555 for ac_lib in '' m
11556 do
11557 if test -z "$ac_lib"; then
11558 ac_res="none required"
11559 else
11560 ac_res=-l$ac_lib
11561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11562 fi
11563 if ac_fn_c_try_link "$LINENO"
11564 then :
11565 ac_cv_search_isnan=$ac_res
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11568 conftest$ac_exeext
11569 if test ${ac_cv_search_isnan+y}
11570 then :
11571 break
11572 fi
11573 done
11574 if test ${ac_cv_search_isnan+y}
11575 then :
11576
11577 else $as_nop
11578 ac_cv_search_isnan=no
11579 fi
11580 rm conftest.$ac_ext
11581 LIBS=$ac_func_search_save_LIBS
11582 fi
11583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_isnan" >&5
11584 printf "%s\n" "$ac_cv_search_isnan" >&6; }
11585 ac_res=$ac_cv_search_isnan
11586 if test "$ac_res" != no
11587 then :
11588 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11589
11590 fi
11591
11592
11593 # Need the check for mkstemp and tmpfile for missing_d/snprintf.c.
11594 ac_fn_c_check_func "$LINENO" "__etoa_l" "ac_cv_func___etoa_l"
11595 if test "x$ac_cv_func___etoa_l" = xyes
11596 then :
11597 printf "%s\n" "#define HAVE___ETOA_L 1" >>confdefs.h
11598
11599 fi
11600 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
11601 if test "x$ac_cv_func_atexit" = xyes
11602 then :
11603 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
11604
11605 fi
11606 ac_fn_c_check_func "$LINENO" "btowc" "ac_cv_func_btowc"
11607 if test "x$ac_cv_func_btowc" = xyes
11608 then :
11609 printf "%s\n" "#define HAVE_BTOWC 1" >>confdefs.h
11610
11611 fi
11612 ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod"
11613 if test "x$ac_cv_func_fmod" = xyes
11614 then :
11615 printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h
11616
11617 fi
11618 ac_fn_c_check_func "$LINENO" "fwrite_unlocked" "ac_cv_func_fwrite_unlocked"
11619 if test "x$ac_cv_func_fwrite_unlocked" = xyes
11620 then :
11621 printf "%s\n" "#define HAVE_FWRITE_UNLOCKED 1" >>confdefs.h
11622
11623 fi
11624 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
11625 if test "x$ac_cv_func_gai_strerror" = xyes
11626 then :
11627 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
11628
11629 fi
11630 ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent"
11631 if test "x$ac_cv_func_getgrent" = xyes
11632 then :
11633 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
11634
11635 fi
11636 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
11637 if test "x$ac_cv_func_getgroups" = xyes
11638 then :
11639 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
11640
11641 fi
11642 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
11643 if test "x$ac_cv_func_grantpt" = xyes
11644 then :
11645 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
11646
11647 fi
11648 ac_fn_c_check_func "$LINENO" "isascii" "ac_cv_func_isascii"
11649 if test "x$ac_cv_func_isascii" = xyes
11650 then :
11651 printf "%s\n" "#define HAVE_ISASCII 1" >>confdefs.h
11652
11653 fi
11654 ac_fn_c_check_func "$LINENO" "isblank" "ac_cv_func_isblank"
11655 if test "x$ac_cv_func_isblank" = xyes
11656 then :
11657 printf "%s\n" "#define HAVE_ISBLANK 1" >>confdefs.h
11658
11659 fi
11660 ac_fn_c_check_func "$LINENO" "iswctype" "ac_cv_func_iswctype"
11661 if test "x$ac_cv_func_iswctype" = xyes
11662 then :
11663 printf "%s\n" "#define HAVE_ISWCTYPE 1" >>confdefs.h
11664
11665 fi
11666 ac_fn_c_check_func "$LINENO" "iswlower" "ac_cv_func_iswlower"
11667 if test "x$ac_cv_func_iswlower" = xyes
11668 then :
11669 printf "%s\n" "#define HAVE_ISWLOWER 1" >>confdefs.h
11670
11671 fi
11672 ac_fn_c_check_func "$LINENO" "iswupper" "ac_cv_func_iswupper"
11673 if test "x$ac_cv_func_iswupper" = xyes
11674 then :
11675 printf "%s\n" "#define HAVE_ISWUPPER 1" >>confdefs.h
11676
11677 fi
11678 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
11679 if test "x$ac_cv_func_gettimeofday" = xyes
11680 then :
11681 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
11682
11683 fi
11684 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
11685 if test "x$ac_cv_func_clock_gettime" = xyes
11686 then :
11687 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
11688
11689 fi
11690 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
11691 if test "x$ac_cv_func_lstat" = xyes
11692 then :
11693 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
11694
11695 fi
11696 ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
11697 if test "x$ac_cv_func_getdtablesize" = xyes
11698 then :
11699 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
11700
11701 fi
11702 ac_fn_c_check_func "$LINENO" "mbrlen" "ac_cv_func_mbrlen"
11703 if test "x$ac_cv_func_mbrlen" = xyes
11704 then :
11705 printf "%s\n" "#define HAVE_MBRLEN 1" >>confdefs.h
11706
11707 fi
11708 ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp"
11709 if test "x$ac_cv_func_memcmp" = xyes
11710 then :
11711 printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h
11712
11713 fi
11714 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11715 if test "x$ac_cv_func_memcpy" = xyes
11716 then :
11717 printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
11718
11719 fi
11720 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
11721 if test "x$ac_cv_func_memmove" = xyes
11722 then :
11723 printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
11724
11725 fi
11726 ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
11727 if test "x$ac_cv_func_memset" = xyes
11728 then :
11729 printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h
11730
11731 fi
11732 ac_fn_c_check_func "$LINENO" "_NSGetExecutablePath" "ac_cv_func__NSGetExecutablePath"
11733 if test "x$ac_cv_func__NSGetExecutablePath" = xyes
11734 then :
11735 printf "%s\n" "#define HAVE__NSGETEXECUTABLEPATH 1" >>confdefs.h
11736
11737 fi
11738 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11739 if test "x$ac_cv_func_mkstemp" = xyes
11740 then :
11741 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11742
11743 fi
11744 ac_fn_c_check_func "$LINENO" "mtrace" "ac_cv_func_mtrace"
11745 if test "x$ac_cv_func_mtrace" = xyes
11746 then :
11747 printf "%s\n" "#define HAVE_MTRACE 1" >>confdefs.h
11748
11749 fi
11750 ac_fn_c_check_func "$LINENO" "personality" "ac_cv_func_personality"
11751 if test "x$ac_cv_func_personality" = xyes
11752 then :
11753 printf "%s\n" "#define HAVE_PERSONALITY 1" >>confdefs.h
11754
11755 fi
11756 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
11757 if test "x$ac_cv_func_posix_openpt" = xyes
11758 then :
11759 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
11760
11761 fi
11762 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
11763 if test "x$ac_cv_func_setenv" = xyes
11764 then :
11765 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
11766
11767 fi
11768 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
11769 if test "x$ac_cv_func_setlocale" = xyes
11770 then :
11771 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
11772
11773 fi
11774 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid"
11775 if test "x$ac_cv_func_setsid" = xyes
11776 then :
11777 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
11778
11779 fi
11780 ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
11781 if test "x$ac_cv_func_sigprocmask" = xyes
11782 then :
11783 printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h
11784
11785 fi
11786 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11787 if test "x$ac_cv_func_snprintf" = xyes
11788 then :
11789 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
11790
11791 fi
11792 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11793 if test "x$ac_cv_func_strcasecmp" = xyes
11794 then :
11795 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
11796
11797 fi
11798 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
11799 if test "x$ac_cv_func_strchr" = xyes
11800 then :
11801 printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
11802
11803 fi
11804 ac_fn_c_check_func "$LINENO" "strcoll" "ac_cv_func_strcoll"
11805 if test "x$ac_cv_func_strcoll" = xyes
11806 then :
11807 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
11808
11809 fi
11810 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
11811 if test "x$ac_cv_func_strerror" = xyes
11812 then :
11813 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
11814
11815 fi
11816 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
11817 if test "x$ac_cv_func_strftime" = xyes
11818 then :
11819 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
11820
11821 fi
11822 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
11823 if test "x$ac_cv_func_strncasecmp" = xyes
11824 then :
11825 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
11826
11827 fi
11828 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
11829 if test "x$ac_cv_func_strsignal" = xyes
11830 then :
11831 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
11832
11833 fi
11834 ac_fn_c_check_func "$LINENO" "strtod" "ac_cv_func_strtod"
11835 if test "x$ac_cv_func_strtod" = xyes
11836 then :
11837 printf "%s\n" "#define HAVE_STRTOD 1" >>confdefs.h
11838
11839 fi
11840 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
11841 if test "x$ac_cv_func_strtoul" = xyes
11842 then :
11843 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
11844
11845 fi
11846 ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system"
11847 if test "x$ac_cv_func_system" = xyes
11848 then :
11849 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
11850
11851 fi
11852 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
11853 if test "x$ac_cv_func_timegm" = xyes
11854 then :
11855 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
11856
11857 fi
11858 ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile"
11859 if test "x$ac_cv_func_tmpfile" = xyes
11860 then :
11861 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
11862
11863 fi
11864 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
11865 if test "x$ac_cv_func_towlower" = xyes
11866 then :
11867 printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h
11868
11869 fi
11870 ac_fn_c_check_func "$LINENO" "towupper" "ac_cv_func_towupper"
11871 if test "x$ac_cv_func_towupper" = xyes
11872 then :
11873 printf "%s\n" "#define HAVE_TOWUPPER 1" >>confdefs.h
11874
11875 fi
11876 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
11877 if test "x$ac_cv_func_tzset" = xyes
11878 then :
11879 printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h
11880
11881 fi
11882 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
11883 if test "x$ac_cv_func_usleep" = xyes
11884 then :
11885 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
11886
11887 fi
11888 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
11889 if test "x$ac_cv_func_waitpid" = xyes
11890 then :
11891 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
11892
11893 fi
11894 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
11895 if test "x$ac_cv_func_wcrtomb" = xyes
11896 then :
11897 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
11898
11899 fi
11900 ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll"
11901 if test "x$ac_cv_func_wcscoll" = xyes
11902 then :
11903 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
11904
11905 fi
11906 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
11907 if test "x$ac_cv_func_wctype" = xyes
11908 then :
11909 printf "%s\n" "#define HAVE_WCTYPE 1" >>confdefs.h
11910
11911 fi
11912
11913
11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc and mbstate_t are properly declared" >&5
11915 printf %s "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
11916 if test ${ac_cv_func_mbrtowc+y}
11917 then :
11918 printf %s "(cached) " >&6
11919 else $as_nop
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <wchar.h>
11923 int
11924 main (void)
11925 {
11926 wchar_t wc;
11927 char const s[] = "";
11928 size_t n = 1;
11929 mbstate_t state;
11930 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
11931 ;
11932 return 0;
11933 }
11934 _ACEOF
11935 if ac_fn_c_try_link "$LINENO"
11936 then :
11937 ac_cv_func_mbrtowc=yes
11938 else $as_nop
11939 ac_cv_func_mbrtowc=no
11940 fi
11941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11942 conftest$ac_exeext conftest.$ac_ext
11943 fi
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mbrtowc" >&5
11945 printf "%s\n" "$ac_cv_func_mbrtowc" >&6; }
11946 if test $ac_cv_func_mbrtowc = yes; then
11947
11948 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
11949
11950 fi
11951
11952
11953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
11954 printf %s "checking whether C compiler accepts ... " >&6; }
11955 if test ${ax_cv_check_cflags__+y}
11956 then :
11957 printf %s "(cached) " >&6
11958 else $as_nop
11959
11960 ax_check_save_flags=$CFLAGS
11961 CFLAGS="$CFLAGS "
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964
11965 int
11966 main (void)
11967 {
11968
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_compile "$LINENO"
11974 then :
11975 ax_cv_check_cflags__=yes
11976 else $as_nop
11977 ax_cv_check_cflags__=no
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11980 CFLAGS=$ax_check_save_flags
11981 fi
11982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
11983 printf "%s\n" "$ax_cv_check_cflags__" >&6; }
11984 if test "x$ax_cv_check_cflags__" = xyes
11985 then :
11986 :
11987 else $as_nop
11988 :
11989 fi
11990
11991
11992
11993 # The cast to long int works around a bug in the HP C Compiler
11994 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11995 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11996 # This bug is HP SR number 8606223364.
11997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11998 printf %s "checking size of void *... " >&6; }
11999 if test ${ac_cv_sizeof_void_p+y}
12000 then :
12001 printf %s "(cached) " >&6
12002 else $as_nop
12003 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
12004 then :
12005
12006 else $as_nop
12007 if test "$ac_cv_type_void_p" = yes; then
12008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12010 as_fn_error 77 "cannot compute sizeof (void *)
12011 See \`config.log' for more details" "$LINENO" 5; }
12012 else
12013 ac_cv_sizeof_void_p=0
12014 fi
12015 fi
12016
12017 fi
12018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12019 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
12020
12021
12022
12023 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
12024
12025
12026 use_persistent_malloc=no
12027 if test "$SKIP_PERSIST_MALLOC" = no && test $ac_cv_sizeof_void_p -eq 8
12028 then
12029 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12030 if test "x$ac_cv_func_mmap" = xyes
12031 then :
12032
12033 fi
12034
12035 ac_fn_c_check_func "$LINENO" "munmap" "ac_cv_func_munmap"
12036 if test "x$ac_cv_func_munmap" = xyes
12037 then :
12038
12039 fi
12040
12041 if test $ac_cv_func_mmap = yes && test $ac_cv_func_munmap = yes
12042 then
12043 use_persistent_malloc=yes
12044 case $host_os in
12045 linux-*)
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 /* end confdefs.h. */
12048
12049 #include <sys/personality.h>
12050 int x = ADDR_NO_RANDOMIZE;
12051
12052 int
12053 main (void)
12054 {
12055
12056 ;
12057 return 0;
12058 }
12059 _ACEOF
12060 if ac_fn_c_try_compile "$LINENO"
12061 then :
12062 have_addr_no_randomize=yes
12063 else $as_nop
12064 have_addr_no_randomize=no
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12067 ;;
12068 *darwin*)
12069 true # On macos we no longer need -no-pie
12070 ;;
12071 *cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
12072 true # nothing to do, exes on these systems are not PIE
12073 ;;
12074 # Other OS's go here...
12075 *)
12076 # For now, play it safe
12077 use_persistent_malloc=no
12078
12079 # Allow override for testing on new systems
12080 if test "$REALLY_USE_PERSIST_MALLOC" != ""
12081 then
12082 use_persistent_malloc=yes
12083 fi
12084 ;;
12085 esac
12086 else
12087 use_persistent_malloc=no
12088 fi
12089 fi
12090
12091 if test "$use_persistent_malloc" = "yes"; then
12092 USE_PERSISTENT_MALLOC_TRUE=
12093 USE_PERSISTENT_MALLOC_FALSE='#'
12094 else
12095 USE_PERSISTENT_MALLOC_TRUE='#'
12096 USE_PERSISTENT_MALLOC_FALSE=
12097 fi
12098
12099 if test "$have_addr_no_randomize" = "yes"; then
12100 HAVE_ADDR_NO_RANDOMIZE_TRUE=
12101 HAVE_ADDR_NO_RANDOMIZE_FALSE='#'
12102 else
12103 HAVE_ADDR_NO_RANDOMIZE_TRUE='#'
12104 HAVE_ADDR_NO_RANDOMIZE_FALSE=
12105 fi
12106
12107
12108 if test "$use_persistent_malloc" = "yes"
12109 then
12110
12111 printf "%s\n" "#define USE_PERSISTENT_MALLOC 1" >>confdefs.h
12112
12113 fi
12114 if test "$have_addr_no_randomize" = "yes"
12115 then
12116
12117 printf "%s\n" "#define HAVE_ADDR_NO_RANDOMIZE 1" >>confdefs.h
12118
12119 fi
12120
12121
12122 # Check whether --enable-extensions was given.
12123 if test ${enable_extensions+y}
12124 then :
12125 enableval=$enable_extensions;
12126 fi
12127
12128 if test "$enable_extensions" != "no"
12129 then
12130 extensions_supported=no
12131
12132 case $host_os in
12133 mirbsd* | openedition*) # OS/390 z/OS POSIX layer
12134 ;;
12135 *)
12136 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
12137 if test "x$ac_cv_header_dlfcn_h" = xyes
12138 then :
12139
12140 # Check this separately. Some systems have dlopen
12141 # in libc. Notably freebsd and cygwin.
12142 # HP-NSK has it in zrldsrl
12143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12144 printf %s "checking for library containing dlopen... " >&6; }
12145 if test ${ac_cv_search_dlopen+y}
12146 then :
12147 printf %s "(cached) " >&6
12148 else $as_nop
12149 ac_func_search_save_LIBS=$LIBS
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152
12153 /* Override any GCC internal prototype to avoid an error.
12154 Use char because int might match the return type of a GCC
12155 builtin and then its argument prototype would still apply. */
12156 char dlopen ();
12157 int
12158 main (void)
12159 {
12160 return dlopen ();
12161 ;
12162 return 0;
12163 }
12164 _ACEOF
12165 for ac_lib in '' dl zrldsrl
12166 do
12167 if test -z "$ac_lib"; then
12168 ac_res="none required"
12169 else
12170 ac_res=-l$ac_lib
12171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12172 fi
12173 if ac_fn_c_try_link "$LINENO"
12174 then :
12175 ac_cv_search_dlopen=$ac_res
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12178 conftest$ac_exeext
12179 if test ${ac_cv_search_dlopen+y}
12180 then :
12181 break
12182 fi
12183 done
12184 if test ${ac_cv_search_dlopen+y}
12185 then :
12186
12187 else $as_nop
12188 ac_cv_search_dlopen=no
12189 fi
12190 rm conftest.$ac_ext
12191 LIBS=$ac_func_search_save_LIBS
12192 fi
12193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12194 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
12195 ac_res=$ac_cv_search_dlopen
12196 if test "$ac_res" != no
12197 then :
12198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12199 gawk_have_dlopen=yes
12200 else $as_nop
12201 gawk_have_dlopen=no
12202 fi
12203
12204 # Only do DYNAMIC if we have the lib. z/OS (some versions) have
12205 # the header but not the lib, apparently
12206 if test "$gawk_have_dlopen" = yes
12207 then
12208 extensions_supported=yes
12209
12210 printf "%s\n" "#define DYNAMIC 1" >>confdefs.h
12211
12212 fi
12213
12214 fi
12215
12216 ;;
12217 esac
12218
12219 if test "$enable_extensions$extensions_supported" = "yesno"
12220 then
12221 as_fn_error $? "extension support requested, but unavailable" "$LINENO" 5
12222 fi
12223 enable_extensions=$extensions_supported
12224 fi
12225 if test "$enable_extensions" = "yes"; then
12226 ENABLE_EXTENSIONS_TRUE=
12227 ENABLE_EXTENSIONS_FALSE='#'
12228 else
12229 ENABLE_EXTENSIONS_TRUE='#'
12230 ENABLE_EXTENSIONS_FALSE=
12231 fi
12232
12233
12234 case $host_os in
12235 vms*|beos*|os2*|msdos)
12236
12237 printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
12238
12239 ;;
12240 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
12241 printf %s "checking whether getpgrp requires zero arguments... " >&6; }
12242 if test ${ac_cv_func_getpgrp_void+y}
12243 then :
12244 printf %s "(cached) " >&6
12245 else $as_nop
12246 # Use it with a single arg.
12247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12248 /* end confdefs.h. */
12249 $ac_includes_default
12250 int
12251 main (void)
12252 {
12253 getpgrp (0);
12254 ;
12255 return 0;
12256 }
12257 _ACEOF
12258 if ac_fn_c_try_compile "$LINENO"
12259 then :
12260 ac_cv_func_getpgrp_void=no
12261 else $as_nop
12262 ac_cv_func_getpgrp_void=yes
12263 fi
12264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12265
12266 fi
12267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
12268 printf "%s\n" "$ac_cv_func_getpgrp_void" >&6; }
12269 if test $ac_cv_func_getpgrp_void = yes; then
12270
12271 printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h
12272
12273 fi
12274
12275 ;;
12276 esac
12277
12278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf %F format" >&5
12279 printf %s "checking for printf %F format... " >&6; }
12280 if test "$cross_compiling" = yes
12281 then :
12282 has_f_format=no
12283 else $as_nop
12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12285 /* end confdefs.h. */
12286
12287
12288 #include <stdio.h>
12289 #include <string.h>
12290
12291 int main()
12292 {
12293 char buf[100];
12294
12295 sprintf(buf, "%F", 123.45);
12296
12297 if (strcmp(buf, "123.450000") == 0)
12298 return 0;
12299 else
12300 return 1;
12301 }
12302
12303 _ACEOF
12304 if ac_fn_c_try_run "$LINENO"
12305 then :
12306 has_f_format=yes
12307 else $as_nop
12308 has_f_format=no
12309 fi
12310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12311 conftest.$ac_objext conftest.beam conftest.$ac_ext
12312 fi
12313
12314 if test "$has_f_format" = yes
12315 then
12316
12317 printf "%s\n" "#define PRINTF_HAS_F_FORMAT 1" >>confdefs.h
12318
12319 fi
12320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_f_format" >&5
12321 printf "%s\n" "$has_f_format" >&6; }
12322
12323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf %a format" >&5
12324 printf %s "checking for printf %a format... " >&6; }
12325 if test "$cross_compiling" = yes
12326 then :
12327 has_a_format=no
12328 else $as_nop
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331
12332
12333 #include <stdio.h>
12334 #include <string.h>
12335
12336 int main()
12337 {
12338 char buf[100];
12339
12340 sprintf(buf, "%a", 8.0);
12341
12342 if (strncmp(buf, "0x", 2) == 0)
12343 return 0;
12344 else
12345 return 1;
12346 }
12347
12348 _ACEOF
12349 if ac_fn_c_try_run "$LINENO"
12350 then :
12351 has_a_format=yes
12352 else $as_nop
12353 has_a_format=no
12354 fi
12355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12356 conftest.$ac_objext conftest.beam conftest.$ac_ext
12357 fi
12358
12359 if test "$has_a_format" = yes
12360 then
12361
12362 printf "%s\n" "#define PRINTF_HAS_A_FORMAT 1" >>confdefs.h
12363
12364 fi
12365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $has_a_format" >&5
12366 printf "%s\n" "$has_a_format" >&6; }
12367
12368
12369 gawk_have_sockets=no
12370 # Check for system-dependent location of socket libraries
12371
12372 SOCKET_LIBS=
12373 if test "$ISC" = yes; then
12374 SOCKET_LIBS="-lnsl_s -linet"
12375 else
12376 # [email protected] says this is needed for Ultrix, if the X
12377 # libraries were built with DECnet support. And [email protected] says
12378 # the Alpha needs dnet_stub (dnet does not exist).
12379 #
12380 # ADR: Is this needed just for sockets???
12381 # AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
12382 # if test $ac_cv_lib_dnet_ntoa = no; then
12383 # AC_CHECK_LIB(dnet_stub, dnet_ntoa,
12384 # [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
12385 # fi
12386
12387 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
12388 # to get the SysV transport functions.
12389 # [email protected] says the Pyramid MIS-ES running DC/OSx (SVR4)
12390 # needs -lnsl.
12391 # The nsl library prevents programs from opening the X display
12392 # on Irix 5.2, according to [email protected].
12393 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12394 if test "x$ac_cv_func_gethostbyname" = xyes
12395 then :
12396
12397 fi
12398
12399 if test $ac_cv_func_gethostbyname = no; then
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12401 printf %s "checking for gethostbyname in -lnsl... " >&6; }
12402 if test ${ac_cv_lib_nsl_gethostbyname+y}
12403 then :
12404 printf %s "(cached) " >&6
12405 else $as_nop
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lnsl $LIBS"
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply. */
12414 char gethostbyname ();
12415 int
12416 main (void)
12417 {
12418 return gethostbyname ();
12419 ;
12420 return 0;
12421 }
12422 _ACEOF
12423 if ac_fn_c_try_link "$LINENO"
12424 then :
12425 ac_cv_lib_nsl_gethostbyname=yes
12426 else $as_nop
12427 ac_cv_lib_nsl_gethostbyname=no
12428 fi
12429 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_lib_save_LIBS
12432 fi
12433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
12434 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
12435 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
12436 then :
12437 SOCKET_LIBS="$SOCKET_LIBS -lnsl"
12438 fi
12439
12440 fi
12441
12442 # [email protected] says without -lsocket,
12443 # socket/setsockopt and other routines are undefined under SCO ODT
12444 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12445 # on later versions), says [email protected]: it contains
12446 # gethostby* variants that don't use the nameserver (or something).
12447 # -lsocket must be given before -lnsl if both are needed.
12448 # We assume that if connect needs -lnsl, so does gethostbyname.
12449 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
12450 if test "x$ac_cv_func_connect" = xyes
12451 then :
12452
12453 fi
12454
12455 if test $ac_cv_func_connect = no; then
12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
12457 printf %s "checking for connect in -lsocket... " >&6; }
12458 if test ${ac_cv_lib_socket_connect+y}
12459 then :
12460 printf %s "(cached) " >&6
12461 else $as_nop
12462 ac_check_lib_save_LIBS=$LIBS
12463 LIBS="-lsocket $SOCKET_LIBS $LIBS"
12464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12465 /* end confdefs.h. */
12466
12467 /* Override any GCC internal prototype to avoid an error.
12468 Use char because int might match the return type of a GCC
12469 builtin and then its argument prototype would still apply. */
12470 char connect ();
12471 int
12472 main (void)
12473 {
12474 return connect ();
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 if ac_fn_c_try_link "$LINENO"
12480 then :
12481 ac_cv_lib_socket_connect=yes
12482 else $as_nop
12483 ac_cv_lib_socket_connect=no
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12488 fi
12489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
12490 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
12491 if test "x$ac_cv_lib_socket_connect" = xyes
12492 then :
12493 SOCKET_LIBS="-lsocket $SOCKET_LIBS"
12494 gawk_have_sockets=yes
12495 fi
12496
12497 else
12498 gawk_have_sockets=yes
12499 fi
12500 fi
12501
12502 if test "${gawk_have_sockets}" = "yes"
12503 then
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the socket library calls" >&5
12505 printf %s "checking where to find the socket library calls... " >&6; }
12506 case "${SOCKET_LIBS}" in
12507 ?*) gawk_lib_loc="${SOCKET_LIBS}" ;;
12508 *) gawk_lib_loc="the standard library" ;;
12509 esac
12510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${gawk_lib_loc}" >&5
12511 printf "%s\n" "${gawk_lib_loc}" >&6; }
12512
12513
12514 printf "%s\n" "#define HAVE_SOCKETS 1" >>confdefs.h
12515
12516 fi
12517
12518
12519
12520
12521 # Check whether --with-readline was given.
12522 if test ${with_readline+y}
12523 then :
12524 withval=$with_readline; _do_readline=$withval
12525 else $as_nop
12526 _do_readline=yes
12527 fi
12528
12529
12530 if test "$_do_readline" != "no" ; then
12531 if test -d "$withval" ; then
12532 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12533 LDFLAGS="${LDFLAGS} -L$withval/lib"
12534 fi
12535
12536 for _termcap in "" "-ltermcap" "-lcurses" "-lncurses" ; do
12537 _readline_save_libs=$LIBS
12538 _combo="-lreadline${_termcap:+ $_termcap}"
12539 LIBS="$LIBS $_combo"
12540
12541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readline via \"$_combo\" is present and sane" >&5
12542 printf %s "checking whether readline via \"$_combo\" is present and sane... " >&6; }
12543
12544 if test "$cross_compiling" = yes
12545 then :
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 #include <stdio.h>
12549 #include <fcntl.h>
12550 #include <unistd.h>
12551 #include <readline/readline.h>
12552 #include <readline/history.h>
12553 int
12554 main (void)
12555 {
12556
12557 int fd;
12558 char *line;
12559
12560 close(0);
12561 close(1);
12562 fd = open("/dev/null", 2); /* should get fd 0 */
12563 dup(fd);
12564 line = readline("giveittome> ");
12565
12566 /* some printfs don't handle NULL for %s */
12567 printf("got <%s>\n", line ? line : "(NULL)");
12568
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_link "$LINENO"
12574 then :
12575 _found_readline=yes
12576 else $as_nop
12577 _found_readline=no
12578
12579 fi
12580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12581 conftest$ac_exeext conftest.$ac_ext
12582
12583 else $as_nop
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 #include <stdio.h>
12587 #include <fcntl.h>
12588 #include <unistd.h>
12589 #include <readline/readline.h>
12590 #include <readline/history.h>
12591
12592 int main(int argc, char **argv)
12593 {
12594 int fd;
12595 char *line;
12596
12597 close(0);
12598 close(1);
12599 fd = open("/dev/null", 2); /* should get fd 0 */
12600 dup(fd);
12601 line = readline("giveittome> ");
12602
12603 /* some printfs don't handle NULL for %s */
12604 printf("got <%s>\n", line ? line : "(NULL)");
12605 return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_run "$LINENO"
12609 then :
12610 _found_readline=yes
12611 else $as_nop
12612 _found_readline=no
12613 fi
12614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12615 conftest.$ac_objext conftest.beam conftest.$ac_ext
12616 fi
12617
12618
12619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_found_readline" >&5
12620 printf "%s\n" "$_found_readline" >&6; }
12621
12622 LIBS=$_readline_save_libs
12623
12624 if test $_found_readline = yes ; then
12625 case $host_os in
12626 *bsd* ) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
12627 printf %s "checking for tgetent in -ltermcap... " >&6; }
12628 if test ${ac_cv_lib_termcap_tgetent+y}
12629 then :
12630 printf %s "(cached) " >&6
12631 else $as_nop
12632 ac_check_lib_save_LIBS=$LIBS
12633 LIBS="-ltermcap $LIBS"
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636
12637 /* Override any GCC internal prototype to avoid an error.
12638 Use char because int might match the return type of a GCC
12639 builtin and then its argument prototype would still apply. */
12640 char tgetent ();
12641 int
12642 main (void)
12643 {
12644 return tgetent ();
12645 ;
12646 return 0;
12647 }
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"
12650 then :
12651 ac_cv_lib_termcap_tgetent=yes
12652 else $as_nop
12653 ac_cv_lib_termcap_tgetent=no
12654 fi
12655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12656 conftest$ac_exeext conftest.$ac_ext
12657 LIBS=$ac_check_lib_save_LIBS
12658 fi
12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
12660 printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
12661 if test "x$ac_cv_lib_termcap_tgetent" = xyes
12662 then :
12663 _combo="$_combo -ltermcap"
12664 fi
12665
12666 ;;
12667 esac
12668
12669 printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
12670
12671 LIBREADLINE=$_combo
12672
12673
12674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5
12675 printf %s "checking for history_list in -lreadline... " >&6; }
12676 if test ${ac_cv_lib_readline_history_list+y}
12677 then :
12678 printf %s "(cached) " >&6
12679 else $as_nop
12680 ac_check_lib_save_LIBS=$LIBS
12681 LIBS="-lreadline $_combo $LIBS"
12682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12683 /* end confdefs.h. */
12684
12685 /* Override any GCC internal prototype to avoid an error.
12686 Use char because int might match the return type of a GCC
12687 builtin and then its argument prototype would still apply. */
12688 char history_list ();
12689 int
12690 main (void)
12691 {
12692 return history_list ();
12693 ;
12694 return 0;
12695 }
12696 _ACEOF
12697 if ac_fn_c_try_link "$LINENO"
12698 then :
12699 ac_cv_lib_readline_history_list=yes
12700 else $as_nop
12701 ac_cv_lib_readline_history_list=no
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12706 fi
12707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history_list" >&5
12708 printf "%s\n" "$ac_cv_lib_readline_history_list" >&6; }
12709 if test "x$ac_cv_lib_readline_history_list" = xyes
12710 then :
12711
12712 printf "%s\n" "#define HAVE_HISTORY_LIST 1" >>confdefs.h
12713
12714 fi
12715
12716
12717 break
12718 fi
12719 done
12720
12721 unset _termcap
12722 unset _readline_save_libs
12723 unset _combo
12724 unset _found_readline
12725 fi
12726
12727
12728 case $SKIP_MPFR in
12729 no)
12730
12731 # Check whether --with-mpfr was given.
12732 if test ${with_mpfr+y}
12733 then :
12734 withval=$with_mpfr; _do_mpfr=$withval
12735 else $as_nop
12736 _do_mpfr=yes
12737 fi
12738
12739
12740 if test "$_do_mpfr" != "no" ; then
12741 if test -d "$withval" ; then
12742 CPPFLAGS="${CPPFLAGS} -I$withval/include"
12743 LDFLAGS="${LDFLAGS} -L$withval/lib"
12744 fi
12745
12746 _mpfr_save_libs=$LIBS
12747 _combo="-lmpfr -lgmp"
12748 LIBS="$LIBS $_combo"
12749
12750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mpfr via \"$_combo\" is present and usable" >&5
12751 printf %s "checking whether mpfr via \"$_combo\" is present and usable... " >&6; }
12752
12753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755
12756
12757 #include <stdio.h>
12758 #include <mpfr.h>
12759 #include <gmp.h>
12760
12761 int
12762 main (void)
12763 {
12764
12765 mpfr_t p;
12766 mpz_t z;
12767 mpfr_init(p);
12768 mpz_init(z);
12769 mpfr_printf("%Rf%Zd", p, z);
12770 mpfr_clear(p);
12771 mpz_clear(z);
12772
12773 ;
12774 return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"
12778 then :
12779 _found_mpfr=yes
12780 else $as_nop
12781 _found_mpfr=no
12782 fi
12783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12784 conftest$ac_exeext conftest.$ac_ext
12785
12786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_found_mpfr" >&5
12787 printf "%s\n" "$_found_mpfr" >&6; }
12788
12789 LIBS=$_mpfr_save_libs
12790
12791 if test $_found_mpfr = yes ; then
12792
12793 printf "%s\n" "#define HAVE_MPFR 1" >>confdefs.h
12794
12795 LIBMPFR=$_combo
12796
12797 break
12798 fi
12799
12800 unset _mpfr_save_libs
12801 unset _combo
12802 unset _found_mpfr
12803 fi
12804
12805 ;;
12806 esac
12807
12808 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12809 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
12810 then :
12811
12812 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
12813
12814
12815 fi
12816
12817 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
12818 #include <sys/types.h>
12819 #include <pwd.h>
12820
12821 "
12822 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
12823 then :
12824
12825 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
12826
12827
12828 fi
12829
12830 ac_fn_c_check_member "$LINENO" "struct group" "gr_passwd" "ac_cv_member_struct_group_gr_passwd" "
12831 #include <sys/types.h>
12832 #include <grp.h>
12833
12834 "
12835 if test "x$ac_cv_member_struct_group_gr_passwd" = xyes
12836 then :
12837
12838 printf "%s\n" "#define HAVE_STRUCT_GROUP_GR_PASSWD 1" >>confdefs.h
12839
12840
12841 fi
12842
12843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
12844 printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
12845 if test ${ac_cv_struct_tm+y}
12846 then :
12847 printf %s "(cached) " >&6
12848 else $as_nop
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 #include <sys/types.h>
12852 #include <time.h>
12853
12854 int
12855 main (void)
12856 {
12857 struct tm tm;
12858 int *p = &tm.tm_sec;
12859 return !p;
12860 ;
12861 return 0;
12862 }
12863 _ACEOF
12864 if ac_fn_c_try_compile "$LINENO"
12865 then :
12866 ac_cv_struct_tm=time.h
12867 else $as_nop
12868 ac_cv_struct_tm=sys/time.h
12869 fi
12870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12871 fi
12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
12873 printf "%s\n" "$ac_cv_struct_tm" >&6; }
12874 if test $ac_cv_struct_tm = sys/time.h; then
12875
12876 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
12877
12878 fi
12879
12880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12881 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12882 if test ${ac_cv_c_undeclared_builtin_options+y}
12883 then :
12884 printf %s "(cached) " >&6
12885 else $as_nop
12886 ac_save_CFLAGS=$CFLAGS
12887 ac_cv_c_undeclared_builtin_options='cannot detect'
12888 for ac_arg in '' -fno-builtin; do
12889 CFLAGS="$ac_save_CFLAGS $ac_arg"
12890 # This test program should *not* compile successfully.
12891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12892 /* end confdefs.h. */
12893
12894 int
12895 main (void)
12896 {
12897 (void) strchr;
12898 ;
12899 return 0;
12900 }
12901 _ACEOF
12902 if ac_fn_c_try_compile "$LINENO"
12903 then :
12904
12905 else $as_nop
12906 # This test program should compile successfully.
12907 # No library function is consistently available on
12908 # freestanding implementations, so test against a dummy
12909 # declaration. Include always-available headers on the
12910 # off chance that they somehow elicit warnings.
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12913 #include <float.h>
12914 #include <limits.h>
12915 #include <stdarg.h>
12916 #include <stddef.h>
12917 extern void ac_decl (int, char *);
12918
12919 int
12920 main (void)
12921 {
12922 (void) ac_decl (0, (char *) 0);
12923 (void) ac_decl;
12924
12925 ;
12926 return 0;
12927 }
12928 _ACEOF
12929 if ac_fn_c_try_compile "$LINENO"
12930 then :
12931 if test x"$ac_arg" = x
12932 then :
12933 ac_cv_c_undeclared_builtin_options='none needed'
12934 else $as_nop
12935 ac_cv_c_undeclared_builtin_options=$ac_arg
12936 fi
12937 break
12938 fi
12939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12942 done
12943 CFLAGS=$ac_save_CFLAGS
12944
12945 fi
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12947 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12948 case $ac_cv_c_undeclared_builtin_options in #(
12949 'cannot detect') :
12950 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12951 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12952 as_fn_error $? "cannot make $CC report undeclared builtins
12953 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12954 'none needed') :
12955 ac_c_undeclared_builtin_options='' ;; #(
12956 *) :
12957 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12958 esac
12959
12960 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
12961 #include <$ac_cv_struct_tm>
12962
12963 "
12964 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
12965 then :
12966
12967 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
12968
12969
12970 fi
12971
12972 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12973
12974 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
12975
12976 else
12977 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
12978 " "$ac_c_undeclared_builtin_options" "CFLAGS"
12979 if test "x$ac_cv_have_decl_tzname" = xyes
12980 then :
12981 ac_have_decl=1
12982 else $as_nop
12983 ac_have_decl=0
12984 fi
12985 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
12986
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
12988 printf %s "checking for tzname... " >&6; }
12989 if test ${ac_cv_var_tzname+y}
12990 then :
12991 printf %s "(cached) " >&6
12992 else $as_nop
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 #include <time.h>
12996 #if !HAVE_DECL_TZNAME
12997 extern char *tzname[];
12998 #endif
12999
13000 int
13001 main (void)
13002 {
13003 return tzname[0][0];
13004 ;
13005 return 0;
13006 }
13007 _ACEOF
13008 if ac_fn_c_try_link "$LINENO"
13009 then :
13010 ac_cv_var_tzname=yes
13011 else $as_nop
13012 ac_cv_var_tzname=no
13013 fi
13014 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13015 conftest$ac_exeext conftest.$ac_ext
13016 fi
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
13018 printf "%s\n" "$ac_cv_var_tzname" >&6; }
13019 if test $ac_cv_var_tzname = yes; then
13020
13021 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
13022
13023 fi
13024 fi
13025
13026
13027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
13028 printf %s "checking whether char is unsigned... " >&6; }
13029 if test ${ac_cv_c_char_unsigned+y}
13030 then :
13031 printf %s "(cached) " >&6
13032 else $as_nop
13033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13034 /* end confdefs.h. */
13035 $ac_includes_default
13036 int
13037 main (void)
13038 {
13039 static int test_array [1 - 2 * !(((char) -1) < 0)];
13040 test_array [0] = 0;
13041 return test_array [0];
13042
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 if ac_fn_c_try_compile "$LINENO"
13048 then :
13049 ac_cv_c_char_unsigned=no
13050 else $as_nop
13051 ac_cv_c_char_unsigned=yes
13052 fi
13053 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13054 fi
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
13056 printf "%s\n" "$ac_cv_c_char_unsigned" >&6; }
13057 if test $ac_cv_c_char_unsigned = yes; then
13058 printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
13059
13060 fi
13061
13062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13063 printf %s "checking for an ANSI C-conforming const... " >&6; }
13064 if test ${ac_cv_c_const+y}
13065 then :
13066 printf %s "(cached) " >&6
13067 else $as_nop
13068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13069 /* end confdefs.h. */
13070
13071 int
13072 main (void)
13073 {
13074
13075 #ifndef __cplusplus
13076 /* Ultrix mips cc rejects this sort of thing. */
13077 typedef int charset[2];
13078 const charset cs = { 0, 0 };
13079 /* SunOS 4.1.1 cc rejects this. */
13080 char const *const *pcpcc;
13081 char **ppc;
13082 /* NEC SVR4.0.2 mips cc rejects this. */
13083 struct point {int x, y;};
13084 static struct point const zero = {0,0};
13085 /* IBM XL C 1.02.0.0 rejects this.
13086 It does not let you subtract one const X* pointer from another in
13087 an arm of an if-expression whose if-part is not a constant
13088 expression */
13089 const char *g = "string";
13090 pcpcc = &g + (g ? g-g : 0);
13091 /* HPUX 7.0 cc rejects these. */
13092 ++pcpcc;
13093 ppc = (char**) pcpcc;
13094 pcpcc = (char const *const *) ppc;
13095 { /* SCO 3.2v4 cc rejects this sort of thing. */
13096 char tx;
13097 char *t = &tx;
13098 char const *s = 0 ? (char *) 0 : (char const *) 0;
13099
13100 *t++ = 0;
13101 if (s) return 0;
13102 }
13103 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13104 int x[] = {25, 17};
13105 const int *foo = &x[0];
13106 ++foo;
13107 }
13108 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13109 typedef const int *iptr;
13110 iptr p = 0;
13111 ++p;
13112 }
13113 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
13114 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13115 struct s { int j; const int *ap[3]; } bx;
13116 struct s *b = &bx; b->j = 5;
13117 }
13118 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13119 const int foo = 10;
13120 if (!foo) return 0;
13121 }
13122 return !cs[0] && !zero.x;
13123 #endif
13124
13125 ;
13126 return 0;
13127 }
13128 _ACEOF
13129 if ac_fn_c_try_compile "$LINENO"
13130 then :
13131 ac_cv_c_const=yes
13132 else $as_nop
13133 ac_cv_c_const=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13136 fi
13137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13138 printf "%s\n" "$ac_cv_c_const" >&6; }
13139 if test $ac_cv_c_const = no; then
13140
13141 printf "%s\n" "#define const /**/" >>confdefs.h
13142
13143 fi
13144
13145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13146 printf %s "checking for C/C++ restrict keyword... " >&6; }
13147 if test ${ac_cv_c_restrict+y}
13148 then :
13149 printf %s "(cached) " >&6
13150 else $as_nop
13151 ac_cv_c_restrict=no
13152 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
13153 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
13154 # Put 'restrict' last, because C++ lacks it.
13155 for ac_kw in __restrict__ __restrict _Restrict restrict; do
13156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13157 /* end confdefs.h. */
13158 typedef int *int_ptr;
13159 int foo (int_ptr $ac_kw ip) { return ip[0]; }
13160 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
13161 int bar (int ip[$ac_kw]) { return ip[0]; }
13162
13163 int
13164 main (void)
13165 {
13166 int s[1];
13167 int *$ac_kw t = s;
13168 t[0] = 0;
13169 return foo (t) + bar (t);
13170
13171 ;
13172 return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_compile "$LINENO"
13176 then :
13177 ac_cv_c_restrict=$ac_kw
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13180 test "$ac_cv_c_restrict" != no && break
13181 done
13182
13183 fi
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13185 printf "%s\n" "$ac_cv_c_restrict" >&6; }
13186
13187 case $ac_cv_c_restrict in
13188 restrict) ;;
13189 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13190 ;;
13191 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13192 ;;
13193 esac
13194
13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13196 printf %s "checking for inline... " >&6; }
13197 if test ${ac_cv_c_inline+y}
13198 then :
13199 printf %s "(cached) " >&6
13200 else $as_nop
13201 ac_cv_c_inline=no
13202 for ac_kw in inline __inline__ __inline; do
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205 #ifndef __cplusplus
13206 typedef int foo_t;
13207 static $ac_kw foo_t static_foo (void) {return 0; }
13208 $ac_kw foo_t foo (void) {return 0; }
13209 #endif
13210
13211 _ACEOF
13212 if ac_fn_c_try_compile "$LINENO"
13213 then :
13214 ac_cv_c_inline=$ac_kw
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13217 test "$ac_cv_c_inline" != no && break
13218 done
13219
13220 fi
13221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13222 printf "%s\n" "$ac_cv_c_inline" >&6; }
13223
13224 case $ac_cv_c_inline in
13225 inline | yes) ;;
13226 *)
13227 case $ac_cv_c_inline in
13228 no) ac_val=;;
13229 *) ac_val=$ac_cv_c_inline;;
13230 esac
13231 cat >>confdefs.h <<_ACEOF
13232 #ifndef __cplusplus
13233 #define inline $ac_val
13234 #endif
13235 _ACEOF
13236 ;;
13237 esac
13238
13239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
13240 printf %s "checking for preprocessor stringizing operator... " >&6; }
13241 if test ${ac_cv_c_stringize+y}
13242 then :
13243 printf %s "(cached) " >&6
13244 else $as_nop
13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h. */
13247 #define x(y) #y
13248
13249 char *s = x(teststring);
13250 _ACEOF
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252 $EGREP "#teststring" >/dev/null 2>&1
13253 then :
13254 ac_cv_c_stringize=no
13255 else $as_nop
13256 ac_cv_c_stringize=yes
13257 fi
13258 rm -rf conftest*
13259
13260 fi
13261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
13262 printf "%s\n" "$ac_cv_c_stringize" >&6; }
13263 if test $ac_cv_c_stringize = yes; then
13264
13265 printf "%s\n" "#define HAVE_STRINGIZE 1" >>confdefs.h
13266
13267 fi
13268
13269
13270 ac_config_headers="$ac_config_headers config.h:configh.in"
13271
13272
13273
13274 case $acl_shlibext in
13275 dylib) GAWKLIBEXT=so ;; # MacOS uses .dylib for shared libraries, but libtool uses .so for modules
13276 *) GAWKLIBEXT=$acl_shlibext ;;
13277 esac
13278
13279
13280 ac_config_files="$ac_config_files Makefile support/Makefile awklib/Makefile doc/Makefile extras/Makefile po/Makefile.in test/Makefile"
13281
13282 ac_config_files="$ac_config_files gawkbug"
13283
13284 if test "$enable_extensions" = "yes"
13285 then
13286
13287
13288 subdirs="$subdirs extension"
13289
13290 fi
13291 cat >confcache <<\_ACEOF
13292 # This file is a shell script that caches the results of configure
13293 # tests run on this system so they can be shared between configure
13294 # scripts and configure runs, see configure's option --config-cache.
13295 # It is not useful on other systems. If it contains results you don't
13296 # want to keep, you may remove or edit it.
13297 #
13298 # config.status only pays attention to the cache file if you give it
13299 # the --recheck option to rerun configure.
13300 #
13301 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13302 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13303 # following values.
13304
13305 _ACEOF
13306
13307 # The following way of writing the cache mishandles newlines in values,
13308 # but we know of no workaround that is simple, portable, and efficient.
13309 # So, we kill variables containing newlines.
13310 # Ultrix sh set writes to stderr and can't be redirected directly,
13311 # and sets the high bit in the cache file unless we assign to the vars.
13312 (
13313 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13314 eval ac_val=\$$ac_var
13315 case $ac_val in #(
13316 *${as_nl}*)
13317 case $ac_var in #(
13318 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13319 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13320 esac
13321 case $ac_var in #(
13322 _ | IFS | as_nl) ;; #(
13323 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13324 *) { eval $ac_var=; unset $ac_var;} ;;
13325 esac ;;
13326 esac
13327 done
13328
13329 (set) 2>&1 |
13330 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13331 *${as_nl}ac_space=\ *)
13332 # `set' does not quote correctly, so add quotes: double-quote
13333 # substitution turns \\\\ into \\, and sed turns \\ into \.
13334 sed -n \
13335 "s/'/'\\\\''/g;
13336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13337 ;; #(
13338 *)
13339 # `set' quotes correctly as required by POSIX, so do not add quotes.
13340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13341 ;;
13342 esac |
13343 sort
13344 ) |
13345 sed '
13346 /^ac_cv_env_/b end
13347 t clear
13348 :clear
13349 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13350 t end
13351 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13352 :end' >>confcache
13353 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13354 if test -w "$cache_file"; then
13355 if test "x$cache_file" != "x/dev/null"; then
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13357 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13358 if test ! -f "$cache_file" || test -h "$cache_file"; then
13359 cat confcache >"$cache_file"
13360 else
13361 case $cache_file in #(
13362 */* | ?:*)
13363 mv -f confcache "$cache_file"$$ &&
13364 mv -f "$cache_file"$$ "$cache_file" ;; #(
13365 *)
13366 mv -f confcache "$cache_file" ;;
13367 esac
13368 fi
13369 fi
13370 else
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13372 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13373 fi
13374 fi
13375 rm -f confcache
13376
13377 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13378 # Let make expand exec_prefix.
13379 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13380
13381 DEFS=-DHAVE_CONFIG_H
13382
13383 ac_libobjs=
13384 ac_ltlibobjs=
13385 U=
13386 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13387 # 1. Remove the extension, and $U if already installed.
13388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13389 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13391 # will be set to the directory where LIBOBJS objects are built.
13392 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13393 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13394 done
13395 LIBOBJS=$ac_libobjs
13396
13397 LTLIBOBJS=$ac_ltlibobjs
13398
13399
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13401 printf %s "checking that generated files are newer than configure... " >&6; }
13402 if test -n "$am_sleep_pid"; then
13403 # Hide warnings about reused PIDs.
13404 wait $am_sleep_pid 2>/dev/null
13405 fi
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13407 printf "%s\n" "done" >&6; }
13408 if test -n "$EXEEXT"; then
13409 am__EXEEXT_TRUE=
13410 am__EXEEXT_FALSE='#'
13411 else
13412 am__EXEEXT_TRUE='#'
13413 am__EXEEXT_FALSE=
13414 fi
13415
13416 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13417 as_fn_error $? "conditional \"AMDEP\" was never defined.
13418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13419 fi
13420 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13421 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13423 fi
13424 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13425 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13427 fi
13428 if test -z "${TEST_CROSS_COMPILE_TRUE}" && test -z "${TEST_CROSS_COMPILE_FALSE}"; then
13429 as_fn_error $? "conditional \"TEST_CROSS_COMPILE\" was never defined.
13430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13431 fi
13432 if test -z "${USE_PERSISTENT_MALLOC_TRUE}" && test -z "${USE_PERSISTENT_MALLOC_FALSE}"; then
13433 as_fn_error $? "conditional \"USE_PERSISTENT_MALLOC\" was never defined.
13434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13435 fi
13436 if test -z "${HAVE_ADDR_NO_RANDOMIZE_TRUE}" && test -z "${HAVE_ADDR_NO_RANDOMIZE_FALSE}"; then
13437 as_fn_error $? "conditional \"HAVE_ADDR_NO_RANDOMIZE\" was never defined.
13438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13439 fi
13440 if test -z "${ENABLE_EXTENSIONS_TRUE}" && test -z "${ENABLE_EXTENSIONS_FALSE}"; then
13441 as_fn_error $? "conditional \"ENABLE_EXTENSIONS\" was never defined.
13442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13443 fi
13444
13445 : "${CONFIG_STATUS=./config.status}"
13446 ac_write_fail=0
13447 ac_clean_files_save=$ac_clean_files
13448 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13450 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13451 as_write_fail=0
13452 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13453 #! $SHELL
13454 # Generated by $as_me.
13455 # Run this file to recreate the current configuration.
13456 # Compiler output produced by configure, useful for debugging
13457 # configure, is in config.log if it exists.
13458
13459 debug=false
13460 ac_cs_recheck=false
13461 ac_cs_silent=false
13462
13463 SHELL=\${CONFIG_SHELL-$SHELL}
13464 export SHELL
13465 _ASEOF
13466 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13467 ## -------------------- ##
13468 ## M4sh Initialization. ##
13469 ## -------------------- ##
13470
13471 # Be more Bourne compatible
13472 DUALCASE=1; export DUALCASE # for MKS sh
13473 as_nop=:
13474 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13475 then :
13476 emulate sh
13477 NULLCMD=:
13478 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13479 # is contrary to our usage. Disable this feature.
13480 alias -g '${1+"$@"}'='"$@"'
13481 setopt NO_GLOB_SUBST
13482 else $as_nop
13483 case `(set -o) 2>/dev/null` in #(
13484 *posix*) :
13485 set -o posix ;; #(
13486 *) :
13487 ;;
13488 esac
13489 fi
13490
13491
13492
13493 # Reset variables that may have inherited troublesome values from
13494 # the environment.
13495
13496 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13497 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13498 # side effect of setting IFS to empty, thus disabling word splitting.)
13499 # Quoting is to prevent editors from complaining about space-tab.
13500 as_nl='
13501 '
13502 export as_nl
13503 IFS=" "" $as_nl"
13504
13505 PS1='$ '
13506 PS2='> '
13507 PS4='+ '
13508
13509 # Ensure predictable behavior from utilities with locale-dependent output.
13510 LC_ALL=C
13511 export LC_ALL
13512 LANGUAGE=C
13513 export LANGUAGE
13514
13515 # We cannot yet rely on "unset" to work, but we need these variables
13516 # to be unset--not just set to an empty or harmless value--now, to
13517 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13518 # also avoids known problems related to "unset" and subshell syntax
13519 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13520 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13521 do eval test \${$as_var+y} \
13522 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13523 done
13524
13525 # Ensure that fds 0, 1, and 2 are open.
13526 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13527 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13528 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13529
13530 # The user is always right.
13531 if ${PATH_SEPARATOR+false} :; then
13532 PATH_SEPARATOR=:
13533 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13534 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13535 PATH_SEPARATOR=';'
13536 }
13537 fi
13538
13539
13540 # Find who we are. Look in the path if we contain no directory separator.
13541 as_myself=
13542 case $0 in #((
13543 *[\\/]* ) as_myself=$0 ;;
13544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545 for as_dir in $PATH
13546 do
13547 IFS=$as_save_IFS
13548 case $as_dir in #(((
13549 '') as_dir=./ ;;
13550 */) ;;
13551 *) as_dir=$as_dir/ ;;
13552 esac
13553 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13554 done
13555 IFS=$as_save_IFS
13556
13557 ;;
13558 esac
13559 # We did not find ourselves, most probably we were run as `sh COMMAND'
13560 # in which case we are not to be found in the path.
13561 if test "x$as_myself" = x; then
13562 as_myself=$0
13563 fi
13564 if test ! -f "$as_myself"; then
13565 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13566 exit 1
13567 fi
13568
13569
13570
13571 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13572 # ----------------------------------------
13573 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13574 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13575 # script with STATUS, using 1 if that was 0.
13576 as_fn_error ()
13577 {
13578 as_status=$1; test $as_status -eq 0 && as_status=1
13579 if test "$4"; then
13580 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13582 fi
13583 printf "%s\n" "$as_me: error: $2" >&2
13584 as_fn_exit $as_status
13585 } # as_fn_error
13586
13587
13588
13589 # as_fn_set_status STATUS
13590 # -----------------------
13591 # Set $? to STATUS, without forking.
13592 as_fn_set_status ()
13593 {
13594 return $1
13595 } # as_fn_set_status
13596
13597 # as_fn_exit STATUS
13598 # -----------------
13599 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13600 as_fn_exit ()
13601 {
13602 set +e
13603 as_fn_set_status $1
13604 exit $1
13605 } # as_fn_exit
13606
13607 # as_fn_unset VAR
13608 # ---------------
13609 # Portably unset VAR.
13610 as_fn_unset ()
13611 {
13612 { eval $1=; unset $1;}
13613 }
13614 as_unset=as_fn_unset
13615
13616 # as_fn_append VAR VALUE
13617 # ----------------------
13618 # Append the text in VALUE to the end of the definition contained in VAR. Take
13619 # advantage of any shell optimizations that allow amortized linear growth over
13620 # repeated appends, instead of the typical quadratic growth present in naive
13621 # implementations.
13622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13623 then :
13624 eval 'as_fn_append ()
13625 {
13626 eval $1+=\$2
13627 }'
13628 else $as_nop
13629 as_fn_append ()
13630 {
13631 eval $1=\$$1\$2
13632 }
13633 fi # as_fn_append
13634
13635 # as_fn_arith ARG...
13636 # ------------------
13637 # Perform arithmetic evaluation on the ARGs, and store the result in the
13638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13639 # must be portable across $(()) and expr.
13640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13641 then :
13642 eval 'as_fn_arith ()
13643 {
13644 as_val=$(( $* ))
13645 }'
13646 else $as_nop
13647 as_fn_arith ()
13648 {
13649 as_val=`expr "$@" || test $? -eq 1`
13650 }
13651 fi # as_fn_arith
13652
13653
13654 if expr a : '\(a\)' >/dev/null 2>&1 &&
13655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13656 as_expr=expr
13657 else
13658 as_expr=false
13659 fi
13660
13661 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13662 as_basename=basename
13663 else
13664 as_basename=false
13665 fi
13666
13667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13668 as_dirname=dirname
13669 else
13670 as_dirname=false
13671 fi
13672
13673 as_me=`$as_basename -- "$0" ||
13674 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13675 X"$0" : 'X\(//\)$' \| \
13676 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13677 printf "%s\n" X/"$0" |
13678 sed '/^.*\/\([^/][^/]*\)\/*$/{
13679 s//\1/
13680 q
13681 }
13682 /^X\/\(\/\/\)$/{
13683 s//\1/
13684 q
13685 }
13686 /^X\/\(\/\).*/{
13687 s//\1/
13688 q
13689 }
13690 s/.*/./; q'`
13691
13692 # Avoid depending upon Character Ranges.
13693 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13694 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13695 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13696 as_cr_digits='0123456789'
13697 as_cr_alnum=$as_cr_Letters$as_cr_digits
13698
13699
13700 # Determine whether it's possible to make 'echo' print without a newline.
13701 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13702 # for compatibility with existing Makefiles.
13703 ECHO_C= ECHO_N= ECHO_T=
13704 case `echo -n x` in #(((((
13705 -n*)
13706 case `echo 'xy\c'` in
13707 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13708 xy) ECHO_C='\c';;
13709 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13710 ECHO_T=' ';;
13711 esac;;
13712 *)
13713 ECHO_N='-n';;
13714 esac
13715
13716 # For backward compatibility with old third-party macros, we provide
13717 # the shell variables $as_echo and $as_echo_n. New code should use
13718 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13719 as_echo='printf %s\n'
13720 as_echo_n='printf %s'
13721
13722 rm -f conf$$ conf$$.exe conf$$.file
13723 if test -d conf$$.dir; then
13724 rm -f conf$$.dir/conf$$.file
13725 else
13726 rm -f conf$$.dir
13727 mkdir conf$$.dir 2>/dev/null
13728 fi
13729 if (echo >conf$$.file) 2>/dev/null; then
13730 if ln -s conf$$.file conf$$ 2>/dev/null; then
13731 as_ln_s='ln -s'
13732 # ... but there are two gotchas:
13733 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13734 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13735 # In both cases, we have to default to `cp -pR'.
13736 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13737 as_ln_s='cp -pR'
13738 elif ln conf$$.file conf$$ 2>/dev/null; then
13739 as_ln_s=ln
13740 else
13741 as_ln_s='cp -pR'
13742 fi
13743 else
13744 as_ln_s='cp -pR'
13745 fi
13746 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13747 rmdir conf$$.dir 2>/dev/null
13748
13749
13750 # as_fn_mkdir_p
13751 # -------------
13752 # Create "$as_dir" as a directory, including parents if necessary.
13753 as_fn_mkdir_p ()
13754 {
13755
13756 case $as_dir in #(
13757 -*) as_dir=./$as_dir;;
13758 esac
13759 test -d "$as_dir" || eval $as_mkdir_p || {
13760 as_dirs=
13761 while :; do
13762 case $as_dir in #(
13763 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13764 *) as_qdir=$as_dir;;
13765 esac
13766 as_dirs="'$as_qdir' $as_dirs"
13767 as_dir=`$as_dirname -- "$as_dir" ||
13768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769 X"$as_dir" : 'X\(//\)[^/]' \| \
13770 X"$as_dir" : 'X\(//\)$' \| \
13771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13772 printf "%s\n" X"$as_dir" |
13773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13774 s//\1/
13775 q
13776 }
13777 /^X\(\/\/\)[^/].*/{
13778 s//\1/
13779 q
13780 }
13781 /^X\(\/\/\)$/{
13782 s//\1/
13783 q
13784 }
13785 /^X\(\/\).*/{
13786 s//\1/
13787 q
13788 }
13789 s/.*/./; q'`
13790 test -d "$as_dir" && break
13791 done
13792 test -z "$as_dirs" || eval "mkdir $as_dirs"
13793 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13794
13795
13796 } # as_fn_mkdir_p
13797 if mkdir -p . 2>/dev/null; then
13798 as_mkdir_p='mkdir -p "$as_dir"'
13799 else
13800 test -d ./-p && rmdir ./-p
13801 as_mkdir_p=false
13802 fi
13803
13804
13805 # as_fn_executable_p FILE
13806 # -----------------------
13807 # Test if FILE is an executable regular file.
13808 as_fn_executable_p ()
13809 {
13810 test -f "$1" && test -x "$1"
13811 } # as_fn_executable_p
13812 as_test_x='test -x'
13813 as_executable_p=as_fn_executable_p
13814
13815 # Sed expression to map a string onto a valid CPP name.
13816 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13817
13818 # Sed expression to map a string onto a valid variable name.
13819 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13820
13821
13822 exec 6>&1
13823 ## ----------------------------------- ##
13824 ## Main body of $CONFIG_STATUS script. ##
13825 ## ----------------------------------- ##
13826 _ASEOF
13827 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13828
13829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13830 # Save the log message, to keep $0 and so on meaningful, and to
13831 # report actual input values of CONFIG_FILES etc. instead of their
13832 # values after options handling.
13833 ac_log="
13834 This file was extended by GNU Awk $as_me 5.3.2, which was
13835 generated by GNU Autoconf 2.71. Invocation command line was
13836
13837 CONFIG_FILES = $CONFIG_FILES
13838 CONFIG_HEADERS = $CONFIG_HEADERS
13839 CONFIG_LINKS = $CONFIG_LINKS
13840 CONFIG_COMMANDS = $CONFIG_COMMANDS
13841 $ $0 $@
13842
13843 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13844 "
13845
13846 _ACEOF
13847
13848 case $ac_config_files in *"
13849 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13850 esac
13851
13852 case $ac_config_headers in *"
13853 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13854 esac
13855
13856
13857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13858 # Files that config.status was made for.
13859 config_files="$ac_config_files"
13860 config_headers="$ac_config_headers"
13861 config_commands="$ac_config_commands"
13862
13863 _ACEOF
13864
13865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13866 ac_cs_usage="\
13867 \`$as_me' instantiates files and other configuration actions
13868 from templates according to the current configuration. Unless the files
13869 and actions are specified as TAGs, all are instantiated by default.
13870
13871 Usage: $0 [OPTION]... [TAG]...
13872
13873 -h, --help print this help, then exit
13874 -V, --version print version number and configuration settings, then exit
13875 --config print configuration, then exit
13876 -q, --quiet, --silent
13877 do not print progress messages
13878 -d, --debug don't remove temporary files
13879 --recheck update $as_me by reconfiguring in the same conditions
13880 --file=FILE[:TEMPLATE]
13881 instantiate the configuration file FILE
13882 --header=FILE[:TEMPLATE]
13883 instantiate the configuration header FILE
13884
13885 Configuration files:
13886 $config_files
13887
13888 Configuration headers:
13889 $config_headers
13890
13891 Configuration commands:
13892 $config_commands
13893
13894 Report bugs to <[email protected]>.
13895 GNU Awk home page: <https://www.gnu.org/software/gawk/>.
13896 General help using GNU software: <https://www.gnu.org/gethelp/>."
13897
13898 _ACEOF
13899 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
13900 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
13901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13902 ac_cs_config='$ac_cs_config_escaped'
13903 ac_cs_version="\\
13904 GNU Awk config.status 5.3.2
13905 configured by $0, generated by GNU Autoconf 2.71,
13906 with options \\"\$ac_cs_config\\"
13907
13908 Copyright (C) 2021 Free Software Foundation, Inc.
13909 This config.status script is free software; the Free Software Foundation
13910 gives unlimited permission to copy, distribute and modify it."
13911
13912 ac_pwd='$ac_pwd'
13913 srcdir='$srcdir'
13914 INSTALL='$INSTALL'
13915 MKDIR_P='$MKDIR_P'
13916 AWK='$AWK'
13917 test -n "\$AWK" || AWK=awk
13918 _ACEOF
13919
13920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921 # The default lists apply if the user does not specify any file.
13922 ac_need_defaults=:
13923 while test $# != 0
13924 do
13925 case $1 in
13926 --*=?*)
13927 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13928 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13929 ac_shift=:
13930 ;;
13931 --*=)
13932 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13933 ac_optarg=
13934 ac_shift=:
13935 ;;
13936 *)
13937 ac_option=$1
13938 ac_optarg=$2
13939 ac_shift=shift
13940 ;;
13941 esac
13942
13943 case $ac_option in
13944 # Handling of the options.
13945 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13946 ac_cs_recheck=: ;;
13947 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13948 printf "%s\n" "$ac_cs_version"; exit ;;
13949 --config | --confi | --conf | --con | --co | --c )
13950 printf "%s\n" "$ac_cs_config"; exit ;;
13951 --debug | --debu | --deb | --de | --d | -d )
13952 debug=: ;;
13953 --file | --fil | --fi | --f )
13954 $ac_shift
13955 case $ac_optarg in
13956 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13957 '') as_fn_error $? "missing file argument" ;;
13958 esac
13959 as_fn_append CONFIG_FILES " '$ac_optarg'"
13960 ac_need_defaults=false;;
13961 --header | --heade | --head | --hea )
13962 $ac_shift
13963 case $ac_optarg in
13964 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13965 esac
13966 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13967 ac_need_defaults=false;;
13968 --he | --h)
13969 # Conflict between --help and --header
13970 as_fn_error $? "ambiguous option: \`$1'
13971 Try \`$0 --help' for more information.";;
13972 --help | --hel | -h )
13973 printf "%s\n" "$ac_cs_usage"; exit ;;
13974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13976 ac_cs_silent=: ;;
13977
13978 # This is an error.
13979 -*) as_fn_error $? "unrecognized option: \`$1'
13980 Try \`$0 --help' for more information." ;;
13981
13982 *) as_fn_append ac_config_targets " $1"
13983 ac_need_defaults=false ;;
13984
13985 esac
13986 shift
13987 done
13988
13989 ac_configure_extra_args=
13990
13991 if $ac_cs_silent; then
13992 exec 6>/dev/null
13993 ac_configure_extra_args="$ac_configure_extra_args --silent"
13994 fi
13995
13996 _ACEOF
13997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13998 if \$ac_cs_recheck; then
13999 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14000 shift
14001 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14002 CONFIG_SHELL='$SHELL'
14003 export CONFIG_SHELL
14004 exec "\$@"
14005 fi
14006
14007 _ACEOF
14008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14009 exec 5>>config.log
14010 {
14011 echo
14012 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14013 ## Running $as_me. ##
14014 _ASBOX
14015 printf "%s\n" "$ac_log"
14016 } >&5
14017
14018 _ACEOF
14019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14020 #
14021 # INIT-COMMANDS
14022 #
14023 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14024 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14025 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
14026 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
14027 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14028 LINGUAS="${LINGUAS-%UNSET%}"
14029
14030
14031 _ACEOF
14032
14033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14034
14035 # Handling of arguments.
14036 for ac_config_target in $ac_config_targets
14037 do
14038 case $ac_config_target in
14039 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14040 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14041 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
14042 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14043 "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
14044 "awklib/Makefile") CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
14045 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14046 "extras/Makefile") CONFIG_FILES="$CONFIG_FILES extras/Makefile" ;;
14047 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14048 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14049 "gawkbug") CONFIG_FILES="$CONFIG_FILES gawkbug" ;;
14050
14051 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14052 esac
14053 done
14054
14055
14056 # If the user did not use the arguments to specify the items to instantiate,
14057 # then the envvar interface is used. Set only those that are not.
14058 # We use the long form for the default assignment because of an extremely
14059 # bizarre bug on SunOS 4.1.3.
14060 if $ac_need_defaults; then
14061 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14062 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14063 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14064 fi
14065
14066 # Have a temporary directory for convenience. Make it in the build tree
14067 # simply because there is no reason against having it here, and in addition,
14068 # creating and moving files from /tmp can sometimes cause problems.
14069 # Hook for its removal unless debugging.
14070 # Note that there is a small window in which the directory will not be cleaned:
14071 # after its creation but before its name has been assigned to `$tmp'.
14072 $debug ||
14073 {
14074 tmp= ac_tmp=
14075 trap 'exit_status=$?
14076 : "${ac_tmp:=$tmp}"
14077 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14078 ' 0
14079 trap 'as_fn_exit 1' 1 2 13 15
14080 }
14081 # Create a (secure) tmp directory for tmp files.
14082
14083 {
14084 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14085 test -d "$tmp"
14086 } ||
14087 {
14088 tmp=./conf$$-$RANDOM
14089 (umask 077 && mkdir "$tmp")
14090 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14091 ac_tmp=$tmp
14092
14093 # Set up the scripts for CONFIG_FILES section.
14094 # No need to generate them if there are no CONFIG_FILES.
14095 # This happens for instance with `./config.status config.h'.
14096 if test -n "$CONFIG_FILES"; then
14097
14098
14099 ac_cr=`echo X | tr X '\015'`
14100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14101 # But we know of no other shell where ac_cr would be empty at this
14102 # point, so we can use a bashism as a fallback.
14103 if test "x$ac_cr" = x; then
14104 eval ac_cr=\$\'\\r\'
14105 fi
14106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14108 ac_cs_awk_cr='\\r'
14109 else
14110 ac_cs_awk_cr=$ac_cr
14111 fi
14112
14113 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14114 _ACEOF
14115
14116
14117 {
14118 echo "cat >conf$$subs.awk <<_ACEOF" &&
14119 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14120 echo "_ACEOF"
14121 } >conf$$subs.sh ||
14122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14123 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14124 ac_delim='%!_!# '
14125 for ac_last_try in false false false false false :; do
14126 . ./conf$$subs.sh ||
14127 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14128
14129 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14130 if test $ac_delim_n = $ac_delim_num; then
14131 break
14132 elif $ac_last_try; then
14133 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14134 else
14135 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14136 fi
14137 done
14138 rm -f conf$$subs.sh
14139
14140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14141 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14142 _ACEOF
14143 sed -n '
14144 h
14145 s/^/S["/; s/!.*/"]=/
14146 p
14147 g
14148 s/^[^!]*!//
14149 :repl
14150 t repl
14151 s/'"$ac_delim"'$//
14152 t delim
14153 :nl
14154 h
14155 s/\(.\{148\}\)..*/\1/
14156 t more1
14157 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14158 p
14159 n
14160 b repl
14161 :more1
14162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14163 p
14164 g
14165 s/.\{148\}//
14166 t nl
14167 :delim
14168 h
14169 s/\(.\{148\}\)..*/\1/
14170 t more2
14171 s/["\\]/\\&/g; s/^/"/; s/$/"/
14172 p
14173 b
14174 :more2
14175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14176 p
14177 g
14178 s/.\{148\}//
14179 t delim
14180 ' <conf$$subs.awk | sed '
14181 /^[^""]/{
14182 N
14183 s/\n//
14184 }
14185 ' >>$CONFIG_STATUS || ac_write_fail=1
14186 rm -f conf$$subs.awk
14187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14188 _ACAWK
14189 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14190 for (key in S) S_is_set[key] = 1
14191 FS = ""
14192
14193 }
14194 {
14195 line = $ 0
14196 nfields = split(line, field, "@")
14197 substed = 0
14198 len = length(field[1])
14199 for (i = 2; i < nfields; i++) {
14200 key = field[i]
14201 keylen = length(key)
14202 if (S_is_set[key]) {
14203 value = S[key]
14204 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14205 len += length(value) + length(field[++i])
14206 substed = 1
14207 } else
14208 len += 1 + keylen
14209 }
14210
14211 print line
14212 }
14213
14214 _ACAWK
14215 _ACEOF
14216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14217 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14218 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14219 else
14220 cat
14221 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14222 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14223 _ACEOF
14224
14225 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14226 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14227 # trailing colons and then remove the whole line if VPATH becomes empty
14228 # (actually we leave an empty line to preserve line numbers).
14229 if test "x$srcdir" = x.; then
14230 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14231 h
14232 s///
14233 s/^/:/
14234 s/[ ]*$/:/
14235 s/:\$(srcdir):/:/g
14236 s/:\${srcdir}:/:/g
14237 s/:@srcdir@:/:/g
14238 s/^:*//
14239 s/:*$//
14240 x
14241 s/\(=[ ]*\).*/\1/
14242 G
14243 s/\n//
14244 s/^[^=]*=[ ]*$//
14245 }'
14246 fi
14247
14248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14249 fi # test -n "$CONFIG_FILES"
14250
14251 # Set up the scripts for CONFIG_HEADERS section.
14252 # No need to generate them if there are no CONFIG_HEADERS.
14253 # This happens for instance with `./config.status Makefile'.
14254 if test -n "$CONFIG_HEADERS"; then
14255 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14256 BEGIN {
14257 _ACEOF
14258
14259 # Transform confdefs.h into an awk script `defines.awk', embedded as
14260 # here-document in config.status, that substitutes the proper values into
14261 # config.h.in to produce config.h.
14262
14263 # Create a delimiter string that does not exist in confdefs.h, to ease
14264 # handling of long lines.
14265 ac_delim='%!_!# '
14266 for ac_last_try in false false :; do
14267 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14268 if test -z "$ac_tt"; then
14269 break
14270 elif $ac_last_try; then
14271 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14272 else
14273 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14274 fi
14275 done
14276
14277 # For the awk script, D is an array of macro values keyed by name,
14278 # likewise P contains macro parameters if any. Preserve backslash
14279 # newline sequences.
14280
14281 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14282 sed -n '
14283 s/.\{148\}/&'"$ac_delim"'/g
14284 t rset
14285 :rset
14286 s/^[ ]*#[ ]*define[ ][ ]*/ /
14287 t def
14288 d
14289 :def
14290 s/\\$//
14291 t bsnl
14292 s/["\\]/\\&/g
14293 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14294 D["\1"]=" \3"/p
14295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14296 d
14297 :bsnl
14298 s/["\\]/\\&/g
14299 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14300 D["\1"]=" \3\\\\\\n"\\/p
14301 t cont
14302 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14303 t cont
14304 d
14305 :cont
14306 n
14307 s/.\{148\}/&'"$ac_delim"'/g
14308 t clear
14309 :clear
14310 s/\\$//
14311 t bsnlc
14312 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14313 d
14314 :bsnlc
14315 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14316 b cont
14317 ' <confdefs.h | sed '
14318 s/'"$ac_delim"'/"\\\
14319 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14320
14321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14322 for (key in D) D_is_set[key] = 1
14323 FS = ""
14324 }
14325 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14326 line = \$ 0
14327 split(line, arg, " ")
14328 if (arg[1] == "#") {
14329 defundef = arg[2]
14330 mac1 = arg[3]
14331 } else {
14332 defundef = substr(arg[1], 2)
14333 mac1 = arg[2]
14334 }
14335 split(mac1, mac2, "(") #)
14336 macro = mac2[1]
14337 prefix = substr(line, 1, index(line, defundef) - 1)
14338 if (D_is_set[macro]) {
14339 # Preserve the white space surrounding the "#".
14340 print prefix "define", macro P[macro] D[macro]
14341 next
14342 } else {
14343 # Replace #undef with comments. This is necessary, for example,
14344 # in the case of _POSIX_SOURCE, which is predefined and required
14345 # on some systems where configure will not decide to define it.
14346 if (defundef == "undef") {
14347 print "/*", prefix defundef, macro, "*/"
14348 next
14349 }
14350 }
14351 }
14352 { print }
14353 _ACAWK
14354 _ACEOF
14355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14356 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14357 fi # test -n "$CONFIG_HEADERS"
14358
14359
14360 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14361 shift
14362 for ac_tag
14363 do
14364 case $ac_tag in
14365 :[FHLC]) ac_mode=$ac_tag; continue;;
14366 esac
14367 case $ac_mode$ac_tag in
14368 :[FHL]*:*);;
14369 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14370 :[FH]-) ac_tag=-:-;;
14371 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14372 esac
14373 ac_save_IFS=$IFS
14374 IFS=:
14375 set x $ac_tag
14376 IFS=$ac_save_IFS
14377 shift
14378 ac_file=$1
14379 shift
14380
14381 case $ac_mode in
14382 :L) ac_source=$1;;
14383 :[FH])
14384 ac_file_inputs=
14385 for ac_f
14386 do
14387 case $ac_f in
14388 -) ac_f="$ac_tmp/stdin";;
14389 *) # Look for the file first in the build tree, then in the source tree
14390 # (if the path is not absolute). The absolute path cannot be DOS-style,
14391 # because $ac_f cannot contain `:'.
14392 test -f "$ac_f" ||
14393 case $ac_f in
14394 [\\/$]*) false;;
14395 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14396 esac ||
14397 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14398 esac
14399 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14400 as_fn_append ac_file_inputs " '$ac_f'"
14401 done
14402
14403 # Let's still pretend it is `configure' which instantiates (i.e., don't
14404 # use $as_me), people would be surprised to read:
14405 # /* config.h. Generated by config.status. */
14406 configure_input='Generated from '`
14407 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14408 `' by configure.'
14409 if test x"$ac_file" != x-; then
14410 configure_input="$ac_file. $configure_input"
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14412 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14413 fi
14414 # Neutralize special characters interpreted by sed in replacement strings.
14415 case $configure_input in #(
14416 *\&* | *\|* | *\\* )
14417 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14418 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14419 *) ac_sed_conf_input=$configure_input;;
14420 esac
14421
14422 case $ac_tag in
14423 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14424 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14425 esac
14426 ;;
14427 esac
14428
14429 ac_dir=`$as_dirname -- "$ac_file" ||
14430 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14431 X"$ac_file" : 'X\(//\)[^/]' \| \
14432 X"$ac_file" : 'X\(//\)$' \| \
14433 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14434 printf "%s\n" X"$ac_file" |
14435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14436 s//\1/
14437 q
14438 }
14439 /^X\(\/\/\)[^/].*/{
14440 s//\1/
14441 q
14442 }
14443 /^X\(\/\/\)$/{
14444 s//\1/
14445 q
14446 }
14447 /^X\(\/\).*/{
14448 s//\1/
14449 q
14450 }
14451 s/.*/./; q'`
14452 as_dir="$ac_dir"; as_fn_mkdir_p
14453 ac_builddir=.
14454
14455 case "$ac_dir" in
14456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14457 *)
14458 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14459 # A ".." for each directory in $ac_dir_suffix.
14460 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14461 case $ac_top_builddir_sub in
14462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14464 esac ;;
14465 esac
14466 ac_abs_top_builddir=$ac_pwd
14467 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14468 # for backward compatibility:
14469 ac_top_builddir=$ac_top_build_prefix
14470
14471 case $srcdir in
14472 .) # We are building in place.
14473 ac_srcdir=.
14474 ac_top_srcdir=$ac_top_builddir_sub
14475 ac_abs_top_srcdir=$ac_pwd ;;
14476 [\\/]* | ?:[\\/]* ) # Absolute name.
14477 ac_srcdir=$srcdir$ac_dir_suffix;
14478 ac_top_srcdir=$srcdir
14479 ac_abs_top_srcdir=$srcdir ;;
14480 *) # Relative name.
14481 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14482 ac_top_srcdir=$ac_top_build_prefix$srcdir
14483 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14484 esac
14485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14486
14487
14488 case $ac_mode in
14489 :F)
14490 #
14491 # CONFIG_FILE
14492 #
14493
14494 case $INSTALL in
14495 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14496 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14497 esac
14498 ac_MKDIR_P=$MKDIR_P
14499 case $MKDIR_P in
14500 [\\/$]* | ?:[\\/]* ) ;;
14501 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14502 esac
14503 _ACEOF
14504
14505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14506 # If the template does not know about datarootdir, expand it.
14507 # FIXME: This hack should be removed a few years after 2.60.
14508 ac_datarootdir_hack=; ac_datarootdir_seen=
14509 ac_sed_dataroot='
14510 /datarootdir/ {
14511 p
14512 q
14513 }
14514 /@datadir@/p
14515 /@docdir@/p
14516 /@infodir@/p
14517 /@localedir@/p
14518 /@mandir@/p'
14519 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14520 *datarootdir*) ac_datarootdir_seen=yes;;
14521 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14523 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14524 _ACEOF
14525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14526 ac_datarootdir_hack='
14527 s&@datadir@&$datadir&g
14528 s&@docdir@&$docdir&g
14529 s&@infodir@&$infodir&g
14530 s&@localedir@&$localedir&g
14531 s&@mandir@&$mandir&g
14532 s&\\\${datarootdir}&$datarootdir&g' ;;
14533 esac
14534 _ACEOF
14535
14536 # Neutralize VPATH when `$srcdir' = `.'.
14537 # Shell code in configure.ac might set extrasub.
14538 # FIXME: do we really want to maintain this feature?
14539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14540 ac_sed_extra="$ac_vpsub
14541 $extrasub
14542 _ACEOF
14543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14544 :t
14545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14546 s|@configure_input@|$ac_sed_conf_input|;t t
14547 s&@top_builddir@&$ac_top_builddir_sub&;t t
14548 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14549 s&@srcdir@&$ac_srcdir&;t t
14550 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14551 s&@top_srcdir@&$ac_top_srcdir&;t t
14552 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14553 s&@builddir@&$ac_builddir&;t t
14554 s&@abs_builddir@&$ac_abs_builddir&;t t
14555 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14556 s&@INSTALL@&$ac_INSTALL&;t t
14557 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14558 $ac_datarootdir_hack
14559 "
14560 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14561 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14562
14563 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14564 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14566 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14568 which seems to be undefined. Please make sure it is defined" >&5
14569 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14570 which seems to be undefined. Please make sure it is defined" >&2;}
14571
14572 rm -f "$ac_tmp/stdin"
14573 case $ac_file in
14574 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14575 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14576 esac \
14577 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14578 ;;
14579 :H)
14580 #
14581 # CONFIG_HEADER
14582 #
14583 if test x"$ac_file" != x-; then
14584 {
14585 printf "%s\n" "/* $configure_input */" >&1 \
14586 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14587 } >"$ac_tmp/config.h" \
14588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14589 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14591 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14592 else
14593 rm -f "$ac_file"
14594 mv "$ac_tmp/config.h" "$ac_file" \
14595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14596 fi
14597 else
14598 printf "%s\n" "/* $configure_input */" >&1 \
14599 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14600 || as_fn_error $? "could not create -" "$LINENO" 5
14601 fi
14602 # Compute "$ac_file"'s index in $config_headers.
14603 _am_arg="$ac_file"
14604 _am_stamp_count=1
14605 for _am_header in $config_headers :; do
14606 case $_am_header in
14607 $_am_arg | $_am_arg:* )
14608 break ;;
14609 * )
14610 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14611 esac
14612 done
14613 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14614 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14615 X"$_am_arg" : 'X\(//\)[^/]' \| \
14616 X"$_am_arg" : 'X\(//\)$' \| \
14617 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14618 printf "%s\n" X"$_am_arg" |
14619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14620 s//\1/
14621 q
14622 }
14623 /^X\(\/\/\)[^/].*/{
14624 s//\1/
14625 q
14626 }
14627 /^X\(\/\/\)$/{
14628 s//\1/
14629 q
14630 }
14631 /^X\(\/\).*/{
14632 s//\1/
14633 q
14634 }
14635 s/.*/./; q'`/stamp-h$_am_stamp_count
14636 ;;
14637
14638 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14639 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14640 ;;
14641 esac
14642
14643
14644 case $ac_file$ac_mode in
14645 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14646 # Older Autoconf quotes --file arguments for eval, but not when files
14647 # are listed without --file. Let's play safe and only enable the eval
14648 # if we detect the quoting.
14649 # TODO: see whether this extra hack can be removed once we start
14650 # requiring Autoconf 2.70 or later.
14651 case $CONFIG_FILES in #(
14652 *\'*) :
14653 eval set x "$CONFIG_FILES" ;; #(
14654 *) :
14655 set x $CONFIG_FILES ;; #(
14656 *) :
14657 ;;
14658 esac
14659 shift
14660 # Used to flag and report bootstrapping failures.
14661 am_rc=0
14662 for am_mf
14663 do
14664 # Strip MF so we end up with the name of the file.
14665 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14666 # Check whether this is an Automake generated Makefile which includes
14667 # dependency-tracking related rules and includes.
14668 # Grep'ing the whole file directly is not great: AIX grep has a line
14669 # limit of 2048, but all sed's we know have understand at least 4000.
14670 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14671 || continue
14672 am_dirpart=`$as_dirname -- "$am_mf" ||
14673 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14674 X"$am_mf" : 'X\(//\)[^/]' \| \
14675 X"$am_mf" : 'X\(//\)$' \| \
14676 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14677 printf "%s\n" X"$am_mf" |
14678 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14679 s//\1/
14680 q
14681 }
14682 /^X\(\/\/\)[^/].*/{
14683 s//\1/
14684 q
14685 }
14686 /^X\(\/\/\)$/{
14687 s//\1/
14688 q
14689 }
14690 /^X\(\/\).*/{
14691 s//\1/
14692 q
14693 }
14694 s/.*/./; q'`
14695 am_filepart=`$as_basename -- "$am_mf" ||
14696 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14697 X"$am_mf" : 'X\(//\)$' \| \
14698 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14699 printf "%s\n" X/"$am_mf" |
14700 sed '/^.*\/\([^/][^/]*\)\/*$/{
14701 s//\1/
14702 q
14703 }
14704 /^X\/\(\/\/\)$/{
14705 s//\1/
14706 q
14707 }
14708 /^X\/\(\/\).*/{
14709 s//\1/
14710 q
14711 }
14712 s/.*/./; q'`
14713 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14714 && sed -e '/# am--include-marker/d' "$am_filepart" \
14715 | $MAKE -f - am--depfiles" >&5
14716 (cd "$am_dirpart" \
14717 && sed -e '/# am--include-marker/d' "$am_filepart" \
14718 | $MAKE -f - am--depfiles) >&5 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } || am_rc=$?
14722 done
14723 if test $am_rc -ne 0; then
14724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14726 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14727 for automatic dependency tracking. If GNU make was not used, consider
14728 re-running the configure script with MAKE=\"gmake\" (or whatever is
14729 necessary). You can also try re-running configure with the
14730 '--disable-dependency-tracking' option to at least be able to build
14731 the package (albeit without support for automatic dependency tracking).
14732 See \`config.log' for more details" "$LINENO" 5; }
14733 fi
14734 { am_dirpart=; unset am_dirpart;}
14735 { am_filepart=; unset am_filepart;}
14736 { am_mf=; unset am_mf;}
14737 { am_rc=; unset am_rc;}
14738 rm -f conftest-deps.mk
14739 }
14740 ;;
14741 "po-directories":C)
14742 for ac_file in $CONFIG_FILES; do
14743 # Support "outfile[:infile[:infile...]]"
14744 case "$ac_file" in
14745 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14746 esac
14747 # PO directories have a Makefile.in generated from Makefile.in.in.
14748 case "$ac_file" in */Makefile.in)
14749 # Adjust a relative srcdir.
14750 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14751 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
14752 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14753 # In autoconf-2.13 it is called $ac_given_srcdir.
14754 # In autoconf-2.50 it is called $srcdir.
14755 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14756 case "$ac_given_srcdir" in
14757 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14758 /*) top_srcdir="$ac_given_srcdir" ;;
14759 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14760 esac
14761 # Treat a directory as a PO directory if and only if it has a
14762 # POTFILES.in file. This allows packages to have multiple PO
14763 # directories under different names or in different locations.
14764 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14765 rm -f "$ac_dir/POTFILES"
14766 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14767 gt_tab=`printf '\t'`
14768 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"
14769 POMAKEFILEDEPS="POTFILES.in"
14770 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14771 # on $ac_dir but don't depend on user-specified configuration
14772 # parameters.
14773 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14774 # The LINGUAS file contains the set of available languages.
14775 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14776 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14777 fi
14778 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14779 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14780 else
14781 # The set of available languages was given in configure.in.
14782 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
14783 fi
14784 # Compute POFILES
14785 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14786 # Compute UPDATEPOFILES
14787 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14788 # Compute DUMMYPOFILES
14789 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14790 # Compute GMOFILES
14791 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14792 case "$ac_given_srcdir" in
14793 .) srcdirpre= ;;
14794 *) srcdirpre='$(srcdir)/' ;;
14795 esac
14796 POFILES=
14797 UPDATEPOFILES=
14798 DUMMYPOFILES=
14799 GMOFILES=
14800 for lang in $ALL_LINGUAS; do
14801 POFILES="$POFILES $srcdirpre$lang.po"
14802 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14803 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14804 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14805 done
14806 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14807 # environment variable.
14808 INST_LINGUAS=
14809 if test -n "$ALL_LINGUAS"; then
14810 for presentlang in $ALL_LINGUAS; do
14811 useit=no
14812 if test "%UNSET%" != "$LINGUAS"; then
14813 desiredlanguages="$LINGUAS"
14814 else
14815 desiredlanguages="$ALL_LINGUAS"
14816 fi
14817 for desiredlang in $desiredlanguages; do
14818 # Use the presentlang catalog if desiredlang is
14819 # a. equal to presentlang, or
14820 # b. a variant of presentlang (because in this case,
14821 # presentlang can be used as a fallback for messages
14822 # which are not translated in the desiredlang catalog).
14823 case "$desiredlang" in
14824 "$presentlang"*) useit=yes;;
14825 esac
14826 done
14827 if test $useit = yes; then
14828 INST_LINGUAS="$INST_LINGUAS $presentlang"
14829 fi
14830 done
14831 fi
14832 CATALOGS=
14833 if test -n "$INST_LINGUAS"; then
14834 for lang in $INST_LINGUAS; do
14835 CATALOGS="$CATALOGS $lang.gmo"
14836 done
14837 fi
14838 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14839 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"
14840 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14841 if test -f "$f"; then
14842 case "$f" in
14843 *.orig | *.bak | *~) ;;
14844 *) cat "$f" >> "$ac_dir/Makefile" ;;
14845 esac
14846 fi
14847 done
14848 fi
14849 ;;
14850 esac
14851 done ;;
14852 "gawkbug":F) chmod +x gawkbug ;;
14853
14854 esac
14855 done # for ac_tag
14856
14857
14858 as_fn_exit 0
14859 _ACEOF
14860 ac_clean_files=$ac_clean_files_save
14861
14862 test $ac_write_fail = 0 ||
14863 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14864
14865
14866 # configure is writing to config.log, and then calls config.status.
14867 # config.status does its own redirection, appending to config.log.
14868 # Unfortunately, on DOS this fails, as config.log is still kept open
14869 # by configure, so config.status won't be able to write to it; its
14870 # output is simply discarded. So we exec the FD to /dev/null,
14871 # effectively closing config.log, so it can be properly (re)opened and
14872 # appended to by config.status. When coming back to configure, we
14873 # need to make the FD available again.
14874 if test "$no_create" != yes; then
14875 ac_cs_success=:
14876 ac_config_status_args=
14877 test "$silent" = yes &&
14878 ac_config_status_args="$ac_config_status_args --quiet"
14879 exec 5>/dev/null
14880 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14881 exec 5>>config.log
14882 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14883 # would make configure fail if this is the last instruction.
14884 $ac_cs_success || as_fn_exit 1
14885 fi
14886
14887 #
14888 # CONFIG_SUBDIRS section.
14889 #
14890 if test "$no_recursion" != yes; then
14891
14892 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14893 # so they do not pile up.
14894 ac_sub_configure_args=
14895 ac_prev=
14896 eval "set x $ac_configure_args"
14897 shift
14898 for ac_arg
14899 do
14900 if test -n "$ac_prev"; then
14901 ac_prev=
14902 continue
14903 fi
14904 case $ac_arg in
14905 -cache-file | --cache-file | --cache-fil | --cache-fi \
14906 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14907 ac_prev=cache_file ;;
14908 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14909 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14910 | --c=*)
14911 ;;
14912 --config-cache | -C)
14913 ;;
14914 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14915 ac_prev=srcdir ;;
14916 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14917 ;;
14918 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14919 ac_prev=prefix ;;
14920 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14921 ;;
14922 --disable-option-checking)
14923 ;;
14924 *)
14925 case $ac_arg in
14926 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14927 esac
14928 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14929 esac
14930 done
14931
14932 # Always prepend --prefix to ensure using the same prefix
14933 # in subdir configurations.
14934 ac_arg="--prefix=$prefix"
14935 case $ac_arg in
14936 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14937 esac
14938 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14939
14940 # Pass --silent
14941 if test "$silent" = yes; then
14942 ac_sub_configure_args="--silent $ac_sub_configure_args"
14943 fi
14944
14945 # Always prepend --disable-option-checking to silence warnings, since
14946 # different subdirs can have different --enable and --with options.
14947 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14948
14949 ac_popdir=`pwd`
14950 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14951
14952 # Do not complain, so a configure script can configure whichever
14953 # parts of a large source tree are present.
14954 test -d "$srcdir/$ac_dir" || continue
14955
14956 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14958 printf "%s\n" "$ac_msg" >&6
14959 as_dir="$ac_dir"; as_fn_mkdir_p
14960 ac_builddir=.
14961
14962 case "$ac_dir" in
14963 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14964 *)
14965 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14966 # A ".." for each directory in $ac_dir_suffix.
14967 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14968 case $ac_top_builddir_sub in
14969 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14970 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14971 esac ;;
14972 esac
14973 ac_abs_top_builddir=$ac_pwd
14974 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14975 # for backward compatibility:
14976 ac_top_builddir=$ac_top_build_prefix
14977
14978 case $srcdir in
14979 .) # We are building in place.
14980 ac_srcdir=.
14981 ac_top_srcdir=$ac_top_builddir_sub
14982 ac_abs_top_srcdir=$ac_pwd ;;
14983 [\\/]* | ?:[\\/]* ) # Absolute name.
14984 ac_srcdir=$srcdir$ac_dir_suffix;
14985 ac_top_srcdir=$srcdir
14986 ac_abs_top_srcdir=$srcdir ;;
14987 *) # Relative name.
14988 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14989 ac_top_srcdir=$ac_top_build_prefix$srcdir
14990 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14991 esac
14992 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14993
14994
14995 cd "$ac_dir"
14996
14997 # Check for configure.gnu first; this name is used for a wrapper for
14998 # Metaconfig's "Configure" on case-insensitive file systems.
14999 if test -f "$ac_srcdir/configure.gnu"; then
15000 ac_sub_configure=$ac_srcdir/configure.gnu
15001 elif test -f "$ac_srcdir/configure"; then
15002 ac_sub_configure=$ac_srcdir/configure
15003 else
15004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15005 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15006 ac_sub_configure=
15007 fi
15008
15009 # The recursion is here.
15010 if test -n "$ac_sub_configure"; then
15011 # Make the cache file name correct relative to the subdirectory.
15012 case $cache_file in
15013 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15014 *) # Relative name.
15015 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15016 esac
15017
15018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15019 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15020 # The eval makes quoting arguments work.
15021 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15022 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15023 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15024 fi
15025
15026 cd "$ac_popdir"
15027 done
15028 fi
15029 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15031 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15032 fi
15033
15034 if test "$GCC" = yes &&
15035 test -f $srcdir/.developing &&
15036 grep -i '^debug$' $srcdir/.developing > /dev/null
15037 then
15038 if grep -i '^yaccdebug$' $srcdir/.developing > /dev/null
15039 then
15040 for i in awkgram command
15041 do
15042 rm -f $i.c
15043 ed - $i.y << \EOF
15044 /^%}/a
15045 %no-lines
15046 .
15047 w
15048 EOF
15049 done
15050 fi
15051 for i in . support extension
15052 do
15053 sed -e '/-O2/s///' -e '/^CFLAGS = /s//&${DEBUG} /' $i/Makefile > foo
15054 mv foo $i/Makefile
15055 done
15056 elif test "$GCC" = yes
15057 then
15058 for i in . support extension
15059 do
15060 sed -e '/-O2/s//-O3/g' $i/Makefile > foo
15061 mv foo $i/Makefile
15062 done
15063 fi
15064