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 Make 4.4.1.
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 Make'
613 PACKAGE_TARNAME='make'
614 PACKAGE_VERSION='4.4.1'
615 PACKAGE_STRING='GNU Make 4.4.1'
616 PACKAGE_BUGREPORT='[email protected]'
617 PACKAGE_URL='https://www.gnu.org/software/make/'
618
619 ac_unique_file="src/vpath.c"
620 ac_config_libobj_dir=lib
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 gt_needs=
654 ac_func_c_list=
655 enable_year2038=no
656 enable_largefile=yes
657 ac_subst_vars='gltests_LIBOBJDEPS
658 gltests_LTLIBOBJS
659 gltests_LIBOBJS
660 gl_LIBOBJDEPS
661 gl_LTLIBOBJS
662 gl_LIBOBJS
663 am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LIBOBJS
667 KNOWN_PREFIX_FALSE
668 KNOWN_PREFIX_TRUE
669 WINDOWSENV_FALSE
670 WINDOWSENV_TRUE
671 MAKE_HOST
672 AM_LDFLAGS
673 USE_CUSTOMS_FALSE
674 USE_CUSTOMS_TRUE
675 REMOTE
676 HAVE_GUILE_FALSE
677 HAVE_GUILE_TRUE
678 GUILE_LIBS
679 GUILE_CFLAGS
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 POSUB
684 LTLIBINTL
685 LIBINTL
686 INTLLIBS
687 LTLIBICONV
688 LIBICONV
689 INTL_MACOSX_LIBS
690 XGETTEXT_EXTRA_OPTIONS
691 MSGMERGE
692 XGETTEXT_015
693 XGETTEXT
694 GMSGFMT_015
695 MSGFMT_015
696 GMSGFMT
697 MSGFMT
698 GETTEXT_MACRO_VERSION
699 USE_NLS
700 SED
701 PERL
702 LIBGNU_LTLIBDEPS
703 LIBGNU_LIBDEPS
704 GL_CFLAG_GNULIB_WARNINGS
705 GL_CFLAG_ALLOW_WARNINGS
706 gltests_WITNESS
707 USE_SYSTEM_GLOB
708 USE_SYSTEM_GLOB_FALSE
709 USE_SYSTEM_GLOB_TRUE
710 HOST_CPU_C_ABI
711 HOST_CPU
712 GL_COND_OBJ_GETLOADAVG_FALSE
713 GL_COND_OBJ_GETLOADAVG_TRUE
714 GETLOADAVG_LIBS
715 GL_GNULIB_GETLOADAVG
716 HAVE_DECL_GETLOADAVG
717 GL_GENERATE_ALLOCA_H_FALSE
718 GL_GENERATE_ALLOCA_H_TRUE
719 ALLOCA_H
720 HAVE_ALLOCA_H
721 ALLOCA
722 GL_COND_LIBTOOL_FALSE
723 GL_COND_LIBTOOL_TRUE
724 RANLIB
725 ARFLAGS
726 AR
727 EGREP
728 GREP
729 CPP
730 host_os
731 host_vendor
732 host_cpu
733 host
734 build_os
735 build_vendor
736 build_cpu
737 build
738 am__fastdepCXX_FALSE
739 am__fastdepCXX_TRUE
740 CXXDEPMODE
741 ac_ct_CXX
742 CXXFLAGS
743 CXX
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 CSCOPE
765 ETAGS
766 CTAGS
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 AWK
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 runstatedir
810 localstatedir
811 sharedstatedir
812 sysconfdir
813 datadir
814 datarootdir
815 libexecdir
816 sbindir
817 bindir
818 program_transform_name
819 prefix
820 exec_prefix
821 PACKAGE_URL
822 PACKAGE_BUGREPORT
823 PACKAGE_STRING
824 PACKAGE_VERSION
825 PACKAGE_TARNAME
826 PACKAGE_NAME
827 PATH_SEPARATOR
828 SHELL
829 am__quote'
830 ac_subst_files='MAINT_MAKEFILE'
831 ac_user_opts='
832 enable_option_checking
833 enable_silent_rules
834 enable_dependency_tracking
835 enable_cross_guesses
836 enable_nls
837 with_gnu_ld
838 enable_rpath
839 with_libiconv_prefix
840 with_libintl_prefix
841 with_guile
842 with_customs
843 enable_case_insensitive_file_system
844 enable_job_server
845 enable_load
846 enable_posix_spawn
847 with_dmalloc
848 enable_year2038
849 enable_largefile
850 '
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CXX
860 CXXFLAGS
861 CCC
862 CPP
863 PKG_CONFIG
864 PKG_CONFIG_PATH
865 PKG_CONFIG_LIBDIR
866 GUILE_CFLAGS
867 GUILE_LIBS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 runstatedir='${localstatedir}/run'
907 includedir='${prefix}/include'
908 oldincludedir='/usr/include'
909 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
910 infodir='${datarootdir}/info'
911 htmldir='${docdir}'
912 dvidir='${docdir}'
913 pdfdir='${docdir}'
914 psdir='${docdir}'
915 libdir='${exec_prefix}/lib'
916 localedir='${datarootdir}/locale'
917 mandir='${datarootdir}/man'
918
919 ac_prev=
920 ac_dashdash=
921 for ac_option
922 do
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
925 eval $ac_prev=\$ac_option
926 ac_prev=
927 continue
928 fi
929
930 case $ac_option in
931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *=) ac_optarg= ;;
933 *) ac_optarg=yes ;;
934 esac
935
936 case $ac_dashdash$ac_option in
937 --)
938 ac_dashdash=yes ;;
939
940 -bindir | --bindir | --bindi | --bind | --bin | --bi)
941 ac_prev=bindir ;;
942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
943 bindir=$ac_optarg ;;
944
945 -build | --build | --buil | --bui | --bu)
946 ac_prev=build_alias ;;
947 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
948 build_alias=$ac_optarg ;;
949
950 -cache-file | --cache-file | --cache-fil | --cache-fi \
951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
952 ac_prev=cache_file ;;
953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
955 cache_file=$ac_optarg ;;
956
957 --config-cache | -C)
958 cache_file=config.cache ;;
959
960 -datadir | --datadir | --datadi | --datad)
961 ac_prev=datadir ;;
962 -datadir=* | --datadir=* | --datadi=* | --datad=*)
963 datadir=$ac_optarg ;;
964
965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
966 | --dataroo | --dataro | --datar)
967 ac_prev=datarootdir ;;
968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
970 datarootdir=$ac_optarg ;;
971
972 -disable-* | --disable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: \`$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
997
998 -enable-* | --enable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1006 *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1013
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1022
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1026
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1033
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1038
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1044
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1051
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1056
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1061
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1068
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1073
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1080
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1085
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1089
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1093
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1097
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1106
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1111
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1118
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1125
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1142
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1147
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1152
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1156
1157 -runstatedir | --runstatedir | --runstatedi | --runstated \
1158 | --runstate | --runstat | --runsta | --runst | --runs \
1159 | --run | --ru | --r)
1160 ac_prev=runstatedir ;;
1161 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1162 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1163 | --run=* | --ru=* | --r=*)
1164 runstatedir=$ac_optarg ;;
1165
1166 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167 ac_prev=sbindir ;;
1168 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169 | --sbi=* | --sb=*)
1170 sbindir=$ac_optarg ;;
1171
1172 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174 | --sharedst | --shareds | --shared | --share | --shar \
1175 | --sha | --sh)
1176 ac_prev=sharedstatedir ;;
1177 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180 | --sha=* | --sh=*)
1181 sharedstatedir=$ac_optarg ;;
1182
1183 -site | --site | --sit)
1184 ac_prev=site ;;
1185 -site=* | --site=* | --sit=*)
1186 site=$ac_optarg ;;
1187
1188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189 ac_prev=srcdir ;;
1190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191 srcdir=$ac_optarg ;;
1192
1193 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194 | --syscon | --sysco | --sysc | --sys | --sy)
1195 ac_prev=sysconfdir ;;
1196 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198 sysconfdir=$ac_optarg ;;
1199
1200 -target | --target | --targe | --targ | --tar | --ta | --t)
1201 ac_prev=target_alias ;;
1202 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203 target_alias=$ac_optarg ;;
1204
1205 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206 verbose=yes ;;
1207
1208 -version | --version | --versio | --versi | --vers | -V)
1209 ac_init_version=: ;;
1210
1211 -with-* | --with-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: \`$ac_useropt'"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=\$ac_optarg ;;
1226
1227 -without-* | --without-*)
1228 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1231 as_fn_error $? "invalid package name: \`$ac_useropt'"
1232 ac_useropt_orig=$ac_useropt
1233 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1234 case $ac_user_opts in
1235 *"
1236 "with_$ac_useropt"
1237 "*) ;;
1238 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1239 ac_unrecognized_sep=', ';;
1240 esac
1241 eval with_$ac_useropt=no ;;
1242
1243 --x)
1244 # Obsolete; use --with-x.
1245 with_x=yes ;;
1246
1247 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248 | --x-incl | --x-inc | --x-in | --x-i)
1249 ac_prev=x_includes ;;
1250 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252 x_includes=$ac_optarg ;;
1253
1254 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256 ac_prev=x_libraries ;;
1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259 x_libraries=$ac_optarg ;;
1260
1261 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1262 Try \`$0 --help' for more information"
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 case $ac_envvar in #(
1269 '' | [0-9]* | *[!_$as_cr_alnum]* )
1270 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1271 esac
1272 eval $ac_envvar=\$ac_optarg
1273 export $ac_envvar ;;
1274
1275 *)
1276 # FIXME: should be removed in autoconf 3.0.
1277 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1278 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1280 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1281 ;;
1282
1283 esac
1284 done
1285
1286 if test -n "$ac_prev"; then
1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288 as_fn_error $? "missing argument to $ac_option"
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1295 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 esac
1297 fi
1298
1299 # Check all directory arguments for consistency.
1300 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301 datadir sysconfdir sharedstatedir localstatedir includedir \
1302 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303 libdir localedir mandir runstatedir
1304 do
1305 eval ac_val=\$$ac_var
1306 # Remove trailing slashes.
1307 case $ac_val in
1308 */ )
1309 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1310 eval $ac_var=\$ac_val;;
1311 esac
1312 # Be sure to have absolute directory names.
1313 case $ac_val in
1314 [\\/$]* | ?:[\\/]* ) continue;;
1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1316 esac
1317 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1318 done
1319
1320 # There might be people who depend on the old broken behavior: `$host'
1321 # used to hold the argument of --host etc.
1322 # FIXME: To remove some day.
1323 build=$build_alias
1324 host=$host_alias
1325 target=$target_alias
1326
1327 # FIXME: To remove some day.
1328 if test "x$host_alias" != x; then
1329 if test "x$build_alias" = x; then
1330 cross_compiling=maybe
1331 elif test "x$build_alias" != "x$host_alias"; then
1332 cross_compiling=yes
1333 fi
1334 fi
1335
1336 ac_tool_prefix=
1337 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1338
1339 test "$silent" = yes && exec 6>/dev/null
1340
1341
1342 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1343 ac_ls_di=`ls -di .` &&
1344 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1345 as_fn_error $? "working directory cannot be determined"
1346 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1347 as_fn_error $? "pwd does not report name of working directory"
1348
1349
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 printf "%s\n" X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\/\)$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\).*/{
1373 s//\1/
1374 q
1375 }
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1380 fi
1381 else
1382 ac_srcdir_defaulted=no
1383 fi
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1391 pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_env_${ac_var}_value=\$${ac_var}
1405 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413 # Omit some internal or obsolete options to make the list less imposing.
1414 # This message is too long to be a string in the A/UX 3.1 sh.
1415 cat <<_ACEOF
1416 \`configure' configures GNU Make 4.4.1 to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE. See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426 -h, --help display this help and exit
1427 --help=short display options specific to this package
1428 --help=recursive display the short help of all the included packages
1429 -V, --version display version information and exit
1430 -q, --quiet, --silent do not print \`checking ...' messages
1431 --cache-file=FILE cache test results in FILE [disabled]
1432 -C, --config-cache alias for \`--cache-file=config.cache'
1433 -n, --no-create do not create output files
1434 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437 --prefix=PREFIX install architecture-independent files in PREFIX
1438 [$ac_default_prefix]
1439 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450 --bindir=DIR user executables [EPREFIX/bin]
1451 --sbindir=DIR system admin executables [EPREFIX/sbin]
1452 --libexecdir=DIR program executables [EPREFIX/libexec]
1453 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1454 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1455 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1456 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/make]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1471
1472 cat <<\_ACEOF
1473
1474 Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479 System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486 case $ac_init_help in
1487 short | recursive ) echo "Configuration of GNU Make 4.4.1:";;
1488 esac
1489 cat <<\_ACEOF
1490
1491 Optional Features:
1492 --disable-option-checking ignore unrecognized --enable/--with options
1493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1495 --enable-silent-rules less verbose build output (undo: "make V=1")
1496 --disable-silent-rules verbose build output (undo: "make V=0")
1497 --enable-dependency-tracking
1498 do not reject slow dependency extractors
1499 --disable-dependency-tracking
1500 speeds up one-time build
1501 --enable-cross-guesses={conservative|risky}
1502 specify policy for cross-compilation guesses
1503 --disable-nls do not use Native Language Support
1504 --disable-rpath do not hardcode runtime library paths
1505 --enable-case-insensitive-file-system
1506 assume file systems are case insensitive
1507 --disable-job-server disallow recursive make communication during -jN
1508 --disable-load disable support for the 'load' operation
1509 --disable-posix-spawn disable support for posix_spawn()
1510 --enable-year2038 support timestamps after 2038
1511 --disable-largefile omit support for large files
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1517 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1518 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1519 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1520 --without-libintl-prefix don't search for libintl in includedir and libdir
1521 --with-guile Support GNU Guile for embedded scripting
1522 --with-customs=DIR enable remote jobs via Customs--see README.customs
1523 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
1524
1525 Some influential environment variables:
1526 CC C compiler command
1527 CFLAGS C compiler flags
1528 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1529 nonstandard directory <lib dir>
1530 LIBS libraries to pass to the linker, e.g. -l<library>
1531 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532 you have headers in a nonstandard directory <include dir>
1533 CXX C++ compiler command
1534 CXXFLAGS C++ compiler flags
1535 CPP C preprocessor
1536 PKG_CONFIG path to pkg-config utility
1537 PKG_CONFIG_PATH
1538 directories to add to pkg-config's search path
1539 PKG_CONFIG_LIBDIR
1540 path overriding pkg-config's built-in search path
1541 GUILE_CFLAGS
1542 C compiler flags for GUILE, overriding pkg-config
1543 GUILE_LIBS linker flags for GUILE, overriding pkg-config
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to <[email protected]>.
1549 GNU Make home page: <https://www.gnu.org/software/make/>.
1550 General help using GNU software: <https://www.gnu.org/gethelp/>.
1551 _ACEOF
1552 ac_status=$?
1553 fi
1554
1555 if test "$ac_init_help" = "recursive"; then
1556 # If there are subdirs, report their specific --help.
1557 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1558 test -d "$ac_dir" ||
1559 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1560 continue
1561 ac_builddir=.
1562
1563 case "$ac_dir" in
1564 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *)
1566 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1567 # A ".." for each directory in $ac_dir_suffix.
1568 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1569 case $ac_top_builddir_sub in
1570 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1572 esac ;;
1573 esac
1574 ac_abs_top_builddir=$ac_pwd
1575 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1576 # for backward compatibility:
1577 ac_top_builddir=$ac_top_build_prefix
1578
1579 case $srcdir in
1580 .) # We are building in place.
1581 ac_srcdir=.
1582 ac_top_srcdir=$ac_top_builddir_sub
1583 ac_abs_top_srcdir=$ac_pwd ;;
1584 [\\/]* | ?:[\\/]* ) # Absolute name.
1585 ac_srcdir=$srcdir$ac_dir_suffix;
1586 ac_top_srcdir=$srcdir
1587 ac_abs_top_srcdir=$srcdir ;;
1588 *) # Relative name.
1589 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1590 ac_top_srcdir=$ac_top_build_prefix$srcdir
1591 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1592 esac
1593 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1594
1595 cd "$ac_dir" || { ac_status=$?; continue; }
1596 # Check for configure.gnu first; this name is used for a wrapper for
1597 # Metaconfig's "Configure" on case-insensitive file systems.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1604 else
1605 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1606 fi || ac_status=$?
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1608 done
1609 fi
1610
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1613 cat <<\_ACEOF
1614 GNU Make configure 4.4.1
1615 generated by GNU Autoconf 2.71
1616
1617 Copyright (C) 2021 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1620 _ACEOF
1621 exit
1622 fi
1623
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1627
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest.beam
1635 if { { ac_try="$ac_compile"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 printf "%s\n" "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext
1654 then :
1655 ac_retval=0
1656 else $as_nop
1657 printf "%s\n" "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1663 as_fn_set_status $ac_retval
1664
1665 } # ac_fn_c_try_compile
1666
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile ()
1672 {
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 printf %s "checking for $2... " >&6; }
1676 if eval test \${$3+y}
1677 then :
1678 printf %s "(cached) " >&6
1679 else $as_nop
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 $4
1683 #include <$2>
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"
1686 then :
1687 eval "$3=yes"
1688 else $as_nop
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 printf "%s\n" "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_cxx_try_compile LINENO
1701 # ----------------------------
1702 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_cxx_try_compile ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 rm -f conftest.$ac_objext conftest.beam
1707 if { { ac_try="$ac_compile"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 printf "%s\n" "$ac_try_echo"; } >&5
1714 (eval "$ac_compile") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && {
1723 test -z "$ac_cxx_werror_flag" ||
1724 test ! -s conftest.err
1725 } && test -s conftest.$ac_objext
1726 then :
1727 ac_retval=0
1728 else $as_nop
1729 printf "%s\n" "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1
1733 fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735 as_fn_set_status $ac_retval
1736
1737 } # ac_fn_cxx_try_compile
1738
1739 # ac_fn_c_try_cpp LINENO
1740 # ----------------------
1741 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1742 ac_fn_c_try_cpp ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_cpp conftest.$ac_ext"
1746 case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 printf "%s\n" "$ac_try_echo"; } >&5
1752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } > conftest.i && {
1761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 }
1764 then :
1765 ac_retval=0
1766 else $as_nop
1767 printf "%s\n" "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_cpp
1776
1777 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1778 # -------------------------------------------
1779 # Tests whether TYPE exists after having included INCLUDES, setting cache
1780 # variable VAR accordingly.
1781 ac_fn_c_check_type ()
1782 {
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785 printf %s "checking for $2... " >&6; }
1786 if eval test \${$3+y}
1787 then :
1788 printf %s "(cached) " >&6
1789 else $as_nop
1790 eval "$3=no"
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 $4
1794 int
1795 main (void)
1796 {
1797 if (sizeof ($2))
1798 return 0;
1799 ;
1800 return 0;
1801 }
1802 _ACEOF
1803 if ac_fn_c_try_compile "$LINENO"
1804 then :
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 int
1809 main (void)
1810 {
1811 if (sizeof (($2)))
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819
1820 else $as_nop
1821 eval "$3=yes"
1822 fi
1823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1826 fi
1827 eval ac_res=\$$3
1828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 printf "%s\n" "$ac_res" >&6; }
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831
1832 } # ac_fn_c_check_type
1833
1834 # ac_fn_c_try_link LINENO
1835 # -----------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_c_try_link ()
1838 {
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 printf "%s\n" "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 test -x conftest$ac_exeext
1862 }
1863 then :
1864 ac_retval=0
1865 else $as_nop
1866 printf "%s\n" "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870 fi
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_link
1880
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1884 # executables *can* be run.
1885 ac_fn_c_try_run ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 printf "%s\n" "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1896 ac_status=$?
1897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 printf "%s\n" "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1906 ac_status=$?
1907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }
1909 then :
1910 ac_retval=0
1911 else $as_nop
1912 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1913 printf "%s\n" "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=$ac_status
1917 fi
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1921
1922 } # ac_fn_c_try_run
1923
1924 # ac_fn_c_check_func LINENO FUNC VAR
1925 # ----------------------------------
1926 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1927 ac_fn_c_check_func ()
1928 {
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 printf %s "checking for $2... " >&6; }
1932 if eval test \${$3+y}
1933 then :
1934 printf %s "(cached) " >&6
1935 else $as_nop
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940 #define $2 innocuous_$2
1941
1942 /* System header to define __stub macros and hopefully few prototypes,
1943 which can conflict with char $2 (); below. */
1944
1945 #include <limits.h>
1946 #undef $2
1947
1948 /* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951 #ifdef __cplusplus
1952 extern "C"
1953 #endif
1954 char $2 ();
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined __stub_$2 || defined __stub___$2
1959 choke me
1960 #endif
1961
1962 int
1963 main (void)
1964 {
1965 return $2 ();
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_link "$LINENO"
1971 then :
1972 eval "$3=yes"
1973 else $as_nop
1974 eval "$3=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1977 conftest$ac_exeext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 printf "%s\n" "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984 } # ac_fn_c_check_func
1985
1986 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1987 # ------------------------------------------------------------------
1988 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1989 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1990 ac_fn_check_decl ()
1991 {
1992 ac_save_ac_compile="$ac_compile"
1993 if test -n "$ac_compile_for_check_decl"; then
1994 ac_compile="$ac_compile_for_check_decl"
1995 fi
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 as_decl_name=`echo $2|sed 's/ *(.*//'`
1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1999 printf %s "checking whether $as_decl_name is declared... " >&6; }
2000 if eval test \${$3+y}
2001 then :
2002 printf %s "(cached) " >&6
2003 else $as_nop
2004 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2005 eval ac_save_FLAGS=\$$6
2006 as_fn_append $6 " $5"
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 $4
2010 int
2011 main (void)
2012 {
2013 #ifndef $as_decl_name
2014 #ifdef __cplusplus
2015 (void) $as_decl_use;
2016 #else
2017 (void) $as_decl_name;
2018 #endif
2019 #endif
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"
2026 then :
2027 eval "$3=yes"
2028 else $as_nop
2029 eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2032 eval $6=\$ac_save_FLAGS
2033
2034 fi
2035 eval ac_res=\$$3
2036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037 printf "%s\n" "$ac_res" >&6; }
2038 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 ac_compile="$ac_save_ac_compile"
2040
2041 } # ac_fn_check_decl
2042
2043 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2044 # ----------------------------------------------------
2045 # Tries to find if the field MEMBER exists in type AGGR, after including
2046 # INCLUDES, setting cache variable VAR accordingly.
2047 ac_fn_c_check_member ()
2048 {
2049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2051 printf %s "checking for $2.$3... " >&6; }
2052 if eval test \${$4+y}
2053 then :
2054 printf %s "(cached) " >&6
2055 else $as_nop
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $5
2059 int
2060 main (void)
2061 {
2062 static $2 ac_aggr;
2063 if (ac_aggr.$3)
2064 return 0;
2065 ;
2066 return 0;
2067 }
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"
2070 then :
2071 eval "$4=yes"
2072 else $as_nop
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $5
2076 int
2077 main (void)
2078 {
2079 static $2 ac_aggr;
2080 if (sizeof ac_aggr.$3)
2081 return 0;
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"
2087 then :
2088 eval "$4=yes"
2089 else $as_nop
2090 eval "$4=no"
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2095 fi
2096 eval ac_res=\$$4
2097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 printf "%s\n" "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100
2101 } # ac_fn_c_check_member
2102 ac_configure_args_raw=
2103 for ac_arg
2104 do
2105 case $ac_arg in
2106 *\'*)
2107 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2108 esac
2109 as_fn_append ac_configure_args_raw " '$ac_arg'"
2110 done
2111
2112 case $ac_configure_args_raw in
2113 *$as_nl*)
2114 ac_safe_unquote= ;;
2115 *)
2116 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2117 ac_unsafe_a="$ac_unsafe_z#~"
2118 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2119 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2120 esac
2121
2122 cat >config.log <<_ACEOF
2123 This file contains any messages produced by compilers while
2124 running configure, to aid debugging if configure makes a mistake.
2125
2126 It was created by GNU Make $as_me 4.4.1, which was
2127 generated by GNU Autoconf 2.71. Invocation command line was
2128
2129 $ $0$ac_configure_args_raw
2130
2131 _ACEOF
2132 exec 5>>config.log
2133 {
2134 cat <<_ASUNAME
2135 ## --------- ##
2136 ## Platform. ##
2137 ## --------- ##
2138
2139 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2144
2145 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2147
2148 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2149 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2150 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2151 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2152 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2153 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2154 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2155
2156 _ASUNAME
2157
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161 IFS=$as_save_IFS
2162 case $as_dir in #(((
2163 '') as_dir=./ ;;
2164 */) ;;
2165 *) as_dir=$as_dir/ ;;
2166 esac
2167 printf "%s\n" "PATH: $as_dir"
2168 done
2169 IFS=$as_save_IFS
2170
2171 } >&5
2172
2173 cat >&5 <<_ACEOF
2174
2175
2176 ## ----------- ##
2177 ## Core tests. ##
2178 ## ----------- ##
2179
2180 _ACEOF
2181
2182
2183 # Keep a trace of the command line.
2184 # Strip out --no-create and --no-recursion so they do not pile up.
2185 # Strip out --silent because we don't want to record it for future runs.
2186 # Also quote any args containing shell meta-characters.
2187 # Make two passes to allow for proper duplicate-argument suppression.
2188 ac_configure_args=
2189 ac_configure_args0=
2190 ac_configure_args1=
2191 ac_must_keep_next=false
2192 for ac_pass in 1 2
2193 do
2194 for ac_arg
2195 do
2196 case $ac_arg in
2197 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2198 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2199 | -silent | --silent | --silen | --sile | --sil)
2200 continue ;;
2201 *\'*)
2202 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 esac
2204 case $ac_pass in
2205 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2206 2)
2207 as_fn_append ac_configure_args1 " '$ac_arg'"
2208 if test $ac_must_keep_next = true; then
2209 ac_must_keep_next=false # Got value, back to normal.
2210 else
2211 case $ac_arg in
2212 *=* | --config-cache | -C | -disable-* | --disable-* \
2213 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2214 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2215 | -with-* | --with-* | -without-* | --without-* | --x)
2216 case "$ac_configure_args0 " in
2217 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2218 esac
2219 ;;
2220 -* ) ac_must_keep_next=true ;;
2221 esac
2222 fi
2223 as_fn_append ac_configure_args " '$ac_arg'"
2224 ;;
2225 esac
2226 done
2227 done
2228 { ac_configure_args0=; unset ac_configure_args0;}
2229 { ac_configure_args1=; unset ac_configure_args1;}
2230
2231 # When interrupted or exit'd, cleanup temporary files, and complete
2232 # config.log. We remove comments because anyway the quotes in there
2233 # would cause problems or look ugly.
2234 # WARNING: Use '\'' to represent an apostrophe within the trap.
2235 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2236 trap 'exit_status=$?
2237 # Sanitize IFS.
2238 IFS=" "" $as_nl"
2239 # Save into config.log some information that might help in debugging.
2240 {
2241 echo
2242
2243 printf "%s\n" "## ---------------- ##
2244 ## Cache variables. ##
2245 ## ---------------- ##"
2246 echo
2247 # The following way of writing the cache mishandles newlines in values,
2248 (
2249 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in #(
2252 *${as_nl}*)
2253 case $ac_var in #(
2254 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2255 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2256 esac
2257 case $ac_var in #(
2258 _ | IFS | as_nl) ;; #(
2259 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2260 *) { eval $ac_var=; unset $ac_var;} ;;
2261 esac ;;
2262 esac
2263 done
2264 (set) 2>&1 |
2265 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2266 *${as_nl}ac_space=\ *)
2267 sed -n \
2268 "s/'\''/'\''\\\\'\'''\''/g;
2269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2270 ;; #(
2271 *)
2272 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2273 ;;
2274 esac |
2275 sort
2276 )
2277 echo
2278
2279 printf "%s\n" "## ----------------- ##
2280 ## Output variables. ##
2281 ## ----------------- ##"
2282 echo
2283 for ac_var in $ac_subst_vars
2284 do
2285 eval ac_val=\$$ac_var
2286 case $ac_val in
2287 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288 esac
2289 printf "%s\n" "$ac_var='\''$ac_val'\''"
2290 done | sort
2291 echo
2292
2293 if test -n "$ac_subst_files"; then
2294 printf "%s\n" "## ------------------- ##
2295 ## File substitutions. ##
2296 ## ------------------- ##"
2297 echo
2298 for ac_var in $ac_subst_files
2299 do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 printf "%s\n" "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2307 fi
2308
2309 if test -s confdefs.h; then
2310 printf "%s\n" "## ----------- ##
2311 ## confdefs.h. ##
2312 ## ----------- ##"
2313 echo
2314 cat confdefs.h
2315 echo
2316 fi
2317 test "$ac_signal" != 0 &&
2318 printf "%s\n" "$as_me: caught signal $ac_signal"
2319 printf "%s\n" "$as_me: exit $exit_status"
2320 } >&5
2321 rm -f core *.core core.conftest.* &&
2322 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2323 exit $exit_status
2324 ' 0
2325 for ac_signal in 1 2 13 15; do
2326 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2327 done
2328 ac_signal=0
2329
2330 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2331 rm -f -r conftest* confdefs.h
2332
2333 printf "%s\n" "/* confdefs.h */" > confdefs.h
2334
2335 # Predefined preprocessor variables.
2336
2337 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2338
2339 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2340
2341 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2342
2343 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2344
2345 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2346
2347 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2348
2349
2350 # Let the site file select an alternate cache file if it wants to.
2351 # Prefer an explicitly selected file to automatically selected ones.
2352 if test -n "$CONFIG_SITE"; then
2353 ac_site_files="$CONFIG_SITE"
2354 elif test "x$prefix" != xNONE; then
2355 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2356 else
2357 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2358 fi
2359
2360 for ac_site_file in $ac_site_files
2361 do
2362 case $ac_site_file in #(
2363 */*) :
2364 ;; #(
2365 *) :
2366 ac_site_file=./$ac_site_file ;;
2367 esac
2368 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2370 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2371 sed 's/^/| /' "$ac_site_file" >&5
2372 . "$ac_site_file" \
2373 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2374 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2375 as_fn_error $? "failed to load site script $ac_site_file
2376 See \`config.log' for more details" "$LINENO" 5; }
2377 fi
2378 done
2379
2380 if test -r "$cache_file"; then
2381 # Some versions of bash will fail to source /dev/null (special files
2382 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2383 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2385 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2386 case $cache_file in
2387 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2388 *) . "./$cache_file";;
2389 esac
2390 fi
2391 else
2392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2393 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2394 >$cache_file
2395 fi
2396
2397 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2398 # Test code for whether the C compiler supports C89 (global declarations)
2399 ac_c_conftest_c89_globals='
2400 /* Does the compiler advertise C89 conformance?
2401 Do not test the value of __STDC__, because some compilers set it to 0
2402 while being otherwise adequately conformant. */
2403 #if !defined __STDC__
2404 # error "Compiler does not advertise C89 conformance"
2405 #endif
2406
2407 #include <stddef.h>
2408 #include <stdarg.h>
2409 struct stat;
2410 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2411 struct buf { int x; };
2412 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2413 static char *e (p, i)
2414 char **p;
2415 int i;
2416 {
2417 return p[i];
2418 }
2419 static char *f (char * (*g) (char **, int), char **p, ...)
2420 {
2421 char *s;
2422 va_list v;
2423 va_start (v,p);
2424 s = g (p, va_arg (v,int));
2425 va_end (v);
2426 return s;
2427 }
2428
2429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2430 function prototypes and stuff, but not \xHH hex character constants.
2431 These do not provoke an error unfortunately, instead are silently treated
2432 as an "x". The following induces an error, until -std is added to get
2433 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2434 array size at least. It is necessary to write \x00 == 0 to get something
2435 that is true only with -std. */
2436 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2437
2438 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2439 inside strings and character constants. */
2440 #define FOO(x) '\''x'\''
2441 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2442
2443 int test (int i, double x);
2444 struct s1 {int (*f) (int a);};
2445 struct s2 {int (*f) (double a);};
2446 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2447 int, int);'
2448
2449 # Test code for whether the C compiler supports C89 (body of main).
2450 ac_c_conftest_c89_main='
2451 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2452 '
2453
2454 # Test code for whether the C compiler supports C99 (global declarations)
2455 ac_c_conftest_c99_globals='
2456 // Does the compiler advertise C99 conformance?
2457 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2458 # error "Compiler does not advertise C99 conformance"
2459 #endif
2460
2461 #include <stdbool.h>
2462 extern int puts (const char *);
2463 extern int printf (const char *, ...);
2464 extern int dprintf (int, const char *, ...);
2465 extern void *malloc (size_t);
2466
2467 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2468 // dprintf is used instead of fprintf to avoid needing to declare
2469 // FILE and stderr.
2470 #define debug(...) dprintf (2, __VA_ARGS__)
2471 #define showlist(...) puts (#__VA_ARGS__)
2472 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2473 static void
2474 test_varargs_macros (void)
2475 {
2476 int x = 1234;
2477 int y = 5678;
2478 debug ("Flag");
2479 debug ("X = %d\n", x);
2480 showlist (The first, second, and third items.);
2481 report (x>y, "x is %d but y is %d", x, y);
2482 }
2483
2484 // Check long long types.
2485 #define BIG64 18446744073709551615ull
2486 #define BIG32 4294967295ul
2487 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2488 #if !BIG_OK
2489 #error "your preprocessor is broken"
2490 #endif
2491 #if BIG_OK
2492 #else
2493 #error "your preprocessor is broken"
2494 #endif
2495 static long long int bignum = -9223372036854775807LL;
2496 static unsigned long long int ubignum = BIG64;
2497
2498 struct incomplete_array
2499 {
2500 int datasize;
2501 double data[];
2502 };
2503
2504 struct named_init {
2505 int number;
2506 const wchar_t *name;
2507 double average;
2508 };
2509
2510 typedef const char *ccp;
2511
2512 static inline int
2513 test_restrict (ccp restrict text)
2514 {
2515 // See if C++-style comments work.
2516 // Iterate through items via the restricted pointer.
2517 // Also check for declarations in for loops.
2518 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2519 continue;
2520 return 0;
2521 }
2522
2523 // Check varargs and va_copy.
2524 static bool
2525 test_varargs (const char *format, ...)
2526 {
2527 va_list args;
2528 va_start (args, format);
2529 va_list args_copy;
2530 va_copy (args_copy, args);
2531
2532 const char *str = "";
2533 int number = 0;
2534 float fnumber = 0;
2535
2536 while (*format)
2537 {
2538 switch (*format++)
2539 {
2540 case '\''s'\'': // string
2541 str = va_arg (args_copy, const char *);
2542 break;
2543 case '\''d'\'': // int
2544 number = va_arg (args_copy, int);
2545 break;
2546 case '\''f'\'': // float
2547 fnumber = va_arg (args_copy, double);
2548 break;
2549 default:
2550 break;
2551 }
2552 }
2553 va_end (args_copy);
2554 va_end (args);
2555
2556 return *str && number && fnumber;
2557 }
2558 '
2559
2560 # Test code for whether the C compiler supports C99 (body of main).
2561 ac_c_conftest_c99_main='
2562 // Check bool.
2563 _Bool success = false;
2564 success |= (argc != 0);
2565
2566 // Check restrict.
2567 if (test_restrict ("String literal") == 0)
2568 success = true;
2569 char *restrict newvar = "Another string";
2570
2571 // Check varargs.
2572 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2573 test_varargs_macros ();
2574
2575 // Check flexible array members.
2576 struct incomplete_array *ia =
2577 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2578 ia->datasize = 10;
2579 for (int i = 0; i < ia->datasize; ++i)
2580 ia->data[i] = i * 1.234;
2581
2582 // Check named initializers.
2583 struct named_init ni = {
2584 .number = 34,
2585 .name = L"Test wide string",
2586 .average = 543.34343,
2587 };
2588
2589 ni.number = 58;
2590
2591 int dynamic_array[ni.number];
2592 dynamic_array[0] = argv[0][0];
2593 dynamic_array[ni.number - 1] = 543;
2594
2595 // work around unused variable warnings
2596 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2597 || dynamic_array[ni.number - 1] != 543);
2598 '
2599
2600 # Test code for whether the C compiler supports C11 (global declarations)
2601 ac_c_conftest_c11_globals='
2602 // Does the compiler advertise C11 conformance?
2603 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2604 # error "Compiler does not advertise C11 conformance"
2605 #endif
2606
2607 // Check _Alignas.
2608 char _Alignas (double) aligned_as_double;
2609 char _Alignas (0) no_special_alignment;
2610 extern char aligned_as_int;
2611 char _Alignas (0) _Alignas (int) aligned_as_int;
2612
2613 // Check _Alignof.
2614 enum
2615 {
2616 int_alignment = _Alignof (int),
2617 int_array_alignment = _Alignof (int[100]),
2618 char_alignment = _Alignof (char)
2619 };
2620 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2621
2622 // Check _Noreturn.
2623 int _Noreturn does_not_return (void) { for (;;) continue; }
2624
2625 // Check _Static_assert.
2626 struct test_static_assert
2627 {
2628 int x;
2629 _Static_assert (sizeof (int) <= sizeof (long int),
2630 "_Static_assert does not work in struct");
2631 long int y;
2632 };
2633
2634 // Check UTF-8 literals.
2635 #define u8 syntax error!
2636 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2637
2638 // Check duplicate typedefs.
2639 typedef long *long_ptr;
2640 typedef long int *long_ptr;
2641 typedef long_ptr long_ptr;
2642
2643 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2644 struct anonymous
2645 {
2646 union {
2647 struct { int i; int j; };
2648 struct { int k; long int l; } w;
2649 };
2650 int m;
2651 } v1;
2652 '
2653
2654 # Test code for whether the C compiler supports C11 (body of main).
2655 ac_c_conftest_c11_main='
2656 _Static_assert ((offsetof (struct anonymous, i)
2657 == offsetof (struct anonymous, w.k)),
2658 "Anonymous union alignment botch");
2659 v1.i = 2;
2660 v1.w.k = 5;
2661 ok |= v1.i != 5;
2662 '
2663
2664 # Test code for whether the C compiler supports C11 (complete).
2665 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2666 ${ac_c_conftest_c99_globals}
2667 ${ac_c_conftest_c11_globals}
2668
2669 int
2670 main (int argc, char **argv)
2671 {
2672 int ok = 0;
2673 ${ac_c_conftest_c89_main}
2674 ${ac_c_conftest_c99_main}
2675 ${ac_c_conftest_c11_main}
2676 return ok;
2677 }
2678 "
2679
2680 # Test code for whether the C compiler supports C99 (complete).
2681 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2682 ${ac_c_conftest_c99_globals}
2683
2684 int
2685 main (int argc, char **argv)
2686 {
2687 int ok = 0;
2688 ${ac_c_conftest_c89_main}
2689 ${ac_c_conftest_c99_main}
2690 return ok;
2691 }
2692 "
2693
2694 # Test code for whether the C compiler supports C89 (complete).
2695 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2696
2697 int
2698 main (int argc, char **argv)
2699 {
2700 int ok = 0;
2701 ${ac_c_conftest_c89_main}
2702 return ok;
2703 }
2704 "
2705
2706 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2707 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2708 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2709 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2710 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2711 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2712 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2713 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2714 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2715 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2716 # Test code for whether the C++ compiler supports C++98 (global declarations)
2717 ac_cxx_conftest_cxx98_globals='
2718 // Does the compiler advertise C++98 conformance?
2719 #if !defined __cplusplus || __cplusplus < 199711L
2720 # error "Compiler does not advertise C++98 conformance"
2721 #endif
2722
2723 // These inclusions are to reject old compilers that
2724 // lack the unsuffixed header files.
2725 #include <cstdlib>
2726 #include <exception>
2727
2728 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2729 extern void assert (int);
2730 namespace std {
2731 extern int strcmp (const char *, const char *);
2732 }
2733
2734 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2735 using std::exception;
2736 using std::strcmp;
2737
2738 namespace {
2739
2740 void test_exception_syntax()
2741 {
2742 try {
2743 throw "test";
2744 } catch (const char *s) {
2745 // Extra parentheses suppress a warning when building autoconf itself,
2746 // due to lint rules shared with more typical C programs.
2747 assert (!(strcmp) (s, "test"));
2748 }
2749 }
2750
2751 template <typename T> struct test_template
2752 {
2753 T const val;
2754 explicit test_template(T t) : val(t) {}
2755 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2756 };
2757
2758 } // anonymous namespace
2759 '
2760
2761 # Test code for whether the C++ compiler supports C++98 (body of main)
2762 ac_cxx_conftest_cxx98_main='
2763 assert (argc);
2764 assert (! argv[0]);
2765 {
2766 test_exception_syntax ();
2767 test_template<double> tt (2.0);
2768 assert (tt.add (4) == 6.0);
2769 assert (true && !false);
2770 }
2771 '
2772
2773 # Test code for whether the C++ compiler supports C++11 (global declarations)
2774 ac_cxx_conftest_cxx11_globals='
2775 // Does the compiler advertise C++ 2011 conformance?
2776 #if !defined __cplusplus || __cplusplus < 201103L
2777 # error "Compiler does not advertise C++11 conformance"
2778 #endif
2779
2780 namespace cxx11test
2781 {
2782 constexpr int get_val() { return 20; }
2783
2784 struct testinit
2785 {
2786 int i;
2787 double d;
2788 };
2789
2790 class delegate
2791 {
2792 public:
2793 delegate(int n) : n(n) {}
2794 delegate(): delegate(2354) {}
2795
2796 virtual int getval() { return this->n; };
2797 protected:
2798 int n;
2799 };
2800
2801 class overridden : public delegate
2802 {
2803 public:
2804 overridden(int n): delegate(n) {}
2805 virtual int getval() override final { return this->n * 2; }
2806 };
2807
2808 class nocopy
2809 {
2810 public:
2811 nocopy(int i): i(i) {}
2812 nocopy() = default;
2813 nocopy(const nocopy&) = delete;
2814 nocopy & operator=(const nocopy&) = delete;
2815 private:
2816 int i;
2817 };
2818
2819 // for testing lambda expressions
2820 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2821 {
2822 return f(v);
2823 }
2824
2825 // for testing variadic templates and trailing return types
2826 template <typename V> auto sum(V first) -> V
2827 {
2828 return first;
2829 }
2830 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2831 {
2832 return first + sum(rest...);
2833 }
2834 }
2835 '
2836
2837 # Test code for whether the C++ compiler supports C++11 (body of main)
2838 ac_cxx_conftest_cxx11_main='
2839 {
2840 // Test auto and decltype
2841 auto a1 = 6538;
2842 auto a2 = 48573953.4;
2843 auto a3 = "String literal";
2844
2845 int total = 0;
2846 for (auto i = a3; *i; ++i) { total += *i; }
2847
2848 decltype(a2) a4 = 34895.034;
2849 }
2850 {
2851 // Test constexpr
2852 short sa[cxx11test::get_val()] = { 0 };
2853 }
2854 {
2855 // Test initializer lists
2856 cxx11test::testinit il = { 4323, 435234.23544 };
2857 }
2858 {
2859 // Test range-based for
2860 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2861 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2862 for (auto &x : array) { x += 23; }
2863 }
2864 {
2865 // Test lambda expressions
2866 using cxx11test::eval;
2867 assert (eval ([](int x) { return x*2; }, 21) == 42);
2868 double d = 2.0;
2869 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2870 assert (d == 5.0);
2871 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2872 assert (d == 5.0);
2873 }
2874 {
2875 // Test use of variadic templates
2876 using cxx11test::sum;
2877 auto a = sum(1);
2878 auto b = sum(1, 2);
2879 auto c = sum(1.0, 2.0, 3.0);
2880 }
2881 {
2882 // Test constructor delegation
2883 cxx11test::delegate d1;
2884 cxx11test::delegate d2();
2885 cxx11test::delegate d3(45);
2886 }
2887 {
2888 // Test override and final
2889 cxx11test::overridden o1(55464);
2890 }
2891 {
2892 // Test nullptr
2893 char *c = nullptr;
2894 }
2895 {
2896 // Test template brackets
2897 test_template<::test_template<int>> v(test_template<int>(12));
2898 }
2899 {
2900 // Unicode literals
2901 char const *utf8 = u8"UTF-8 string \u2500";
2902 char16_t const *utf16 = u"UTF-8 string \u2500";
2903 char32_t const *utf32 = U"UTF-32 string \u2500";
2904 }
2905 '
2906
2907 # Test code for whether the C compiler supports C++11 (complete).
2908 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2909 ${ac_cxx_conftest_cxx11_globals}
2910
2911 int
2912 main (int argc, char **argv)
2913 {
2914 int ok = 0;
2915 ${ac_cxx_conftest_cxx98_main}
2916 ${ac_cxx_conftest_cxx11_main}
2917 return ok;
2918 }
2919 "
2920
2921 # Test code for whether the C compiler supports C++98 (complete).
2922 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2923 int
2924 main (int argc, char **argv)
2925 {
2926 int ok = 0;
2927 ${ac_cxx_conftest_cxx98_main}
2928 return ok;
2929 }
2930 "
2931
2932 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
2933 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
2934 gt_needs="$gt_needs "
2935 as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
2936 as_fn_append ac_func_c_list " fork HAVE_FORK"
2937 as_fn_append ac_func_c_list " vfork HAVE_VFORK"
2938
2939 # Auxiliary files required by this configure script.
2940 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
2941
2942 # Locations in which to look for auxiliary files.
2943 ac_aux_dir_candidates="${srcdir}/build-aux"
2944
2945 # Search for a directory containing all of the required auxiliary files,
2946 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2947 # If we don't find one directory that contains all the files we need,
2948 # we report the set of missing files from the *first* directory in
2949 # $ac_aux_dir_candidates and give up.
2950 ac_missing_aux_files=""
2951 ac_first_candidate=:
2952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 as_found=false
2955 for as_dir in $ac_aux_dir_candidates
2956 do
2957 IFS=$as_save_IFS
2958 case $as_dir in #(((
2959 '') as_dir=./ ;;
2960 */) ;;
2961 *) as_dir=$as_dir/ ;;
2962 esac
2963 as_found=:
2964
2965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2966 ac_aux_dir_found=yes
2967 ac_install_sh=
2968 for ac_aux in $ac_aux_files
2969 do
2970 # As a special case, if "install-sh" is required, that requirement
2971 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2972 # and $ac_install_sh is set appropriately for whichever one is found.
2973 if test x"$ac_aux" = x"install-sh"
2974 then
2975 if test -f "${as_dir}install-sh"; then
2976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2977 ac_install_sh="${as_dir}install-sh -c"
2978 elif test -f "${as_dir}install.sh"; then
2979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2980 ac_install_sh="${as_dir}install.sh -c"
2981 elif test -f "${as_dir}shtool"; then
2982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2983 ac_install_sh="${as_dir}shtool install -c"
2984 else
2985 ac_aux_dir_found=no
2986 if $ac_first_candidate; then
2987 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2988 else
2989 break
2990 fi
2991 fi
2992 else
2993 if test -f "${as_dir}${ac_aux}"; then
2994 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2995 else
2996 ac_aux_dir_found=no
2997 if $ac_first_candidate; then
2998 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2999 else
3000 break
3001 fi
3002 fi
3003 fi
3004 done
3005 if test "$ac_aux_dir_found" = yes; then
3006 ac_aux_dir="$as_dir"
3007 break
3008 fi
3009 ac_first_candidate=false
3010
3011 as_found=false
3012 done
3013 IFS=$as_save_IFS
3014 if $as_found
3015 then :
3016
3017 else $as_nop
3018 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3019 fi
3020
3021
3022 # These three variables are undocumented and unsupported,
3023 # and are intended to be withdrawn in a future Autoconf release.
3024 # They can cause serious problems if a builder's source tree is in a directory
3025 # whose full name contains unusual characters.
3026 if test -f "${ac_aux_dir}config.guess"; then
3027 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3028 fi
3029 if test -f "${ac_aux_dir}config.sub"; then
3030 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3031 fi
3032 if test -f "$ac_aux_dir/configure"; then
3033 ac_configure="$SHELL ${ac_aux_dir}configure"
3034 fi
3035
3036 # Check that the precious variables saved in the cache have kept the same
3037 # value.
3038 ac_cache_corrupted=false
3039 for ac_var in $ac_precious_vars; do
3040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3041 eval ac_new_set=\$ac_env_${ac_var}_set
3042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3043 eval ac_new_val=\$ac_env_${ac_var}_value
3044 case $ac_old_set,$ac_new_set in
3045 set,)
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3047 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3048 ac_cache_corrupted=: ;;
3049 ,set)
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3051 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3052 ac_cache_corrupted=: ;;
3053 ,);;
3054 *)
3055 if test "x$ac_old_val" != "x$ac_new_val"; then
3056 # differences in whitespace do not lead to failure.
3057 ac_old_val_w=`echo x $ac_old_val`
3058 ac_new_val_w=`echo x $ac_new_val`
3059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3061 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3062 ac_cache_corrupted=:
3063 else
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3065 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3066 eval $ac_var=\$ac_old_val
3067 fi
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3069 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3071 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3072 fi;;
3073 esac
3074 # Pass precious variables to config.status.
3075 if test "$ac_new_set" = set; then
3076 case $ac_new_val in
3077 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3078 *) ac_arg=$ac_var=$ac_new_val ;;
3079 esac
3080 case " $ac_configure_args " in
3081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3083 esac
3084 fi
3085 done
3086 if $ac_cache_corrupted; then
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3090 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3091 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3092 and start over" "$LINENO" 5
3093 fi
3094 ## -------------------- ##
3095 ## Main body of script. ##
3096 ## -------------------- ##
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105
3106
3107
3108 # Autoconf setup
3109
3110
3111 ac_config_headers="$ac_config_headers src/config.h"
3112
3113
3114
3115
3116 # Automake setup
3117 # We have to enable "foreign" because ChangeLog is auto-generated
3118 # Automake 1.15 and gnulib don't get along: gnulib has some strange error
3119 # in the way it handles getloadavg.c which causes make distcheck to fail.
3120 # https://lists.gnu.org/archive/html/bug-gnulib/2018-06/msg00024.html
3121 am__api_version='1.16'
3122
3123
3124
3125 # Find a good install program. We prefer a C program (faster),
3126 # so one script is as good as another. But avoid the broken or
3127 # incompatible versions:
3128 # SysV /etc/install, /usr/sbin/install
3129 # SunOS /usr/etc/install
3130 # IRIX /sbin/install
3131 # AIX /bin/install
3132 # AmigaOS /C/install, which installs bootblocks on floppy discs
3133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3136 # OS/2's system install, which has a completely different semantic
3137 # ./install, which can be erroneously created by make from ./install.sh.
3138 # Reject install programs that cannot install multiple files.
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3140 printf %s "checking for a BSD-compatible install... " >&6; }
3141 if test -z "$INSTALL"; then
3142 if test ${ac_cv_path_install+y}
3143 then :
3144 printf %s "(cached) " >&6
3145 else $as_nop
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149 IFS=$as_save_IFS
3150 case $as_dir in #(((
3151 '') as_dir=./ ;;
3152 */) ;;
3153 *) as_dir=$as_dir/ ;;
3154 esac
3155 # Account for fact that we put trailing slashes in our PATH walk.
3156 case $as_dir in #((
3157 ./ | /[cC]/* | \
3158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3159 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3160 /usr/ucb/* ) ;;
3161 *)
3162 # OSF1 and SCO ODT 3.0 have their own names for install.
3163 # Don't use installbsd from OSF since it installs stuff as root
3164 # by default.
3165 for ac_prog in ginstall scoinst install; do
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3168 if test $ac_prog = install &&
3169 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3170 # AIX install. It has an incompatible calling convention.
3171 :
3172 elif test $ac_prog = install &&
3173 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3174 # program-specific install script used by HP pwplus--don't use.
3175 :
3176 else
3177 rm -rf conftest.one conftest.two conftest.dir
3178 echo one > conftest.one
3179 echo two > conftest.two
3180 mkdir conftest.dir
3181 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3182 test -s conftest.one && test -s conftest.two &&
3183 test -s conftest.dir/conftest.one &&
3184 test -s conftest.dir/conftest.two
3185 then
3186 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3187 break 3
3188 fi
3189 fi
3190 fi
3191 done
3192 done
3193 ;;
3194 esac
3195
3196 done
3197 IFS=$as_save_IFS
3198
3199 rm -rf conftest.one conftest.two conftest.dir
3200
3201 fi
3202 if test ${ac_cv_path_install+y}; then
3203 INSTALL=$ac_cv_path_install
3204 else
3205 # As a last resort, use the slow shell script. Don't cache a
3206 # value for INSTALL within a source directory, because that will
3207 # break other packages using the cache if that directory is
3208 # removed, or if the value is a relative name.
3209 INSTALL=$ac_install_sh
3210 fi
3211 fi
3212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3213 printf "%s\n" "$INSTALL" >&6; }
3214
3215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3216 # It thinks the first close brace ends the variable substitution.
3217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3218
3219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3220
3221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3222
3223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3224 printf %s "checking whether build environment is sane... " >&6; }
3225 # Reject unsafe characters in $srcdir or the absolute working directory
3226 # name. Accept space and tab only in the latter.
3227 am_lf='
3228 '
3229 case `pwd` in
3230 *[\\\"\#\$\&\'\`$am_lf]*)
3231 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3232 esac
3233 case $srcdir in
3234 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3235 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3236 esac
3237
3238 # Do 'set' in a subshell so we don't clobber the current shell's
3239 # arguments. Must try -L first in case configure is actually a
3240 # symlink; some systems play weird games with the mod time of symlinks
3241 # (eg FreeBSD returns the mod time of the symlink's containing
3242 # directory).
3243 if (
3244 am_has_slept=no
3245 for am_try in 1 2; do
3246 echo "timestamp, slept: $am_has_slept" > conftest.file
3247 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3248 if test "$*" = "X"; then
3249 # -L didn't work.
3250 set X `ls -t "$srcdir/configure" conftest.file`
3251 fi
3252 if test "$*" != "X $srcdir/configure conftest.file" \
3253 && test "$*" != "X conftest.file $srcdir/configure"; then
3254
3255 # If neither matched, then we have a broken ls. This can happen
3256 # if, for instance, CONFIG_SHELL is bash and it inherits a
3257 # broken ls alias from the environment. This has actually
3258 # happened. Such a system could not be considered "sane".
3259 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3260 alias in your environment" "$LINENO" 5
3261 fi
3262 if test "$2" = conftest.file || test $am_try -eq 2; then
3263 break
3264 fi
3265 # Just in case.
3266 sleep 1
3267 am_has_slept=yes
3268 done
3269 test "$2" = conftest.file
3270 )
3271 then
3272 # Ok.
3273 :
3274 else
3275 as_fn_error $? "newly created file is older than distributed files!
3276 Check your system clock" "$LINENO" 5
3277 fi
3278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 printf "%s\n" "yes" >&6; }
3280 # If we didn't sleep, we still need to ensure time stamps of config.status and
3281 # generated files are strictly newer.
3282 am_sleep_pid=
3283 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3284 ( sleep 1 ) &
3285 am_sleep_pid=$!
3286 fi
3287
3288 rm -f conftest.file
3289
3290 test "$program_prefix" != NONE &&
3291 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3292 # Use a double $ so make ignores it.
3293 test "$program_suffix" != NONE &&
3294 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3295 # Double any \ or $.
3296 # By default was `s,x,x', remove it if useless.
3297 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3298 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3299
3300
3301 # Expand $ac_aux_dir to an absolute path.
3302 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3303
3304
3305 if test x"${MISSING+set}" != xset; then
3306 MISSING="\${SHELL} '$am_aux_dir/missing'"
3307 fi
3308 # Use eval to expand $SHELL
3309 if eval "$MISSING --is-lightweight"; then
3310 am_missing_run="$MISSING "
3311 else
3312 am_missing_run=
3313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3314 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3315 fi
3316
3317 if test x"${install_sh+set}" != xset; then
3318 case $am_aux_dir in
3319 *\ * | *\ *)
3320 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3321 *)
3322 install_sh="\${SHELL} $am_aux_dir/install-sh"
3323 esac
3324 fi
3325
3326 # Installed binaries are usually stripped using 'strip' when the user
3327 # run "make install-strip". However 'strip' might not be the right
3328 # tool to use in cross-compilation environments, therefore Automake
3329 # will honor the 'STRIP' environment variable to overrule this program.
3330 if test "$cross_compiling" != no; then
3331 if test -n "$ac_tool_prefix"; then
3332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3333 set dummy ${ac_tool_prefix}strip; ac_word=$2
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 printf %s "checking for $ac_word... " >&6; }
3336 if test ${ac_cv_prog_STRIP+y}
3337 then :
3338 printf %s "(cached) " >&6
3339 else $as_nop
3340 if test -n "$STRIP"; then
3341 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3342 else
3343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 for as_dir in $PATH
3345 do
3346 IFS=$as_save_IFS
3347 case $as_dir in #(((
3348 '') as_dir=./ ;;
3349 */) ;;
3350 *) as_dir=$as_dir/ ;;
3351 esac
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3354 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3355 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3356 break 2
3357 fi
3358 done
3359 done
3360 IFS=$as_save_IFS
3361
3362 fi
3363 fi
3364 STRIP=$ac_cv_prog_STRIP
3365 if test -n "$STRIP"; then
3366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3367 printf "%s\n" "$STRIP" >&6; }
3368 else
3369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 printf "%s\n" "no" >&6; }
3371 fi
3372
3373
3374 fi
3375 if test -z "$ac_cv_prog_STRIP"; then
3376 ac_ct_STRIP=$STRIP
3377 # Extract the first word of "strip", so it can be a program name with args.
3378 set dummy strip; ac_word=$2
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 printf %s "checking for $ac_word... " >&6; }
3381 if test ${ac_cv_prog_ac_ct_STRIP+y}
3382 then :
3383 printf %s "(cached) " >&6
3384 else $as_nop
3385 if test -n "$ac_ct_STRIP"; then
3386 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 case $as_dir in #(((
3393 '') as_dir=./ ;;
3394 */) ;;
3395 *) as_dir=$as_dir/ ;;
3396 esac
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3399 ac_cv_prog_ac_ct_STRIP="strip"
3400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3410 if test -n "$ac_ct_STRIP"; then
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3412 printf "%s\n" "$ac_ct_STRIP" >&6; }
3413 else
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 printf "%s\n" "no" >&6; }
3416 fi
3417
3418 if test "x$ac_ct_STRIP" = x; then
3419 STRIP=":"
3420 else
3421 case $cross_compiling:$ac_tool_warned in
3422 yes:)
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3424 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3425 ac_tool_warned=yes ;;
3426 esac
3427 STRIP=$ac_ct_STRIP
3428 fi
3429 else
3430 STRIP="$ac_cv_prog_STRIP"
3431 fi
3432
3433 fi
3434 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3435
3436
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3438 printf %s "checking for a race-free mkdir -p... " >&6; }
3439 if test -z "$MKDIR_P"; then
3440 if test ${ac_cv_path_mkdir+y}
3441 then :
3442 printf %s "(cached) " >&6
3443 else $as_nop
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3446 do
3447 IFS=$as_save_IFS
3448 case $as_dir in #(((
3449 '') as_dir=./ ;;
3450 */) ;;
3451 *) as_dir=$as_dir/ ;;
3452 esac
3453 for ac_prog in mkdir gmkdir; do
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3456 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3457 'mkdir ('*'coreutils) '* | \
3458 'BusyBox '* | \
3459 'mkdir (fileutils) '4.1*)
3460 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3461 break 3;;
3462 esac
3463 done
3464 done
3465 done
3466 IFS=$as_save_IFS
3467
3468 fi
3469
3470 test -d ./--version && rmdir ./--version
3471 if test ${ac_cv_path_mkdir+y}; then
3472 MKDIR_P="$ac_cv_path_mkdir -p"
3473 else
3474 # As a last resort, use the slow shell script. Don't cache a
3475 # value for MKDIR_P within a source directory, because that will
3476 # break other packages using the cache if that directory is
3477 # removed, or if the value is a relative name.
3478 MKDIR_P="$ac_install_sh -d"
3479 fi
3480 fi
3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3482 printf "%s\n" "$MKDIR_P" >&6; }
3483
3484 for ac_prog in gawk mawk nawk awk
3485 do
3486 # Extract the first word of "$ac_prog", so it can be a program name with args.
3487 set dummy $ac_prog; ac_word=$2
3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 printf %s "checking for $ac_word... " >&6; }
3490 if test ${ac_cv_prog_AWK+y}
3491 then :
3492 printf %s "(cached) " >&6
3493 else $as_nop
3494 if test -n "$AWK"; then
3495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3499 do
3500 IFS=$as_save_IFS
3501 case $as_dir in #(((
3502 '') as_dir=./ ;;
3503 */) ;;
3504 *) as_dir=$as_dir/ ;;
3505 esac
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3508 ac_cv_prog_AWK="$ac_prog"
3509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3510 break 2
3511 fi
3512 done
3513 done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 AWK=$ac_cv_prog_AWK
3519 if test -n "$AWK"; then
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3521 printf "%s\n" "$AWK" >&6; }
3522 else
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 printf "%s\n" "no" >&6; }
3525 fi
3526
3527
3528 test -n "$AWK" && break
3529 done
3530
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3532 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3533 set x ${MAKE-make}
3534 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3535 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else $as_nop
3539 cat >conftest.make <<\_ACEOF
3540 SHELL = /bin/sh
3541 all:
3542 @echo '@@@%%%=$(MAKE)=@@@%%%'
3543 _ACEOF
3544 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3545 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3546 *@@@%%%=?*=@@@%%%*)
3547 eval ac_cv_prog_make_${ac_make}_set=yes;;
3548 *)
3549 eval ac_cv_prog_make_${ac_make}_set=no;;
3550 esac
3551 rm -f conftest.make
3552 fi
3553 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3555 printf "%s\n" "yes" >&6; }
3556 SET_MAKE=
3557 else
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 printf "%s\n" "no" >&6; }
3560 SET_MAKE="MAKE=${MAKE-make}"
3561 fi
3562
3563 rm -rf .tst 2>/dev/null
3564 mkdir .tst 2>/dev/null
3565 if test -d .tst; then
3566 am__leading_dot=.
3567 else
3568 am__leading_dot=_
3569 fi
3570 rmdir .tst 2>/dev/null
3571
3572 # Check whether --enable-silent-rules was given.
3573 if test ${enable_silent_rules+y}
3574 then :
3575 enableval=$enable_silent_rules;
3576 fi
3577
3578 case $enable_silent_rules in # (((
3579 yes) AM_DEFAULT_VERBOSITY=0;;
3580 no) AM_DEFAULT_VERBOSITY=1;;
3581 *) AM_DEFAULT_VERBOSITY=1;;
3582 esac
3583 am_make=${MAKE-make}
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3585 printf %s "checking whether $am_make supports nested variables... " >&6; }
3586 if test ${am_cv_make_support_nested_variables+y}
3587 then :
3588 printf %s "(cached) " >&6
3589 else $as_nop
3590 if printf "%s\n" 'TRUE=$(BAR$(V))
3591 BAR0=false
3592 BAR1=true
3593 V=1
3594 am__doit:
3595 @$(TRUE)
3596 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3597 am_cv_make_support_nested_variables=yes
3598 else
3599 am_cv_make_support_nested_variables=no
3600 fi
3601 fi
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3603 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3604 if test $am_cv_make_support_nested_variables = yes; then
3605 AM_V='$(V)'
3606 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3607 else
3608 AM_V=$AM_DEFAULT_VERBOSITY
3609 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3610 fi
3611 AM_BACKSLASH='\'
3612
3613 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3614 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3615 # is not polluted with repeated "-I."
3616 am__isrc=' -I$(srcdir)'
3617 # test to see if srcdir already configured
3618 if test -f $srcdir/config.status; then
3619 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3620 fi
3621 fi
3622
3623 # test whether we have cygpath
3624 if test -z "$CYGPATH_W"; then
3625 if (cygpath --version) >/dev/null 2>/dev/null; then
3626 CYGPATH_W='cygpath -w'
3627 else
3628 CYGPATH_W=echo
3629 fi
3630 fi
3631
3632
3633 # Define the identity of the package.
3634 PACKAGE='make'
3635 VERSION='4.4.1'
3636
3637
3638 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3639
3640
3641 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3642
3643 # Some tools Automake needs.
3644
3645 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3646
3647
3648 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3649
3650
3651 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3652
3653
3654 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3655
3656
3657 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3658
3659 # For better backward compatibility. To be removed once Automake 1.9.x
3660 # dies out for good. For more background, see:
3661 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3662 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3663 mkdir_p='$(MKDIR_P)'
3664
3665 # We need awk for the "check" target (and possibly the TAP driver). The
3666 # system "awk" is bad on some platforms.
3667 # Always define AMTAR for backward compatibility. Yes, it's still used
3668 # in the wild :-( We should find a proper way to deprecate it ...
3669 AMTAR='$${TAR-tar}'
3670
3671
3672 # We'll loop over all known methods to create a tar archive until one works.
3673 _am_tools='gnutar pax cpio none'
3674
3675 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3676
3677
3678
3679
3680
3681 # Variables for tags utilities; see am/tags.am
3682 if test -z "$CTAGS"; then
3683 CTAGS=ctags
3684 fi
3685
3686 if test -z "$ETAGS"; then
3687 ETAGS=etags
3688 fi
3689
3690 if test -z "$CSCOPE"; then
3691 CSCOPE=cscope
3692 fi
3693
3694
3695
3696 # POSIX will say in a future version that running "rm -f" with no argument
3697 # is OK; and we want to be able to make that assumption in our Makefile
3698 # recipes. So use an aggressive probe to check that the usage we want is
3699 # actually supported "in the wild" to an acceptable degree.
3700 # See automake bug#10828.
3701 # To make any issue more visible, cause the running configure to be aborted
3702 # by default if the 'rm' program in use doesn't match our expectations; the
3703 # user can still override this though.
3704 if rm -f && rm -fr && rm -rf; then : OK; else
3705 cat >&2 <<'END'
3706 Oops!
3707
3708 Your 'rm' program seems unable to run without file operands specified
3709 on the command line, even when the '-f' option is present. This is contrary
3710 to the behaviour of most rm programs out there, and not conforming with
3711 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3712
3713 Please tell [email protected] about your system, including the value
3714 of your $PATH and any error possibly output before this message. This
3715 can help us improve future automake versions.
3716
3717 END
3718 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3719 echo 'Configuration will proceed anyway, since you have set the' >&2
3720 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3721 echo >&2
3722 else
3723 cat >&2 <<'END'
3724 Aborting the configuration process, to ensure you take notice of the issue.
3725
3726 You can download and install GNU coreutils to get an 'rm' implementation
3727 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3728
3729 If you want to complete the configuration process using your problematic
3730 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3731 to "yes", and re-run configure.
3732
3733 END
3734 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3735 fi
3736 fi
3737
3738
3739 # Checks for programs.
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749 DEPDIR="${am__leading_dot}deps"
3750
3751 ac_config_commands="$ac_config_commands depfiles"
3752
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3754 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3755 cat > confinc.mk << 'END'
3756 am__doit:
3757 @echo this is the am__doit target >confinc.out
3758 .PHONY: am__doit
3759 END
3760 am__include="#"
3761 am__quote=
3762 # BSD make does it like this.
3763 echo '.include "confinc.mk" # ignored' > confmf.BSD
3764 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3765 echo 'include confinc.mk # ignored' > confmf.GNU
3766 _am_result=no
3767 for s in GNU BSD; do
3768 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3769 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3770 ac_status=$?
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }
3773 case $?:`cat confinc.out 2>/dev/null` in #(
3774 '0:this is the am__doit target') :
3775 case $s in #(
3776 BSD) :
3777 am__include='.include' am__quote='"' ;; #(
3778 *) :
3779 am__include='include' am__quote='' ;;
3780 esac ;; #(
3781 *) :
3782 ;;
3783 esac
3784 if test "$am__include" != "#"; then
3785 _am_result="yes ($s style)"
3786 break
3787 fi
3788 done
3789 rm -f confinc.* confmf.*
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3791 printf "%s\n" "${_am_result}" >&6; }
3792
3793 # Check whether --enable-dependency-tracking was given.
3794 if test ${enable_dependency_tracking+y}
3795 then :
3796 enableval=$enable_dependency_tracking;
3797 fi
3798
3799 if test "x$enable_dependency_tracking" != xno; then
3800 am_depcomp="$ac_aux_dir/depcomp"
3801 AMDEPBACKSLASH='\'
3802 am__nodep='_no'
3803 fi
3804 if test "x$enable_dependency_tracking" != xno; then
3805 AMDEP_TRUE=
3806 AMDEP_FALSE='#'
3807 else
3808 AMDEP_TRUE='#'
3809 AMDEP_FALSE=
3810 fi
3811
3812
3813 ac_ext=c
3814 ac_cpp='$CPP $CPPFLAGS'
3815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818 if test -n "$ac_tool_prefix"; then
3819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3822 printf %s "checking for $ac_word... " >&6; }
3823 if test ${ac_cv_prog_CC+y}
3824 then :
3825 printf %s "(cached) " >&6
3826 else $as_nop
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 case $as_dir in #(((
3835 '') as_dir=./ ;;
3836 */) ;;
3837 *) as_dir=$as_dir/ ;;
3838 esac
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3841 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3843 break 2
3844 fi
3845 done
3846 done
3847 IFS=$as_save_IFS
3848
3849 fi
3850 fi
3851 CC=$ac_cv_prog_CC
3852 if test -n "$CC"; then
3853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3854 printf "%s\n" "$CC" >&6; }
3855 else
3856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 printf "%s\n" "no" >&6; }
3858 fi
3859
3860
3861 fi
3862 if test -z "$ac_cv_prog_CC"; then
3863 ac_ct_CC=$CC
3864 # Extract the first word of "gcc", so it can be a program name with args.
3865 set dummy gcc; ac_word=$2
3866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867 printf %s "checking for $ac_word... " >&6; }
3868 if test ${ac_cv_prog_ac_ct_CC+y}
3869 then :
3870 printf %s "(cached) " >&6
3871 else $as_nop
3872 if test -n "$ac_ct_CC"; then
3873 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 case $as_dir in #(((
3880 '') as_dir=./ ;;
3881 */) ;;
3882 *) as_dir=$as_dir/ ;;
3883 esac
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3886 ac_cv_prog_ac_ct_CC="gcc"
3887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3888 break 2
3889 fi
3890 done
3891 done
3892 IFS=$as_save_IFS
3893
3894 fi
3895 fi
3896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3897 if test -n "$ac_ct_CC"; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3899 printf "%s\n" "$ac_ct_CC" >&6; }
3900 else
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3902 printf "%s\n" "no" >&6; }
3903 fi
3904
3905 if test "x$ac_ct_CC" = x; then
3906 CC=""
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909 yes:)
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3912 ac_tool_warned=yes ;;
3913 esac
3914 CC=$ac_ct_CC
3915 fi
3916 else
3917 CC="$ac_cv_prog_CC"
3918 fi
3919
3920 if test -z "$CC"; then
3921 if test -n "$ac_tool_prefix"; then
3922 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3923 set dummy ${ac_tool_prefix}cc; ac_word=$2
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 printf %s "checking for $ac_word... " >&6; }
3926 if test ${ac_cv_prog_CC+y}
3927 then :
3928 printf %s "(cached) " >&6
3929 else $as_nop
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932 else
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 for as_dir in $PATH
3935 do
3936 IFS=$as_save_IFS
3937 case $as_dir in #(((
3938 '') as_dir=./ ;;
3939 */) ;;
3940 *) as_dir=$as_dir/ ;;
3941 esac
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3944 ac_cv_prog_CC="${ac_tool_prefix}cc"
3945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948 done
3949 done
3950 IFS=$as_save_IFS
3951
3952 fi
3953 fi
3954 CC=$ac_cv_prog_CC
3955 if test -n "$CC"; then
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957 printf "%s\n" "$CC" >&6; }
3958 else
3959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 printf "%s\n" "no" >&6; }
3961 fi
3962
3963
3964 fi
3965 fi
3966 if test -z "$CC"; then
3967 # Extract the first word of "cc", so it can be a program name with args.
3968 set dummy cc; ac_word=$2
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970 printf %s "checking for $ac_word... " >&6; }
3971 if test ${ac_cv_prog_CC+y}
3972 then :
3973 printf %s "(cached) " >&6
3974 else $as_nop
3975 if test -n "$CC"; then
3976 ac_cv_prog_CC="$CC" # Let the user override the test.
3977 else
3978 ac_prog_rejected=no
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3981 do
3982 IFS=$as_save_IFS
3983 case $as_dir in #(((
3984 '') as_dir=./ ;;
3985 */) ;;
3986 *) as_dir=$as_dir/ ;;
3987 esac
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3990 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3991 ac_prog_rejected=yes
3992 continue
3993 fi
3994 ac_cv_prog_CC="cc"
3995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998 done
3999 done
4000 IFS=$as_save_IFS
4001
4002 if test $ac_prog_rejected = yes; then
4003 # We found a bogon in the path, so make sure we never use it.
4004 set dummy $ac_cv_prog_CC
4005 shift
4006 if test $# != 0; then
4007 # We chose a different compiler from the bogus one.
4008 # However, it has the same basename, so the bogon will be chosen
4009 # first if we set CC to just the basename; use the full file name.
4010 shift
4011 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4012 fi
4013 fi
4014 fi
4015 fi
4016 CC=$ac_cv_prog_CC
4017 if test -n "$CC"; then
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4019 printf "%s\n" "$CC" >&6; }
4020 else
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 printf "%s\n" "no" >&6; }
4023 fi
4024
4025
4026 fi
4027 if test -z "$CC"; then
4028 if test -n "$ac_tool_prefix"; then
4029 for ac_prog in cl.exe
4030 do
4031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4034 printf %s "checking for $ac_word... " >&6; }
4035 if test ${ac_cv_prog_CC+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else $as_nop
4039 if test -n "$CC"; then
4040 ac_cv_prog_CC="$CC" # Let the user override the test.
4041 else
4042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045 IFS=$as_save_IFS
4046 case $as_dir in #(((
4047 '') as_dir=./ ;;
4048 */) ;;
4049 *) as_dir=$as_dir/ ;;
4050 esac
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4055 break 2
4056 fi
4057 done
4058 done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 CC=$ac_cv_prog_CC
4064 if test -n "$CC"; then
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4066 printf "%s\n" "$CC" >&6; }
4067 else
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 printf "%s\n" "no" >&6; }
4070 fi
4071
4072
4073 test -n "$CC" && break
4074 done
4075 fi
4076 if test -z "$CC"; then
4077 ac_ct_CC=$CC
4078 for ac_prog in cl.exe
4079 do
4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 printf %s "checking for $ac_word... " >&6; }
4084 if test ${ac_cv_prog_ac_ct_CC+y}
4085 then :
4086 printf %s "(cached) " >&6
4087 else $as_nop
4088 if test -n "$ac_ct_CC"; then
4089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4090 else
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 case $as_dir in #(((
4096 '') as_dir=./ ;;
4097 */) ;;
4098 *) as_dir=$as_dir/ ;;
4099 esac
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4102 ac_cv_prog_ac_ct_CC="$ac_prog"
4103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4104 break 2
4105 fi
4106 done
4107 done
4108 IFS=$as_save_IFS
4109
4110 fi
4111 fi
4112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4113 if test -n "$ac_ct_CC"; then
4114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4115 printf "%s\n" "$ac_ct_CC" >&6; }
4116 else
4117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118 printf "%s\n" "no" >&6; }
4119 fi
4120
4121
4122 test -n "$ac_ct_CC" && break
4123 done
4124
4125 if test "x$ac_ct_CC" = x; then
4126 CC=""
4127 else
4128 case $cross_compiling:$ac_tool_warned in
4129 yes:)
4130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4132 ac_tool_warned=yes ;;
4133 esac
4134 CC=$ac_ct_CC
4135 fi
4136 fi
4137
4138 fi
4139 if test -z "$CC"; then
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4142 set dummy ${ac_tool_prefix}clang; ac_word=$2
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 printf %s "checking for $ac_word... " >&6; }
4145 if test ${ac_cv_prog_CC+y}
4146 then :
4147 printf %s "(cached) " >&6
4148 else $as_nop
4149 if test -n "$CC"; then
4150 ac_cv_prog_CC="$CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155 IFS=$as_save_IFS
4156 case $as_dir in #(((
4157 '') as_dir=./ ;;
4158 */) ;;
4159 *) as_dir=$as_dir/ ;;
4160 esac
4161 for ac_exec_ext in '' $ac_executable_extensions; do
4162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4163 ac_cv_prog_CC="${ac_tool_prefix}clang"
4164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4165 break 2
4166 fi
4167 done
4168 done
4169 IFS=$as_save_IFS
4170
4171 fi
4172 fi
4173 CC=$ac_cv_prog_CC
4174 if test -n "$CC"; then
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4176 printf "%s\n" "$CC" >&6; }
4177 else
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4179 printf "%s\n" "no" >&6; }
4180 fi
4181
4182
4183 fi
4184 if test -z "$ac_cv_prog_CC"; then
4185 ac_ct_CC=$CC
4186 # Extract the first word of "clang", so it can be a program name with args.
4187 set dummy clang; ac_word=$2
4188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 printf %s "checking for $ac_word... " >&6; }
4190 if test ${ac_cv_prog_ac_ct_CC+y}
4191 then :
4192 printf %s "(cached) " >&6
4193 else $as_nop
4194 if test -n "$ac_ct_CC"; then
4195 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4199 do
4200 IFS=$as_save_IFS
4201 case $as_dir in #(((
4202 '') as_dir=./ ;;
4203 */) ;;
4204 *) as_dir=$as_dir/ ;;
4205 esac
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4208 ac_cv_prog_ac_ct_CC="clang"
4209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219 if test -n "$ac_ct_CC"; then
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221 printf "%s\n" "$ac_ct_CC" >&6; }
4222 else
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 printf "%s\n" "no" >&6; }
4225 fi
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236 CC=$ac_ct_CC
4237 fi
4238 else
4239 CC="$ac_cv_prog_CC"
4240 fi
4241
4242 fi
4243
4244
4245 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4246 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4247 as_fn_error $? "no acceptable C compiler found in \$PATH
4248 See \`config.log' for more details" "$LINENO" 5; }
4249
4250 # Provide some information about the compiler.
4251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4252 set X $ac_compile
4253 ac_compiler=$2
4254 for ac_option in --version -v -V -qversion -version; do
4255 { { ac_try="$ac_compiler $ac_option >&5"
4256 case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259 esac
4260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261 printf "%s\n" "$ac_try_echo"; } >&5
4262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4263 ac_status=$?
4264 if test -s conftest.err; then
4265 sed '10a\
4266 ... rest of stderr output deleted ...
4267 10q' conftest.err >conftest.er1
4268 cat conftest.er1 >&5
4269 fi
4270 rm -f conftest.er1 conftest.err
4271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4272 test $ac_status = 0; }
4273 done
4274
4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h. */
4277
4278 int
4279 main (void)
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 ac_clean_files_save=$ac_clean_files
4287 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4288 # Try to create an executable without -o first, disregard a.out.
4289 # It will help us diagnose broken compilers, and finding out an intuition
4290 # of exeext.
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4292 printf %s "checking whether the C compiler works... " >&6; }
4293 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4294
4295 # The possible output files:
4296 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4297
4298 ac_rmfiles=
4299 for ac_file in $ac_files
4300 do
4301 case $ac_file in
4302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4303 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4304 esac
4305 done
4306 rm -f $ac_rmfiles
4307
4308 if { { ac_try="$ac_link_default"
4309 case "(($ac_try" in
4310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311 *) ac_try_echo=$ac_try;;
4312 esac
4313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4314 printf "%s\n" "$ac_try_echo"; } >&5
4315 (eval "$ac_link_default") 2>&5
4316 ac_status=$?
4317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }
4319 then :
4320 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4321 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4322 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4323 # so that the user can short-circuit this test for compilers unknown to
4324 # Autoconf.
4325 for ac_file in $ac_files ''
4326 do
4327 test -f "$ac_file" || continue
4328 case $ac_file in
4329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4330 ;;
4331 [ab].out )
4332 # We found the default executable, but exeext='' is most
4333 # certainly right.
4334 break;;
4335 *.* )
4336 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4337 then :; else
4338 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4339 fi
4340 # We set ac_cv_exeext here because the later test for it is not
4341 # safe: cross compilers may not add the suffix if given an `-o'
4342 # argument, so we may need to know it at that point already.
4343 # Even if this section looks crufty: it has the advantage of
4344 # actually working.
4345 break;;
4346 * )
4347 break;;
4348 esac
4349 done
4350 test "$ac_cv_exeext" = no && ac_cv_exeext=
4351
4352 else $as_nop
4353 ac_file=''
4354 fi
4355 if test -z "$ac_file"
4356 then :
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 printf "%s\n" "no" >&6; }
4359 printf "%s\n" "$as_me: failed program was:" >&5
4360 sed 's/^/| /' conftest.$ac_ext >&5
4361
4362 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4363 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4364 as_fn_error 77 "C compiler cannot create executables
4365 See \`config.log' for more details" "$LINENO" 5; }
4366 else $as_nop
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4368 printf "%s\n" "yes" >&6; }
4369 fi
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4371 printf %s "checking for C compiler default output file name... " >&6; }
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4373 printf "%s\n" "$ac_file" >&6; }
4374 ac_exeext=$ac_cv_exeext
4375
4376 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4377 ac_clean_files=$ac_clean_files_save
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4379 printf %s "checking for suffix of executables... " >&6; }
4380 if { { ac_try="$ac_link"
4381 case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 printf "%s\n" "$ac_try_echo"; } >&5
4387 (eval "$ac_link") 2>&5
4388 ac_status=$?
4389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4391 then :
4392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4394 # work properly (i.e., refer to `conftest.exe'), while it won't with
4395 # `rm'.
4396 for ac_file in conftest.exe conftest conftest.*; do
4397 test -f "$ac_file" || continue
4398 case $ac_file in
4399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4401 break;;
4402 * ) break;;
4403 esac
4404 done
4405 else $as_nop
4406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4407 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4408 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4409 See \`config.log' for more details" "$LINENO" 5; }
4410 fi
4411 rm -f conftest conftest$ac_cv_exeext
4412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4413 printf "%s\n" "$ac_cv_exeext" >&6; }
4414
4415 rm -f conftest.$ac_ext
4416 EXEEXT=$ac_cv_exeext
4417 ac_exeext=$EXEEXT
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4420 #include <stdio.h>
4421 int
4422 main (void)
4423 {
4424 FILE *f = fopen ("conftest.out", "w");
4425 return ferror (f) || fclose (f) != 0;
4426
4427 ;
4428 return 0;
4429 }
4430 _ACEOF
4431 ac_clean_files="$ac_clean_files conftest.out"
4432 # Check that the compiler produces executables we can run. If not, either
4433 # the compiler is broken, or we cross compile.
4434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4435 printf %s "checking whether we are cross compiling... " >&6; }
4436 if test "$cross_compiling" != yes; then
4437 { { ac_try="$ac_link"
4438 case "(($ac_try" in
4439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440 *) ac_try_echo=$ac_try;;
4441 esac
4442 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4443 printf "%s\n" "$ac_try_echo"; } >&5
4444 (eval "$ac_link") 2>&5
4445 ac_status=$?
4446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }
4448 if { ac_try='./conftest$ac_cv_exeext'
4449 { { case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 printf "%s\n" "$ac_try_echo"; } >&5
4455 (eval "$ac_try") 2>&5
4456 ac_status=$?
4457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; }; then
4459 cross_compiling=no
4460 else
4461 if test "$cross_compiling" = maybe; then
4462 cross_compiling=yes
4463 else
4464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error 77 "cannot run C compiled programs.
4467 If you meant to cross compile, use \`--host'.
4468 See \`config.log' for more details" "$LINENO" 5; }
4469 fi
4470 fi
4471 fi
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4473 printf "%s\n" "$cross_compiling" >&6; }
4474
4475 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4476 ac_clean_files=$ac_clean_files_save
4477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4478 printf %s "checking for suffix of object files... " >&6; }
4479 if test ${ac_cv_objext+y}
4480 then :
4481 printf %s "(cached) " >&6
4482 else $as_nop
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main (void)
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 rm -f conftest.o conftest.obj
4495 if { { ac_try="$ac_compile"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 printf "%s\n" "$ac_try_echo"; } >&5
4502 (eval "$ac_compile") 2>&5
4503 ac_status=$?
4504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }
4506 then :
4507 for ac_file in conftest.o conftest.obj conftest.*; do
4508 test -f "$ac_file" || continue;
4509 case $ac_file in
4510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4512 break;;
4513 esac
4514 done
4515 else $as_nop
4516 printf "%s\n" "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4518
4519 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4520 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4521 as_fn_error $? "cannot compute suffix of object files: cannot compile
4522 See \`config.log' for more details" "$LINENO" 5; }
4523 fi
4524 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4525 fi
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4527 printf "%s\n" "$ac_cv_objext" >&6; }
4528 OBJEXT=$ac_cv_objext
4529 ac_objext=$OBJEXT
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4531 printf %s "checking whether the compiler supports GNU C... " >&6; }
4532 if test ${ac_cv_c_compiler_gnu+y}
4533 then :
4534 printf %s "(cached) " >&6
4535 else $as_nop
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538
4539 int
4540 main (void)
4541 {
4542 #ifndef __GNUC__
4543 choke me
4544 #endif
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_c_try_compile "$LINENO"
4551 then :
4552 ac_compiler_gnu=yes
4553 else $as_nop
4554 ac_compiler_gnu=no
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4557 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4558
4559 fi
4560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4561 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563
4564 if test $ac_compiler_gnu = yes; then
4565 GCC=yes
4566 else
4567 GCC=
4568 fi
4569 ac_test_CFLAGS=${CFLAGS+y}
4570 ac_save_CFLAGS=$CFLAGS
4571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4572 printf %s "checking whether $CC accepts -g... " >&6; }
4573 if test ${ac_cv_prog_cc_g+y}
4574 then :
4575 printf %s "(cached) " >&6
4576 else $as_nop
4577 ac_save_c_werror_flag=$ac_c_werror_flag
4578 ac_c_werror_flag=yes
4579 ac_cv_prog_cc_g=no
4580 CFLAGS="-g"
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4583
4584 int
4585 main (void)
4586 {
4587
4588 ;
4589 return 0;
4590 }
4591 _ACEOF
4592 if ac_fn_c_try_compile "$LINENO"
4593 then :
4594 ac_cv_prog_cc_g=yes
4595 else $as_nop
4596 CFLAGS=""
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599
4600 int
4601 main (void)
4602 {
4603
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 if ac_fn_c_try_compile "$LINENO"
4609 then :
4610
4611 else $as_nop
4612 ac_c_werror_flag=$ac_save_c_werror_flag
4613 CFLAGS="-g"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 int
4618 main (void)
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"
4626 then :
4627 ac_cv_prog_cc_g=yes
4628 fi
4629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4630 fi
4631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4632 fi
4633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4634 ac_c_werror_flag=$ac_save_c_werror_flag
4635 fi
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4637 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4638 if test $ac_test_CFLAGS; then
4639 CFLAGS=$ac_save_CFLAGS
4640 elif test $ac_cv_prog_cc_g = yes; then
4641 if test "$GCC" = yes; then
4642 CFLAGS="-g -O2"
4643 else
4644 CFLAGS="-g"
4645 fi
4646 else
4647 if test "$GCC" = yes; then
4648 CFLAGS="-O2"
4649 else
4650 CFLAGS=
4651 fi
4652 fi
4653 ac_prog_cc_stdc=no
4654 if test x$ac_prog_cc_stdc = xno
4655 then :
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4657 printf %s "checking for $CC option to enable C11 features... " >&6; }
4658 if test ${ac_cv_prog_cc_c11+y}
4659 then :
4660 printf %s "(cached) " >&6
4661 else $as_nop
4662 ac_cv_prog_cc_c11=no
4663 ac_save_CC=$CC
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 $ac_c_conftest_c11_program
4667 _ACEOF
4668 for ac_arg in '' -std=gnu11
4669 do
4670 CC="$ac_save_CC $ac_arg"
4671 if ac_fn_c_try_compile "$LINENO"
4672 then :
4673 ac_cv_prog_cc_c11=$ac_arg
4674 fi
4675 rm -f core conftest.err conftest.$ac_objext conftest.beam
4676 test "x$ac_cv_prog_cc_c11" != "xno" && break
4677 done
4678 rm -f conftest.$ac_ext
4679 CC=$ac_save_CC
4680 fi
4681
4682 if test "x$ac_cv_prog_cc_c11" = xno
4683 then :
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4685 printf "%s\n" "unsupported" >&6; }
4686 else $as_nop
4687 if test "x$ac_cv_prog_cc_c11" = x
4688 then :
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4690 printf "%s\n" "none needed" >&6; }
4691 else $as_nop
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4693 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4694 CC="$CC $ac_cv_prog_cc_c11"
4695 fi
4696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4697 ac_prog_cc_stdc=c11
4698 fi
4699 fi
4700 if test x$ac_prog_cc_stdc = xno
4701 then :
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4703 printf %s "checking for $CC option to enable C99 features... " >&6; }
4704 if test ${ac_cv_prog_cc_c99+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else $as_nop
4708 ac_cv_prog_cc_c99=no
4709 ac_save_CC=$CC
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4712 $ac_c_conftest_c99_program
4713 _ACEOF
4714 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4715 do
4716 CC="$ac_save_CC $ac_arg"
4717 if ac_fn_c_try_compile "$LINENO"
4718 then :
4719 ac_cv_prog_cc_c99=$ac_arg
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.beam
4722 test "x$ac_cv_prog_cc_c99" != "xno" && break
4723 done
4724 rm -f conftest.$ac_ext
4725 CC=$ac_save_CC
4726 fi
4727
4728 if test "x$ac_cv_prog_cc_c99" = xno
4729 then :
4730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4731 printf "%s\n" "unsupported" >&6; }
4732 else $as_nop
4733 if test "x$ac_cv_prog_cc_c99" = x
4734 then :
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736 printf "%s\n" "none needed" >&6; }
4737 else $as_nop
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4739 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4740 CC="$CC $ac_cv_prog_cc_c99"
4741 fi
4742 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4743 ac_prog_cc_stdc=c99
4744 fi
4745 fi
4746 if test x$ac_prog_cc_stdc = xno
4747 then :
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4749 printf %s "checking for $CC option to enable C89 features... " >&6; }
4750 if test ${ac_cv_prog_cc_c89+y}
4751 then :
4752 printf %s "(cached) " >&6
4753 else $as_nop
4754 ac_cv_prog_cc_c89=no
4755 ac_save_CC=$CC
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 $ac_c_conftest_c89_program
4759 _ACEOF
4760 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4761 do
4762 CC="$ac_save_CC $ac_arg"
4763 if ac_fn_c_try_compile "$LINENO"
4764 then :
4765 ac_cv_prog_cc_c89=$ac_arg
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.beam
4768 test "x$ac_cv_prog_cc_c89" != "xno" && break
4769 done
4770 rm -f conftest.$ac_ext
4771 CC=$ac_save_CC
4772 fi
4773
4774 if test "x$ac_cv_prog_cc_c89" = xno
4775 then :
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4777 printf "%s\n" "unsupported" >&6; }
4778 else $as_nop
4779 if test "x$ac_cv_prog_cc_c89" = x
4780 then :
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4782 printf "%s\n" "none needed" >&6; }
4783 else $as_nop
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4785 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4786 CC="$CC $ac_cv_prog_cc_c89"
4787 fi
4788 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4789 ac_prog_cc_stdc=c89
4790 fi
4791 fi
4792
4793 ac_ext=c
4794 ac_cpp='$CPP $CPPFLAGS'
4795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798
4799
4800 ac_ext=c
4801 ac_cpp='$CPP $CPPFLAGS'
4802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4806 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4807 if test ${am_cv_prog_cc_c_o+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else $as_nop
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813
4814 int
4815 main (void)
4816 {
4817
4818 ;
4819 return 0;
4820 }
4821 _ACEOF
4822 # Make sure it works both with $CC and with simple cc.
4823 # Following AC_PROG_CC_C_O, we do the test twice because some
4824 # compilers refuse to overwrite an existing .o file with -o,
4825 # though they will create one.
4826 am_cv_prog_cc_c_o=yes
4827 for am_i in 1 2; do
4828 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4829 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4830 ac_status=$?
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); } \
4833 && test -f conftest2.$ac_objext; then
4834 : OK
4835 else
4836 am_cv_prog_cc_c_o=no
4837 break
4838 fi
4839 done
4840 rm -f core conftest*
4841 unset am_i
4842 fi
4843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4844 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4845 if test "$am_cv_prog_cc_c_o" != yes; then
4846 # Losing compiler, so override with the script.
4847 # FIXME: It is wrong to rewrite CC.
4848 # But if we don't then we get into trouble of one sort or another.
4849 # A longer-term fix would be to have automake use am__CC in this case,
4850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4851 CC="$am_aux_dir/compile $CC"
4852 fi
4853 ac_ext=c
4854 ac_cpp='$CPP $CPPFLAGS'
4855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858
4859
4860
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
4862 printf %s "checking whether the compiler is clang... " >&6; }
4863 if test ${gl_cv_compiler_clang+y}
4864 then :
4865 printf %s "(cached) " >&6
4866 else $as_nop
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869
4870 #ifdef __clang__
4871 barfbarf
4872 #endif
4873
4874 int
4875 main (void)
4876 {
4877
4878 ;
4879 return 0;
4880 }
4881
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"
4884 then :
4885 gl_cv_compiler_clang=no
4886 else $as_nop
4887 gl_cv_compiler_clang=yes
4888 fi
4889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4890
4891 fi
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
4893 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
4894
4895
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
4897 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
4898 if test ${gl_cv_compiler_check_decl_option+y}
4899 then :
4900 printf %s "(cached) " >&6
4901 else $as_nop
4902 if test $gl_cv_compiler_clang = yes; then
4903 save_ac_compile="$ac_compile"
4904 ac_compile="$ac_compile -Werror=implicit-function-declaration"
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907
4908 int
4909 main (void)
4910 {
4911
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"
4917 then :
4918 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
4919 else $as_nop
4920 gl_cv_compiler_check_decl_option=none
4921 fi
4922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4923 ac_compile="$save_ac_compile"
4924 else
4925 gl_cv_compiler_check_decl_option=none
4926 fi
4927
4928 fi
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
4930 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
4931 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
4932 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
4933 else
4934 ac_compile_for_check_decl="$ac_compile"
4935 fi
4936
4937
4938 depcc="$CC" am_compiler_list=
4939
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4941 printf %s "checking dependency style of $depcc... " >&6; }
4942 if test ${am_cv_CC_dependencies_compiler_type+y}
4943 then :
4944 printf %s "(cached) " >&6
4945 else $as_nop
4946 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4947 # We make a subdir and do the tests there. Otherwise we can end up
4948 # making bogus files that we don't know about and never remove. For
4949 # instance it was reported that on HP-UX the gcc test will end up
4950 # making a dummy file named 'D' -- because '-MD' means "put the output
4951 # in D".
4952 rm -rf conftest.dir
4953 mkdir conftest.dir
4954 # Copy depcomp to subdir because otherwise we won't find it if we're
4955 # using a relative directory.
4956 cp "$am_depcomp" conftest.dir
4957 cd conftest.dir
4958 # We will build objects and dependencies in a subdirectory because
4959 # it helps to detect inapplicable dependency modes. For instance
4960 # both Tru64's cc and ICC support -MD to output dependencies as a
4961 # side effect of compilation, but ICC will put the dependencies in
4962 # the current directory while Tru64 will put them in the object
4963 # directory.
4964 mkdir sub
4965
4966 am_cv_CC_dependencies_compiler_type=none
4967 if test "$am_compiler_list" = ""; then
4968 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4969 fi
4970 am__universal=false
4971 case " $depcc " in #(
4972 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4973 esac
4974
4975 for depmode in $am_compiler_list; do
4976 # Setup a source with many dependencies, because some compilers
4977 # like to wrap large dependency lists on column 80 (with \), and
4978 # we should not choose a depcomp mode which is confused by this.
4979 #
4980 # We need to recreate these files for each test, as the compiler may
4981 # overwrite some of them when testing with obscure command lines.
4982 # This happens at least with the AIX C compiler.
4983 : > sub/conftest.c
4984 for i in 1 2 3 4 5 6; do
4985 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4986 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4987 # Solaris 10 /bin/sh.
4988 echo '/* dummy */' > sub/conftst$i.h
4989 done
4990 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4991
4992 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4993 # mode. It turns out that the SunPro C++ compiler does not properly
4994 # handle '-M -o', and we need to detect this. Also, some Intel
4995 # versions had trouble with output in subdirs.
4996 am__obj=sub/conftest.${OBJEXT-o}
4997 am__minus_obj="-o $am__obj"
4998 case $depmode in
4999 gcc)
5000 # This depmode causes a compiler race in universal mode.
5001 test "$am__universal" = false || continue
5002 ;;
5003 nosideeffect)
5004 # After this tag, mechanisms are not by side-effect, so they'll
5005 # only be used when explicitly requested.
5006 if test "x$enable_dependency_tracking" = xyes; then
5007 continue
5008 else
5009 break
5010 fi
5011 ;;
5012 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5013 # This compiler won't grok '-c -o', but also, the minuso test has
5014 # not run yet. These depmodes are late enough in the game, and
5015 # so weak that their functioning should not be impacted.
5016 am__obj=conftest.${OBJEXT-o}
5017 am__minus_obj=
5018 ;;
5019 none) break ;;
5020 esac
5021 if depmode=$depmode \
5022 source=sub/conftest.c object=$am__obj \
5023 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5024 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5025 >/dev/null 2>conftest.err &&
5026 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5027 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5028 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5029 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5030 # icc doesn't choke on unknown options, it will just issue warnings
5031 # or remarks (even with -Werror). So we grep stderr for any message
5032 # that says an option was ignored or not supported.
5033 # When given -MP, icc 7.0 and 7.1 complain thusly:
5034 # icc: Command line warning: ignoring option '-M'; no argument required
5035 # The diagnosis changed in icc 8.0:
5036 # icc: Command line remark: option '-MP' not supported
5037 if (grep 'ignoring option' conftest.err ||
5038 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5039 am_cv_CC_dependencies_compiler_type=$depmode
5040 break
5041 fi
5042 fi
5043 done
5044
5045 cd ..
5046 rm -rf conftest.dir
5047 else
5048 am_cv_CC_dependencies_compiler_type=none
5049 fi
5050
5051 fi
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5053 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5054 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5055
5056 if
5057 test "x$enable_dependency_tracking" != xno \
5058 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5059 am__fastdepCC_TRUE=
5060 am__fastdepCC_FALSE='#'
5061 else
5062 am__fastdepCC_TRUE='#'
5063 am__fastdepCC_FALSE=
5064 fi
5065
5066
5067
5068 ac_header= ac_cache=
5069 for ac_item in $ac_header_c_list
5070 do
5071 if test $ac_cache; then
5072 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5073 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5074 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5075 fi
5076 ac_header= ac_cache=
5077 elif test $ac_header; then
5078 ac_cache=$ac_item
5079 else
5080 ac_header=$ac_item
5081 fi
5082 done
5083
5084
5085
5086
5087
5088
5089
5090
5091 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5092 then :
5093
5094 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5095
5096 fi
5097
5098
5099
5100
5101
5102
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5104 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5105 if test ${ac_cv_safe_to_define___extensions__+y}
5106 then :
5107 printf %s "(cached) " >&6
5108 else $as_nop
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111
5112 # define __EXTENSIONS__ 1
5113 $ac_includes_default
5114 int
5115 main (void)
5116 {
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_compile "$LINENO"
5123 then :
5124 ac_cv_safe_to_define___extensions__=yes
5125 else $as_nop
5126 ac_cv_safe_to_define___extensions__=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5131 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5132
5133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5134 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5135 if test ${ac_cv_should_define__xopen_source+y}
5136 then :
5137 printf %s "(cached) " >&6
5138 else $as_nop
5139 ac_cv_should_define__xopen_source=no
5140 if test $ac_cv_header_wchar_h = yes
5141 then :
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144
5145 #include <wchar.h>
5146 mbstate_t x;
5147 int
5148 main (void)
5149 {
5150
5151 ;
5152 return 0;
5153 }
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"
5156 then :
5157
5158 else $as_nop
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161
5162 #define _XOPEN_SOURCE 500
5163 #include <wchar.h>
5164 mbstate_t x;
5165 int
5166 main (void)
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"
5174 then :
5175 ac_cv_should_define__xopen_source=yes
5176 fi
5177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5180 fi
5181 fi
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5183 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5184
5185 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5186
5187 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5188
5189 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5190
5191 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5192
5193 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5194
5195 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5196
5197 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5198
5199 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5200
5201 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5202
5203 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5204
5205 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5206
5207 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5208
5209 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5210
5211 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5212
5213 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5214
5215 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5216
5217 if test $ac_cv_header_minix_config_h = yes
5218 then :
5219 MINIX=yes
5220 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5221
5222 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5223
5224 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5225
5226 else $as_nop
5227 MINIX=
5228 fi
5229 if test $ac_cv_safe_to_define___extensions__ = yes
5230 then :
5231 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5232
5233 fi
5234 if test $ac_cv_should_define__xopen_source = yes
5235 then :
5236 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5237
5238 fi
5239
5240 ac_ext=c
5241 ac_cpp='$CPP $CPPFLAGS'
5242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5245 if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5247 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 printf %s "checking for $ac_word... " >&6; }
5250 if test ${ac_cv_prog_CC+y}
5251 then :
5252 printf %s "(cached) " >&6
5253 else $as_nop
5254 if test -n "$CC"; then
5255 ac_cv_prog_CC="$CC" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260 IFS=$as_save_IFS
5261 case $as_dir in #(((
5262 '') as_dir=./ ;;
5263 */) ;;
5264 *) as_dir=$as_dir/ ;;
5265 esac
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 fi
5277 fi
5278 CC=$ac_cv_prog_CC
5279 if test -n "$CC"; then
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5281 printf "%s\n" "$CC" >&6; }
5282 else
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284 printf "%s\n" "no" >&6; }
5285 fi
5286
5287
5288 fi
5289 if test -z "$ac_cv_prog_CC"; then
5290 ac_ct_CC=$CC
5291 # Extract the first word of "gcc", so it can be a program name with args.
5292 set dummy gcc; ac_word=$2
5293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 printf %s "checking for $ac_word... " >&6; }
5295 if test ${ac_cv_prog_ac_ct_CC+y}
5296 then :
5297 printf %s "(cached) " >&6
5298 else $as_nop
5299 if test -n "$ac_ct_CC"; then
5300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 case $as_dir in #(((
5307 '') as_dir=./ ;;
5308 */) ;;
5309 *) as_dir=$as_dir/ ;;
5310 esac
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5313 ac_cv_prog_ac_ct_CC="gcc"
5314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317 done
5318 done
5319 IFS=$as_save_IFS
5320
5321 fi
5322 fi
5323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5324 if test -n "$ac_ct_CC"; then
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5326 printf "%s\n" "$ac_ct_CC" >&6; }
5327 else
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 printf "%s\n" "no" >&6; }
5330 fi
5331
5332 if test "x$ac_ct_CC" = x; then
5333 CC=""
5334 else
5335 case $cross_compiling:$ac_tool_warned in
5336 yes:)
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339 ac_tool_warned=yes ;;
5340 esac
5341 CC=$ac_ct_CC
5342 fi
5343 else
5344 CC="$ac_cv_prog_CC"
5345 fi
5346
5347 if test -z "$CC"; then
5348 if test -n "$ac_tool_prefix"; then
5349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5350 set dummy ${ac_tool_prefix}cc; ac_word=$2
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 printf %s "checking for $ac_word... " >&6; }
5353 if test ${ac_cv_prog_CC+y}
5354 then :
5355 printf %s "(cached) " >&6
5356 else $as_nop
5357 if test -n "$CC"; then
5358 ac_cv_prog_CC="$CC" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363 IFS=$as_save_IFS
5364 case $as_dir in #(((
5365 '') as_dir=./ ;;
5366 */) ;;
5367 *) as_dir=$as_dir/ ;;
5368 esac
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_CC="${ac_tool_prefix}cc"
5372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 CC=$ac_cv_prog_CC
5382 if test -n "$CC"; then
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5384 printf "%s\n" "$CC" >&6; }
5385 else
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 printf "%s\n" "no" >&6; }
5388 fi
5389
5390
5391 fi
5392 fi
5393 if test -z "$CC"; then
5394 # Extract the first word of "cc", so it can be a program name with args.
5395 set dummy cc; ac_word=$2
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 printf %s "checking for $ac_word... " >&6; }
5398 if test ${ac_cv_prog_CC+y}
5399 then :
5400 printf %s "(cached) " >&6
5401 else $as_nop
5402 if test -n "$CC"; then
5403 ac_cv_prog_CC="$CC" # Let the user override the test.
5404 else
5405 ac_prog_rejected=no
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 case $as_dir in #(((
5411 '') as_dir=./ ;;
5412 */) ;;
5413 *) as_dir=$as_dir/ ;;
5414 esac
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5417 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5418 ac_prog_rejected=yes
5419 continue
5420 fi
5421 ac_cv_prog_CC="cc"
5422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 if test $ac_prog_rejected = yes; then
5430 # We found a bogon in the path, so make sure we never use it.
5431 set dummy $ac_cv_prog_CC
5432 shift
5433 if test $# != 0; then
5434 # We chose a different compiler from the bogus one.
5435 # However, it has the same basename, so the bogon will be chosen
5436 # first if we set CC to just the basename; use the full file name.
5437 shift
5438 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5439 fi
5440 fi
5441 fi
5442 fi
5443 CC=$ac_cv_prog_CC
5444 if test -n "$CC"; then
5445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5446 printf "%s\n" "$CC" >&6; }
5447 else
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 printf "%s\n" "no" >&6; }
5450 fi
5451
5452
5453 fi
5454 if test -z "$CC"; then
5455 if test -n "$ac_tool_prefix"; then
5456 for ac_prog in cl.exe
5457 do
5458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 printf %s "checking for $ac_word... " >&6; }
5462 if test ${ac_cv_prog_CC+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else $as_nop
5466 if test -n "$CC"; then
5467 ac_cv_prog_CC="$CC" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 case $as_dir in #(((
5474 '') as_dir=./ ;;
5475 */) ;;
5476 *) as_dir=$as_dir/ ;;
5477 esac
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5480 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5481 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5482 break 2
5483 fi
5484 done
5485 done
5486 IFS=$as_save_IFS
5487
5488 fi
5489 fi
5490 CC=$ac_cv_prog_CC
5491 if test -n "$CC"; then
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5493 printf "%s\n" "$CC" >&6; }
5494 else
5495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 printf "%s\n" "no" >&6; }
5497 fi
5498
5499
5500 test -n "$CC" && break
5501 done
5502 fi
5503 if test -z "$CC"; then
5504 ac_ct_CC=$CC
5505 for ac_prog in cl.exe
5506 do
5507 # Extract the first word of "$ac_prog", so it can be a program name with args.
5508 set dummy $ac_prog; ac_word=$2
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510 printf %s "checking for $ac_word... " >&6; }
5511 if test ${ac_cv_prog_ac_ct_CC+y}
5512 then :
5513 printf %s "(cached) " >&6
5514 else $as_nop
5515 if test -n "$ac_ct_CC"; then
5516 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521 IFS=$as_save_IFS
5522 case $as_dir in #(((
5523 '') as_dir=./ ;;
5524 */) ;;
5525 *) as_dir=$as_dir/ ;;
5526 esac
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_ac_ct_CC="$ac_prog"
5530 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533 done
5534 done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5540 if test -n "$ac_ct_CC"; then
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5542 printf "%s\n" "$ac_ct_CC" >&6; }
5543 else
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 printf "%s\n" "no" >&6; }
5546 fi
5547
5548
5549 test -n "$ac_ct_CC" && break
5550 done
5551
5552 if test "x$ac_ct_CC" = x; then
5553 CC=""
5554 else
5555 case $cross_compiling:$ac_tool_warned in
5556 yes:)
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5558 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5559 ac_tool_warned=yes ;;
5560 esac
5561 CC=$ac_ct_CC
5562 fi
5563 fi
5564
5565 fi
5566 if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}clang; ac_word=$2
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 printf %s "checking for $ac_word... " >&6; }
5572 if test ${ac_cv_prog_CC+y}
5573 then :
5574 printf %s "(cached) " >&6
5575 else $as_nop
5576 if test -n "$CC"; then
5577 ac_cv_prog_CC="$CC" # Let the user override the test.
5578 else
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582 IFS=$as_save_IFS
5583 case $as_dir in #(((
5584 '') as_dir=./ ;;
5585 */) ;;
5586 *) as_dir=$as_dir/ ;;
5587 esac
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5590 ac_cv_prog_CC="${ac_tool_prefix}clang"
5591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5592 break 2
5593 fi
5594 done
5595 done
5596 IFS=$as_save_IFS
5597
5598 fi
5599 fi
5600 CC=$ac_cv_prog_CC
5601 if test -n "$CC"; then
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5603 printf "%s\n" "$CC" >&6; }
5604 else
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 printf "%s\n" "no" >&6; }
5607 fi
5608
5609
5610 fi
5611 if test -z "$ac_cv_prog_CC"; then
5612 ac_ct_CC=$CC
5613 # Extract the first word of "clang", so it can be a program name with args.
5614 set dummy clang; ac_word=$2
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 printf %s "checking for $ac_word... " >&6; }
5617 if test ${ac_cv_prog_ac_ct_CC+y}
5618 then :
5619 printf %s "(cached) " >&6
5620 else $as_nop
5621 if test -n "$ac_ct_CC"; then
5622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627 IFS=$as_save_IFS
5628 case $as_dir in #(((
5629 '') as_dir=./ ;;
5630 */) ;;
5631 *) as_dir=$as_dir/ ;;
5632 esac
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_ac_ct_CC="clang"
5636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5646 if test -n "$ac_ct_CC"; then
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5648 printf "%s\n" "$ac_ct_CC" >&6; }
5649 else
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 printf "%s\n" "no" >&6; }
5652 fi
5653
5654 if test "x$ac_ct_CC" = x; then
5655 CC=""
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663 CC=$ac_ct_CC
5664 fi
5665 else
5666 CC="$ac_cv_prog_CC"
5667 fi
5668
5669 fi
5670
5671
5672 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5673 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5674 as_fn_error $? "no acceptable C compiler found in \$PATH
5675 See \`config.log' for more details" "$LINENO" 5; }
5676
5677 # Provide some information about the compiler.
5678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5679 set X $ac_compile
5680 ac_compiler=$2
5681 for ac_option in --version -v -V -qversion -version; do
5682 { { ac_try="$ac_compiler $ac_option >&5"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5688 printf "%s\n" "$ac_try_echo"; } >&5
5689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5690 ac_status=$?
5691 if test -s conftest.err; then
5692 sed '10a\
5693 ... rest of stderr output deleted ...
5694 10q' conftest.err >conftest.er1
5695 cat conftest.er1 >&5
5696 fi
5697 rm -f conftest.er1 conftest.err
5698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5699 test $ac_status = 0; }
5700 done
5701
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5703 printf %s "checking whether the compiler supports GNU C... " >&6; }
5704 if test ${ac_cv_c_compiler_gnu+y}
5705 then :
5706 printf %s "(cached) " >&6
5707 else $as_nop
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5710
5711 int
5712 main (void)
5713 {
5714 #ifndef __GNUC__
5715 choke me
5716 #endif
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_compile "$LINENO"
5723 then :
5724 ac_compiler_gnu=yes
5725 else $as_nop
5726 ac_compiler_gnu=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5729 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5730
5731 fi
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5733 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735
5736 if test $ac_compiler_gnu = yes; then
5737 GCC=yes
5738 else
5739 GCC=
5740 fi
5741 ac_test_CFLAGS=${CFLAGS+y}
5742 ac_save_CFLAGS=$CFLAGS
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5744 printf %s "checking whether $CC accepts -g... " >&6; }
5745 if test ${ac_cv_prog_cc_g+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else $as_nop
5749 ac_save_c_werror_flag=$ac_c_werror_flag
5750 ac_c_werror_flag=yes
5751 ac_cv_prog_cc_g=no
5752 CFLAGS="-g"
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755
5756 int
5757 main (void)
5758 {
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"
5765 then :
5766 ac_cv_prog_cc_g=yes
5767 else $as_nop
5768 CFLAGS=""
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771
5772 int
5773 main (void)
5774 {
5775
5776 ;
5777 return 0;
5778 }
5779 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"
5781 then :
5782
5783 else $as_nop
5784 ac_c_werror_flag=$ac_save_c_werror_flag
5785 CFLAGS="-g"
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788
5789 int
5790 main (void)
5791 {
5792
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"
5798 then :
5799 ac_cv_prog_cc_g=yes
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5806 ac_c_werror_flag=$ac_save_c_werror_flag
5807 fi
5808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5809 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5810 if test $ac_test_CFLAGS; then
5811 CFLAGS=$ac_save_CFLAGS
5812 elif test $ac_cv_prog_cc_g = yes; then
5813 if test "$GCC" = yes; then
5814 CFLAGS="-g -O2"
5815 else
5816 CFLAGS="-g"
5817 fi
5818 else
5819 if test "$GCC" = yes; then
5820 CFLAGS="-O2"
5821 else
5822 CFLAGS=
5823 fi
5824 fi
5825 ac_prog_cc_stdc=no
5826 if test x$ac_prog_cc_stdc = xno
5827 then :
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5829 printf %s "checking for $CC option to enable C11 features... " >&6; }
5830 if test ${ac_cv_prog_cc_c11+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else $as_nop
5834 ac_cv_prog_cc_c11=no
5835 ac_save_CC=$CC
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 $ac_c_conftest_c11_program
5839 _ACEOF
5840 for ac_arg in '' -std=gnu11
5841 do
5842 CC="$ac_save_CC $ac_arg"
5843 if ac_fn_c_try_compile "$LINENO"
5844 then :
5845 ac_cv_prog_cc_c11=$ac_arg
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam
5848 test "x$ac_cv_prog_cc_c11" != "xno" && break
5849 done
5850 rm -f conftest.$ac_ext
5851 CC=$ac_save_CC
5852 fi
5853
5854 if test "x$ac_cv_prog_cc_c11" = xno
5855 then :
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5857 printf "%s\n" "unsupported" >&6; }
5858 else $as_nop
5859 if test "x$ac_cv_prog_cc_c11" = x
5860 then :
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5862 printf "%s\n" "none needed" >&6; }
5863 else $as_nop
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5865 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5866 CC="$CC $ac_cv_prog_cc_c11"
5867 fi
5868 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5869 ac_prog_cc_stdc=c11
5870 fi
5871 fi
5872 if test x$ac_prog_cc_stdc = xno
5873 then :
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5875 printf %s "checking for $CC option to enable C99 features... " >&6; }
5876 if test ${ac_cv_prog_cc_c99+y}
5877 then :
5878 printf %s "(cached) " >&6
5879 else $as_nop
5880 ac_cv_prog_cc_c99=no
5881 ac_save_CC=$CC
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5884 $ac_c_conftest_c99_program
5885 _ACEOF
5886 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5887 do
5888 CC="$ac_save_CC $ac_arg"
5889 if ac_fn_c_try_compile "$LINENO"
5890 then :
5891 ac_cv_prog_cc_c99=$ac_arg
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext conftest.beam
5894 test "x$ac_cv_prog_cc_c99" != "xno" && break
5895 done
5896 rm -f conftest.$ac_ext
5897 CC=$ac_save_CC
5898 fi
5899
5900 if test "x$ac_cv_prog_cc_c99" = xno
5901 then :
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5903 printf "%s\n" "unsupported" >&6; }
5904 else $as_nop
5905 if test "x$ac_cv_prog_cc_c99" = x
5906 then :
5907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5908 printf "%s\n" "none needed" >&6; }
5909 else $as_nop
5910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5911 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5912 CC="$CC $ac_cv_prog_cc_c99"
5913 fi
5914 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5915 ac_prog_cc_stdc=c99
5916 fi
5917 fi
5918 if test x$ac_prog_cc_stdc = xno
5919 then :
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5921 printf %s "checking for $CC option to enable C89 features... " >&6; }
5922 if test ${ac_cv_prog_cc_c89+y}
5923 then :
5924 printf %s "(cached) " >&6
5925 else $as_nop
5926 ac_cv_prog_cc_c89=no
5927 ac_save_CC=$CC
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930 $ac_c_conftest_c89_program
5931 _ACEOF
5932 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5933 do
5934 CC="$ac_save_CC $ac_arg"
5935 if ac_fn_c_try_compile "$LINENO"
5936 then :
5937 ac_cv_prog_cc_c89=$ac_arg
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.beam
5940 test "x$ac_cv_prog_cc_c89" != "xno" && break
5941 done
5942 rm -f conftest.$ac_ext
5943 CC=$ac_save_CC
5944 fi
5945
5946 if test "x$ac_cv_prog_cc_c89" = xno
5947 then :
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5949 printf "%s\n" "unsupported" >&6; }
5950 else $as_nop
5951 if test "x$ac_cv_prog_cc_c89" = x
5952 then :
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5954 printf "%s\n" "none needed" >&6; }
5955 else $as_nop
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5957 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5958 CC="$CC $ac_cv_prog_cc_c89"
5959 fi
5960 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5961 ac_prog_cc_stdc=c89
5962 fi
5963 fi
5964
5965 ac_ext=c
5966 ac_cpp='$CPP $CPPFLAGS'
5967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5970
5971
5972 ac_ext=c
5973 ac_cpp='$CPP $CPPFLAGS'
5974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5978 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5979 if test ${am_cv_prog_cc_c_o+y}
5980 then :
5981 printf %s "(cached) " >&6
5982 else $as_nop
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985
5986 int
5987 main (void)
5988 {
5989
5990 ;
5991 return 0;
5992 }
5993 _ACEOF
5994 # Make sure it works both with $CC and with simple cc.
5995 # Following AC_PROG_CC_C_O, we do the test twice because some
5996 # compilers refuse to overwrite an existing .o file with -o,
5997 # though they will create one.
5998 am_cv_prog_cc_c_o=yes
5999 for am_i in 1 2; do
6000 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6001 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } \
6005 && test -f conftest2.$ac_objext; then
6006 : OK
6007 else
6008 am_cv_prog_cc_c_o=no
6009 break
6010 fi
6011 done
6012 rm -f core conftest*
6013 unset am_i
6014 fi
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6016 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6017 if test "$am_cv_prog_cc_c_o" != yes; then
6018 # Losing compiler, so override with the script.
6019 # FIXME: It is wrong to rewrite CC.
6020 # But if we don't then we get into trouble of one sort or another.
6021 # A longer-term fix would be to have automake use am__CC in this case,
6022 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6023 CC="$am_aux_dir/compile $CC"
6024 fi
6025 ac_ext=c
6026 ac_cpp='$CPP $CPPFLAGS'
6027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030
6031
6032
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6034 printf %s "checking whether the compiler is clang... " >&6; }
6035 if test ${gl_cv_compiler_clang+y}
6036 then :
6037 printf %s "(cached) " >&6
6038 else $as_nop
6039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040 /* end confdefs.h. */
6041
6042 #ifdef __clang__
6043 barfbarf
6044 #endif
6045
6046 int
6047 main (void)
6048 {
6049
6050 ;
6051 return 0;
6052 }
6053
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"
6056 then :
6057 gl_cv_compiler_clang=no
6058 else $as_nop
6059 gl_cv_compiler_clang=yes
6060 fi
6061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6062
6063 fi
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6065 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
6066
6067
6068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6069 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
6070 if test ${gl_cv_compiler_check_decl_option+y}
6071 then :
6072 printf %s "(cached) " >&6
6073 else $as_nop
6074 if test $gl_cv_compiler_clang = yes; then
6075 save_ac_compile="$ac_compile"
6076 ac_compile="$ac_compile -Werror=implicit-function-declaration"
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079
6080 int
6081 main (void)
6082 {
6083
6084 ;
6085 return 0;
6086 }
6087 _ACEOF
6088 if ac_fn_c_try_compile "$LINENO"
6089 then :
6090 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6091 else $as_nop
6092 gl_cv_compiler_check_decl_option=none
6093 fi
6094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6095 ac_compile="$save_ac_compile"
6096 else
6097 gl_cv_compiler_check_decl_option=none
6098 fi
6099
6100 fi
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6102 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
6103 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6104 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6105 else
6106 ac_compile_for_check_decl="$ac_compile"
6107 fi
6108
6109
6110 depcc="$CC" am_compiler_list=
6111
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6113 printf %s "checking dependency style of $depcc... " >&6; }
6114 if test ${am_cv_CC_dependencies_compiler_type+y}
6115 then :
6116 printf %s "(cached) " >&6
6117 else $as_nop
6118 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6119 # We make a subdir and do the tests there. Otherwise we can end up
6120 # making bogus files that we don't know about and never remove. For
6121 # instance it was reported that on HP-UX the gcc test will end up
6122 # making a dummy file named 'D' -- because '-MD' means "put the output
6123 # in D".
6124 rm -rf conftest.dir
6125 mkdir conftest.dir
6126 # Copy depcomp to subdir because otherwise we won't find it if we're
6127 # using a relative directory.
6128 cp "$am_depcomp" conftest.dir
6129 cd conftest.dir
6130 # We will build objects and dependencies in a subdirectory because
6131 # it helps to detect inapplicable dependency modes. For instance
6132 # both Tru64's cc and ICC support -MD to output dependencies as a
6133 # side effect of compilation, but ICC will put the dependencies in
6134 # the current directory while Tru64 will put them in the object
6135 # directory.
6136 mkdir sub
6137
6138 am_cv_CC_dependencies_compiler_type=none
6139 if test "$am_compiler_list" = ""; then
6140 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6141 fi
6142 am__universal=false
6143 case " $depcc " in #(
6144 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6145 esac
6146
6147 for depmode in $am_compiler_list; do
6148 # Setup a source with many dependencies, because some compilers
6149 # like to wrap large dependency lists on column 80 (with \), and
6150 # we should not choose a depcomp mode which is confused by this.
6151 #
6152 # We need to recreate these files for each test, as the compiler may
6153 # overwrite some of them when testing with obscure command lines.
6154 # This happens at least with the AIX C compiler.
6155 : > sub/conftest.c
6156 for i in 1 2 3 4 5 6; do
6157 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6158 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6159 # Solaris 10 /bin/sh.
6160 echo '/* dummy */' > sub/conftst$i.h
6161 done
6162 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6163
6164 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6165 # mode. It turns out that the SunPro C++ compiler does not properly
6166 # handle '-M -o', and we need to detect this. Also, some Intel
6167 # versions had trouble with output in subdirs.
6168 am__obj=sub/conftest.${OBJEXT-o}
6169 am__minus_obj="-o $am__obj"
6170 case $depmode in
6171 gcc)
6172 # This depmode causes a compiler race in universal mode.
6173 test "$am__universal" = false || continue
6174 ;;
6175 nosideeffect)
6176 # After this tag, mechanisms are not by side-effect, so they'll
6177 # only be used when explicitly requested.
6178 if test "x$enable_dependency_tracking" = xyes; then
6179 continue
6180 else
6181 break
6182 fi
6183 ;;
6184 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6185 # This compiler won't grok '-c -o', but also, the minuso test has
6186 # not run yet. These depmodes are late enough in the game, and
6187 # so weak that their functioning should not be impacted.
6188 am__obj=conftest.${OBJEXT-o}
6189 am__minus_obj=
6190 ;;
6191 none) break ;;
6192 esac
6193 if depmode=$depmode \
6194 source=sub/conftest.c object=$am__obj \
6195 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6196 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6197 >/dev/null 2>conftest.err &&
6198 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6199 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6200 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6201 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6202 # icc doesn't choke on unknown options, it will just issue warnings
6203 # or remarks (even with -Werror). So we grep stderr for any message
6204 # that says an option was ignored or not supported.
6205 # When given -MP, icc 7.0 and 7.1 complain thusly:
6206 # icc: Command line warning: ignoring option '-M'; no argument required
6207 # The diagnosis changed in icc 8.0:
6208 # icc: Command line remark: option '-MP' not supported
6209 if (grep 'ignoring option' conftest.err ||
6210 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6211 am_cv_CC_dependencies_compiler_type=$depmode
6212 break
6213 fi
6214 fi
6215 done
6216
6217 cd ..
6218 rm -rf conftest.dir
6219 else
6220 am_cv_CC_dependencies_compiler_type=none
6221 fi
6222
6223 fi
6224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6225 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6227
6228 if
6229 test "x$enable_dependency_tracking" != xno \
6230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6231 am__fastdepCC_TRUE=
6232 am__fastdepCC_FALSE='#'
6233 else
6234 am__fastdepCC_TRUE='#'
6235 am__fastdepCC_FALSE=
6236 fi
6237
6238
6239
6240
6241
6242
6243
6244
6245 ac_ext=cpp
6246 ac_cpp='$CXXCPP $CPPFLAGS'
6247 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6248 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6249 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6250 if test -z "$CXX"; then
6251 if test -n "$CCC"; then
6252 CXX=$CCC
6253 else
6254 if test -n "$ac_tool_prefix"; then
6255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6256 do
6257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 printf %s "checking for $ac_word... " >&6; }
6261 if test ${ac_cv_prog_CXX+y}
6262 then :
6263 printf %s "(cached) " >&6
6264 else $as_nop
6265 if test -n "$CXX"; then
6266 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6267 else
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 for as_dir in $PATH
6270 do
6271 IFS=$as_save_IFS
6272 case $as_dir in #(((
6273 '') as_dir=./ ;;
6274 */) ;;
6275 *) as_dir=$as_dir/ ;;
6276 esac
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 CXX=$ac_cv_prog_CXX
6290 if test -n "$CXX"; then
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6292 printf "%s\n" "$CXX" >&6; }
6293 else
6294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 printf "%s\n" "no" >&6; }
6296 fi
6297
6298
6299 test -n "$CXX" && break
6300 done
6301 fi
6302 if test -z "$CXX"; then
6303 ac_ct_CXX=$CXX
6304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6305 do
6306 # Extract the first word of "$ac_prog", so it can be a program name with args.
6307 set dummy $ac_prog; ac_word=$2
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309 printf %s "checking for $ac_word... " >&6; }
6310 if test ${ac_cv_prog_ac_ct_CXX+y}
6311 then :
6312 printf %s "(cached) " >&6
6313 else $as_nop
6314 if test -n "$ac_ct_CXX"; then
6315 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 case $as_dir in #(((
6322 '') as_dir=./ ;;
6323 */) ;;
6324 *) as_dir=$as_dir/ ;;
6325 esac
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6328 ac_cv_prog_ac_ct_CXX="$ac_prog"
6329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6330 break 2
6331 fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336 fi
6337 fi
6338 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6339 if test -n "$ac_ct_CXX"; then
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6341 printf "%s\n" "$ac_ct_CXX" >&6; }
6342 else
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 printf "%s\n" "no" >&6; }
6345 fi
6346
6347
6348 test -n "$ac_ct_CXX" && break
6349 done
6350
6351 if test "x$ac_ct_CXX" = x; then
6352 CXX="g++"
6353 else
6354 case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360 CXX=$ac_ct_CXX
6361 fi
6362 fi
6363
6364 fi
6365 fi
6366 # Provide some information about the compiler.
6367 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6368 set X $ac_compile
6369 ac_compiler=$2
6370 for ac_option in --version -v -V -qversion; do
6371 { { ac_try="$ac_compiler $ac_option >&5"
6372 case "(($ac_try" in
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6375 esac
6376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6377 printf "%s\n" "$ac_try_echo"; } >&5
6378 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6379 ac_status=$?
6380 if test -s conftest.err; then
6381 sed '10a\
6382 ... rest of stderr output deleted ...
6383 10q' conftest.err >conftest.er1
6384 cat conftest.er1 >&5
6385 fi
6386 rm -f conftest.er1 conftest.err
6387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6388 test $ac_status = 0; }
6389 done
6390
6391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6392 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6393 if test ${ac_cv_cxx_compiler_gnu+y}
6394 then :
6395 printf %s "(cached) " >&6
6396 else $as_nop
6397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399
6400 int
6401 main (void)
6402 {
6403 #ifndef __GNUC__
6404 choke me
6405 #endif
6406
6407 ;
6408 return 0;
6409 }
6410 _ACEOF
6411 if ac_fn_cxx_try_compile "$LINENO"
6412 then :
6413 ac_compiler_gnu=yes
6414 else $as_nop
6415 ac_compiler_gnu=no
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6418 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6419
6420 fi
6421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6422 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6424
6425 if test $ac_compiler_gnu = yes; then
6426 GXX=yes
6427 else
6428 GXX=
6429 fi
6430 ac_test_CXXFLAGS=${CXXFLAGS+y}
6431 ac_save_CXXFLAGS=$CXXFLAGS
6432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6433 printf %s "checking whether $CXX accepts -g... " >&6; }
6434 if test ${ac_cv_prog_cxx_g+y}
6435 then :
6436 printf %s "(cached) " >&6
6437 else $as_nop
6438 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6439 ac_cxx_werror_flag=yes
6440 ac_cv_prog_cxx_g=no
6441 CXXFLAGS="-g"
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444
6445 int
6446 main (void)
6447 {
6448
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_cxx_try_compile "$LINENO"
6454 then :
6455 ac_cv_prog_cxx_g=yes
6456 else $as_nop
6457 CXXFLAGS=""
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460
6461 int
6462 main (void)
6463 {
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 if ac_fn_cxx_try_compile "$LINENO"
6470 then :
6471
6472 else $as_nop
6473 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6474 CXXFLAGS="-g"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 int
6479 main (void)
6480 {
6481
6482 ;
6483 return 0;
6484 }
6485 _ACEOF
6486 if ac_fn_cxx_try_compile "$LINENO"
6487 then :
6488 ac_cv_prog_cxx_g=yes
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6491 fi
6492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6493 fi
6494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6495 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6496 fi
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6498 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6499 if test $ac_test_CXXFLAGS; then
6500 CXXFLAGS=$ac_save_CXXFLAGS
6501 elif test $ac_cv_prog_cxx_g = yes; then
6502 if test "$GXX" = yes; then
6503 CXXFLAGS="-g -O2"
6504 else
6505 CXXFLAGS="-g"
6506 fi
6507 else
6508 if test "$GXX" = yes; then
6509 CXXFLAGS="-O2"
6510 else
6511 CXXFLAGS=
6512 fi
6513 fi
6514 ac_prog_cxx_stdcxx=no
6515 if test x$ac_prog_cxx_stdcxx = xno
6516 then :
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6518 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6519 if test ${ac_cv_prog_cxx_11+y}
6520 then :
6521 printf %s "(cached) " >&6
6522 else $as_nop
6523 ac_cv_prog_cxx_11=no
6524 ac_save_CXX=$CXX
6525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526 /* end confdefs.h. */
6527 $ac_cxx_conftest_cxx11_program
6528 _ACEOF
6529 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6530 do
6531 CXX="$ac_save_CXX $ac_arg"
6532 if ac_fn_cxx_try_compile "$LINENO"
6533 then :
6534 ac_cv_prog_cxx_cxx11=$ac_arg
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.beam
6537 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6538 done
6539 rm -f conftest.$ac_ext
6540 CXX=$ac_save_CXX
6541 fi
6542
6543 if test "x$ac_cv_prog_cxx_cxx11" = xno
6544 then :
6545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6546 printf "%s\n" "unsupported" >&6; }
6547 else $as_nop
6548 if test "x$ac_cv_prog_cxx_cxx11" = x
6549 then :
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6551 printf "%s\n" "none needed" >&6; }
6552 else $as_nop
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6554 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6555 CXX="$CXX $ac_cv_prog_cxx_cxx11"
6556 fi
6557 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6558 ac_prog_cxx_stdcxx=cxx11
6559 fi
6560 fi
6561 if test x$ac_prog_cxx_stdcxx = xno
6562 then :
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6564 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6565 if test ${ac_cv_prog_cxx_98+y}
6566 then :
6567 printf %s "(cached) " >&6
6568 else $as_nop
6569 ac_cv_prog_cxx_98=no
6570 ac_save_CXX=$CXX
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573 $ac_cxx_conftest_cxx98_program
6574 _ACEOF
6575 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6576 do
6577 CXX="$ac_save_CXX $ac_arg"
6578 if ac_fn_cxx_try_compile "$LINENO"
6579 then :
6580 ac_cv_prog_cxx_cxx98=$ac_arg
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.beam
6583 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6584 done
6585 rm -f conftest.$ac_ext
6586 CXX=$ac_save_CXX
6587 fi
6588
6589 if test "x$ac_cv_prog_cxx_cxx98" = xno
6590 then :
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6592 printf "%s\n" "unsupported" >&6; }
6593 else $as_nop
6594 if test "x$ac_cv_prog_cxx_cxx98" = x
6595 then :
6596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6597 printf "%s\n" "none needed" >&6; }
6598 else $as_nop
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6600 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6601 CXX="$CXX $ac_cv_prog_cxx_cxx98"
6602 fi
6603 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6604 ac_prog_cxx_stdcxx=cxx98
6605 fi
6606 fi
6607
6608 ac_ext=c
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613
6614 depcc="$CXX" am_compiler_list=
6615
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6617 printf %s "checking dependency style of $depcc... " >&6; }
6618 if test ${am_cv_CXX_dependencies_compiler_type+y}
6619 then :
6620 printf %s "(cached) " >&6
6621 else $as_nop
6622 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6623 # We make a subdir and do the tests there. Otherwise we can end up
6624 # making bogus files that we don't know about and never remove. For
6625 # instance it was reported that on HP-UX the gcc test will end up
6626 # making a dummy file named 'D' -- because '-MD' means "put the output
6627 # in D".
6628 rm -rf conftest.dir
6629 mkdir conftest.dir
6630 # Copy depcomp to subdir because otherwise we won't find it if we're
6631 # using a relative directory.
6632 cp "$am_depcomp" conftest.dir
6633 cd conftest.dir
6634 # We will build objects and dependencies in a subdirectory because
6635 # it helps to detect inapplicable dependency modes. For instance
6636 # both Tru64's cc and ICC support -MD to output dependencies as a
6637 # side effect of compilation, but ICC will put the dependencies in
6638 # the current directory while Tru64 will put them in the object
6639 # directory.
6640 mkdir sub
6641
6642 am_cv_CXX_dependencies_compiler_type=none
6643 if test "$am_compiler_list" = ""; then
6644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6645 fi
6646 am__universal=false
6647 case " $depcc " in #(
6648 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6649 esac
6650
6651 for depmode in $am_compiler_list; do
6652 # Setup a source with many dependencies, because some compilers
6653 # like to wrap large dependency lists on column 80 (with \), and
6654 # we should not choose a depcomp mode which is confused by this.
6655 #
6656 # We need to recreate these files for each test, as the compiler may
6657 # overwrite some of them when testing with obscure command lines.
6658 # This happens at least with the AIX C compiler.
6659 : > sub/conftest.c
6660 for i in 1 2 3 4 5 6; do
6661 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6662 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6663 # Solaris 10 /bin/sh.
6664 echo '/* dummy */' > sub/conftst$i.h
6665 done
6666 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6667
6668 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6669 # mode. It turns out that the SunPro C++ compiler does not properly
6670 # handle '-M -o', and we need to detect this. Also, some Intel
6671 # versions had trouble with output in subdirs.
6672 am__obj=sub/conftest.${OBJEXT-o}
6673 am__minus_obj="-o $am__obj"
6674 case $depmode in
6675 gcc)
6676 # This depmode causes a compiler race in universal mode.
6677 test "$am__universal" = false || continue
6678 ;;
6679 nosideeffect)
6680 # After this tag, mechanisms are not by side-effect, so they'll
6681 # only be used when explicitly requested.
6682 if test "x$enable_dependency_tracking" = xyes; then
6683 continue
6684 else
6685 break
6686 fi
6687 ;;
6688 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6689 # This compiler won't grok '-c -o', but also, the minuso test has
6690 # not run yet. These depmodes are late enough in the game, and
6691 # so weak that their functioning should not be impacted.
6692 am__obj=conftest.${OBJEXT-o}
6693 am__minus_obj=
6694 ;;
6695 none) break ;;
6696 esac
6697 if depmode=$depmode \
6698 source=sub/conftest.c object=$am__obj \
6699 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6700 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6701 >/dev/null 2>conftest.err &&
6702 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6703 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6704 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6705 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6706 # icc doesn't choke on unknown options, it will just issue warnings
6707 # or remarks (even with -Werror). So we grep stderr for any message
6708 # that says an option was ignored or not supported.
6709 # When given -MP, icc 7.0 and 7.1 complain thusly:
6710 # icc: Command line warning: ignoring option '-M'; no argument required
6711 # The diagnosis changed in icc 8.0:
6712 # icc: Command line remark: option '-MP' not supported
6713 if (grep 'ignoring option' conftest.err ||
6714 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6715 am_cv_CXX_dependencies_compiler_type=$depmode
6716 break
6717 fi
6718 fi
6719 done
6720
6721 cd ..
6722 rm -rf conftest.dir
6723 else
6724 am_cv_CXX_dependencies_compiler_type=none
6725 fi
6726
6727 fi
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6729 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6730 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6731
6732 if
6733 test "x$enable_dependency_tracking" != xno \
6734 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6735 am__fastdepCXX_TRUE=
6736 am__fastdepCXX_FALSE='#'
6737 else
6738 am__fastdepCXX_TRUE='#'
6739 am__fastdepCXX_FALSE=
6740 fi
6741
6742
6743
6744 printf "%s\n" "#define MAKE_CXX \"$CXX\"" >>confdefs.h
6745
6746
6747 # Configure gnulib
6748
6749
6750 # Make sure we can run config.sub.
6751 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6752 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6753
6754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6755 printf %s "checking build system type... " >&6; }
6756 if test ${ac_cv_build+y}
6757 then :
6758 printf %s "(cached) " >&6
6759 else $as_nop
6760 ac_build_alias=$build_alias
6761 test "x$ac_build_alias" = x &&
6762 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6763 test "x$ac_build_alias" = x &&
6764 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6765 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6766 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6767
6768 fi
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6770 printf "%s\n" "$ac_cv_build" >&6; }
6771 case $ac_cv_build in
6772 *-*-*) ;;
6773 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6774 esac
6775 build=$ac_cv_build
6776 ac_save_IFS=$IFS; IFS='-'
6777 set x $ac_cv_build
6778 shift
6779 build_cpu=$1
6780 build_vendor=$2
6781 shift; shift
6782 # Remember, the first character of IFS is used to create $*,
6783 # except with old shells:
6784 build_os=$*
6785 IFS=$ac_save_IFS
6786 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6787
6788
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6790 printf %s "checking host system type... " >&6; }
6791 if test ${ac_cv_host+y}
6792 then :
6793 printf %s "(cached) " >&6
6794 else $as_nop
6795 if test "x$host_alias" = x; then
6796 ac_cv_host=$ac_cv_build
6797 else
6798 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6799 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6800 fi
6801
6802 fi
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6804 printf "%s\n" "$ac_cv_host" >&6; }
6805 case $ac_cv_host in
6806 *-*-*) ;;
6807 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6808 esac
6809 host=$ac_cv_host
6810 ac_save_IFS=$IFS; IFS='-'
6811 set x $ac_cv_host
6812 shift
6813 host_cpu=$1
6814 host_vendor=$2
6815 shift; shift
6816 # Remember, the first character of IFS is used to create $*,
6817 # except with old shells:
6818 host_os=$*
6819 IFS=$ac_save_IFS
6820 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6821
6822
6823
6824
6825
6826
6827 case "$host_os" in
6828 openbsd*)
6829
6830 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6831
6832 ;;
6833 esac
6834
6835 ac_ext=c
6836 ac_cpp='$CPP $CPPFLAGS'
6837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6841 printf %s "checking how to run the C preprocessor... " >&6; }
6842 # On Suns, sometimes $CPP names a directory.
6843 if test -n "$CPP" && test -d "$CPP"; then
6844 CPP=
6845 fi
6846 if test -z "$CPP"; then
6847 if test ${ac_cv_prog_CPP+y}
6848 then :
6849 printf %s "(cached) " >&6
6850 else $as_nop
6851 # Double quotes because $CC needs to be expanded
6852 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6853 do
6854 ac_preproc_ok=false
6855 for ac_c_preproc_warn_flag in '' yes
6856 do
6857 # Use a header file that comes with gcc, so configuring glibc
6858 # with a fresh cross-compiler works.
6859 # On the NeXT, cc -E runs the code through the compiler's parser,
6860 # not just through cpp. "Syntax error" is here to catch this case.
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <limits.h>
6864 Syntax error
6865 _ACEOF
6866 if ac_fn_c_try_cpp "$LINENO"
6867 then :
6868
6869 else $as_nop
6870 # Broken: fails on valid input.
6871 continue
6872 fi
6873 rm -f conftest.err conftest.i conftest.$ac_ext
6874
6875 # OK, works on sane cases. Now check whether nonexistent headers
6876 # can be detected and how.
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 #include <ac_nonexistent.h>
6880 _ACEOF
6881 if ac_fn_c_try_cpp "$LINENO"
6882 then :
6883 # Broken: success on invalid input.
6884 continue
6885 else $as_nop
6886 # Passes both tests.
6887 ac_preproc_ok=:
6888 break
6889 fi
6890 rm -f conftest.err conftest.i conftest.$ac_ext
6891
6892 done
6893 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6894 rm -f conftest.i conftest.err conftest.$ac_ext
6895 if $ac_preproc_ok
6896 then :
6897 break
6898 fi
6899
6900 done
6901 ac_cv_prog_CPP=$CPP
6902
6903 fi
6904 CPP=$ac_cv_prog_CPP
6905 else
6906 ac_cv_prog_CPP=$CPP
6907 fi
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6909 printf "%s\n" "$CPP" >&6; }
6910 ac_preproc_ok=false
6911 for ac_c_preproc_warn_flag in '' yes
6912 do
6913 # Use a header file that comes with gcc, so configuring glibc
6914 # with a fresh cross-compiler works.
6915 # On the NeXT, cc -E runs the code through the compiler's parser,
6916 # not just through cpp. "Syntax error" is here to catch this case.
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 #include <limits.h>
6920 Syntax error
6921 _ACEOF
6922 if ac_fn_c_try_cpp "$LINENO"
6923 then :
6924
6925 else $as_nop
6926 # Broken: fails on valid input.
6927 continue
6928 fi
6929 rm -f conftest.err conftest.i conftest.$ac_ext
6930
6931 # OK, works on sane cases. Now check whether nonexistent headers
6932 # can be detected and how.
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6935 #include <ac_nonexistent.h>
6936 _ACEOF
6937 if ac_fn_c_try_cpp "$LINENO"
6938 then :
6939 # Broken: success on invalid input.
6940 continue
6941 else $as_nop
6942 # Passes both tests.
6943 ac_preproc_ok=:
6944 break
6945 fi
6946 rm -f conftest.err conftest.i conftest.$ac_ext
6947
6948 done
6949 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6950 rm -f conftest.i conftest.err conftest.$ac_ext
6951 if $ac_preproc_ok
6952 then :
6953
6954 else $as_nop
6955 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6956 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6957 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6958 See \`config.log' for more details" "$LINENO" 5; }
6959 fi
6960
6961 ac_ext=c
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967
6968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6969 printf %s "checking for grep that handles long lines and -e... " >&6; }
6970 if test ${ac_cv_path_GREP+y}
6971 then :
6972 printf %s "(cached) " >&6
6973 else $as_nop
6974 if test -z "$GREP"; then
6975 ac_path_GREP_found=false
6976 # Loop through the user's path and test for each of PROGNAME-LIST
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6979 do
6980 IFS=$as_save_IFS
6981 case $as_dir in #(((
6982 '') as_dir=./ ;;
6983 */) ;;
6984 *) as_dir=$as_dir/ ;;
6985 esac
6986 for ac_prog in grep ggrep
6987 do
6988 for ac_exec_ext in '' $ac_executable_extensions; do
6989 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6990 as_fn_executable_p "$ac_path_GREP" || continue
6991 # Check for GNU ac_path_GREP and select it if it is found.
6992 # Check for GNU $ac_path_GREP
6993 case `"$ac_path_GREP" --version 2>&1` in
6994 *GNU*)
6995 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6996 *)
6997 ac_count=0
6998 printf %s 0123456789 >"conftest.in"
6999 while :
7000 do
7001 cat "conftest.in" "conftest.in" >"conftest.tmp"
7002 mv "conftest.tmp" "conftest.in"
7003 cp "conftest.in" "conftest.nl"
7004 printf "%s\n" 'GREP' >> "conftest.nl"
7005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7007 as_fn_arith $ac_count + 1 && ac_count=$as_val
7008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7009 # Best one so far, save it but keep looking for a better one
7010 ac_cv_path_GREP="$ac_path_GREP"
7011 ac_path_GREP_max=$ac_count
7012 fi
7013 # 10*(2^10) chars as input seems more than enough
7014 test $ac_count -gt 10 && break
7015 done
7016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7017 esac
7018
7019 $ac_path_GREP_found && break 3
7020 done
7021 done
7022 done
7023 IFS=$as_save_IFS
7024 if test -z "$ac_cv_path_GREP"; then
7025 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7026 fi
7027 else
7028 ac_cv_path_GREP=$GREP
7029 fi
7030
7031 fi
7032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7033 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7034 GREP="$ac_cv_path_GREP"
7035
7036
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7038 printf %s "checking for egrep... " >&6; }
7039 if test ${ac_cv_path_EGREP+y}
7040 then :
7041 printf %s "(cached) " >&6
7042 else $as_nop
7043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7044 then ac_cv_path_EGREP="$GREP -E"
7045 else
7046 if test -z "$EGREP"; then
7047 ac_path_EGREP_found=false
7048 # Loop through the user's path and test for each of PROGNAME-LIST
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7051 do
7052 IFS=$as_save_IFS
7053 case $as_dir in #(((
7054 '') as_dir=./ ;;
7055 */) ;;
7056 *) as_dir=$as_dir/ ;;
7057 esac
7058 for ac_prog in egrep
7059 do
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7062 as_fn_executable_p "$ac_path_EGREP" || continue
7063 # Check for GNU ac_path_EGREP and select it if it is found.
7064 # Check for GNU $ac_path_EGREP
7065 case `"$ac_path_EGREP" --version 2>&1` in
7066 *GNU*)
7067 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7068 *)
7069 ac_count=0
7070 printf %s 0123456789 >"conftest.in"
7071 while :
7072 do
7073 cat "conftest.in" "conftest.in" >"conftest.tmp"
7074 mv "conftest.tmp" "conftest.in"
7075 cp "conftest.in" "conftest.nl"
7076 printf "%s\n" 'EGREP' >> "conftest.nl"
7077 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7078 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7079 as_fn_arith $ac_count + 1 && ac_count=$as_val
7080 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7081 # Best one so far, save it but keep looking for a better one
7082 ac_cv_path_EGREP="$ac_path_EGREP"
7083 ac_path_EGREP_max=$ac_count
7084 fi
7085 # 10*(2^10) chars as input seems more than enough
7086 test $ac_count -gt 10 && break
7087 done
7088 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7089 esac
7090
7091 $ac_path_EGREP_found && break 3
7092 done
7093 done
7094 done
7095 IFS=$as_save_IFS
7096 if test -z "$ac_cv_path_EGREP"; then
7097 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7098 fi
7099 else
7100 ac_cv_path_EGREP=$EGREP
7101 fi
7102
7103 fi
7104 fi
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7106 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7107 EGREP="$ac_cv_path_EGREP"
7108
7109
7110
7111
7112
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7114 printf %s "checking for Minix Amsterdam compiler... " >&6; }
7115 if test ${gl_cv_c_amsterdam_compiler+y}
7116 then :
7117 printf %s "(cached) " >&6
7118 else $as_nop
7119
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122
7123 #ifdef __ACK__
7124 Amsterdam
7125 #endif
7126
7127 _ACEOF
7128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129 $EGREP "Amsterdam" >/dev/null 2>&1
7130 then :
7131 gl_cv_c_amsterdam_compiler=yes
7132 else $as_nop
7133 gl_cv_c_amsterdam_compiler=no
7134 fi
7135 rm -rf conftest*
7136
7137
7138 fi
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7140 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
7141
7142 if test $gl_cv_c_amsterdam_compiler = yes; then
7143 if test -z "$AR"; then
7144 AR='cc -c.a'
7145 fi
7146 if test -z "$ARFLAGS"; then
7147 ARFLAGS='-o'
7148 fi
7149 else
7150 :
7151 fi
7152
7153 if test -n "$ac_tool_prefix"; then
7154 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7155 set dummy ${ac_tool_prefix}ar; ac_word=$2
7156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7157 printf %s "checking for $ac_word... " >&6; }
7158 if test ${ac_cv_prog_AR+y}
7159 then :
7160 printf %s "(cached) " >&6
7161 else $as_nop
7162 if test -n "$AR"; then
7163 ac_cv_prog_AR="$AR" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168 IFS=$as_save_IFS
7169 case $as_dir in #(((
7170 '') as_dir=./ ;;
7171 */) ;;
7172 *) as_dir=$as_dir/ ;;
7173 esac
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_AR="${ac_tool_prefix}ar"
7177 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 AR=$ac_cv_prog_AR
7187 if test -n "$AR"; then
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7189 printf "%s\n" "$AR" >&6; }
7190 else
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 printf "%s\n" "no" >&6; }
7193 fi
7194
7195
7196 fi
7197 if test -z "$ac_cv_prog_AR"; then
7198 ac_ct_AR=$AR
7199 # Extract the first word of "ar", so it can be a program name with args.
7200 set dummy ar; ac_word=$2
7201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 printf %s "checking for $ac_word... " >&6; }
7203 if test ${ac_cv_prog_ac_ct_AR+y}
7204 then :
7205 printf %s "(cached) " >&6
7206 else $as_nop
7207 if test -n "$ac_ct_AR"; then
7208 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213 IFS=$as_save_IFS
7214 case $as_dir in #(((
7215 '') as_dir=./ ;;
7216 */) ;;
7217 *) as_dir=$as_dir/ ;;
7218 esac
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7221 ac_cv_prog_ac_ct_AR="ar"
7222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7232 if test -n "$ac_ct_AR"; then
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7234 printf "%s\n" "$ac_ct_AR" >&6; }
7235 else
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 printf "%s\n" "no" >&6; }
7238 fi
7239
7240 if test "x$ac_ct_AR" = x; then
7241 AR="ar"
7242 else
7243 case $cross_compiling:$ac_tool_warned in
7244 yes:)
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7246 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7247 ac_tool_warned=yes ;;
7248 esac
7249 AR=$ac_ct_AR
7250 fi
7251 else
7252 AR="$ac_cv_prog_AR"
7253 fi
7254
7255 if test -z "$ARFLAGS"; then
7256 ARFLAGS='cr'
7257 fi
7258
7259
7260
7261 if test -z "$RANLIB"; then
7262 if test $gl_cv_c_amsterdam_compiler = yes; then
7263 RANLIB=':'
7264 else
7265 if test -n "$ac_tool_prefix"; then
7266 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7267 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7269 printf %s "checking for $ac_word... " >&6; }
7270 if test ${ac_cv_prog_RANLIB+y}
7271 then :
7272 printf %s "(cached) " >&6
7273 else $as_nop
7274 if test -n "$RANLIB"; then
7275 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7276 else
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280 IFS=$as_save_IFS
7281 case $as_dir in #(((
7282 '') as_dir=./ ;;
7283 */) ;;
7284 *) as_dir=$as_dir/ ;;
7285 esac
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7290 break 2
7291 fi
7292 done
7293 done
7294 IFS=$as_save_IFS
7295
7296 fi
7297 fi
7298 RANLIB=$ac_cv_prog_RANLIB
7299 if test -n "$RANLIB"; then
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7301 printf "%s\n" "$RANLIB" >&6; }
7302 else
7303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 printf "%s\n" "no" >&6; }
7305 fi
7306
7307
7308 fi
7309 if test -z "$ac_cv_prog_RANLIB"; then
7310 ac_ct_RANLIB=$RANLIB
7311 # Extract the first word of "ranlib", so it can be a program name with args.
7312 set dummy ranlib; ac_word=$2
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 printf %s "checking for $ac_word... " >&6; }
7315 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7316 then :
7317 printf %s "(cached) " >&6
7318 else $as_nop
7319 if test -n "$ac_ct_RANLIB"; then
7320 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7324 do
7325 IFS=$as_save_IFS
7326 case $as_dir in #(((
7327 '') as_dir=./ ;;
7328 */) ;;
7329 *) as_dir=$as_dir/ ;;
7330 esac
7331 for ac_exec_ext in '' $ac_executable_extensions; do
7332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_ac_ct_RANLIB="ranlib"
7334 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7335 break 2
7336 fi
7337 done
7338 done
7339 IFS=$as_save_IFS
7340
7341 fi
7342 fi
7343 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7344 if test -n "$ac_ct_RANLIB"; then
7345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7346 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7347 else
7348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 printf "%s\n" "no" >&6; }
7350 fi
7351
7352 if test "x$ac_ct_RANLIB" = x; then
7353 RANLIB=":"
7354 else
7355 case $cross_compiling:$ac_tool_warned in
7356 yes:)
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359 ac_tool_warned=yes ;;
7360 esac
7361 RANLIB=$ac_ct_RANLIB
7362 fi
7363 else
7364 RANLIB="$ac_cv_prog_RANLIB"
7365 fi
7366
7367 fi
7368 fi
7369
7370
7371 if test "$enable_largefile" != no
7372 then :
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
7374 printf %s "checking for $CC option to enable large file support... " >&6; }
7375 if test ${ac_cv_sys_largefile_opts+y}
7376 then :
7377 printf %s "(cached) " >&6
7378 else $as_nop
7379 ac_save_CC="$CC"
7380 ac_opt_found=no
7381 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
7382 if test x"$ac_opt" != x"none needed"
7383 then :
7384 CC="$ac_save_CC $ac_opt"
7385 fi
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 #include <sys/types.h>
7389 /* Check that off_t can represent 2**63 - 1 correctly.
7390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7391 since some C++ compilers masquerading as C compilers
7392 incorrectly reject 9223372036854775807. */
7393 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7395 && LARGE_OFF_T % 2147483647 == 1)
7396 ? 1 : -1];
7397 int
7398 main (void)
7399 {
7400
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_compile "$LINENO"
7406 then :
7407 ac_cv_sys_largefile_opts="$ac_opt"
7408 ac_opt_found=yes
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7411 test $ac_opt_found = no || break
7412 done
7413 CC="$ac_save_CC"
7414 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected"
7415 fi
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
7417 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
7418
7419 ac_have_largefile=yes
7420 case $ac_cv_sys_largefile_opts in #(
7421 "none needed") :
7422 ;; #(
7423 "support not detected") :
7424 ac_have_largefile=no ;; #(
7425 "-D_FILE_OFFSET_BITS=64") :
7426
7427 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7428 ;; #(
7429 "-D_LARGE_FILES=1") :
7430
7431 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
7432 ;; #(
7433 "-n32") :
7434 CC="$CC -n32" ;; #(
7435 *) :
7436 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
7437 esac
7438
7439 if test "$enable_year2038" != no
7440 then :
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable timestamps after Jan 2038" >&5
7442 printf %s "checking for $CC option to enable timestamps after Jan 2038... " >&6; }
7443 if test ${ac_cv_sys_year2038_opts+y}
7444 then :
7445 printf %s "(cached) " >&6
7446 else $as_nop
7447 ac_save_CPPFLAGS="$CPPFLAGS"
7448 ac_opt_found=no
7449 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
7450 if test x"$ac_opt" != x"none needed"
7451 then :
7452 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7453 fi
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7456
7457 #include <time.h>
7458 /* Check that time_t can represent 2**32 - 1 correctly. */
7459 #define LARGE_TIME_T \\
7460 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7461 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7462 && LARGE_TIME_T % 65537 == 0)
7463 ? 1 : -1];
7464
7465 int
7466 main (void)
7467 {
7468
7469 ;
7470 return 0;
7471 }
7472 _ACEOF
7473 if ac_fn_c_try_compile "$LINENO"
7474 then :
7475 ac_cv_sys_year2038_opts="$ac_opt"
7476 ac_opt_found=yes
7477 fi
7478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7479 test $ac_opt_found = no || break
7480 done
7481 CPPFLAGS="$ac_save_CPPFLAGS"
7482 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected"
7483 fi
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
7485 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
7486
7487 ac_have_year2038=yes
7488 case $ac_cv_sys_year2038_opts in #(
7489 "none needed") :
7490 ;; #(
7491 "support not detected") :
7492 ac_have_year2038=no
7493 case $enable_year2038 in #(
7494 yes) :
7495 # If we're not cross compiling and 'touch' works with a large
7496 # timestamp, then we can presume the system supports wider time_t
7497 # *somehow* and we just weren't able to detect it. One common
7498 # case that we deliberately *don't* probe for is a system that
7499 # supports both 32- and 64-bit ABIs but only the 64-bit ABI offers
7500 # wide time_t. (It would be inappropriate for us to override an
7501 # intentional use of -m32.) Error out, demanding use of
7502 # --disable-year2038 if this is intentional.
7503 if test $cross_compiling = no
7504 then :
7505 if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null
7506 then :
7507 case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #(
7508 *'Feb 7 2106'* | *'Feb 7 17:10'*) :
7509 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7510 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7511 as_fn_error $? "this system appears to support timestamps after
7512 January 2038, but no mechanism for enabling wide
7513 'time_t' was detected. Did you mean to build a 64-bit
7514 binary? (e.g. 'CC=\"${CC} -m64\"'.) To proceed with
7515 32-bit time_t, configure with '--disable-year2038'.
7516 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7517 *) :
7518 ;;
7519 esac
7520 fi
7521 fi ;; #(
7522 *) :
7523 ;;
7524 esac ;; #(
7525 "-D_TIME_BITS=64") :
7526
7527 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7528 ;; #(
7529 "-D__MINGW_USE_VC2005_COMPAT=1") :
7530
7531 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7532 ;; #(
7533 "-U_USE_32_BIT_TIME_T"*) :
7534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7536 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
7537 will stop working after January 2038. Remove
7538 _USE_32BIT_TIME_T from the compiler flags.
7539 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7540 *) :
7541 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7542 esac
7543
7544 fi
7545
7546
7547
7548 fi
7549
7550
7551
7552
7553 # Pre-early section.
7554
7555
7556
7557 # Code from module alloca:
7558 # Code from module alloca-opt:
7559 # Code from module c99:
7560 # Code from module concat-filename:
7561 # Code from module extensions:
7562 # Code from module fdl:
7563 # Code from module filename:
7564 # Code from module findprog-in:
7565 # Code from module gen-header:
7566 # Code from module getloadavg:
7567 # Code from module host-cpu-c-abi:
7568 # Code from module intprops:
7569 # Code from module largefile:
7570
7571 # Code from module make-glob:
7572 # Code from module make-macros:
7573 # Code from module snippet/warn-on-use:
7574 # Code from module std-gnu11:
7575 # Code from module stdbool:
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585 # Check whether --enable-cross-guesses was given.
7586 if test ${enable_cross_guesses+y}
7587 then :
7588 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
7590 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
7591 enableval=conservative
7592 fi
7593 gl_cross_guesses="$enableval"
7594 else $as_nop
7595 gl_cross_guesses=conservative
7596 fi
7597
7598 if test $gl_cross_guesses = risky; then
7599 gl_cross_guess_normal="guessing yes"
7600 gl_cross_guess_inverted="guessing no"
7601 else
7602 gl_cross_guess_normal="guessing no"
7603 gl_cross_guess_inverted="guessing yes"
7604 fi
7605 LIBC_FATAL_STDERR_=1
7606 export LIBC_FATAL_STDERR_
7607
7608
7609 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7610 if test "x$ac_cv_type_size_t" = xyes
7611 then :
7612
7613 else $as_nop
7614
7615 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7616
7617 fi
7618
7619 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7620 # for constant arguments. Useless!
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7622 printf %s "checking for working alloca.h... " >&6; }
7623 if test ${ac_cv_working_alloca_h+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else $as_nop
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 #include <alloca.h>
7630 int
7631 main (void)
7632 {
7633 char *p = (char *) alloca (2 * sizeof (int));
7634 if (p) return 0;
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_link "$LINENO"
7640 then :
7641 ac_cv_working_alloca_h=yes
7642 else $as_nop
7643 ac_cv_working_alloca_h=no
7644 fi
7645 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7646 conftest$ac_exeext conftest.$ac_ext
7647 fi
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7649 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7650 if test $ac_cv_working_alloca_h = yes; then
7651
7652 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7653
7654 fi
7655
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7657 printf %s "checking for alloca... " >&6; }
7658 if test ${ac_cv_func_alloca_works+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else $as_nop
7662 if test $ac_cv_working_alloca_h = yes; then
7663 ac_cv_func_alloca_works=yes
7664 else
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 #include <stdlib.h>
7668 #include <stddef.h>
7669 #ifndef alloca
7670 # ifdef __GNUC__
7671 # define alloca __builtin_alloca
7672 # elif defined _MSC_VER
7673 # include <malloc.h>
7674 # define alloca _alloca
7675 # else
7676 # ifdef __cplusplus
7677 extern "C"
7678 # endif
7679 void *alloca (size_t);
7680 # endif
7681 #endif
7682
7683 int
7684 main (void)
7685 {
7686 char *p = (char *) alloca (1);
7687 if (p) return 0;
7688 ;
7689 return 0;
7690 }
7691 _ACEOF
7692 if ac_fn_c_try_link "$LINENO"
7693 then :
7694 ac_cv_func_alloca_works=yes
7695 else $as_nop
7696 ac_cv_func_alloca_works=no
7697 fi
7698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7699 conftest$ac_exeext conftest.$ac_ext
7700 fi
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7702 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7703 fi
7704
7705 if test $ac_cv_func_alloca_works = yes; then
7706
7707 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7708
7709 else
7710 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7711 # that cause trouble. Some versions do not even contain alloca or
7712 # contain a buggy version. If you still want to use their alloca,
7713 # use ar to extract alloca.o from them instead of compiling alloca.c.
7714
7715
7716
7717
7718
7719 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7720
7721 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7722
7723
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7725 printf %s "checking stack direction for C alloca... " >&6; }
7726 if test ${ac_cv_c_stack_direction+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else $as_nop
7730 if test "$cross_compiling" = yes
7731 then :
7732 ac_cv_c_stack_direction=0
7733 else $as_nop
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 $ac_includes_default
7737 int
7738 find_stack_direction (int *addr, int depth)
7739 {
7740 int dir, dummy = 0;
7741 if (! addr)
7742 addr = &dummy;
7743 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7744 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7745 return dir + dummy;
7746 }
7747
7748 int
7749 main (int argc, char **argv)
7750 {
7751 return find_stack_direction (0, argc + !argv + 20) < 0;
7752 }
7753 _ACEOF
7754 if ac_fn_c_try_run "$LINENO"
7755 then :
7756 ac_cv_c_stack_direction=1
7757 else $as_nop
7758 ac_cv_c_stack_direction=-1
7759 fi
7760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7761 conftest.$ac_objext conftest.beam conftest.$ac_ext
7762 fi
7763
7764 fi
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7766 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7767 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7768
7769
7770 fi
7771
7772
7773 ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess"
7774 if test "x$ac_cv_func_eaccess" = xyes
7775 then :
7776
7777 else $as_nop
7778
7779 printf "%s\n" "#define eaccess access" >>confdefs.h
7780
7781 fi
7782
7783
7784
7785 HAVE_DECL_GETLOADAVG=1;
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796 GL_GNULIB_GETLOADAVG=0
7797
7798
7799
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
7801 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
7802 if test ${ac_cv_c_undeclared_builtin_options+y}
7803 then :
7804 printf %s "(cached) " >&6
7805 else $as_nop
7806 ac_save_CFLAGS=$CFLAGS
7807 ac_cv_c_undeclared_builtin_options='cannot detect'
7808 for ac_arg in '' -fno-builtin; do
7809 CFLAGS="$ac_save_CFLAGS $ac_arg"
7810 # This test program should *not* compile successfully.
7811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813
7814 int
7815 main (void)
7816 {
7817 (void) strchr;
7818 ;
7819 return 0;
7820 }
7821 _ACEOF
7822 if ac_fn_c_try_compile "$LINENO"
7823 then :
7824
7825 else $as_nop
7826 # This test program should compile successfully.
7827 # No library function is consistently available on
7828 # freestanding implementations, so test against a dummy
7829 # declaration. Include always-available headers on the
7830 # off chance that they somehow elicit warnings.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 #include <float.h>
7834 #include <limits.h>
7835 #include <stdarg.h>
7836 #include <stddef.h>
7837 extern void ac_decl (int, char *);
7838
7839 int
7840 main (void)
7841 {
7842 (void) ac_decl (0, (char *) 0);
7843 (void) ac_decl;
7844
7845 ;
7846 return 0;
7847 }
7848 _ACEOF
7849 if ac_fn_c_try_compile "$LINENO"
7850 then :
7851 if test x"$ac_arg" = x
7852 then :
7853 ac_cv_c_undeclared_builtin_options='none needed'
7854 else $as_nop
7855 ac_cv_c_undeclared_builtin_options=$ac_arg
7856 fi
7857 break
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7860 fi
7861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7862 done
7863 CFLAGS=$ac_save_CFLAGS
7864
7865 fi
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
7867 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
7868 case $ac_cv_c_undeclared_builtin_options in #(
7869 'cannot detect') :
7870 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7871 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7872 as_fn_error $? "cannot make $CC report undeclared builtins
7873 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7874 'none needed') :
7875 ac_c_undeclared_builtin_options='' ;; #(
7876 *) :
7877 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
7878 esac
7879
7880
7881
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884
7885 #ifdef _MSC_VER
7886 MicrosoftCompiler
7887 #endif
7888
7889 _ACEOF
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891 $EGREP "MicrosoftCompiler" >/dev/null 2>&1
7892 then :
7893 rm -f conftest*
7894 echo 'int dummy;' > conftest.c
7895 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
7896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7897 (eval $ac_try) 2>&5
7898 ac_status=$?
7899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900 test $ac_status = 0; }; } >/dev/null 2>&1
7901 if test -f conftest.o; then
7902 gl_asmext='s'
7903 gl_c_asm_opt='-S'
7904 else
7905 gl_asmext='asm'
7906 gl_c_asm_opt='-c -Fa'
7907 fi
7908 rm -f conftest*
7909
7910 else $as_nop
7911 gl_asmext='s'
7912 gl_c_asm_opt='-S'
7913
7914 fi
7915 rm -rf conftest*
7916
7917
7918
7919
7920
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host CPU and C ABI" >&5
7922 printf %s "checking host CPU and C ABI... " >&6; }
7923 if test ${gl_cv_host_cpu_c_abi+y}
7924 then :
7925 printf %s "(cached) " >&6
7926 else $as_nop
7927 case "$host_cpu" in
7928
7929 i[34567]86 )
7930 gl_cv_host_cpu_c_abi=i386
7931 ;;
7932
7933 x86_64 )
7934 # On x86_64 systems, the C compiler may be generating code in one of
7935 # these ABIs:
7936 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7937 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7938 # with native Windows (mingw, MSVC).
7939 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7940 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 #if (defined __x86_64__ || defined __amd64__ \
7944 || defined _M_X64 || defined _M_AMD64)
7945 int ok;
7946 #else
7947 error fail
7948 #endif
7949
7950 _ACEOF
7951 if ac_fn_c_try_compile "$LINENO"
7952 then :
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 #if defined __ILP32__ || defined _ILP32
7956 int ok;
7957 #else
7958 error fail
7959 #endif
7960
7961 _ACEOF
7962 if ac_fn_c_try_compile "$LINENO"
7963 then :
7964 gl_cv_host_cpu_c_abi=x86_64-x32
7965 else $as_nop
7966 gl_cv_host_cpu_c_abi=x86_64
7967 fi
7968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7969 else $as_nop
7970 gl_cv_host_cpu_c_abi=i386
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7973 ;;
7974
7975 alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
7976 gl_cv_host_cpu_c_abi=alpha
7977 ;;
7978
7979 arm* | aarch64 )
7980 # Assume arm with EABI.
7981 # On arm64 systems, the C compiler may be generating code in one of
7982 # these ABIs:
7983 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7984 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7985 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 #ifdef __aarch64__
7989 int ok;
7990 #else
7991 error fail
7992 #endif
7993
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"
7996 then :
7997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
7999 #if defined __ILP32__ || defined _ILP32
8000 int ok;
8001 #else
8002 error fail
8003 #endif
8004
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"
8007 then :
8008 gl_cv_host_cpu_c_abi=arm64-ilp32
8009 else $as_nop
8010 gl_cv_host_cpu_c_abi=arm64
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8013 else $as_nop
8014 # Don't distinguish little-endian and big-endian arm, since they
8015 # don't require different machine code for simple operations and
8016 # since the user can distinguish them through the preprocessor
8017 # defines __ARMEL__ vs. __ARMEB__.
8018 # But distinguish arm which passes floating-point arguments and
8019 # return values in integer registers (r0, r1, ...) - this is
8020 # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
8021 # passes them in float registers (s0, s1, ...) and double registers
8022 # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
8023 # sets the preprocessor defines __ARM_PCS (for the first case) and
8024 # __ARM_PCS_VFP (for the second case), but older GCC does not.
8025 echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
8026 # Look for a reference to the register d0 in the .s file.
8027 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
8028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8029 (eval $ac_try) 2>&5
8030 ac_status=$?
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8032 test $ac_status = 0; }; } >/dev/null 2>&1
8033 if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
8034 gl_cv_host_cpu_c_abi=armhf
8035 else
8036 gl_cv_host_cpu_c_abi=arm
8037 fi
8038 rm -f conftest*
8039
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8042 ;;
8043
8044 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8045 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8046 # code. In the latter case, it defines _LP64 and __LP64__.
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049 #ifdef __LP64__
8050 int ok;
8051 #else
8052 error fail
8053 #endif
8054
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"
8057 then :
8058 gl_cv_host_cpu_c_abi=hppa64
8059 else $as_nop
8060 gl_cv_host_cpu_c_abi=hppa
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8063 ;;
8064
8065 ia64* )
8066 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8067 # 32-bit code. In the latter case, it defines _ILP32.
8068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8069 /* end confdefs.h. */
8070 #ifdef _ILP32
8071 int ok;
8072 #else
8073 error fail
8074 #endif
8075
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"
8078 then :
8079 gl_cv_host_cpu_c_abi=ia64-ilp32
8080 else $as_nop
8081 gl_cv_host_cpu_c_abi=ia64
8082 fi
8083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8084 ;;
8085
8086 mips* )
8087 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8088 # at 32.
8089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8091 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8092 int ok;
8093 #else
8094 error fail
8095 #endif
8096
8097 _ACEOF
8098 if ac_fn_c_try_compile "$LINENO"
8099 then :
8100 gl_cv_host_cpu_c_abi=mips64
8101 else $as_nop
8102 # In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
8103 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
8104 # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
8105 # may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108 #if (_MIPS_SIM == _ABIN32)
8109 int ok;
8110 #else
8111 error fail
8112 #endif
8113
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"
8116 then :
8117 gl_cv_host_cpu_c_abi=mipsn32
8118 else $as_nop
8119 gl_cv_host_cpu_c_abi=mips
8120 fi
8121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8124 ;;
8125
8126 powerpc* )
8127 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8128 # No need to distinguish them here; the caller may distinguish
8129 # them based on the OS.
8130 # On powerpc64 systems, the C compiler may still be generating
8131 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8132 # be generating 64-bit code.
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 #if defined __powerpc64__ || defined __LP64__
8136 int ok;
8137 #else
8138 error fail
8139 #endif
8140
8141 _ACEOF
8142 if ac_fn_c_try_compile "$LINENO"
8143 then :
8144 # On powerpc64, there are two ABIs on Linux: The AIX compatible
8145 # one and the ELFv2 one. The latter defines _CALL_ELF=2.
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 #if defined _CALL_ELF && _CALL_ELF == 2
8149 int ok;
8150 #else
8151 error fail
8152 #endif
8153
8154 _ACEOF
8155 if ac_fn_c_try_compile "$LINENO"
8156 then :
8157 gl_cv_host_cpu_c_abi=powerpc64-elfv2
8158 else $as_nop
8159 gl_cv_host_cpu_c_abi=powerpc64
8160 fi
8161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8162
8163 else $as_nop
8164 gl_cv_host_cpu_c_abi=powerpc
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8167 ;;
8168
8169 rs6000 )
8170 gl_cv_host_cpu_c_abi=powerpc
8171 ;;
8172
8173 riscv32 | riscv64 )
8174 # There are 2 architectures (with variants): rv32* and rv64*.
8175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176 /* end confdefs.h. */
8177 #if __riscv_xlen == 64
8178 int ok;
8179 #else
8180 error fail
8181 #endif
8182
8183 _ACEOF
8184 if ac_fn_c_try_compile "$LINENO"
8185 then :
8186 cpu=riscv64
8187 else $as_nop
8188 cpu=riscv32
8189 fi
8190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8191 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8192 # Size of 'long' and 'void *':
8193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8194 /* end confdefs.h. */
8195 #if defined __LP64__
8196 int ok;
8197 #else
8198 error fail
8199 #endif
8200
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"
8203 then :
8204 main_abi=lp64
8205 else $as_nop
8206 main_abi=ilp32
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8209 # Float ABIs:
8210 # __riscv_float_abi_double:
8211 # 'float' and 'double' are passed in floating-point registers.
8212 # __riscv_float_abi_single:
8213 # 'float' are passed in floating-point registers.
8214 # __riscv_float_abi_soft:
8215 # No values are passed in floating-point registers.
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218 #if defined __riscv_float_abi_double
8219 int ok;
8220 #else
8221 error fail
8222 #endif
8223
8224 _ACEOF
8225 if ac_fn_c_try_compile "$LINENO"
8226 then :
8227 float_abi=d
8228 else $as_nop
8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8230 /* end confdefs.h. */
8231 #if defined __riscv_float_abi_single
8232 int ok;
8233 #else
8234 error fail
8235 #endif
8236
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"
8239 then :
8240 float_abi=f
8241 else $as_nop
8242 float_abi=''
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8245
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8248 gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
8249 ;;
8250
8251 s390* )
8252 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8253 # or 31-bit (= s390) code.
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 #if defined __LP64__ || defined __s390x__
8257 int ok;
8258 #else
8259 error fail
8260 #endif
8261
8262 _ACEOF
8263 if ac_fn_c_try_compile "$LINENO"
8264 then :
8265 gl_cv_host_cpu_c_abi=s390x
8266 else $as_nop
8267 gl_cv_host_cpu_c_abi=s390
8268 fi
8269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8270 ;;
8271
8272 sparc | sparc64 )
8273 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
8274 # C compiler still generates 32-bit code.
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 #if defined __sparcv9 || defined __arch64__
8278 int ok;
8279 #else
8280 error fail
8281 #endif
8282
8283 _ACEOF
8284 if ac_fn_c_try_compile "$LINENO"
8285 then :
8286 gl_cv_host_cpu_c_abi=sparc64
8287 else $as_nop
8288 gl_cv_host_cpu_c_abi=sparc
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8291 ;;
8292
8293 *)
8294 gl_cv_host_cpu_c_abi="$host_cpu"
8295 ;;
8296 esac
8297
8298 fi
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi" >&5
8300 printf "%s\n" "$gl_cv_host_cpu_c_abi" >&6; }
8301
8302 HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
8303 HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
8304
8305
8306
8307 # This was
8308 # AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
8309 # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
8310 # earlier, but KAI C++ 3.2d doesn't like this.
8311 sed -e 's/-/_/g' >> confdefs.h <<EOF
8312 #ifndef __${HOST_CPU}__
8313 #define __${HOST_CPU}__ 1
8314 #endif
8315 #ifndef __${HOST_CPU_C_ABI}__
8316 #define __${HOST_CPU_C_ABI}__ 1
8317 #endif
8318 EOF
8319
8320
8321
8322
8323
8324 case "$host_os" in
8325 mingw*)
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8327 printf %s "checking for 64-bit off_t... " >&6; }
8328 if test ${gl_cv_type_off_t_64+y}
8329 then :
8330 printf %s "(cached) " >&6
8331 else $as_nop
8332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8333 /* end confdefs.h. */
8334 #include <sys/types.h>
8335 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8336
8337 int
8338 main (void)
8339 {
8340
8341 ;
8342 return 0;
8343 }
8344 _ACEOF
8345 if ac_fn_c_try_compile "$LINENO"
8346 then :
8347 gl_cv_type_off_t_64=yes
8348 else $as_nop
8349 gl_cv_type_off_t_64=no
8350 fi
8351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8352
8353 fi
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8355 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
8356 if test $gl_cv_type_off_t_64 = no; then
8357 WINDOWS_64_BIT_OFF_T=1
8358 else
8359 WINDOWS_64_BIT_OFF_T=0
8360 fi
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
8362 printf %s "checking for 64-bit st_size... " >&6; }
8363 if test ${gl_cv_member_st_size_64+y}
8364 then :
8365 printf %s "(cached) " >&6
8366 else $as_nop
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369 #include <sys/types.h>
8370 struct stat buf;
8371 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
8372
8373 int
8374 main (void)
8375 {
8376
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 if ac_fn_c_try_compile "$LINENO"
8382 then :
8383 gl_cv_member_st_size_64=yes
8384 else $as_nop
8385 gl_cv_member_st_size_64=no
8386 fi
8387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8388
8389 fi
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
8391 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
8392 if test $gl_cv_member_st_size_64 = no; then
8393 WINDOWS_64_BIT_ST_SIZE=1
8394 else
8395 WINDOWS_64_BIT_ST_SIZE=0
8396 fi
8397 ;;
8398 *)
8399 WINDOWS_64_BIT_OFF_T=0
8400 WINDOWS_64_BIT_ST_SIZE=0
8401 ;;
8402 esac
8403
8404
8405
8406
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
8408 printf %s "checking for C compiler option to allow warnings... " >&6; }
8409 if test ${gl_cv_cc_wallow+y}
8410 then :
8411 printf %s "(cached) " >&6
8412 else $as_nop
8413 rm -f conftest*
8414 echo 'int dummy;' > conftest.c
8415 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
8416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8417 (eval $ac_try) 2>&5
8418 ac_status=$?
8419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8420 test $ac_status = 0; }; } >/dev/null
8421 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
8422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
8423 (eval $ac_try) 2>&5
8424 ac_status=$?
8425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8426 test $ac_status = 0; }; } >/dev/null
8427 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
8428 gl_cv_cc_wallow='-Wno-error'
8429 else
8430 gl_cv_cc_wallow=none
8431 fi
8432 rm -f conftest*
8433
8434 fi
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
8436 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
8437 case "$gl_cv_cc_wallow" in
8438 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
8439 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
8440 esac
8441
8442
8443
8444
8445 GL_CFLAG_GNULIB_WARNINGS=''
8446 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
8447 cat > conftest.c <<\EOF
8448 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
8449 -Wno-cast-qual
8450 -Wno-conversion
8451 -Wno-float-equal
8452 -Wno-sign-compare
8453 -Wno-undef
8454 -Wno-unused-function
8455 -Wno-unused-parameter
8456 #endif
8457 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
8458 -Wno-float-conversion
8459 #endif
8460 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
8461 -Wimplicit-fallthrough
8462 #endif
8463 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
8464 -Wno-pedantic
8465 #endif
8466 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
8467 -Wno-sign-conversion
8468 -Wno-type-limits
8469 #endif
8470 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
8471 -Wno-unsuffixed-float-constants
8472 #endif
8473 EOF
8474 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
8475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
8476 (eval $gl_command) 2>&5
8477 ac_status=$?
8478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8479 test $ac_status = 0; }; then
8480 gl_options=`grep -v '#' conftest.out`
8481 for word in $gl_options; do
8482 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
8483 done
8484 fi
8485 rm -f conftest.c conftest.out
8486 fi
8487
8488
8489
8490
8491 if false; then
8492 GL_COND_LIBTOOL_TRUE=
8493 GL_COND_LIBTOOL_FALSE='#'
8494 else
8495 GL_COND_LIBTOOL_TRUE='#'
8496 GL_COND_LIBTOOL_FALSE=
8497 fi
8498
8499 gl_cond_libtool=false
8500 gl_libdeps=
8501 gl_ltlibdeps=
8502 gl_m4_base='m4'
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515 gl_source_base='lib'
8516 gl_source_base_prefix=
8517
8518
8519 if test $ac_cv_func_alloca_works = no; then
8520 :
8521 fi
8522
8523 # Define an additional variable used in the Makefile substitution.
8524 if test $ac_cv_working_alloca_h = yes; then
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8526 printf %s "checking for alloca as a compiler built-in... " >&6; }
8527 if test ${gl_cv_rpl_alloca+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else $as_nop
8531
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8534
8535 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8536 Need own alloca
8537 #endif
8538
8539 _ACEOF
8540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8541 $EGREP "Need own alloca" >/dev/null 2>&1
8542 then :
8543 gl_cv_rpl_alloca=yes
8544 else $as_nop
8545 gl_cv_rpl_alloca=no
8546 fi
8547 rm -rf conftest*
8548
8549
8550 fi
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8552 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
8553 if test $gl_cv_rpl_alloca = yes; then
8554
8555 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8556
8557 GL_GENERATE_ALLOCA_H=true
8558 else
8559 GL_GENERATE_ALLOCA_H=false
8560 fi
8561 else
8562 GL_GENERATE_ALLOCA_H=true
8563 fi
8564
8565 if test $ac_cv_working_alloca_h = yes; then
8566 HAVE_ALLOCA_H=1
8567 else
8568 HAVE_ALLOCA_H=0
8569 fi
8570
8571
8572
8573
8574
8575
8576 case "$GL_GENERATE_ALLOCA_H" in
8577 false) ALLOCA_H='' ;;
8578 true)
8579 if test -z "$ALLOCA_H"; then
8580 ALLOCA_H="${gl_source_base_prefix}alloca.h"
8581 fi
8582 ;;
8583 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
8584 esac
8585
8586
8587 if $GL_GENERATE_ALLOCA_H; then
8588 GL_GENERATE_ALLOCA_H_TRUE=
8589 GL_GENERATE_ALLOCA_H_FALSE='#'
8590 else
8591 GL_GENERATE_ALLOCA_H_TRUE='#'
8592 GL_GENERATE_ALLOCA_H_FALSE=
8593 fi
8594 :
8595 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
8596 GL_GENERATE_ALLOCA_H_TRUE='#'
8597 GL_GENERATE_ALLOCA_H_FALSE='#'
8598 fi
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617 # Persuade glibc <stdlib.h> to declare getloadavg().
8618
8619
8620 gl_save_LIBS=$LIBS
8621
8622 # getloadavg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0,
8623 # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7.
8624 HAVE_GETLOADAVG=1
8625 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
8626 if test "x$ac_cv_func_getloadavg" = xyes
8627 then :
8628
8629 else $as_nop
8630 gl_func_getloadavg_done=no
8631
8632 # Some systems with -lutil have (and need) -lkvm as well, some do not.
8633 # On Solaris, -lkvm requires nlist from -lelf, so check that first
8634 # to get the right answer into the cache.
8635 # For kstat on solaris, we need to test for libelf and libkvm to force the
8636 # definition of SVR4 below.
8637 if test $gl_func_getloadavg_done = no; then
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
8639 printf %s "checking for elf_begin in -lelf... " >&6; }
8640 if test ${ac_cv_lib_elf_elf_begin+y}
8641 then :
8642 printf %s "(cached) " >&6
8643 else $as_nop
8644 ac_check_lib_save_LIBS=$LIBS
8645 LIBS="-lelf $LIBS"
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8652 char elf_begin ();
8653 int
8654 main (void)
8655 {
8656 return elf_begin ();
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"
8662 then :
8663 ac_cv_lib_elf_elf_begin=yes
8664 else $as_nop
8665 ac_cv_lib_elf_elf_begin=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8668 conftest$ac_exeext conftest.$ac_ext
8669 LIBS=$ac_check_lib_save_LIBS
8670 fi
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
8672 printf "%s\n" "$ac_cv_lib_elf_elf_begin" >&6; }
8673 if test "x$ac_cv_lib_elf_elf_begin" = xyes
8674 then :
8675 LIBS="-lelf $LIBS"
8676 fi
8677
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
8679 printf %s "checking for kvm_open in -lkvm... " >&6; }
8680 if test ${ac_cv_lib_kvm_kvm_open+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else $as_nop
8684 ac_check_lib_save_LIBS=$LIBS
8685 LIBS="-lkvm $LIBS"
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8688
8689 /* Override any GCC internal prototype to avoid an error.
8690 Use char because int might match the return type of a GCC
8691 builtin and then its argument prototype would still apply. */
8692 char kvm_open ();
8693 int
8694 main (void)
8695 {
8696 return kvm_open ();
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_c_try_link "$LINENO"
8702 then :
8703 ac_cv_lib_kvm_kvm_open=yes
8704 else $as_nop
8705 ac_cv_lib_kvm_kvm_open=no
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8708 conftest$ac_exeext conftest.$ac_ext
8709 LIBS=$ac_check_lib_save_LIBS
8710 fi
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
8712 printf "%s\n" "$ac_cv_lib_kvm_kvm_open" >&6; }
8713 if test "x$ac_cv_lib_kvm_kvm_open" = xyes
8714 then :
8715 LIBS="-lkvm $LIBS"
8716 fi
8717
8718 # Check for the 4.4BSD definition of getloadavg.
8719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
8720 printf %s "checking for getloadavg in -lutil... " >&6; }
8721 if test ${ac_cv_lib_util_getloadavg+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else $as_nop
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-lutil $LIBS"
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8729
8730 /* Override any GCC internal prototype to avoid an error.
8731 Use char because int might match the return type of a GCC
8732 builtin and then its argument prototype would still apply. */
8733 char getloadavg ();
8734 int
8735 main (void)
8736 {
8737 return getloadavg ();
8738 ;
8739 return 0;
8740 }
8741 _ACEOF
8742 if ac_fn_c_try_link "$LINENO"
8743 then :
8744 ac_cv_lib_util_getloadavg=yes
8745 else $as_nop
8746 ac_cv_lib_util_getloadavg=no
8747 fi
8748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8749 conftest$ac_exeext conftest.$ac_ext
8750 LIBS=$ac_check_lib_save_LIBS
8751 fi
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
8753 printf "%s\n" "$ac_cv_lib_util_getloadavg" >&6; }
8754 if test "x$ac_cv_lib_util_getloadavg" = xyes
8755 then :
8756 LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes
8757 fi
8758
8759 fi
8760
8761 if test $gl_func_getloadavg_done = no; then
8762 # There is a commonly available library for RS/6000 AIX.
8763 # Since it is not a standard part of AIX, it might be installed locally.
8764 gl_getloadavg_LIBS=$LIBS
8765 if test $cross_compiling != yes; then
8766 LIBS="-L/usr/local/lib $LIBS"
8767 fi
8768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
8769 printf %s "checking for getloadavg in -lgetloadavg... " >&6; }
8770 if test ${ac_cv_lib_getloadavg_getloadavg+y}
8771 then :
8772 printf %s "(cached) " >&6
8773 else $as_nop
8774 ac_check_lib_save_LIBS=$LIBS
8775 LIBS="-lgetloadavg $LIBS"
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h. */
8778
8779 /* Override any GCC internal prototype to avoid an error.
8780 Use char because int might match the return type of a GCC
8781 builtin and then its argument prototype would still apply. */
8782 char getloadavg ();
8783 int
8784 main (void)
8785 {
8786 return getloadavg ();
8787 ;
8788 return 0;
8789 }
8790 _ACEOF
8791 if ac_fn_c_try_link "$LINENO"
8792 then :
8793 ac_cv_lib_getloadavg_getloadavg=yes
8794 else $as_nop
8795 ac_cv_lib_getloadavg_getloadavg=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8800 fi
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
8802 printf "%s\n" "$ac_cv_lib_getloadavg_getloadavg" >&6; }
8803 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes
8804 then :
8805 LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes
8806 else $as_nop
8807 LIBS=$gl_getloadavg_LIBS
8808 fi
8809
8810 fi
8811
8812 # Set up the replacement function if necessary.
8813 if test $gl_func_getloadavg_done = no; then
8814 HAVE_GETLOADAVG=0
8815
8816 # Solaris has libkstat which does not require root.
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
8818 printf %s "checking for kstat_open in -lkstat... " >&6; }
8819 if test ${ac_cv_lib_kstat_kstat_open+y}
8820 then :
8821 printf %s "(cached) " >&6
8822 else $as_nop
8823 ac_check_lib_save_LIBS=$LIBS
8824 LIBS="-lkstat $LIBS"
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827
8828 /* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
8831 char kstat_open ();
8832 int
8833 main (void)
8834 {
8835 return kstat_open ();
8836 ;
8837 return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_c_try_link "$LINENO"
8841 then :
8842 ac_cv_lib_kstat_kstat_open=yes
8843 else $as_nop
8844 ac_cv_lib_kstat_kstat_open=no
8845 fi
8846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8849 fi
8850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
8851 printf "%s\n" "$ac_cv_lib_kstat_kstat_open" >&6; }
8852 if test "x$ac_cv_lib_kstat_kstat_open" = xyes
8853 then :
8854 printf "%s\n" "#define HAVE_LIBKSTAT 1" >>confdefs.h
8855
8856 LIBS="-lkstat $LIBS"
8857
8858 fi
8859
8860 test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes
8861
8862 # AIX has libperfstat which does not require root
8863 if test $gl_func_getloadavg_done = no; then
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
8865 printf %s "checking for perfstat_cpu_total in -lperfstat... " >&6; }
8866 if test ${ac_cv_lib_perfstat_perfstat_cpu_total+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else $as_nop
8870 ac_check_lib_save_LIBS=$LIBS
8871 LIBS="-lperfstat $LIBS"
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874
8875 /* Override any GCC internal prototype to avoid an error.
8876 Use char because int might match the return type of a GCC
8877 builtin and then its argument prototype would still apply. */
8878 char perfstat_cpu_total ();
8879 int
8880 main (void)
8881 {
8882 return perfstat_cpu_total ();
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"
8888 then :
8889 ac_cv_lib_perfstat_perfstat_cpu_total=yes
8890 else $as_nop
8891 ac_cv_lib_perfstat_perfstat_cpu_total=no
8892 fi
8893 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8894 conftest$ac_exeext conftest.$ac_ext
8895 LIBS=$ac_check_lib_save_LIBS
8896 fi
8897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
8898 printf "%s\n" "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
8899 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes
8900 then :
8901 printf "%s\n" "#define HAVE_LIBPERFSTAT 1" >>confdefs.h
8902
8903 LIBS="-lperfstat $LIBS"
8904
8905 fi
8906
8907 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes
8908 fi
8909
8910 if test $gl_func_getloadavg_done = no; then
8911 ac_fn_c_check_header_compile "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
8912 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes
8913 then :
8914 gl_func_getloadavg_done=yes
8915
8916 printf "%s\n" "#define DGUX 1" >>confdefs.h
8917
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
8919 printf %s "checking for dg_sys_info in -ldgc... " >&6; }
8920 if test ${ac_cv_lib_dgc_dg_sys_info+y}
8921 then :
8922 printf %s "(cached) " >&6
8923 else $as_nop
8924 ac_check_lib_save_LIBS=$LIBS
8925 LIBS="-ldgc $LIBS"
8926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928
8929 /* Override any GCC internal prototype to avoid an error.
8930 Use char because int might match the return type of a GCC
8931 builtin and then its argument prototype would still apply. */
8932 char dg_sys_info ();
8933 int
8934 main (void)
8935 {
8936 return dg_sys_info ();
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"
8942 then :
8943 ac_cv_lib_dgc_dg_sys_info=yes
8944 else $as_nop
8945 ac_cv_lib_dgc_dg_sys_info=no
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8948 conftest$ac_exeext conftest.$ac_ext
8949 LIBS=$ac_check_lib_save_LIBS
8950 fi
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
8952 printf "%s\n" "$ac_cv_lib_dgc_dg_sys_info" >&6; }
8953 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes
8954 then :
8955 printf "%s\n" "#define HAVE_LIBDGC 1" >>confdefs.h
8956
8957 LIBS="-ldgc $LIBS"
8958
8959 fi
8960
8961 fi
8962
8963 fi
8964 fi
8965 fi
8966
8967
8968 if test "x$gl_save_LIBS" = x; then
8969 GETLOADAVG_LIBS=$LIBS
8970 else
8971 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
8972 fi
8973 LIBS=$gl_save_LIBS
8974
8975
8976 # Test whether the system declares getloadavg. Solaris has the function
8977 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
8978 ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
8979 if test "x$ac_cv_header_sys_loadavg_h" = xyes
8980 then :
8981 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
8982
8983 fi
8984
8985 if test $ac_cv_header_sys_loadavg_h = yes; then
8986 HAVE_SYS_LOADAVG_H=1
8987 else
8988 HAVE_SYS_LOADAVG_H=0
8989 fi
8990 ac_fn_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
8991 /* OpenIndiana has a bug: <sys/time.h> must be included before
8992 <sys/loadavg.h>. */
8993 # include <sys/time.h>
8994 # include <sys/loadavg.h>
8995 #endif
8996 #include <stdlib.h>
8997 " "$ac_c_undeclared_builtin_options" "CFLAGS"
8998 if test "x$ac_cv_have_decl_getloadavg" = xyes
8999 then :
9000
9001 else $as_nop
9002 HAVE_DECL_GETLOADAVG=0
9003 fi
9004
9005
9006 if test $HAVE_GETLOADAVG = 0; then
9007 GL_COND_OBJ_GETLOADAVG_TRUE=
9008 GL_COND_OBJ_GETLOADAVG_FALSE='#'
9009 else
9010 GL_COND_OBJ_GETLOADAVG_TRUE='#'
9011 GL_COND_OBJ_GETLOADAVG_FALSE=
9012 fi
9013 :
9014 if test -z "${GL_COND_OBJ_GETLOADAVG_TRUE}" && test -z "${GL_COND_OBJ_GETLOADAVG_FALSE}"; then
9015 GL_COND_OBJ_GETLOADAVG_TRUE='#'
9016 GL_COND_OBJ_GETLOADAVG_FALSE='#'
9017 fi
9018
9019 if test -z "$GL_COND_OBJ_GETLOADAVG_TRUE"; then :
9020
9021
9022 # Figure out what our getloadavg.c needs.
9023
9024
9025
9026 # On HPUX9, an unprivileged user can get load averages this way.
9027 if test $gl_func_getloadavg_done = no; then
9028
9029 for ac_func in pstat_getdynamic
9030 do :
9031 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
9032 if test "x$ac_cv_func_pstat_getdynamic" = xyes
9033 then :
9034 printf "%s\n" "#define HAVE_PSTAT_GETDYNAMIC 1" >>confdefs.h
9035 gl_func_getloadavg_done=yes
9036 fi
9037
9038 done
9039 fi
9040
9041 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
9042 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
9043 # Irix 4.0.5F has the header but not the library.
9044 if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
9045 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
9046 gl_func_getloadavg_done=yes
9047
9048 printf "%s\n" "#define SVR4 1" >>confdefs.h
9049
9050 fi
9051
9052 if test $gl_func_getloadavg_done = no; then
9053 ac_fn_c_check_header_compile "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
9054 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes
9055 then :
9056 gl_func_getloadavg_done=yes
9057
9058 printf "%s\n" "#define UMAX 1" >>confdefs.h
9059
9060
9061 printf "%s\n" "#define UMAX4_3 1" >>confdefs.h
9062
9063 fi
9064
9065 fi
9066
9067 if test $gl_func_getloadavg_done = no; then
9068 ac_fn_c_check_header_compile "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
9069 if test "x$ac_cv_header_sys_cpustats_h" = xyes
9070 then :
9071 gl_func_getloadavg_done=yes; printf "%s\n" "#define UMAX 1" >>confdefs.h
9072
9073 fi
9074
9075 fi
9076
9077 if test $gl_func_getloadavg_done = no; then
9078 ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
9079 if test "x$ac_cv_header_mach_mach_h" = xyes
9080 then :
9081 printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h
9082
9083 fi
9084
9085 fi
9086
9087 for ac_header in nlist.h
9088 do :
9089 ac_fn_c_check_header_compile "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9090 if test "x$ac_cv_header_nlist_h" = xyes
9091 then :
9092 printf "%s\n" "#define HAVE_NLIST_H 1" >>confdefs.h
9093 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
9094 "
9095 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes
9096 then :
9097
9098 printf "%s\n" "#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1" >>confdefs.h
9099
9100
9101 fi
9102
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 #include <nlist.h>
9106 int
9107 main (void)
9108 {
9109 struct nlist x;
9110 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
9111 x.n_un.n_name = "";
9112 #else
9113 x.n_name = "";
9114 #endif
9115 ;
9116 return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_link "$LINENO"
9120 then :
9121
9122 printf "%s\n" "#define N_NAME_POINTER 1" >>confdefs.h
9123
9124 fi
9125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9126 conftest$ac_exeext conftest.$ac_ext
9127
9128 fi
9129
9130 done
9131
9132 fi
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 GL_GNULIB_GETLOADAVG=1
9143
9144
9145
9146
9147
9148 printf "%s\n" "#define GNULIB_TEST_GETLOADAVG 1" >>confdefs.h
9149
9150
9151
9152
9153
9154 # Check the system to see if it provides GNU glob. If not, use our
9155 # local version. Also avoid versions of glibc which have symlink bug
9156 # https://sourceware.org/bugzilla/show_bug.cgi?id=866 (test from gnulib)
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if system libc has working GNU glob" >&5
9158 printf %s "checking if system libc has working GNU glob... " >&6; }
9159 if test ${make_cv_sys_gnu_glob+y}
9160 then :
9161 printf %s "(cached) " >&6
9162 else $as_nop
9163
9164 if ln -s conf-doesntexist conf$$-globtest 2>/dev/null; then
9165 make_check_symlink=yes
9166 else
9167 make_check_symlink=no
9168 fi
9169 if test $cross_compiling = yes || test $make_check_symlink = no; then
9170 # When cross-compiling or without symlink support, check the version
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 #include <features.h>
9174 #include <gnu-versions.h>
9175 #include <glob.h>
9176 #include <fnmatch.h>
9177
9178 int
9179 main (void)
9180 {
9181
9182 #if _GNU_GLOB_INTERFACE_VERSION == 0
9183 GNU glob not available in libc
9184 #elif __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 27)
9185 GNU glob in libc has dangling symlink bug
9186 #endif
9187
9188 ;
9189 return 0;
9190 }
9191 _ACEOF
9192 if ac_fn_c_try_compile "$LINENO"
9193 then :
9194 make_cv_sys_gnu_glob=yes
9195 else $as_nop
9196 make_cv_sys_gnu_glob=no
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9199 else
9200 # Check for GNU glob, and that it handles dangling symlinks properly
9201 if test "$cross_compiling" = yes
9202 then :
9203 :
9204
9205 else $as_nop
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 #include <features.h>
9209 #include <gnu-versions.h>
9210 #include <glob.h>
9211 #include <fnmatch.h>
9212
9213 int
9214 main (void)
9215 {
9216
9217 #if _GNU_GLOB_INTERFACE_VERSION == 0
9218 return 1;
9219 #else
9220 glob_t found;
9221 if (glob ("conf*-globtest", 0, 0, &found) == GLOB_NOMATCH)
9222 return 1;
9223 globfree (&found);
9224 #endif
9225
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 if ac_fn_c_try_run "$LINENO"
9231 then :
9232 make_cv_sys_gnu_glob=yes
9233 else $as_nop
9234 make_cv_sys_gnu_glob=no
9235 fi
9236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9237 conftest.$ac_objext conftest.beam conftest.$ac_ext
9238 fi
9239
9240 fi
9241 test $make_check_symlink = no || rm -f conf$$-globtest
9242
9243 fi
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_gnu_glob" >&5
9245 printf "%s\n" "$make_cv_sys_gnu_glob" >&6; }
9246 # Tell automake about this, so it can build the right .c files.
9247 if test "$make_cv_sys_gnu_glob" = yes; then
9248 USE_SYSTEM_GLOB_TRUE=
9249 USE_SYSTEM_GLOB_FALSE='#'
9250 else
9251 USE_SYSTEM_GLOB_TRUE='#'
9252 USE_SYSTEM_GLOB_FALSE=
9253 fi
9254
9255 # Tell build.sh which to use
9256 USE_SYSTEM_GLOB="$make_cv_sys_gnu_glob"
9257
9258 # Check for DOS-style pathnames.
9259
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system uses MSDOS-style paths" >&5
9261 printf %s "checking whether system uses MSDOS-style paths... " >&6; }
9262 if test ${ac_cv_dos_paths+y}
9263 then :
9264 printf %s "(cached) " >&6
9265 else $as_nop
9266
9267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269
9270 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __EMX__ && !defined __MSYS__ && !defined __CYGWIN__
9271 neither MSDOS nor Windows nor OS2
9272 #endif
9273
9274 int
9275 main (void)
9276 {
9277
9278 ;
9279 return 0;
9280 }
9281 _ACEOF
9282 if ac_fn_c_try_compile "$LINENO"
9283 then :
9284 ac_cv_dos_paths=yes
9285 else $as_nop
9286 ac_cv_dos_paths=no
9287 fi
9288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9289 fi
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dos_paths" >&5
9291 printf "%s\n" "$ac_cv_dos_paths" >&6; }
9292
9293 if test x"$ac_cv_dos_paths" = xyes
9294 then :
9295
9296 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
9297
9298 fi
9299
9300
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
9302 printf %s "checking for bool, true, false... " >&6; }
9303 if test ${gl_cv_c_bool+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else $as_nop
9307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309
9310 #if true == false
9311 #error "true == false"
9312 #endif
9313 extern bool b;
9314 bool b = true == false;
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"
9317 then :
9318 gl_cv_c_bool=yes
9319 else $as_nop
9320 gl_cv_c_bool=no
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9323 fi
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
9325 printf "%s\n" "$gl_cv_c_bool" >&6; }
9326 if test "$gl_cv_c_bool" = yes; then
9327
9328 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
9329
9330 fi
9331
9332
9333
9334
9335
9336 # End of code from modules
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 gltests_libdeps=
9347 gltests_ltlibdeps=
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360 gl_source_base='tests'
9361 gl_source_base_prefix=
9362 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
9363
9364 gl_module_indicator_condition=$gltests_WITNESS
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377 LIBGNU_LIBDEPS="$gl_libdeps"
9378
9379 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
9380
9381
9382
9383
9384 if test -n "$ac_tool_prefix"; then
9385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9386 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388 printf %s "checking for $ac_word... " >&6; }
9389 if test ${ac_cv_prog_RANLIB+y}
9390 then :
9391 printf %s "(cached) " >&6
9392 else $as_nop
9393 if test -n "$RANLIB"; then
9394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9395 else
9396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397 for as_dir in $PATH
9398 do
9399 IFS=$as_save_IFS
9400 case $as_dir in #(((
9401 '') as_dir=./ ;;
9402 */) ;;
9403 *) as_dir=$as_dir/ ;;
9404 esac
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9409 break 2
9410 fi
9411 done
9412 done
9413 IFS=$as_save_IFS
9414
9415 fi
9416 fi
9417 RANLIB=$ac_cv_prog_RANLIB
9418 if test -n "$RANLIB"; then
9419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9420 printf "%s\n" "$RANLIB" >&6; }
9421 else
9422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 printf "%s\n" "no" >&6; }
9424 fi
9425
9426
9427 fi
9428 if test -z "$ac_cv_prog_RANLIB"; then
9429 ac_ct_RANLIB=$RANLIB
9430 # Extract the first word of "ranlib", so it can be a program name with args.
9431 set dummy ranlib; ac_word=$2
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 printf %s "checking for $ac_word... " >&6; }
9434 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9435 then :
9436 printf %s "(cached) " >&6
9437 else $as_nop
9438 if test -n "$ac_ct_RANLIB"; then
9439 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9440 else
9441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442 for as_dir in $PATH
9443 do
9444 IFS=$as_save_IFS
9445 case $as_dir in #(((
9446 '') as_dir=./ ;;
9447 */) ;;
9448 *) as_dir=$as_dir/ ;;
9449 esac
9450 for ac_exec_ext in '' $ac_executable_extensions; do
9451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9452 ac_cv_prog_ac_ct_RANLIB="ranlib"
9453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9454 break 2
9455 fi
9456 done
9457 done
9458 IFS=$as_save_IFS
9459
9460 fi
9461 fi
9462 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9463 if test -n "$ac_ct_RANLIB"; then
9464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9465 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9466 else
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 printf "%s\n" "no" >&6; }
9469 fi
9470
9471 if test "x$ac_ct_RANLIB" = x; then
9472 RANLIB=":"
9473 else
9474 case $cross_compiling:$ac_tool_warned in
9475 yes:)
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9477 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9478 ac_tool_warned=yes ;;
9479 esac
9480 RANLIB=$ac_ct_RANLIB
9481 fi
9482 else
9483 RANLIB="$ac_cv_prog_RANLIB"
9484 fi
9485
9486 ac_ext=c
9487 ac_cpp='$CPP $CPPFLAGS'
9488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9492 printf %s "checking how to run the C preprocessor... " >&6; }
9493 # On Suns, sometimes $CPP names a directory.
9494 if test -n "$CPP" && test -d "$CPP"; then
9495 CPP=
9496 fi
9497 if test -z "$CPP"; then
9498 if test ${ac_cv_prog_CPP+y}
9499 then :
9500 printf %s "(cached) " >&6
9501 else $as_nop
9502 # Double quotes because $CC needs to be expanded
9503 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
9504 do
9505 ac_preproc_ok=false
9506 for ac_c_preproc_warn_flag in '' yes
9507 do
9508 # Use a header file that comes with gcc, so configuring glibc
9509 # with a fresh cross-compiler works.
9510 # On the NeXT, cc -E runs the code through the compiler's parser,
9511 # not just through cpp. "Syntax error" is here to catch this case.
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514 #include <limits.h>
9515 Syntax error
9516 _ACEOF
9517 if ac_fn_c_try_cpp "$LINENO"
9518 then :
9519
9520 else $as_nop
9521 # Broken: fails on valid input.
9522 continue
9523 fi
9524 rm -f conftest.err conftest.i conftest.$ac_ext
9525
9526 # OK, works on sane cases. Now check whether nonexistent headers
9527 # can be detected and how.
9528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h. */
9530 #include <ac_nonexistent.h>
9531 _ACEOF
9532 if ac_fn_c_try_cpp "$LINENO"
9533 then :
9534 # Broken: success on invalid input.
9535 continue
9536 else $as_nop
9537 # Passes both tests.
9538 ac_preproc_ok=:
9539 break
9540 fi
9541 rm -f conftest.err conftest.i conftest.$ac_ext
9542
9543 done
9544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9545 rm -f conftest.i conftest.err conftest.$ac_ext
9546 if $ac_preproc_ok
9547 then :
9548 break
9549 fi
9550
9551 done
9552 ac_cv_prog_CPP=$CPP
9553
9554 fi
9555 CPP=$ac_cv_prog_CPP
9556 else
9557 ac_cv_prog_CPP=$CPP
9558 fi
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9560 printf "%s\n" "$CPP" >&6; }
9561 ac_preproc_ok=false
9562 for ac_c_preproc_warn_flag in '' yes
9563 do
9564 # Use a header file that comes with gcc, so configuring glibc
9565 # with a fresh cross-compiler works.
9566 # On the NeXT, cc -E runs the code through the compiler's parser,
9567 # not just through cpp. "Syntax error" is here to catch this case.
9568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569 /* end confdefs.h. */
9570 #include <limits.h>
9571 Syntax error
9572 _ACEOF
9573 if ac_fn_c_try_cpp "$LINENO"
9574 then :
9575
9576 else $as_nop
9577 # Broken: fails on valid input.
9578 continue
9579 fi
9580 rm -f conftest.err conftest.i conftest.$ac_ext
9581
9582 # OK, works on sane cases. Now check whether nonexistent headers
9583 # can be detected and how.
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 #include <ac_nonexistent.h>
9587 _ACEOF
9588 if ac_fn_c_try_cpp "$LINENO"
9589 then :
9590 # Broken: success on invalid input.
9591 continue
9592 else $as_nop
9593 # Passes both tests.
9594 ac_preproc_ok=:
9595 break
9596 fi
9597 rm -f conftest.err conftest.i conftest.$ac_ext
9598
9599 done
9600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9601 rm -f conftest.i conftest.err conftest.$ac_ext
9602 if $ac_preproc_ok
9603 then :
9604
9605 else $as_nop
9606 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9607 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9608 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9609 See \`config.log' for more details" "$LINENO" 5; }
9610 fi
9611
9612 ac_ext=c
9613 ac_cpp='$CPP $CPPFLAGS'
9614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9617
9618 # Extract the first word of "ar", so it can be a program name with args.
9619 set dummy ar; ac_word=$2
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621 printf %s "checking for $ac_word... " >&6; }
9622 if test ${ac_cv_prog_AR+y}
9623 then :
9624 printf %s "(cached) " >&6
9625 else $as_nop
9626 if test -n "$AR"; then
9627 ac_cv_prog_AR="$AR" # Let the user override the test.
9628 else
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 for as_dir in $PATH
9631 do
9632 IFS=$as_save_IFS
9633 case $as_dir in #(((
9634 '') as_dir=./ ;;
9635 */) ;;
9636 *) as_dir=$as_dir/ ;;
9637 esac
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9640 ac_cv_prog_AR="ar"
9641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9642 break 2
9643 fi
9644 done
9645 done
9646 IFS=$as_save_IFS
9647
9648 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9649 fi
9650 fi
9651 AR=$ac_cv_prog_AR
9652 if test -n "$AR"; then
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9654 printf "%s\n" "$AR" >&6; }
9655 else
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657 printf "%s\n" "no" >&6; }
9658 fi
9659
9660
9661 # Perl is needed for the test suite (only)
9662 # Extract the first word of "perl", so it can be a program name with args.
9663 set dummy perl; ac_word=$2
9664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9665 printf %s "checking for $ac_word... " >&6; }
9666 if test ${ac_cv_prog_PERL+y}
9667 then :
9668 printf %s "(cached) " >&6
9669 else $as_nop
9670 if test -n "$PERL"; then
9671 ac_cv_prog_PERL="$PERL" # Let the user override the test.
9672 else
9673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9674 for as_dir in $PATH
9675 do
9676 IFS=$as_save_IFS
9677 case $as_dir in #(((
9678 '') as_dir=./ ;;
9679 */) ;;
9680 *) as_dir=$as_dir/ ;;
9681 esac
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9684 ac_cv_prog_PERL="perl"
9685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9686 break 2
9687 fi
9688 done
9689 done
9690 IFS=$as_save_IFS
9691
9692 test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="perl"
9693 fi
9694 fi
9695 PERL=$ac_cv_prog_PERL
9696 if test -n "$PERL"; then
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
9698 printf "%s\n" "$PERL" >&6; }
9699 else
9700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701 printf "%s\n" "no" >&6; }
9702 fi
9703
9704
9705
9706 # Specialized system macros
9707
9708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9709 printf %s "checking whether byte ordering is bigendian... " >&6; }
9710 if test ${ac_cv_c_bigendian+y}
9711 then :
9712 printf %s "(cached) " >&6
9713 else $as_nop
9714 ac_cv_c_bigendian=unknown
9715 # See if we're dealing with a universal compiler.
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 #ifndef __APPLE_CC__
9719 not a universal capable compiler
9720 #endif
9721 typedef int dummy;
9722
9723 _ACEOF
9724 if ac_fn_c_try_compile "$LINENO"
9725 then :
9726
9727 # Check for potential -arch flags. It is not universal unless
9728 # there are at least two -arch flags with different values.
9729 ac_arch=
9730 ac_prev=
9731 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9732 if test -n "$ac_prev"; then
9733 case $ac_word in
9734 i?86 | x86_64 | ppc | ppc64)
9735 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9736 ac_arch=$ac_word
9737 else
9738 ac_cv_c_bigendian=universal
9739 break
9740 fi
9741 ;;
9742 esac
9743 ac_prev=
9744 elif test "x$ac_word" = "x-arch"; then
9745 ac_prev=arch
9746 fi
9747 done
9748 fi
9749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9750 if test $ac_cv_c_bigendian = unknown; then
9751 # See if sys/param.h defines the BYTE_ORDER macro.
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 #include <sys/types.h>
9755 #include <sys/param.h>
9756
9757 int
9758 main (void)
9759 {
9760 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9761 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9762 && LITTLE_ENDIAN)
9763 bogus endian macros
9764 #endif
9765
9766 ;
9767 return 0;
9768 }
9769 _ACEOF
9770 if ac_fn_c_try_compile "$LINENO"
9771 then :
9772 # It does; now see whether it defined to BIG_ENDIAN or not.
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <sys/types.h>
9776 #include <sys/param.h>
9777
9778 int
9779 main (void)
9780 {
9781 #if BYTE_ORDER != BIG_ENDIAN
9782 not big endian
9783 #endif
9784
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_compile "$LINENO"
9790 then :
9791 ac_cv_c_bigendian=yes
9792 else $as_nop
9793 ac_cv_c_bigendian=no
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9796 fi
9797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9798 fi
9799 if test $ac_cv_c_bigendian = unknown; then
9800 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 #include <limits.h>
9804
9805 int
9806 main (void)
9807 {
9808 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9809 bogus endian macros
9810 #endif
9811
9812 ;
9813 return 0;
9814 }
9815 _ACEOF
9816 if ac_fn_c_try_compile "$LINENO"
9817 then :
9818 # It does; now see whether it defined to _BIG_ENDIAN or not.
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9821 #include <limits.h>
9822
9823 int
9824 main (void)
9825 {
9826 #ifndef _BIG_ENDIAN
9827 not big endian
9828 #endif
9829
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 if ac_fn_c_try_compile "$LINENO"
9835 then :
9836 ac_cv_c_bigendian=yes
9837 else $as_nop
9838 ac_cv_c_bigendian=no
9839 fi
9840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9841 fi
9842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9843 fi
9844 if test $ac_cv_c_bigendian = unknown; then
9845 # Compile a test program.
9846 if test "$cross_compiling" = yes
9847 then :
9848 # Try to guess by grepping values from an object file.
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 unsigned short int ascii_mm[] =
9852 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9853 unsigned short int ascii_ii[] =
9854 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9855 int use_ascii (int i) {
9856 return ascii_mm[i] + ascii_ii[i];
9857 }
9858 unsigned short int ebcdic_ii[] =
9859 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9860 unsigned short int ebcdic_mm[] =
9861 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9862 int use_ebcdic (int i) {
9863 return ebcdic_mm[i] + ebcdic_ii[i];
9864 }
9865 extern int foo;
9866
9867 int
9868 main (void)
9869 {
9870 return use_ascii (foo) == use_ebcdic (foo);
9871 ;
9872 return 0;
9873 }
9874 _ACEOF
9875 if ac_fn_c_try_compile "$LINENO"
9876 then :
9877 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9878 ac_cv_c_bigendian=yes
9879 fi
9880 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9881 if test "$ac_cv_c_bigendian" = unknown; then
9882 ac_cv_c_bigendian=no
9883 else
9884 # finding both strings is unlikely to happen, but who knows?
9885 ac_cv_c_bigendian=unknown
9886 fi
9887 fi
9888 fi
9889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9890 else $as_nop
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 $ac_includes_default
9894 int
9895 main (void)
9896 {
9897
9898 /* Are we little or big endian? From Harbison&Steele. */
9899 union
9900 {
9901 long int l;
9902 char c[sizeof (long int)];
9903 } u;
9904 u.l = 1;
9905 return u.c[sizeof (long int) - 1] == 1;
9906
9907 ;
9908 return 0;
9909 }
9910 _ACEOF
9911 if ac_fn_c_try_run "$LINENO"
9912 then :
9913 ac_cv_c_bigendian=no
9914 else $as_nop
9915 ac_cv_c_bigendian=yes
9916 fi
9917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9918 conftest.$ac_objext conftest.beam conftest.$ac_ext
9919 fi
9920
9921 fi
9922 fi
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9924 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
9925 case $ac_cv_c_bigendian in #(
9926 yes)
9927 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
9928 ;; #(
9929 no)
9930 ;; #(
9931 universal)
9932
9933 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9934
9935 ;; #(
9936 *)
9937 as_fn_error $? "unknown endianness
9938 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9939 esac
9940
9941
9942 # Enable gettext, in "external" mode.
9943
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9945 printf %s "checking for a sed that does not truncate output... " >&6; }
9946 if test ${ac_cv_path_SED+y}
9947 then :
9948 printf %s "(cached) " >&6
9949 else $as_nop
9950 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9951 for ac_i in 1 2 3 4 5 6 7; do
9952 ac_script="$ac_script$as_nl$ac_script"
9953 done
9954 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9955 { ac_script=; unset ac_script;}
9956 if test -z "$SED"; then
9957 ac_path_SED_found=false
9958 # Loop through the user's path and test for each of PROGNAME-LIST
9959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9961 do
9962 IFS=$as_save_IFS
9963 case $as_dir in #(((
9964 '') as_dir=./ ;;
9965 */) ;;
9966 *) as_dir=$as_dir/ ;;
9967 esac
9968 for ac_prog in sed gsed
9969 do
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
9972 as_fn_executable_p "$ac_path_SED" || continue
9973 # Check for GNU ac_path_SED and select it if it is found.
9974 # Check for GNU $ac_path_SED
9975 case `"$ac_path_SED" --version 2>&1` in
9976 *GNU*)
9977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9978 *)
9979 ac_count=0
9980 printf %s 0123456789 >"conftest.in"
9981 while :
9982 do
9983 cat "conftest.in" "conftest.in" >"conftest.tmp"
9984 mv "conftest.tmp" "conftest.in"
9985 cp "conftest.in" "conftest.nl"
9986 printf "%s\n" '' >> "conftest.nl"
9987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9989 as_fn_arith $ac_count + 1 && ac_count=$as_val
9990 if test $ac_count -gt ${ac_path_SED_max-0}; then
9991 # Best one so far, save it but keep looking for a better one
9992 ac_cv_path_SED="$ac_path_SED"
9993 ac_path_SED_max=$ac_count
9994 fi
9995 # 10*(2^10) chars as input seems more than enough
9996 test $ac_count -gt 10 && break
9997 done
9998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9999 esac
10000
10001 $ac_path_SED_found && break 3
10002 done
10003 done
10004 done
10005 IFS=$as_save_IFS
10006 if test -z "$ac_cv_path_SED"; then
10007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10008 fi
10009 else
10010 ac_cv_path_SED=$SED
10011 fi
10012
10013 fi
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10015 printf "%s\n" "$ac_cv_path_SED" >&6; }
10016 SED="$ac_cv_path_SED"
10017 rm -f conftest.sed
10018
10019
10020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10021 printf %s "checking whether NLS is requested... " >&6; }
10022 # Check whether --enable-nls was given.
10023 if test ${enable_nls+y}
10024 then :
10025 enableval=$enable_nls; USE_NLS=$enableval
10026 else $as_nop
10027 USE_NLS=yes
10028 fi
10029
10030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10031 printf "%s\n" "$USE_NLS" >&6; }
10032
10033
10034
10035
10036 GETTEXT_MACRO_VERSION=0.19
10037
10038
10039
10040
10041 # Prepare PATH_SEPARATOR.
10042 # The user is always right.
10043 if test "${PATH_SEPARATOR+set}" != set; then
10044 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10045 # contains only /bin. Note that ksh looks also at the FPATH variable,
10046 # so we have to set that as well for the test.
10047 PATH_SEPARATOR=:
10048 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10049 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10050 || PATH_SEPARATOR=';'
10051 }
10052 fi
10053
10054 # Find out how to test for executable files. Don't use a zero-byte file,
10055 # as systems may use methods other than mode bits to determine executability.
10056 cat >conf$$.file <<_ASEOF
10057 #! /bin/sh
10058 exit 0
10059 _ASEOF
10060 chmod +x conf$$.file
10061 if test -x conf$$.file >/dev/null 2>&1; then
10062 ac_executable_p="test -x"
10063 else
10064 ac_executable_p="test -f"
10065 fi
10066 rm -f conf$$.file
10067
10068 # Extract the first word of "msgfmt", so it can be a program name with args.
10069 set dummy msgfmt; ac_word=$2
10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 printf %s "checking for $ac_word... " >&6; }
10072 if test ${ac_cv_path_MSGFMT+y}
10073 then :
10074 printf %s "(cached) " >&6
10075 else $as_nop
10076 case "$MSGFMT" in
10077 [\\/]* | ?:[\\/]*)
10078 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10079 ;;
10080 *)
10081 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10082 for ac_dir in $PATH; do
10083 IFS="$ac_save_IFS"
10084 test -z "$ac_dir" && ac_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10087 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10088 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10089 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10090 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10091 break 2
10092 fi
10093 fi
10094 done
10095 done
10096 IFS="$ac_save_IFS"
10097 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10098 ;;
10099 esac
10100 fi
10101 MSGFMT="$ac_cv_path_MSGFMT"
10102 if test "$MSGFMT" != ":"; then
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10104 printf "%s\n" "$MSGFMT" >&6; }
10105 else
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107 printf "%s\n" "no" >&6; }
10108 fi
10109
10110 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10111 set dummy gmsgfmt; ac_word=$2
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 printf %s "checking for $ac_word... " >&6; }
10114 if test ${ac_cv_path_GMSGFMT+y}
10115 then :
10116 printf %s "(cached) " >&6
10117 else $as_nop
10118 case $GMSGFMT in
10119 [\\/]* | ?:[\\/]*)
10120 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10121 ;;
10122 *)
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10125 do
10126 IFS=$as_save_IFS
10127 case $as_dir in #(((
10128 '') as_dir=./ ;;
10129 */) ;;
10130 *) as_dir=$as_dir/ ;;
10131 esac
10132 for ac_exec_ext in '' $ac_executable_extensions; do
10133 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10134 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
10135 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10136 break 2
10137 fi
10138 done
10139 done
10140 IFS=$as_save_IFS
10141
10142 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10143 ;;
10144 esac
10145 fi
10146 GMSGFMT=$ac_cv_path_GMSGFMT
10147 if test -n "$GMSGFMT"; then
10148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10149 printf "%s\n" "$GMSGFMT" >&6; }
10150 else
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 printf "%s\n" "no" >&6; }
10153 fi
10154
10155
10156
10157 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10158 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10159 *) MSGFMT_015=$MSGFMT ;;
10160 esac
10161
10162 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10163 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10164 *) GMSGFMT_015=$GMSGFMT ;;
10165 esac
10166
10167
10168
10169 # Prepare PATH_SEPARATOR.
10170 # The user is always right.
10171 if test "${PATH_SEPARATOR+set}" != set; then
10172 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10173 # contains only /bin. Note that ksh looks also at the FPATH variable,
10174 # so we have to set that as well for the test.
10175 PATH_SEPARATOR=:
10176 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10177 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10178 || PATH_SEPARATOR=';'
10179 }
10180 fi
10181
10182 # Find out how to test for executable files. Don't use a zero-byte file,
10183 # as systems may use methods other than mode bits to determine executability.
10184 cat >conf$$.file <<_ASEOF
10185 #! /bin/sh
10186 exit 0
10187 _ASEOF
10188 chmod +x conf$$.file
10189 if test -x conf$$.file >/dev/null 2>&1; then
10190 ac_executable_p="test -x"
10191 else
10192 ac_executable_p="test -f"
10193 fi
10194 rm -f conf$$.file
10195
10196 # Extract the first word of "xgettext", so it can be a program name with args.
10197 set dummy xgettext; ac_word=$2
10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10199 printf %s "checking for $ac_word... " >&6; }
10200 if test ${ac_cv_path_XGETTEXT+y}
10201 then :
10202 printf %s "(cached) " >&6
10203 else $as_nop
10204 case "$XGETTEXT" in
10205 [\\/]* | ?:[\\/]*)
10206 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10207 ;;
10208 *)
10209 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10210 for ac_dir in $PATH; do
10211 IFS="$ac_save_IFS"
10212 test -z "$ac_dir" && ac_dir=.
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10215 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10216 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10217 (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
10218 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10219 break 2
10220 fi
10221 fi
10222 done
10223 done
10224 IFS="$ac_save_IFS"
10225 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10226 ;;
10227 esac
10228 fi
10229 XGETTEXT="$ac_cv_path_XGETTEXT"
10230 if test "$XGETTEXT" != ":"; then
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10232 printf "%s\n" "$XGETTEXT" >&6; }
10233 else
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 printf "%s\n" "no" >&6; }
10236 fi
10237
10238 rm -f messages.po
10239
10240 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10241 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10242 *) XGETTEXT_015=$XGETTEXT ;;
10243 esac
10244
10245
10246
10247 # Prepare PATH_SEPARATOR.
10248 # The user is always right.
10249 if test "${PATH_SEPARATOR+set}" != set; then
10250 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10251 # contains only /bin. Note that ksh looks also at the FPATH variable,
10252 # so we have to set that as well for the test.
10253 PATH_SEPARATOR=:
10254 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10255 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10256 || PATH_SEPARATOR=';'
10257 }
10258 fi
10259
10260 # Find out how to test for executable files. Don't use a zero-byte file,
10261 # as systems may use methods other than mode bits to determine executability.
10262 cat >conf$$.file <<_ASEOF
10263 #! /bin/sh
10264 exit 0
10265 _ASEOF
10266 chmod +x conf$$.file
10267 if test -x conf$$.file >/dev/null 2>&1; then
10268 ac_executable_p="test -x"
10269 else
10270 ac_executable_p="test -f"
10271 fi
10272 rm -f conf$$.file
10273
10274 # Extract the first word of "msgmerge", so it can be a program name with args.
10275 set dummy msgmerge; ac_word=$2
10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10277 printf %s "checking for $ac_word... " >&6; }
10278 if test ${ac_cv_path_MSGMERGE+y}
10279 then :
10280 printf %s "(cached) " >&6
10281 else $as_nop
10282 case "$MSGMERGE" in
10283 [\\/]* | ?:[\\/]*)
10284 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10285 ;;
10286 *)
10287 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10288 for ac_dir in $PATH; do
10289 IFS="$ac_save_IFS"
10290 test -z "$ac_dir" && ac_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10293 echo "$as_me: trying $ac_dir/$ac_word..." >&5
10294 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10295 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10296 break 2
10297 fi
10298 fi
10299 done
10300 done
10301 IFS="$ac_save_IFS"
10302 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10303 ;;
10304 esac
10305 fi
10306 MSGMERGE="$ac_cv_path_MSGMERGE"
10307 if test "$MSGMERGE" != ":"; then
10308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10309 printf "%s\n" "$MSGMERGE" >&6; }
10310 else
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 printf "%s\n" "no" >&6; }
10313 fi
10314
10315
10316 test -n "$localedir" || localedir='${datadir}/locale'
10317
10318
10319 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
10320
10321
10322 ac_config_commands="$ac_config_commands po-directories"
10323
10324
10325
10326 if test "X$prefix" = "XNONE"; then
10327 acl_final_prefix="$ac_default_prefix"
10328 else
10329 acl_final_prefix="$prefix"
10330 fi
10331 if test "X$exec_prefix" = "XNONE"; then
10332 acl_final_exec_prefix='${prefix}'
10333 else
10334 acl_final_exec_prefix="$exec_prefix"
10335 fi
10336 acl_save_prefix="$prefix"
10337 prefix="$acl_final_prefix"
10338 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10339 prefix="$acl_save_prefix"
10340
10341
10342
10343 # Check whether --with-gnu-ld was given.
10344 if test ${with_gnu_ld+y}
10345 then :
10346 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10347 else $as_nop
10348 with_gnu_ld=no
10349 fi
10350
10351 # Prepare PATH_SEPARATOR.
10352 # The user is always right.
10353 if test "${PATH_SEPARATOR+set}" != set; then
10354 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
10355 # contains only /bin. Note that ksh looks also at the FPATH variable,
10356 # so we have to set that as well for the test.
10357 PATH_SEPARATOR=:
10358 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10359 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
10360 || PATH_SEPARATOR=';'
10361 }
10362 fi
10363
10364 ac_prog=ld
10365 if test "$GCC" = yes; then
10366 # Check if gcc -print-prog-name=ld gives a path.
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10368 printf %s "checking for ld used by $CC... " >&6; }
10369 case $host in
10370 *-*-mingw*)
10371 # gcc leaves a trailing carriage return which upsets mingw
10372 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10373 *)
10374 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10375 esac
10376 case $ac_prog in
10377 # Accept absolute paths.
10378 [\\/]* | ?:[\\/]*)
10379 re_direlt='/[^/][^/]*/\.\./'
10380 # Canonicalize the pathname of ld
10381 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
10382 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
10383 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10384 done
10385 test -z "$LD" && LD="$ac_prog"
10386 ;;
10387 "")
10388 # If it fails, then pretend we aren't using GCC.
10389 ac_prog=ld
10390 ;;
10391 *)
10392 # If it is relative, then search for the first ld in PATH.
10393 with_gnu_ld=unknown
10394 ;;
10395 esac
10396 elif test "$with_gnu_ld" = yes; then
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10398 printf %s "checking for GNU ld... " >&6; }
10399 else
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10401 printf %s "checking for non-GNU ld... " >&6; }
10402 fi
10403 if test ${acl_cv_path_LD+y}
10404 then :
10405 printf %s "(cached) " >&6
10406 else $as_nop
10407 if test -z "$LD"; then
10408 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10409 for ac_dir in $PATH; do
10410 IFS="$acl_save_ifs"
10411 test -z "$ac_dir" && ac_dir=.
10412 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10413 acl_cv_path_LD="$ac_dir/$ac_prog"
10414 # Check to see if the program is GNU ld. I'd rather use --version,
10415 # but apparently some variants of GNU ld only accept -v.
10416 # Break only if it was the GNU/non-GNU ld that we prefer.
10417 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
10418 *GNU* | *'with BFD'*)
10419 test "$with_gnu_ld" != no && break
10420 ;;
10421 *)
10422 test "$with_gnu_ld" != yes && break
10423 ;;
10424 esac
10425 fi
10426 done
10427 IFS="$acl_save_ifs"
10428 else
10429 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10430 fi
10431 fi
10432
10433 LD="$acl_cv_path_LD"
10434 if test -n "$LD"; then
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10436 printf "%s\n" "$LD" >&6; }
10437 else
10438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 printf "%s\n" "no" >&6; }
10440 fi
10441 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10443 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
10444 if test ${acl_cv_prog_gnu_ld+y}
10445 then :
10446 printf %s "(cached) " >&6
10447 else $as_nop
10448 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10449 case `$LD -v 2>&1 </dev/null` in
10450 *GNU* | *'with BFD'*)
10451 acl_cv_prog_gnu_ld=yes
10452 ;;
10453 *)
10454 acl_cv_prog_gnu_ld=no
10455 ;;
10456 esac
10457 fi
10458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10459 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
10460 with_gnu_ld=$acl_cv_prog_gnu_ld
10461
10462
10463
10464
10465
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10467 printf %s "checking for shared library run path origin... " >&6; }
10468 if test ${acl_cv_rpath+y}
10469 then :
10470 printf %s "(cached) " >&6
10471 else $as_nop
10472
10473 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10474 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10475 . ./conftest.sh
10476 rm -f ./conftest.sh
10477 acl_cv_rpath=done
10478
10479 fi
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10481 printf "%s\n" "$acl_cv_rpath" >&6; }
10482 wl="$acl_cv_wl"
10483 acl_libext="$acl_cv_libext"
10484 acl_shlibext="$acl_cv_shlibext"
10485 acl_libname_spec="$acl_cv_libname_spec"
10486 acl_library_names_spec="$acl_cv_library_names_spec"
10487 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10488 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10489 acl_hardcode_direct="$acl_cv_hardcode_direct"
10490 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
10491 # Check whether --enable-rpath was given.
10492 if test ${enable_rpath+y}
10493 then :
10494 enableval=$enable_rpath; :
10495 else $as_nop
10496 enable_rpath=yes
10497 fi
10498
10499
10500
10501
10502 acl_libdirstem=lib
10503 acl_libdirstem2=
10504 case "$host_os" in
10505 solaris*)
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
10507 printf %s "checking for 64-bit host... " >&6; }
10508 if test ${gl_cv_solaris_64bit+y}
10509 then :
10510 printf %s "(cached) " >&6
10511 else $as_nop
10512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10513 /* end confdefs.h. */
10514
10515 #ifdef _LP64
10516 sixtyfour bits
10517 #endif
10518
10519 _ACEOF
10520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10521 $EGREP "sixtyfour bits" >/dev/null 2>&1
10522 then :
10523 gl_cv_solaris_64bit=yes
10524 else $as_nop
10525 gl_cv_solaris_64bit=no
10526 fi
10527 rm -rf conftest*
10528
10529
10530 fi
10531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
10532 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
10533 if test $gl_cv_solaris_64bit = yes; then
10534 acl_libdirstem=lib/64
10535 case "$host_cpu" in
10536 sparc*) acl_libdirstem2=lib/sparcv9 ;;
10537 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
10538 esac
10539 fi
10540 ;;
10541 *)
10542 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
10543 if test -n "$searchpath"; then
10544 acl_save_IFS="${IFS= }"; IFS=":"
10545 for searchdir in $searchpath; do
10546 if test -d "$searchdir"; then
10547 case "$searchdir" in
10548 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
10549 */../ | */.. )
10550 # Better ignore directories of this form. They are misleading.
10551 ;;
10552 *) searchdir=`cd "$searchdir" && pwd`
10553 case "$searchdir" in
10554 */lib64 ) acl_libdirstem=lib64 ;;
10555 esac ;;
10556 esac
10557 fi
10558 done
10559 IFS="$acl_save_IFS"
10560 fi
10561 ;;
10562 esac
10563 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576 use_additional=yes
10577
10578 acl_save_prefix="$prefix"
10579 prefix="$acl_final_prefix"
10580 acl_save_exec_prefix="$exec_prefix"
10581 exec_prefix="$acl_final_exec_prefix"
10582
10583 eval additional_includedir=\"$includedir\"
10584 eval additional_libdir=\"$libdir\"
10585
10586 exec_prefix="$acl_save_exec_prefix"
10587 prefix="$acl_save_prefix"
10588
10589
10590 # Check whether --with-libiconv-prefix was given.
10591 if test ${with_libiconv_prefix+y}
10592 then :
10593 withval=$with_libiconv_prefix;
10594 if test "X$withval" = "Xno"; then
10595 use_additional=no
10596 else
10597 if test "X$withval" = "X"; then
10598
10599 acl_save_prefix="$prefix"
10600 prefix="$acl_final_prefix"
10601 acl_save_exec_prefix="$exec_prefix"
10602 exec_prefix="$acl_final_exec_prefix"
10603
10604 eval additional_includedir=\"$includedir\"
10605 eval additional_libdir=\"$libdir\"
10606
10607 exec_prefix="$acl_save_exec_prefix"
10608 prefix="$acl_save_prefix"
10609
10610 else
10611 additional_includedir="$withval/include"
10612 additional_libdir="$withval/$acl_libdirstem"
10613 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10614 && ! test -d "$withval/$acl_libdirstem"; then
10615 additional_libdir="$withval/$acl_libdirstem2"
10616 fi
10617 fi
10618 fi
10619
10620 fi
10621
10622 LIBICONV=
10623 LTLIBICONV=
10624 INCICONV=
10625 LIBICONV_PREFIX=
10626 HAVE_LIBICONV=
10627 rpathdirs=
10628 ltrpathdirs=
10629 names_already_handled=
10630 names_next_round='iconv '
10631 while test -n "$names_next_round"; do
10632 names_this_round="$names_next_round"
10633 names_next_round=
10634 for name in $names_this_round; do
10635 already_handled=
10636 for n in $names_already_handled; do
10637 if test "$n" = "$name"; then
10638 already_handled=yes
10639 break
10640 fi
10641 done
10642 if test -z "$already_handled"; then
10643 names_already_handled="$names_already_handled $name"
10644 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
10645 eval value=\"\$HAVE_LIB$uppername\"
10646 if test -n "$value"; then
10647 if test "$value" = yes; then
10648 eval value=\"\$LIB$uppername\"
10649 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10650 eval value=\"\$LTLIB$uppername\"
10651 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10652 else
10653 :
10654 fi
10655 else
10656 found_dir=
10657 found_la=
10658 found_so=
10659 found_a=
10660 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10661 if test -n "$acl_shlibext"; then
10662 shrext=".$acl_shlibext" # typically: shrext=.so
10663 else
10664 shrext=
10665 fi
10666 if test $use_additional = yes; then
10667 dir="$additional_libdir"
10668 if test -n "$acl_shlibext"; then
10669 if test -f "$dir/$libname$shrext"; then
10670 found_dir="$dir"
10671 found_so="$dir/$libname$shrext"
10672 else
10673 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10674 ver=`(cd "$dir" && \
10675 for f in "$libname$shrext".*; do echo "$f"; done \
10676 | sed -e "s,^$libname$shrext\\\\.,," \
10677 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10678 | sed 1q ) 2>/dev/null`
10679 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10680 found_dir="$dir"
10681 found_so="$dir/$libname$shrext.$ver"
10682 fi
10683 else
10684 eval library_names=\"$acl_library_names_spec\"
10685 for f in $library_names; do
10686 if test -f "$dir/$f"; then
10687 found_dir="$dir"
10688 found_so="$dir/$f"
10689 break
10690 fi
10691 done
10692 fi
10693 fi
10694 fi
10695 if test "X$found_dir" = "X"; then
10696 if test -f "$dir/$libname.$acl_libext"; then
10697 found_dir="$dir"
10698 found_a="$dir/$libname.$acl_libext"
10699 fi
10700 fi
10701 if test "X$found_dir" != "X"; then
10702 if test -f "$dir/$libname.la"; then
10703 found_la="$dir/$libname.la"
10704 fi
10705 fi
10706 fi
10707 if test "X$found_dir" = "X"; then
10708 for x in $LDFLAGS $LTLIBICONV; do
10709
10710 acl_save_prefix="$prefix"
10711 prefix="$acl_final_prefix"
10712 acl_save_exec_prefix="$exec_prefix"
10713 exec_prefix="$acl_final_exec_prefix"
10714 eval x=\"$x\"
10715 exec_prefix="$acl_save_exec_prefix"
10716 prefix="$acl_save_prefix"
10717
10718 case "$x" in
10719 -L*)
10720 dir=`echo "X$x" | sed -e 's/^X-L//'`
10721 if test -n "$acl_shlibext"; then
10722 if test -f "$dir/$libname$shrext"; then
10723 found_dir="$dir"
10724 found_so="$dir/$libname$shrext"
10725 else
10726 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10727 ver=`(cd "$dir" && \
10728 for f in "$libname$shrext".*; do echo "$f"; done \
10729 | sed -e "s,^$libname$shrext\\\\.,," \
10730 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10731 | sed 1q ) 2>/dev/null`
10732 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10733 found_dir="$dir"
10734 found_so="$dir/$libname$shrext.$ver"
10735 fi
10736 else
10737 eval library_names=\"$acl_library_names_spec\"
10738 for f in $library_names; do
10739 if test -f "$dir/$f"; then
10740 found_dir="$dir"
10741 found_so="$dir/$f"
10742 break
10743 fi
10744 done
10745 fi
10746 fi
10747 fi
10748 if test "X$found_dir" = "X"; then
10749 if test -f "$dir/$libname.$acl_libext"; then
10750 found_dir="$dir"
10751 found_a="$dir/$libname.$acl_libext"
10752 fi
10753 fi
10754 if test "X$found_dir" != "X"; then
10755 if test -f "$dir/$libname.la"; then
10756 found_la="$dir/$libname.la"
10757 fi
10758 fi
10759 ;;
10760 esac
10761 if test "X$found_dir" != "X"; then
10762 break
10763 fi
10764 done
10765 fi
10766 if test "X$found_dir" != "X"; then
10767 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10768 if test "X$found_so" != "X"; then
10769 if test "$enable_rpath" = no \
10770 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10771 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
10772 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10773 else
10774 haveit=
10775 for x in $ltrpathdirs; do
10776 if test "X$x" = "X$found_dir"; then
10777 haveit=yes
10778 break
10779 fi
10780 done
10781 if test -z "$haveit"; then
10782 ltrpathdirs="$ltrpathdirs $found_dir"
10783 fi
10784 if test "$acl_hardcode_direct" = yes; then
10785 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10786 else
10787 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
10788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10789 haveit=
10790 for x in $rpathdirs; do
10791 if test "X$x" = "X$found_dir"; then
10792 haveit=yes
10793 break
10794 fi
10795 done
10796 if test -z "$haveit"; then
10797 rpathdirs="$rpathdirs $found_dir"
10798 fi
10799 else
10800 haveit=
10801 for x in $LDFLAGS $LIBICONV; do
10802
10803 acl_save_prefix="$prefix"
10804 prefix="$acl_final_prefix"
10805 acl_save_exec_prefix="$exec_prefix"
10806 exec_prefix="$acl_final_exec_prefix"
10807 eval x=\"$x\"
10808 exec_prefix="$acl_save_exec_prefix"
10809 prefix="$acl_save_prefix"
10810
10811 if test "X$x" = "X-L$found_dir"; then
10812 haveit=yes
10813 break
10814 fi
10815 done
10816 if test -z "$haveit"; then
10817 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10818 fi
10819 if test "$acl_hardcode_minus_L" != no; then
10820 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10821 else
10822 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10823 fi
10824 fi
10825 fi
10826 fi
10827 else
10828 if test "X$found_a" != "X"; then
10829 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10830 else
10831 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10832 fi
10833 fi
10834 additional_includedir=
10835 case "$found_dir" in
10836 */$acl_libdirstem | */$acl_libdirstem/)
10837 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10838 if test "$name" = 'iconv'; then
10839 LIBICONV_PREFIX="$basedir"
10840 fi
10841 additional_includedir="$basedir/include"
10842 ;;
10843 */$acl_libdirstem2 | */$acl_libdirstem2/)
10844 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10845 if test "$name" = 'iconv'; then
10846 LIBICONV_PREFIX="$basedir"
10847 fi
10848 additional_includedir="$basedir/include"
10849 ;;
10850 esac
10851 if test "X$additional_includedir" != "X"; then
10852 if test "X$additional_includedir" != "X/usr/include"; then
10853 haveit=
10854 if test "X$additional_includedir" = "X/usr/local/include"; then
10855 if test -n "$GCC"; then
10856 case $host_os in
10857 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10858 esac
10859 fi
10860 fi
10861 if test -z "$haveit"; then
10862 for x in $CPPFLAGS $INCICONV; do
10863
10864 acl_save_prefix="$prefix"
10865 prefix="$acl_final_prefix"
10866 acl_save_exec_prefix="$exec_prefix"
10867 exec_prefix="$acl_final_exec_prefix"
10868 eval x=\"$x\"
10869 exec_prefix="$acl_save_exec_prefix"
10870 prefix="$acl_save_prefix"
10871
10872 if test "X$x" = "X-I$additional_includedir"; then
10873 haveit=yes
10874 break
10875 fi
10876 done
10877 if test -z "$haveit"; then
10878 if test -d "$additional_includedir"; then
10879 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10880 fi
10881 fi
10882 fi
10883 fi
10884 fi
10885 if test -n "$found_la"; then
10886 save_libdir="$libdir"
10887 case "$found_la" in
10888 */* | *\\*) . "$found_la" ;;
10889 *) . "./$found_la" ;;
10890 esac
10891 libdir="$save_libdir"
10892 for dep in $dependency_libs; do
10893 case "$dep" in
10894 -L*)
10895 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10896 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
10897 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
10898 haveit=
10899 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
10900 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
10901 if test -n "$GCC"; then
10902 case $host_os in
10903 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10904 esac
10905 fi
10906 fi
10907 if test -z "$haveit"; then
10908 haveit=
10909 for x in $LDFLAGS $LIBICONV; do
10910
10911 acl_save_prefix="$prefix"
10912 prefix="$acl_final_prefix"
10913 acl_save_exec_prefix="$exec_prefix"
10914 exec_prefix="$acl_final_exec_prefix"
10915 eval x=\"$x\"
10916 exec_prefix="$acl_save_exec_prefix"
10917 prefix="$acl_save_prefix"
10918
10919 if test "X$x" = "X-L$additional_libdir"; then
10920 haveit=yes
10921 break
10922 fi
10923 done
10924 if test -z "$haveit"; then
10925 if test -d "$additional_libdir"; then
10926 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10927 fi
10928 fi
10929 haveit=
10930 for x in $LDFLAGS $LTLIBICONV; do
10931
10932 acl_save_prefix="$prefix"
10933 prefix="$acl_final_prefix"
10934 acl_save_exec_prefix="$exec_prefix"
10935 exec_prefix="$acl_final_exec_prefix"
10936 eval x=\"$x\"
10937 exec_prefix="$acl_save_exec_prefix"
10938 prefix="$acl_save_prefix"
10939
10940 if test "X$x" = "X-L$additional_libdir"; then
10941 haveit=yes
10942 break
10943 fi
10944 done
10945 if test -z "$haveit"; then
10946 if test -d "$additional_libdir"; then
10947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10948 fi
10949 fi
10950 fi
10951 fi
10952 ;;
10953 -R*)
10954 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10955 if test "$enable_rpath" != no; then
10956 haveit=
10957 for x in $rpathdirs; do
10958 if test "X$x" = "X$dir"; then
10959 haveit=yes
10960 break
10961 fi
10962 done
10963 if test -z "$haveit"; then
10964 rpathdirs="$rpathdirs $dir"
10965 fi
10966 haveit=
10967 for x in $ltrpathdirs; do
10968 if test "X$x" = "X$dir"; then
10969 haveit=yes
10970 break
10971 fi
10972 done
10973 if test -z "$haveit"; then
10974 ltrpathdirs="$ltrpathdirs $dir"
10975 fi
10976 fi
10977 ;;
10978 -l*)
10979 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10980 ;;
10981 *.la)
10982 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10983 ;;
10984 *)
10985 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10986 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10987 ;;
10988 esac
10989 done
10990 fi
10991 else
10992 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10993 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10994 fi
10995 fi
10996 fi
10997 done
10998 done
10999 if test "X$rpathdirs" != "X"; then
11000 if test -n "$acl_hardcode_libdir_separator"; then
11001 alldirs=
11002 for found_dir in $rpathdirs; do
11003 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11004 done
11005 acl_save_libdir="$libdir"
11006 libdir="$alldirs"
11007 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11008 libdir="$acl_save_libdir"
11009 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11010 else
11011 for found_dir in $rpathdirs; do
11012 acl_save_libdir="$libdir"
11013 libdir="$found_dir"
11014 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11015 libdir="$acl_save_libdir"
11016 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11017 done
11018 fi
11019 fi
11020 if test "X$ltrpathdirs" != "X"; then
11021 for found_dir in $ltrpathdirs; do
11022 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11023 done
11024 fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11057 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
11058 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
11059 then :
11060 printf %s "(cached) " >&6
11061 else $as_nop
11062 gt_save_LIBS="$LIBS"
11063 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11065 /* end confdefs.h. */
11066 #include <CoreFoundation/CFPreferences.h>
11067 int
11068 main (void)
11069 {
11070 CFPreferencesCopyAppValue(NULL, NULL)
11071 ;
11072 return 0;
11073 }
11074 _ACEOF
11075 if ac_fn_c_try_link "$LINENO"
11076 then :
11077 gt_cv_func_CFPreferencesCopyAppValue=yes
11078 else $as_nop
11079 gt_cv_func_CFPreferencesCopyAppValue=no
11080 fi
11081 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11082 conftest$ac_exeext conftest.$ac_ext
11083 LIBS="$gt_save_LIBS"
11084 fi
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11086 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11087 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11088
11089 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11090
11091 fi
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11093 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
11094 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
11095 then :
11096 printf %s "(cached) " >&6
11097 else $as_nop
11098 gt_save_LIBS="$LIBS"
11099 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11101 /* end confdefs.h. */
11102 #include <CoreFoundation/CFLocale.h>
11103 int
11104 main (void)
11105 {
11106 CFLocaleCopyCurrent();
11107 ;
11108 return 0;
11109 }
11110 _ACEOF
11111 if ac_fn_c_try_link "$LINENO"
11112 then :
11113 gt_cv_func_CFLocaleCopyCurrent=yes
11114 else $as_nop
11115 gt_cv_func_CFLocaleCopyCurrent=no
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11118 conftest$ac_exeext conftest.$ac_ext
11119 LIBS="$gt_save_LIBS"
11120 fi
11121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11122 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11123 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11124
11125 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11126
11127 fi
11128 INTL_MACOSX_LIBS=
11129 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11130 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11131 fi
11132
11133
11134
11135
11136
11137
11138 LIBINTL=
11139 LTLIBINTL=
11140 POSUB=
11141
11142 case " $gt_needs " in
11143 *" need-formatstring-macros "*) gt_api_version=3 ;;
11144 *" need-ngettext "*) gt_api_version=2 ;;
11145 *) gt_api_version=1 ;;
11146 esac
11147 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11148 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11149
11150 if test "$USE_NLS" = "yes"; then
11151 gt_use_preinstalled_gnugettext=no
11152
11153
11154 if test $gt_api_version -ge 3; then
11155 gt_revision_test_code='
11156 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11157 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11158 #endif
11159 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11160 '
11161 else
11162 gt_revision_test_code=
11163 fi
11164 if test $gt_api_version -ge 2; then
11165 gt_expression_test_code=' + * ngettext ("", "", 0)'
11166 else
11167 gt_expression_test_code=
11168 fi
11169
11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11171 printf %s "checking for GNU gettext in libc... " >&6; }
11172 if eval test \${$gt_func_gnugettext_libc+y}
11173 then :
11174 printf %s "(cached) " >&6
11175 else $as_nop
11176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11177 /* end confdefs.h. */
11178
11179 #include <libintl.h>
11180 $gt_revision_test_code
11181 extern int _nl_msg_cat_cntr;
11182 extern int *_nl_domain_bindings;
11183
11184 int
11185 main (void)
11186 {
11187
11188 bindtextdomain ("", "");
11189 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11190
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 if ac_fn_c_try_link "$LINENO"
11196 then :
11197 eval "$gt_func_gnugettext_libc=yes"
11198 else $as_nop
11199 eval "$gt_func_gnugettext_libc=no"
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11202 conftest$ac_exeext conftest.$ac_ext
11203 fi
11204 eval ac_res=\$$gt_func_gnugettext_libc
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11206 printf "%s\n" "$ac_res" >&6; }
11207
11208 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11209
11210
11211
11212
11213
11214 am_save_CPPFLAGS="$CPPFLAGS"
11215
11216 for element in $INCICONV; do
11217 haveit=
11218 for x in $CPPFLAGS; do
11219
11220 acl_save_prefix="$prefix"
11221 prefix="$acl_final_prefix"
11222 acl_save_exec_prefix="$exec_prefix"
11223 exec_prefix="$acl_final_exec_prefix"
11224 eval x=\"$x\"
11225 exec_prefix="$acl_save_exec_prefix"
11226 prefix="$acl_save_prefix"
11227
11228 if test "X$x" = "X$element"; then
11229 haveit=yes
11230 break
11231 fi
11232 done
11233 if test -z "$haveit"; then
11234 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11235 fi
11236 done
11237
11238
11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11240 printf %s "checking for iconv... " >&6; }
11241 if test ${am_cv_func_iconv+y}
11242 then :
11243 printf %s "(cached) " >&6
11244 else $as_nop
11245
11246 am_cv_func_iconv="no, consider installing GNU libiconv"
11247 am_cv_lib_iconv=no
11248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250
11251 #include <stdlib.h>
11252 #include <iconv.h>
11253
11254 int
11255 main (void)
11256 {
11257 iconv_t cd = iconv_open("","");
11258 iconv(cd,NULL,NULL,NULL,NULL);
11259 iconv_close(cd);
11260 ;
11261 return 0;
11262 }
11263 _ACEOF
11264 if ac_fn_c_try_link "$LINENO"
11265 then :
11266 am_cv_func_iconv=yes
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11269 conftest$ac_exeext conftest.$ac_ext
11270 if test "$am_cv_func_iconv" != yes; then
11271 am_save_LIBS="$LIBS"
11272 LIBS="$LIBS $LIBICONV"
11273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275
11276 #include <stdlib.h>
11277 #include <iconv.h>
11278
11279 int
11280 main (void)
11281 {
11282 iconv_t cd = iconv_open("","");
11283 iconv(cd,NULL,NULL,NULL,NULL);
11284 iconv_close(cd);
11285 ;
11286 return 0;
11287 }
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"
11290 then :
11291 am_cv_lib_iconv=yes
11292 am_cv_func_iconv=yes
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11295 conftest$ac_exeext conftest.$ac_ext
11296 LIBS="$am_save_LIBS"
11297 fi
11298
11299 fi
11300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11301 printf "%s\n" "$am_cv_func_iconv" >&6; }
11302 if test "$am_cv_func_iconv" = yes; then
11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
11304 printf %s "checking for working iconv... " >&6; }
11305 if test ${am_cv_func_iconv_works+y}
11306 then :
11307 printf %s "(cached) " >&6
11308 else $as_nop
11309
11310 am_save_LIBS="$LIBS"
11311 if test $am_cv_lib_iconv = yes; then
11312 LIBS="$LIBS $LIBICONV"
11313 fi
11314 am_cv_func_iconv_works=no
11315 for ac_iconv_const in '' 'const'; do
11316 if test "$cross_compiling" = yes
11317 then :
11318 case "$host_os" in
11319 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
11320 *) am_cv_func_iconv_works="guessing yes" ;;
11321 esac
11322 else $as_nop
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11325
11326 #include <iconv.h>
11327 #include <string.h>
11328
11329 #ifndef ICONV_CONST
11330 # define ICONV_CONST $ac_iconv_const
11331 #endif
11332
11333 int
11334 main (void)
11335 {
11336 int result = 0;
11337 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
11338 returns. */
11339 {
11340 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
11341 if (cd_utf8_to_88591 != (iconv_t)(-1))
11342 {
11343 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
11344 char buf[10];
11345 ICONV_CONST char *inptr = input;
11346 size_t inbytesleft = strlen (input);
11347 char *outptr = buf;
11348 size_t outbytesleft = sizeof (buf);
11349 size_t res = iconv (cd_utf8_to_88591,
11350 &inptr, &inbytesleft,
11351 &outptr, &outbytesleft);
11352 if (res == 0)
11353 result |= 1;
11354 iconv_close (cd_utf8_to_88591);
11355 }
11356 }
11357 /* Test against Solaris 10 bug: Failures are not distinguishable from
11358 successful returns. */
11359 {
11360 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
11361 if (cd_ascii_to_88591 != (iconv_t)(-1))
11362 {
11363 static ICONV_CONST char input[] = "\263";
11364 char buf[10];
11365 ICONV_CONST char *inptr = input;
11366 size_t inbytesleft = strlen (input);
11367 char *outptr = buf;
11368 size_t outbytesleft = sizeof (buf);
11369 size_t res = iconv (cd_ascii_to_88591,
11370 &inptr, &inbytesleft,
11371 &outptr, &outbytesleft);
11372 if (res == 0)
11373 result |= 2;
11374 iconv_close (cd_ascii_to_88591);
11375 }
11376 }
11377 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
11378 {
11379 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
11380 if (cd_88591_to_utf8 != (iconv_t)(-1))
11381 {
11382 static ICONV_CONST char input[] = "\304";
11383 static char buf[2] = { (char)0xDE, (char)0xAD };
11384 ICONV_CONST char *inptr = input;
11385 size_t inbytesleft = 1;
11386 char *outptr = buf;
11387 size_t outbytesleft = 1;
11388 size_t res = iconv (cd_88591_to_utf8,
11389 &inptr, &inbytesleft,
11390 &outptr, &outbytesleft);
11391 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
11392 result |= 4;
11393 iconv_close (cd_88591_to_utf8);
11394 }
11395 }
11396 #if 0 /* This bug could be worked around by the caller. */
11397 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
11398 {
11399 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
11400 if (cd_88591_to_utf8 != (iconv_t)(-1))
11401 {
11402 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
11403 char buf[50];
11404 ICONV_CONST char *inptr = input;
11405 size_t inbytesleft = strlen (input);
11406 char *outptr = buf;
11407 size_t outbytesleft = sizeof (buf);
11408 size_t res = iconv (cd_88591_to_utf8,
11409 &inptr, &inbytesleft,
11410 &outptr, &outbytesleft);
11411 if ((int)res > 0)
11412 result |= 8;
11413 iconv_close (cd_88591_to_utf8);
11414 }
11415 }
11416 #endif
11417 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
11418 provided. */
11419 if (/* Try standardized names. */
11420 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
11421 /* Try IRIX, OSF/1 names. */
11422 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
11423 /* Try AIX names. */
11424 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
11425 /* Try HP-UX names. */
11426 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
11427 result |= 16;
11428 return result;
11429
11430 ;
11431 return 0;
11432 }
11433 _ACEOF
11434 if ac_fn_c_try_run "$LINENO"
11435 then :
11436 am_cv_func_iconv_works=yes
11437 fi
11438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11439 conftest.$ac_objext conftest.beam conftest.$ac_ext
11440 fi
11441
11442 test "$am_cv_func_iconv_works" = no || break
11443 done
11444 LIBS="$am_save_LIBS"
11445
11446 fi
11447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
11448 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
11449 case "$am_cv_func_iconv_works" in
11450 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
11451 *) am_func_iconv=yes ;;
11452 esac
11453 else
11454 am_func_iconv=no am_cv_lib_iconv=no
11455 fi
11456 if test "$am_func_iconv" = yes; then
11457
11458 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
11459
11460 fi
11461 if test "$am_cv_lib_iconv" = yes; then
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11463 printf %s "checking how to link with libiconv... " >&6; }
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11465 printf "%s\n" "$LIBICONV" >&6; }
11466 else
11467 CPPFLAGS="$am_save_CPPFLAGS"
11468 LIBICONV=
11469 LTLIBICONV=
11470 fi
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482 use_additional=yes
11483
11484 acl_save_prefix="$prefix"
11485 prefix="$acl_final_prefix"
11486 acl_save_exec_prefix="$exec_prefix"
11487 exec_prefix="$acl_final_exec_prefix"
11488
11489 eval additional_includedir=\"$includedir\"
11490 eval additional_libdir=\"$libdir\"
11491
11492 exec_prefix="$acl_save_exec_prefix"
11493 prefix="$acl_save_prefix"
11494
11495
11496 # Check whether --with-libintl-prefix was given.
11497 if test ${with_libintl_prefix+y}
11498 then :
11499 withval=$with_libintl_prefix;
11500 if test "X$withval" = "Xno"; then
11501 use_additional=no
11502 else
11503 if test "X$withval" = "X"; then
11504
11505 acl_save_prefix="$prefix"
11506 prefix="$acl_final_prefix"
11507 acl_save_exec_prefix="$exec_prefix"
11508 exec_prefix="$acl_final_exec_prefix"
11509
11510 eval additional_includedir=\"$includedir\"
11511 eval additional_libdir=\"$libdir\"
11512
11513 exec_prefix="$acl_save_exec_prefix"
11514 prefix="$acl_save_prefix"
11515
11516 else
11517 additional_includedir="$withval/include"
11518 additional_libdir="$withval/$acl_libdirstem"
11519 if test "$acl_libdirstem2" != "$acl_libdirstem" \
11520 && ! test -d "$withval/$acl_libdirstem"; then
11521 additional_libdir="$withval/$acl_libdirstem2"
11522 fi
11523 fi
11524 fi
11525
11526 fi
11527
11528 LIBINTL=
11529 LTLIBINTL=
11530 INCINTL=
11531 LIBINTL_PREFIX=
11532 HAVE_LIBINTL=
11533 rpathdirs=
11534 ltrpathdirs=
11535 names_already_handled=
11536 names_next_round='intl '
11537 while test -n "$names_next_round"; do
11538 names_this_round="$names_next_round"
11539 names_next_round=
11540 for name in $names_this_round; do
11541 already_handled=
11542 for n in $names_already_handled; do
11543 if test "$n" = "$name"; then
11544 already_handled=yes
11545 break
11546 fi
11547 done
11548 if test -z "$already_handled"; then
11549 names_already_handled="$names_already_handled $name"
11550 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
11551 eval value=\"\$HAVE_LIB$uppername\"
11552 if test -n "$value"; then
11553 if test "$value" = yes; then
11554 eval value=\"\$LIB$uppername\"
11555 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11556 eval value=\"\$LTLIB$uppername\"
11557 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11558 else
11559 :
11560 fi
11561 else
11562 found_dir=
11563 found_la=
11564 found_so=
11565 found_a=
11566 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
11567 if test -n "$acl_shlibext"; then
11568 shrext=".$acl_shlibext" # typically: shrext=.so
11569 else
11570 shrext=
11571 fi
11572 if test $use_additional = yes; then
11573 dir="$additional_libdir"
11574 if test -n "$acl_shlibext"; then
11575 if test -f "$dir/$libname$shrext"; then
11576 found_dir="$dir"
11577 found_so="$dir/$libname$shrext"
11578 else
11579 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11580 ver=`(cd "$dir" && \
11581 for f in "$libname$shrext".*; do echo "$f"; done \
11582 | sed -e "s,^$libname$shrext\\\\.,," \
11583 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11584 | sed 1q ) 2>/dev/null`
11585 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11586 found_dir="$dir"
11587 found_so="$dir/$libname$shrext.$ver"
11588 fi
11589 else
11590 eval library_names=\"$acl_library_names_spec\"
11591 for f in $library_names; do
11592 if test -f "$dir/$f"; then
11593 found_dir="$dir"
11594 found_so="$dir/$f"
11595 break
11596 fi
11597 done
11598 fi
11599 fi
11600 fi
11601 if test "X$found_dir" = "X"; then
11602 if test -f "$dir/$libname.$acl_libext"; then
11603 found_dir="$dir"
11604 found_a="$dir/$libname.$acl_libext"
11605 fi
11606 fi
11607 if test "X$found_dir" != "X"; then
11608 if test -f "$dir/$libname.la"; then
11609 found_la="$dir/$libname.la"
11610 fi
11611 fi
11612 fi
11613 if test "X$found_dir" = "X"; then
11614 for x in $LDFLAGS $LTLIBINTL; do
11615
11616 acl_save_prefix="$prefix"
11617 prefix="$acl_final_prefix"
11618 acl_save_exec_prefix="$exec_prefix"
11619 exec_prefix="$acl_final_exec_prefix"
11620 eval x=\"$x\"
11621 exec_prefix="$acl_save_exec_prefix"
11622 prefix="$acl_save_prefix"
11623
11624 case "$x" in
11625 -L*)
11626 dir=`echo "X$x" | sed -e 's/^X-L//'`
11627 if test -n "$acl_shlibext"; then
11628 if test -f "$dir/$libname$shrext"; then
11629 found_dir="$dir"
11630 found_so="$dir/$libname$shrext"
11631 else
11632 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
11633 ver=`(cd "$dir" && \
11634 for f in "$libname$shrext".*; do echo "$f"; done \
11635 | sed -e "s,^$libname$shrext\\\\.,," \
11636 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
11637 | sed 1q ) 2>/dev/null`
11638 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
11639 found_dir="$dir"
11640 found_so="$dir/$libname$shrext.$ver"
11641 fi
11642 else
11643 eval library_names=\"$acl_library_names_spec\"
11644 for f in $library_names; do
11645 if test -f "$dir/$f"; then
11646 found_dir="$dir"
11647 found_so="$dir/$f"
11648 break
11649 fi
11650 done
11651 fi
11652 fi
11653 fi
11654 if test "X$found_dir" = "X"; then
11655 if test -f "$dir/$libname.$acl_libext"; then
11656 found_dir="$dir"
11657 found_a="$dir/$libname.$acl_libext"
11658 fi
11659 fi
11660 if test "X$found_dir" != "X"; then
11661 if test -f "$dir/$libname.la"; then
11662 found_la="$dir/$libname.la"
11663 fi
11664 fi
11665 ;;
11666 esac
11667 if test "X$found_dir" != "X"; then
11668 break
11669 fi
11670 done
11671 fi
11672 if test "X$found_dir" != "X"; then
11673 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11674 if test "X$found_so" != "X"; then
11675 if test "$enable_rpath" = no \
11676 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11677 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
11678 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11679 else
11680 haveit=
11681 for x in $ltrpathdirs; do
11682 if test "X$x" = "X$found_dir"; then
11683 haveit=yes
11684 break
11685 fi
11686 done
11687 if test -z "$haveit"; then
11688 ltrpathdirs="$ltrpathdirs $found_dir"
11689 fi
11690 if test "$acl_hardcode_direct" = yes; then
11691 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11692 else
11693 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
11694 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11695 haveit=
11696 for x in $rpathdirs; do
11697 if test "X$x" = "X$found_dir"; then
11698 haveit=yes
11699 break
11700 fi
11701 done
11702 if test -z "$haveit"; then
11703 rpathdirs="$rpathdirs $found_dir"
11704 fi
11705 else
11706 haveit=
11707 for x in $LDFLAGS $LIBINTL; do
11708
11709 acl_save_prefix="$prefix"
11710 prefix="$acl_final_prefix"
11711 acl_save_exec_prefix="$exec_prefix"
11712 exec_prefix="$acl_final_exec_prefix"
11713 eval x=\"$x\"
11714 exec_prefix="$acl_save_exec_prefix"
11715 prefix="$acl_save_prefix"
11716
11717 if test "X$x" = "X-L$found_dir"; then
11718 haveit=yes
11719 break
11720 fi
11721 done
11722 if test -z "$haveit"; then
11723 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11724 fi
11725 if test "$acl_hardcode_minus_L" != no; then
11726 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11727 else
11728 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11729 fi
11730 fi
11731 fi
11732 fi
11733 else
11734 if test "X$found_a" != "X"; then
11735 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11736 else
11737 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11738 fi
11739 fi
11740 additional_includedir=
11741 case "$found_dir" in
11742 */$acl_libdirstem | */$acl_libdirstem/)
11743 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11744 if test "$name" = 'intl'; then
11745 LIBINTL_PREFIX="$basedir"
11746 fi
11747 additional_includedir="$basedir/include"
11748 ;;
11749 */$acl_libdirstem2 | */$acl_libdirstem2/)
11750 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11751 if test "$name" = 'intl'; then
11752 LIBINTL_PREFIX="$basedir"
11753 fi
11754 additional_includedir="$basedir/include"
11755 ;;
11756 esac
11757 if test "X$additional_includedir" != "X"; then
11758 if test "X$additional_includedir" != "X/usr/include"; then
11759 haveit=
11760 if test "X$additional_includedir" = "X/usr/local/include"; then
11761 if test -n "$GCC"; then
11762 case $host_os in
11763 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11764 esac
11765 fi
11766 fi
11767 if test -z "$haveit"; then
11768 for x in $CPPFLAGS $INCINTL; do
11769
11770 acl_save_prefix="$prefix"
11771 prefix="$acl_final_prefix"
11772 acl_save_exec_prefix="$exec_prefix"
11773 exec_prefix="$acl_final_exec_prefix"
11774 eval x=\"$x\"
11775 exec_prefix="$acl_save_exec_prefix"
11776 prefix="$acl_save_prefix"
11777
11778 if test "X$x" = "X-I$additional_includedir"; then
11779 haveit=yes
11780 break
11781 fi
11782 done
11783 if test -z "$haveit"; then
11784 if test -d "$additional_includedir"; then
11785 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11786 fi
11787 fi
11788 fi
11789 fi
11790 fi
11791 if test -n "$found_la"; then
11792 save_libdir="$libdir"
11793 case "$found_la" in
11794 */* | *\\*) . "$found_la" ;;
11795 *) . "./$found_la" ;;
11796 esac
11797 libdir="$save_libdir"
11798 for dep in $dependency_libs; do
11799 case "$dep" in
11800 -L*)
11801 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11802 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11803 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
11804 haveit=
11805 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11806 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
11807 if test -n "$GCC"; then
11808 case $host_os in
11809 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11810 esac
11811 fi
11812 fi
11813 if test -z "$haveit"; then
11814 haveit=
11815 for x in $LDFLAGS $LIBINTL; do
11816
11817 acl_save_prefix="$prefix"
11818 prefix="$acl_final_prefix"
11819 acl_save_exec_prefix="$exec_prefix"
11820 exec_prefix="$acl_final_exec_prefix"
11821 eval x=\"$x\"
11822 exec_prefix="$acl_save_exec_prefix"
11823 prefix="$acl_save_prefix"
11824
11825 if test "X$x" = "X-L$additional_libdir"; then
11826 haveit=yes
11827 break
11828 fi
11829 done
11830 if test -z "$haveit"; then
11831 if test -d "$additional_libdir"; then
11832 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11833 fi
11834 fi
11835 haveit=
11836 for x in $LDFLAGS $LTLIBINTL; do
11837
11838 acl_save_prefix="$prefix"
11839 prefix="$acl_final_prefix"
11840 acl_save_exec_prefix="$exec_prefix"
11841 exec_prefix="$acl_final_exec_prefix"
11842 eval x=\"$x\"
11843 exec_prefix="$acl_save_exec_prefix"
11844 prefix="$acl_save_prefix"
11845
11846 if test "X$x" = "X-L$additional_libdir"; then
11847 haveit=yes
11848 break
11849 fi
11850 done
11851 if test -z "$haveit"; then
11852 if test -d "$additional_libdir"; then
11853 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11854 fi
11855 fi
11856 fi
11857 fi
11858 ;;
11859 -R*)
11860 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11861 if test "$enable_rpath" != no; then
11862 haveit=
11863 for x in $rpathdirs; do
11864 if test "X$x" = "X$dir"; then
11865 haveit=yes
11866 break
11867 fi
11868 done
11869 if test -z "$haveit"; then
11870 rpathdirs="$rpathdirs $dir"
11871 fi
11872 haveit=
11873 for x in $ltrpathdirs; do
11874 if test "X$x" = "X$dir"; then
11875 haveit=yes
11876 break
11877 fi
11878 done
11879 if test -z "$haveit"; then
11880 ltrpathdirs="$ltrpathdirs $dir"
11881 fi
11882 fi
11883 ;;
11884 -l*)
11885 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11886 ;;
11887 *.la)
11888 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11889 ;;
11890 *)
11891 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11892 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11893 ;;
11894 esac
11895 done
11896 fi
11897 else
11898 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11899 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11900 fi
11901 fi
11902 fi
11903 done
11904 done
11905 if test "X$rpathdirs" != "X"; then
11906 if test -n "$acl_hardcode_libdir_separator"; then
11907 alldirs=
11908 for found_dir in $rpathdirs; do
11909 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
11910 done
11911 acl_save_libdir="$libdir"
11912 libdir="$alldirs"
11913 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11914 libdir="$acl_save_libdir"
11915 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11916 else
11917 for found_dir in $rpathdirs; do
11918 acl_save_libdir="$libdir"
11919 libdir="$found_dir"
11920 eval flag=\"$acl_hardcode_libdir_flag_spec\"
11921 libdir="$acl_save_libdir"
11922 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11923 done
11924 fi
11925 fi
11926 if test "X$ltrpathdirs" != "X"; then
11927 for found_dir in $ltrpathdirs; do
11928 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11929 done
11930 fi
11931
11932
11933
11934
11935
11936
11937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11938 printf %s "checking for GNU gettext in libintl... " >&6; }
11939 if eval test \${$gt_func_gnugettext_libintl+y}
11940 then :
11941 printf %s "(cached) " >&6
11942 else $as_nop
11943 gt_save_CPPFLAGS="$CPPFLAGS"
11944 CPPFLAGS="$CPPFLAGS $INCINTL"
11945 gt_save_LIBS="$LIBS"
11946 LIBS="$LIBS $LIBINTL"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949
11950 #include <libintl.h>
11951 $gt_revision_test_code
11952 extern int _nl_msg_cat_cntr;
11953 extern
11954 #ifdef __cplusplus
11955 "C"
11956 #endif
11957 const char *_nl_expand_alias (const char *);
11958
11959 int
11960 main (void)
11961 {
11962
11963 bindtextdomain ("", "");
11964 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11965
11966 ;
11967 return 0;
11968 }
11969 _ACEOF
11970 if ac_fn_c_try_link "$LINENO"
11971 then :
11972 eval "$gt_func_gnugettext_libintl=yes"
11973 else $as_nop
11974 eval "$gt_func_gnugettext_libintl=no"
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11977 conftest$ac_exeext conftest.$ac_ext
11978 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
11979 LIBS="$LIBS $LIBICONV"
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982
11983 #include <libintl.h>
11984 $gt_revision_test_code
11985 extern int _nl_msg_cat_cntr;
11986 extern
11987 #ifdef __cplusplus
11988 "C"
11989 #endif
11990 const char *_nl_expand_alias (const char *);
11991
11992 int
11993 main (void)
11994 {
11995
11996 bindtextdomain ("", "");
11997 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11998
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_link "$LINENO"
12004 then :
12005 LIBINTL="$LIBINTL $LIBICONV"
12006 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12007 eval "$gt_func_gnugettext_libintl=yes"
12008
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12011 conftest$ac_exeext conftest.$ac_ext
12012 fi
12013 CPPFLAGS="$gt_save_CPPFLAGS"
12014 LIBS="$gt_save_LIBS"
12015 fi
12016 eval ac_res=\$$gt_func_gnugettext_libintl
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12018 printf "%s\n" "$ac_res" >&6; }
12019 fi
12020
12021 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12022 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12023 && test "$PACKAGE" != gettext-runtime \
12024 && test "$PACKAGE" != gettext-tools; }; then
12025 gt_use_preinstalled_gnugettext=yes
12026 else
12027 LIBINTL=
12028 LTLIBINTL=
12029 INCINTL=
12030 fi
12031
12032
12033
12034 if test -n "$INTL_MACOSX_LIBS"; then
12035 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12036 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12037 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12038 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12039 fi
12040 fi
12041
12042 if test "$gt_use_preinstalled_gnugettext" = "yes" \
12043 || test "$nls_cv_use_gnu_gettext" = "yes"; then
12044
12045 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
12046
12047 else
12048 USE_NLS=no
12049 fi
12050 fi
12051
12052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12053 printf %s "checking whether to use NLS... " >&6; }
12054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12055 printf "%s\n" "$USE_NLS" >&6; }
12056 if test "$USE_NLS" = "yes"; then
12057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12058 printf %s "checking where the gettext function comes from... " >&6; }
12059 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12060 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12061 gt_source="external libintl"
12062 else
12063 gt_source="libc"
12064 fi
12065 else
12066 gt_source="included intl directory"
12067 fi
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12069 printf "%s\n" "$gt_source" >&6; }
12070 fi
12071
12072 if test "$USE_NLS" = "yes"; then
12073
12074 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12075 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12077 printf %s "checking how to link with libintl... " >&6; }
12078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12079 printf "%s\n" "$LIBINTL" >&6; }
12080
12081 for element in $INCINTL; do
12082 haveit=
12083 for x in $CPPFLAGS; do
12084
12085 acl_save_prefix="$prefix"
12086 prefix="$acl_final_prefix"
12087 acl_save_exec_prefix="$exec_prefix"
12088 exec_prefix="$acl_final_exec_prefix"
12089 eval x=\"$x\"
12090 exec_prefix="$acl_save_exec_prefix"
12091 prefix="$acl_save_prefix"
12092
12093 if test "X$x" = "X$element"; then
12094 haveit=yes
12095 break
12096 fi
12097 done
12098 if test -z "$haveit"; then
12099 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12100 fi
12101 done
12102
12103 fi
12104
12105
12106 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
12107
12108
12109 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
12110
12111 fi
12112
12113 POSUB=po
12114 fi
12115
12116
12117
12118 INTLLIBS="$LIBINTL"
12119
12120
12121
12122
12123
12124
12125
12126 # Checks for libraries.
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12128 printf %s "checking for library containing strerror... " >&6; }
12129 if test ${ac_cv_search_strerror+y}
12130 then :
12131 printf %s "(cached) " >&6
12132 else $as_nop
12133 ac_func_search_save_LIBS=$LIBS
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136
12137 /* Override any GCC internal prototype to avoid an error.
12138 Use char because int might match the return type of a GCC
12139 builtin and then its argument prototype would still apply. */
12140 char strerror ();
12141 int
12142 main (void)
12143 {
12144 return strerror ();
12145 ;
12146 return 0;
12147 }
12148 _ACEOF
12149 for ac_lib in '' cposix
12150 do
12151 if test -z "$ac_lib"; then
12152 ac_res="none required"
12153 else
12154 ac_res=-l$ac_lib
12155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12156 fi
12157 if ac_fn_c_try_link "$LINENO"
12158 then :
12159 ac_cv_search_strerror=$ac_res
12160 fi
12161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12162 conftest$ac_exeext
12163 if test ${ac_cv_search_strerror+y}
12164 then :
12165 break
12166 fi
12167 done
12168 if test ${ac_cv_search_strerror+y}
12169 then :
12170
12171 else $as_nop
12172 ac_cv_search_strerror=no
12173 fi
12174 rm conftest.$ac_ext
12175 LIBS=$ac_func_search_save_LIBS
12176 fi
12177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12178 printf "%s\n" "$ac_cv_search_strerror" >&6; }
12179 ac_res=$ac_cv_search_strerror
12180 if test "$ac_res" != no
12181 then :
12182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12183
12184 fi
12185
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getpwnam" >&5
12187 printf %s "checking for library containing getpwnam... " >&6; }
12188 if test ${ac_cv_search_getpwnam+y}
12189 then :
12190 printf %s "(cached) " >&6
12191 else $as_nop
12192 ac_func_search_save_LIBS=$LIBS
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199 char getpwnam ();
12200 int
12201 main (void)
12202 {
12203 return getpwnam ();
12204 ;
12205 return 0;
12206 }
12207 _ACEOF
12208 for ac_lib in '' sun
12209 do
12210 if test -z "$ac_lib"; then
12211 ac_res="none required"
12212 else
12213 ac_res=-l$ac_lib
12214 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12215 fi
12216 if ac_fn_c_try_link "$LINENO"
12217 then :
12218 ac_cv_search_getpwnam=$ac_res
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12221 conftest$ac_exeext
12222 if test ${ac_cv_search_getpwnam+y}
12223 then :
12224 break
12225 fi
12226 done
12227 if test ${ac_cv_search_getpwnam+y}
12228 then :
12229
12230 else $as_nop
12231 ac_cv_search_getpwnam=no
12232 fi
12233 rm conftest.$ac_ext
12234 LIBS=$ac_func_search_save_LIBS
12235 fi
12236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getpwnam" >&5
12237 printf "%s\n" "$ac_cv_search_getpwnam" >&6; }
12238 ac_res=$ac_cv_search_getpwnam
12239 if test "$ac_res" != no
12240 then :
12241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12242
12243 fi
12244
12245
12246 ac_header_dirent=no
12247 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12248 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12250 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
12251 if eval test \${$as_ac_Header+y}
12252 then :
12253 printf %s "(cached) " >&6
12254 else $as_nop
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12257 #include <sys/types.h>
12258 #include <$ac_hdr>
12259
12260 int
12261 main (void)
12262 {
12263 if ((DIR *) 0)
12264 return 0;
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_compile "$LINENO"
12270 then :
12271 eval "$as_ac_Header=yes"
12272 else $as_nop
12273 eval "$as_ac_Header=no"
12274 fi
12275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12276 fi
12277 eval ac_res=\$$as_ac_Header
12278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12279 printf "%s\n" "$ac_res" >&6; }
12280 if eval test \"x\$"$as_ac_Header"\" = x"yes"
12281 then :
12282 cat >>confdefs.h <<_ACEOF
12283 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
12284 _ACEOF
12285
12286 ac_header_dirent=$ac_hdr; break
12287 fi
12288
12289 done
12290 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12291 if test $ac_header_dirent = dirent.h; then
12292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12293 printf %s "checking for library containing opendir... " >&6; }
12294 if test ${ac_cv_search_opendir+y}
12295 then :
12296 printf %s "(cached) " >&6
12297 else $as_nop
12298 ac_func_search_save_LIBS=$LIBS
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301
12302 /* Override any GCC internal prototype to avoid an error.
12303 Use char because int might match the return type of a GCC
12304 builtin and then its argument prototype would still apply. */
12305 char opendir ();
12306 int
12307 main (void)
12308 {
12309 return opendir ();
12310 ;
12311 return 0;
12312 }
12313 _ACEOF
12314 for ac_lib in '' dir
12315 do
12316 if test -z "$ac_lib"; then
12317 ac_res="none required"
12318 else
12319 ac_res=-l$ac_lib
12320 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12321 fi
12322 if ac_fn_c_try_link "$LINENO"
12323 then :
12324 ac_cv_search_opendir=$ac_res
12325 fi
12326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12327 conftest$ac_exeext
12328 if test ${ac_cv_search_opendir+y}
12329 then :
12330 break
12331 fi
12332 done
12333 if test ${ac_cv_search_opendir+y}
12334 then :
12335
12336 else $as_nop
12337 ac_cv_search_opendir=no
12338 fi
12339 rm conftest.$ac_ext
12340 LIBS=$ac_func_search_save_LIBS
12341 fi
12342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12343 printf "%s\n" "$ac_cv_search_opendir" >&6; }
12344 ac_res=$ac_cv_search_opendir
12345 if test "$ac_res" != no
12346 then :
12347 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12348
12349 fi
12350
12351 else
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12353 printf %s "checking for library containing opendir... " >&6; }
12354 if test ${ac_cv_search_opendir+y}
12355 then :
12356 printf %s "(cached) " >&6
12357 else $as_nop
12358 ac_func_search_save_LIBS=$LIBS
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 char opendir ();
12366 int
12367 main (void)
12368 {
12369 return opendir ();
12370 ;
12371 return 0;
12372 }
12373 _ACEOF
12374 for ac_lib in '' x
12375 do
12376 if test -z "$ac_lib"; then
12377 ac_res="none required"
12378 else
12379 ac_res=-l$ac_lib
12380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12381 fi
12382 if ac_fn_c_try_link "$LINENO"
12383 then :
12384 ac_cv_search_opendir=$ac_res
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12387 conftest$ac_exeext
12388 if test ${ac_cv_search_opendir+y}
12389 then :
12390 break
12391 fi
12392 done
12393 if test ${ac_cv_search_opendir+y}
12394 then :
12395
12396 else $as_nop
12397 ac_cv_search_opendir=no
12398 fi
12399 rm conftest.$ac_ext
12400 LIBS=$ac_func_search_save_LIBS
12401 fi
12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12403 printf "%s\n" "$ac_cv_search_opendir" >&6; }
12404 ac_res=$ac_cv_search_opendir
12405 if test "$ac_res" != no
12406 then :
12407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12408
12409 fi
12410
12411 fi
12412
12413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12414 printf %s "checking whether stat file-mode macros are broken... " >&6; }
12415 if test ${ac_cv_header_stat_broken+y}
12416 then :
12417 printf %s "(cached) " >&6
12418 else $as_nop
12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h. */
12421 #include <sys/types.h>
12422 #include <sys/stat.h>
12423
12424 #if defined S_ISBLK && defined S_IFDIR
12425 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12426 #endif
12427
12428 #if defined S_ISBLK && defined S_IFCHR
12429 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12430 #endif
12431
12432 #if defined S_ISLNK && defined S_IFREG
12433 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12434 #endif
12435
12436 #if defined S_ISSOCK && defined S_IFREG
12437 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12438 #endif
12439
12440 _ACEOF
12441 if ac_fn_c_try_compile "$LINENO"
12442 then :
12443 ac_cv_header_stat_broken=no
12444 else $as_nop
12445 ac_cv_header_stat_broken=yes
12446 fi
12447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12448 fi
12449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12450 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
12451 if test $ac_cv_header_stat_broken = yes; then
12452
12453 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12454
12455 fi
12456
12457
12458 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
12459 if test "x$ac_cv_header_stdlib_h" = xyes
12460 then :
12461 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
12462
12463 fi
12464 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12465 if test "x$ac_cv_header_string_h" = xyes
12466 then :
12467 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
12468
12469 fi
12470 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
12471 if test "x$ac_cv_header_strings_h" = xyes
12472 then :
12473 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
12474
12475 fi
12476 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
12477 if test "x$ac_cv_header_locale_h" = xyes
12478 then :
12479 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
12480
12481 fi
12482 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12483 if test "x$ac_cv_header_unistd_h" = xyes
12484 then :
12485 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12486
12487 fi
12488 ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
12489 if test "x$ac_cv_header_limits_h" = xyes
12490 then :
12491 printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h
12492
12493 fi
12494 ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
12495 if test "x$ac_cv_header_memory_h" = xyes
12496 then :
12497 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
12498
12499 fi
12500 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12501 if test "x$ac_cv_header_sys_param_h" = xyes
12502 then :
12503 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12504
12505 fi
12506 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12507 if test "x$ac_cv_header_sys_resource_h" = xyes
12508 then :
12509 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12510
12511 fi
12512 ac_fn_c_check_header_compile "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
12513 if test "x$ac_cv_header_sys_timeb_h" = xyes
12514 then :
12515 printf "%s\n" "#define HAVE_SYS_TIMEB_H 1" >>confdefs.h
12516
12517 fi
12518 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12519 if test "x$ac_cv_header_sys_time_h" = xyes
12520 then :
12521 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12522
12523 fi
12524 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12525 if test "x$ac_cv_header_sys_select_h" = xyes
12526 then :
12527 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12528
12529 fi
12530 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12531 if test "x$ac_cv_header_sys_file_h" = xyes
12532 then :
12533 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12534
12535 fi
12536 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
12537 if test "x$ac_cv_header_fcntl_h" = xyes
12538 then :
12539 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
12540
12541 fi
12542 ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
12543 if test "x$ac_cv_header_spawn_h" = xyes
12544 then :
12545 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
12546
12547 fi
12548
12549
12550
12551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12552 printf %s "checking for an ANSI C-conforming const... " >&6; }
12553 if test ${ac_cv_c_const+y}
12554 then :
12555 printf %s "(cached) " >&6
12556 else $as_nop
12557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h. */
12559
12560 int
12561 main (void)
12562 {
12563
12564 #ifndef __cplusplus
12565 /* Ultrix mips cc rejects this sort of thing. */
12566 typedef int charset[2];
12567 const charset cs = { 0, 0 };
12568 /* SunOS 4.1.1 cc rejects this. */
12569 char const *const *pcpcc;
12570 char **ppc;
12571 /* NEC SVR4.0.2 mips cc rejects this. */
12572 struct point {int x, y;};
12573 static struct point const zero = {0,0};
12574 /* IBM XL C 1.02.0.0 rejects this.
12575 It does not let you subtract one const X* pointer from another in
12576 an arm of an if-expression whose if-part is not a constant
12577 expression */
12578 const char *g = "string";
12579 pcpcc = &g + (g ? g-g : 0);
12580 /* HPUX 7.0 cc rejects these. */
12581 ++pcpcc;
12582 ppc = (char**) pcpcc;
12583 pcpcc = (char const *const *) ppc;
12584 { /* SCO 3.2v4 cc rejects this sort of thing. */
12585 char tx;
12586 char *t = &tx;
12587 char const *s = 0 ? (char *) 0 : (char const *) 0;
12588
12589 *t++ = 0;
12590 if (s) return 0;
12591 }
12592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12593 int x[] = {25, 17};
12594 const int *foo = &x[0];
12595 ++foo;
12596 }
12597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12598 typedef const int *iptr;
12599 iptr p = 0;
12600 ++p;
12601 }
12602 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
12603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12604 struct s { int j; const int *ap[3]; } bx;
12605 struct s *b = &bx; b->j = 5;
12606 }
12607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12608 const int foo = 10;
12609 if (!foo) return 0;
12610 }
12611 return !cs[0] && !zero.x;
12612 #endif
12613
12614 ;
12615 return 0;
12616 }
12617 _ACEOF
12618 if ac_fn_c_try_compile "$LINENO"
12619 then :
12620 ac_cv_c_const=yes
12621 else $as_nop
12622 ac_cv_c_const=no
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12625 fi
12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12627 printf "%s\n" "$ac_cv_c_const" >&6; }
12628 if test $ac_cv_c_const = no; then
12629
12630 printf "%s\n" "#define const /**/" >>confdefs.h
12631
12632 fi
12633
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12635 printf %s "checking for uid_t in sys/types.h... " >&6; }
12636 if test ${ac_cv_type_uid_t+y}
12637 then :
12638 printf %s "(cached) " >&6
12639 else $as_nop
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #include <sys/types.h>
12643
12644 _ACEOF
12645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12646 $EGREP "uid_t" >/dev/null 2>&1
12647 then :
12648 ac_cv_type_uid_t=yes
12649 else $as_nop
12650 ac_cv_type_uid_t=no
12651 fi
12652 rm -rf conftest*
12653
12654 fi
12655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12656 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
12657 if test $ac_cv_type_uid_t = no; then
12658
12659 printf "%s\n" "#define uid_t int" >>confdefs.h
12660
12661
12662 printf "%s\n" "#define gid_t int" >>confdefs.h
12663
12664 fi
12665
12666
12667 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
12668 "
12669 if test "x$ac_cv_type_pid_t" = xyes
12670 then :
12671
12672 else $as_nop
12673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h. */
12675
12676 #if defined _WIN64 && !defined __CYGWIN__
12677 LLP64
12678 #endif
12679
12680 int
12681 main (void)
12682 {
12683
12684 ;
12685 return 0;
12686 }
12687
12688 _ACEOF
12689 if ac_fn_c_try_compile "$LINENO"
12690 then :
12691 ac_pid_type='int'
12692 else $as_nop
12693 ac_pid_type='__int64'
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12696
12697 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
12698
12699
12700 fi
12701
12702
12703 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12704 if test "x$ac_cv_type_off_t" = xyes
12705 then :
12706
12707 else $as_nop
12708
12709 printf "%s\n" "#define off_t long int" >>confdefs.h
12710
12711 fi
12712
12713 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12714 if test "x$ac_cv_type_size_t" = xyes
12715 then :
12716
12717 else $as_nop
12718
12719 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
12720
12721 fi
12722
12723 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12724 if test "x$ac_cv_type_ssize_t" = xyes
12725 then :
12726
12727 else $as_nop
12728
12729 printf "%s\n" "#define ssize_t int" >>confdefs.h
12730
12731 fi
12732
12733
12734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12735 printf %s "checking for unsigned long long int... " >&6; }
12736 if test ${ac_cv_type_unsigned_long_long_int+y}
12737 then :
12738 printf %s "(cached) " >&6
12739 else $as_nop
12740 ac_cv_type_unsigned_long_long_int=yes
12741 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12743 /* end confdefs.h. */
12744
12745 /* For now, do not test the preprocessor; as of 2007 there are too many
12746 implementations with broken preprocessors. Perhaps this can
12747 be revisited in 2012. In the meantime, code should not expect
12748 #if to work with literals wider than 32 bits. */
12749 /* Test literals. */
12750 long long int ll = 9223372036854775807ll;
12751 long long int nll = -9223372036854775807LL;
12752 unsigned long long int ull = 18446744073709551615ULL;
12753 /* Test constant expressions. */
12754 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12755 ? 1 : -1)];
12756 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12757 ? 1 : -1)];
12758 int i = 63;
12759 int
12760 main (void)
12761 {
12762 /* Test availability of runtime routines for shift and division. */
12763 long long int llmax = 9223372036854775807ll;
12764 unsigned long long int ullmax = 18446744073709551615ull;
12765 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12766 | (llmax / ll) | (llmax % ll)
12767 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12768 | (ullmax / ull) | (ullmax % ull));
12769 ;
12770 return 0;
12771 }
12772
12773 _ACEOF
12774 if ac_fn_c_try_link "$LINENO"
12775 then :
12776
12777 else $as_nop
12778 ac_cv_type_unsigned_long_long_int=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12781 conftest$ac_exeext conftest.$ac_ext
12782 fi
12783 fi
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12785 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
12786 if test $ac_cv_type_unsigned_long_long_int = yes; then
12787
12788 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12789
12790 fi
12791
12792
12793
12794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12795 printf %s "checking for long long int... " >&6; }
12796 if test ${ac_cv_type_long_long_int+y}
12797 then :
12798 printf %s "(cached) " >&6
12799 else $as_nop
12800 ac_cv_type_long_long_int=yes
12801 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12802 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12803 if test $ac_cv_type_long_long_int = yes; then
12804 if test "$cross_compiling" = yes
12805 then :
12806 :
12807 else $as_nop
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <limits.h>
12811 #ifndef LLONG_MAX
12812 # define HALF \
12813 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12814 # define LLONG_MAX (HALF - 1 + HALF)
12815 #endif
12816 int
12817 main (void)
12818 {
12819 long long int n = 1;
12820 int i;
12821 for (i = 0; ; i++)
12822 {
12823 long long int m = n << i;
12824 if (m >> i != n)
12825 return 1;
12826 if (LLONG_MAX / 2 < m)
12827 break;
12828 }
12829 return 0;
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_run "$LINENO"
12835 then :
12836
12837 else $as_nop
12838 ac_cv_type_long_long_int=no
12839 fi
12840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12841 conftest.$ac_objext conftest.beam conftest.$ac_ext
12842 fi
12843
12844 fi
12845 fi
12846 fi
12847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12848 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
12849 if test $ac_cv_type_long_long_int = yes; then
12850
12851 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12852
12853 fi
12854
12855
12856
12857 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
12858 if test "x$ac_cv_type_intmax_t" = xyes
12859 then :
12860
12861 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
12862
12863 else $as_nop
12864 test $ac_cv_type_long_long_int = yes \
12865 && ac_type='long long int' \
12866 || ac_type='long int'
12867
12868 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
12869
12870 fi
12871
12872
12873
12874
12875 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
12876 if test "x$ac_cv_type_uintmax_t" = xyes
12877 then :
12878
12879 printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h
12880
12881 else $as_nop
12882 test $ac_cv_type_unsigned_long_long_int = yes \
12883 && ac_type='unsigned long long int' \
12884 || ac_type='unsigned long int'
12885
12886 printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h
12887
12888 fi
12889
12890
12891
12892 # Check for sig_atomic_t
12893
12894 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <signal.h>
12895 "
12896 if test "x$ac_cv_type_sig_atomic_t" = xyes
12897 then :
12898
12899 printf "%s\n" "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
12900
12901
12902 else $as_nop
12903
12904 printf "%s\n" "#define sig_atomic_t int" >>confdefs.h
12905
12906 fi
12907
12908
12909
12910 # Find out whether our struct stat returns nanosecond resolution timestamps.
12911
12912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanoseconds field of struct stat" >&5
12913 printf %s "checking for nanoseconds field of struct stat... " >&6; }
12914 if test ${ac_cv_struct_st_mtim_nsec+y}
12915 then :
12916 printf %s "(cached) " >&6
12917 else $as_nop
12918 ac_save_CPPFLAGS="$CPPFLAGS"
12919 ac_cv_struct_st_mtim_nsec=no
12920 # st_mtim.tv_nsec -- the usual case
12921 # st_mtim._tv_nsec -- Solaris 2.6, if
12922 # (defined _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED == 1
12923 # && !defined __EXTENSIONS__)
12924 # st_mtim.st__tim.tv_nsec -- UnixWare 2.1.2
12925 # st_mtime_n -- AIX 5.2 and above
12926 # st_mtimespec.tv_nsec -- Darwin (Mac OSX)
12927 for ac_val in st_mtim.tv_nsec st_mtim._tv_nsec st_mtim.st__tim.tv_nsec st_mtime_n st_mtimespec.tv_nsec; do
12928 CPPFLAGS="$ac_save_CPPFLAGS -DST_MTIM_NSEC=$ac_val"
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 #include <sys/types.h>
12932 #include <sys/stat.h>
12933
12934 int
12935 main (void)
12936 {
12937 struct stat s; s.ST_MTIM_NSEC;
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_compile "$LINENO"
12943 then :
12944 ac_cv_struct_st_mtim_nsec=$ac_val; break
12945 fi
12946 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12947 done
12948 CPPFLAGS="$ac_save_CPPFLAGS"
12949
12950 fi
12951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_mtim_nsec" >&5
12952 printf "%s\n" "$ac_cv_struct_st_mtim_nsec" >&6; }
12953
12954 if test $ac_cv_struct_st_mtim_nsec != no; then
12955
12956 printf "%s\n" "#define ST_MTIM_NSEC $ac_cv_struct_st_mtim_nsec" >>confdefs.h
12957
12958 fi
12959
12960
12961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use high resolution file timestamps" >&5
12962 printf %s "checking whether to use high resolution file timestamps... " >&6; }
12963 if test ${make_cv_file_timestamp_hi_res+y}
12964 then :
12965 printf %s "(cached) " >&6
12966 else $as_nop
12967 make_cv_file_timestamp_hi_res=no
12968 if test "$ac_cv_struct_st_mtim_nsec" != no
12969 then :
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972
12973 #if HAVE_INTTYPES_H
12974 # include <inttypes.h>
12975 #endif
12976 int
12977 main (void)
12978 {
12979 char a[0x7fffffff < (uintmax_t)-1 >> 30 ? 1 : -1];
12980 ;
12981 return 0;
12982 }
12983 _ACEOF
12984 if ac_fn_c_try_compile "$LINENO"
12985 then :
12986 make_cv_file_timestamp_hi_res=yes
12987 fi
12988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12989
12990 fi
12991 fi
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_file_timestamp_hi_res" >&5
12993 printf "%s\n" "$make_cv_file_timestamp_hi_res" >&6; }
12994 if test "$make_cv_file_timestamp_hi_res" = yes
12995 then :
12996 val=1
12997 else $as_nop
12998 val=0
12999 fi
13000
13001 printf "%s\n" "#define FILE_TIMESTAMP_HI_RES $val" >>confdefs.h
13002
13003
13004 if test "$make_cv_file_timestamp_hi_res" = yes
13005 then :
13006 # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
13007 # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
13008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
13009 printf %s "checking for library containing clock_gettime... " >&6; }
13010 if test ${ac_cv_search_clock_gettime+y}
13011 then :
13012 printf %s "(cached) " >&6
13013 else $as_nop
13014 ac_func_search_save_LIBS=$LIBS
13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13016 /* end confdefs.h. */
13017
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 char clock_gettime ();
13022 int
13023 main (void)
13024 {
13025 return clock_gettime ();
13026 ;
13027 return 0;
13028 }
13029 _ACEOF
13030 for ac_lib in '' rt posix4
13031 do
13032 if test -z "$ac_lib"; then
13033 ac_res="none required"
13034 else
13035 ac_res=-l$ac_lib
13036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13037 fi
13038 if ac_fn_c_try_link "$LINENO"
13039 then :
13040 ac_cv_search_clock_gettime=$ac_res
13041 fi
13042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13043 conftest$ac_exeext
13044 if test ${ac_cv_search_clock_gettime+y}
13045 then :
13046 break
13047 fi
13048 done
13049 if test ${ac_cv_search_clock_gettime+y}
13050 then :
13051
13052 else $as_nop
13053 ac_cv_search_clock_gettime=no
13054 fi
13055 rm conftest.$ac_ext
13056 LIBS=$ac_func_search_save_LIBS
13057 fi
13058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
13059 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
13060 ac_res=$ac_cv_search_clock_gettime
13061 if test "$ac_res" != no
13062 then :
13063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13064
13065 fi
13066
13067 if test "$ac_cv_search_clock_gettime" != no
13068 then :
13069
13070 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13071
13072
13073 fi
13074
13075 fi
13076
13077 # See if we have a standard version of gettimeofday(). Since actual
13078 # implementations can differ, just make sure we have the most common
13079 # one.
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for standard gettimeofday" >&5
13081 printf %s "checking for standard gettimeofday... " >&6; }
13082 if test ${ac_cv_func_gettimeofday+y}
13083 then :
13084 printf %s "(cached) " >&6
13085 else $as_nop
13086 ac_cv_func_gettimeofday=no
13087 if test "$cross_compiling" = yes
13088 then :
13089 ac_cv_func_gettimeofday="no (cross-compiling)"
13090 else $as_nop
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 #include <sys/time.h>
13094 int main ()
13095 {
13096 struct timeval t; t.tv_sec = -1; t.tv_usec = -1;
13097 return gettimeofday (&t, 0) != 0
13098 || t.tv_sec < 0 || t.tv_usec < 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_run "$LINENO"
13102 then :
13103 ac_cv_func_gettimeofday=yes
13104 else $as_nop
13105 ac_cv_func_gettimeofday=no
13106 fi
13107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13108 conftest.$ac_objext conftest.beam conftest.$ac_ext
13109 fi
13110
13111 fi
13112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gettimeofday" >&5
13113 printf "%s\n" "$ac_cv_func_gettimeofday" >&6; }
13114 if test "$ac_cv_func_gettimeofday" = yes
13115 then :
13116
13117 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
13118
13119
13120 fi
13121
13122 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
13123 if test "x$ac_cv_func_strtoll" = xyes
13124 then :
13125 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
13126
13127 fi
13128 ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13129 if test "x$ac_cv_func_strdup" = xyes
13130 then :
13131 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
13132
13133 fi
13134 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
13135 if test "x$ac_cv_func_strndup" = xyes
13136 then :
13137 printf "%s\n" "#define HAVE_STRNDUP 1" >>confdefs.h
13138
13139 fi
13140 ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13141 if test "x$ac_cv_func_stpcpy" = xyes
13142 then :
13143 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
13144
13145 fi
13146 ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
13147 if test "x$ac_cv_func_memrchr" = xyes
13148 then :
13149 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
13150
13151 fi
13152 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13153 if test "x$ac_cv_func_mempcpy" = xyes
13154 then :
13155 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13156
13157 fi
13158 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
13159 if test "x$ac_cv_func_umask" = xyes
13160 then :
13161 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
13162
13163 fi
13164 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
13165 if test "x$ac_cv_func_mkstemp" = xyes
13166 then :
13167 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
13168
13169 fi
13170 ac_fn_c_check_func "$LINENO" "mktemp" "ac_cv_func_mktemp"
13171 if test "x$ac_cv_func_mktemp" = xyes
13172 then :
13173 printf "%s\n" "#define HAVE_MKTEMP 1" >>confdefs.h
13174
13175 fi
13176 ac_fn_c_check_func "$LINENO" "fdopen" "ac_cv_func_fdopen"
13177 if test "x$ac_cv_func_fdopen" = xyes
13178 then :
13179 printf "%s\n" "#define HAVE_FDOPEN 1" >>confdefs.h
13180
13181 fi
13182 ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup"
13183 if test "x$ac_cv_func_dup" = xyes
13184 then :
13185 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
13186
13187 fi
13188 ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2"
13189 if test "x$ac_cv_func_dup2" = xyes
13190 then :
13191 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
13192
13193 fi
13194 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13195 if test "x$ac_cv_func_getcwd" = xyes
13196 then :
13197 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13198
13199 fi
13200 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
13201 if test "x$ac_cv_func_realpath" = xyes
13202 then :
13203 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
13204
13205 fi
13206 ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask"
13207 if test "x$ac_cv_func_sigsetmask" = xyes
13208 then :
13209 printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h
13210
13211 fi
13212 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
13213 if test "x$ac_cv_func_sigaction" = xyes
13214 then :
13215 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
13216
13217 fi
13218 ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
13219 if test "x$ac_cv_func_getgroups" = xyes
13220 then :
13221 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
13222
13223 fi
13224 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
13225 if test "x$ac_cv_func_seteuid" = xyes
13226 then :
13227 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
13228
13229 fi
13230 ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid"
13231 if test "x$ac_cv_func_setegid" = xyes
13232 then :
13233 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
13234
13235 fi
13236 ac_fn_c_check_func "$LINENO" "setlinebuf" "ac_cv_func_setlinebuf"
13237 if test "x$ac_cv_func_setlinebuf" = xyes
13238 then :
13239 printf "%s\n" "#define HAVE_SETLINEBUF 1" >>confdefs.h
13240
13241 fi
13242 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
13243 if test "x$ac_cv_func_setreuid" = xyes
13244 then :
13245 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
13246
13247 fi
13248 ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid"
13249 if test "x$ac_cv_func_setregid" = xyes
13250 then :
13251 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
13252
13253 fi
13254 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo"
13255 if test "x$ac_cv_func_mkfifo" = xyes
13256 then :
13257 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
13258
13259 fi
13260 ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13261 if test "x$ac_cv_func_getrlimit" = xyes
13262 then :
13263 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13264
13265 fi
13266 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
13267 if test "x$ac_cv_func_setrlimit" = xyes
13268 then :
13269 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
13270
13271 fi
13272 ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf"
13273 if test "x$ac_cv_func_setvbuf" = xyes
13274 then :
13275 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
13276
13277 fi
13278 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
13279 if test "x$ac_cv_func_pipe" = xyes
13280 then :
13281 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
13282
13283 fi
13284 ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
13285 if test "x$ac_cv_func_strerror" = xyes
13286 then :
13287 printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
13288
13289 fi
13290 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
13291 if test "x$ac_cv_func_strsignal" = xyes
13292 then :
13293 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
13294
13295 fi
13296 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
13297 if test "x$ac_cv_func_lstat" = xyes
13298 then :
13299 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
13300
13301 fi
13302 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
13303 if test "x$ac_cv_func_readlink" = xyes
13304 then :
13305 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
13306
13307 fi
13308 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
13309 if test "x$ac_cv_func_atexit" = xyes
13310 then :
13311 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
13312
13313 fi
13314 ac_fn_c_check_func "$LINENO" "isatty" "ac_cv_func_isatty"
13315 if test "x$ac_cv_func_isatty" = xyes
13316 then :
13317 printf "%s\n" "#define HAVE_ISATTY 1" >>confdefs.h
13318
13319 fi
13320 ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname"
13321 if test "x$ac_cv_func_ttyname" = xyes
13322 then :
13323 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
13324
13325 fi
13326 ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
13327 if test "x$ac_cv_func_pselect" = xyes
13328 then :
13329 printf "%s\n" "#define HAVE_PSELECT 1" >>confdefs.h
13330
13331 fi
13332 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
13333 if test "x$ac_cv_func_posix_spawn" = xyes
13334 then :
13335 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
13336
13337 fi
13338 ac_fn_c_check_func "$LINENO" "posix_spawnattr_setsigmask" "ac_cv_func_posix_spawnattr_setsigmask"
13339 if test "x$ac_cv_func_posix_spawnattr_setsigmask" = xyes
13340 then :
13341 printf "%s\n" "#define HAVE_POSIX_SPAWNATTR_SETSIGMASK 1" >>confdefs.h
13342
13343 fi
13344
13345
13346 # We need to check declarations, not just existence, because on Tru64 this
13347 # function is not declared without special flags, which themselves cause
13348 # other problems. We'll just use our own.
13349 ac_fn_check_decl "$LINENO" "bsd_signal" "ac_cv_have_decl_bsd_signal" "#define _GNU_SOURCE 1
13350 #include <signal.h>
13351 " "$ac_c_undeclared_builtin_options" "CFLAGS"
13352 if test "x$ac_cv_have_decl_bsd_signal" = xyes
13353 then :
13354 ac_have_decl=1
13355 else $as_nop
13356 ac_have_decl=0
13357 fi
13358 printf "%s\n" "#define HAVE_DECL_BSD_SIGNAL $ac_have_decl" >>confdefs.h
13359
13360
13361
13362 ac_func=
13363 for ac_item in $ac_func_c_list
13364 do
13365 if test $ac_func; then
13366 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
13367 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
13368 echo "#define $ac_item 1" >> confdefs.h
13369 fi
13370 ac_func=
13371 else
13372 ac_func=$ac_item
13373 fi
13374 done
13375
13376
13377
13378 if test "x$ac_cv_func_fork" = xyes; then
13379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13380 printf %s "checking for working fork... " >&6; }
13381 if test ${ac_cv_func_fork_works+y}
13382 then :
13383 printf %s "(cached) " >&6
13384 else $as_nop
13385 if test "$cross_compiling" = yes
13386 then :
13387 ac_cv_func_fork_works=cross
13388 else $as_nop
13389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390 /* end confdefs.h. */
13391 $ac_includes_default
13392 int
13393 main (void)
13394 {
13395
13396 /* By Ruediger Kuhlmann. */
13397 return fork () < 0;
13398
13399 ;
13400 return 0;
13401 }
13402 _ACEOF
13403 if ac_fn_c_try_run "$LINENO"
13404 then :
13405 ac_cv_func_fork_works=yes
13406 else $as_nop
13407 ac_cv_func_fork_works=no
13408 fi
13409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13410 conftest.$ac_objext conftest.beam conftest.$ac_ext
13411 fi
13412
13413 fi
13414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13415 printf "%s\n" "$ac_cv_func_fork_works" >&6; }
13416
13417 else
13418 ac_cv_func_fork_works=$ac_cv_func_fork
13419 fi
13420 if test "x$ac_cv_func_fork_works" = xcross; then
13421 case $host in
13422 *-*-amigaos* | *-*-msdosdjgpp*)
13423 # Override, as these systems have only a dummy fork() stub
13424 ac_cv_func_fork_works=no
13425 ;;
13426 *)
13427 ac_cv_func_fork_works=yes
13428 ;;
13429 esac
13430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13431 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13432 fi
13433 ac_cv_func_vfork_works=$ac_cv_func_vfork
13434 if test "x$ac_cv_func_vfork" = xyes; then
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13436 printf %s "checking for working vfork... " >&6; }
13437 if test ${ac_cv_func_vfork_works+y}
13438 then :
13439 printf %s "(cached) " >&6
13440 else $as_nop
13441 if test "$cross_compiling" = yes
13442 then :
13443 ac_cv_func_vfork_works=cross
13444 else $as_nop
13445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13447 /* Thanks to Paul Eggert for this test. */
13448 $ac_includes_default
13449 #include <signal.h>
13450 #include <sys/wait.h>
13451 #ifdef HAVE_VFORK_H
13452 # include <vfork.h>
13453 #endif
13454
13455 static void
13456 do_nothing (int sig)
13457 {
13458 (void) sig;
13459 }
13460
13461 /* On some sparc systems, changes by the child to local and incoming
13462 argument registers are propagated back to the parent. The compiler
13463 is told about this with #include <vfork.h>, but some compilers
13464 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13465 static variable whose address is put into a register that is
13466 clobbered by the vfork. */
13467 static void
13468 sparc_address_test (int arg)
13469 {
13470 static pid_t child;
13471 if (!child) {
13472 child = vfork ();
13473 if (child < 0) {
13474 perror ("vfork");
13475 _exit(2);
13476 }
13477 if (!child) {
13478 arg = getpid();
13479 write(-1, "", 0);
13480 _exit (arg);
13481 }
13482 }
13483 }
13484
13485 int
13486 main (void)
13487 {
13488 pid_t parent = getpid ();
13489 pid_t child;
13490
13491 sparc_address_test (0);
13492
13493 /* On Solaris 2.4, changes by the child to the signal handler
13494 also munge signal handlers in the parent. To detect this,
13495 start by putting the parent's handler in a known state. */
13496 signal (SIGTERM, SIG_DFL);
13497
13498 child = vfork ();
13499
13500 if (child == 0) {
13501 /* Here is another test for sparc vfork register problems. This
13502 test uses lots of local variables, at least as many local
13503 variables as main has allocated so far including compiler
13504 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13505 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13506 reuse the register of parent for one of the local variables,
13507 since it will think that parent can't possibly be used any more
13508 in this routine. Assigning to the local variable will thus
13509 munge parent in the parent process. */
13510 pid_t
13511 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13512 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13513 /* Convince the compiler that p..p7 are live; otherwise, it might
13514 use the same hardware register for all 8 local variables. */
13515 if (p != p1 || p != p2 || p != p3 || p != p4
13516 || p != p5 || p != p6 || p != p7)
13517 _exit(1);
13518
13519 /* Alter the child's signal handler. */
13520 if (signal (SIGTERM, do_nothing) != SIG_DFL)
13521 _exit(1);
13522
13523 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13524 from child file descriptors. If the child closes a descriptor
13525 before it execs or exits, this munges the parent's descriptor
13526 as well. Test for this by closing stdout in the child. */
13527 _exit(close(fileno(stdout)) != 0);
13528 } else {
13529 int status;
13530 struct stat st;
13531
13532 while (wait(&status) != child)
13533 ;
13534 return (
13535 /* Was there some problem with vforking? */
13536 child < 0
13537
13538 /* Did the child munge the parent's signal handler? */
13539 || signal (SIGTERM, SIG_DFL) != SIG_DFL
13540
13541 /* Did the child fail? (This shouldn't happen.) */
13542 || status
13543
13544 /* Did the vfork/compiler bug occur? */
13545 || parent != getpid()
13546
13547 /* Did the file descriptor bug occur? */
13548 || fstat(fileno(stdout), &st) != 0
13549 );
13550 }
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_run "$LINENO"
13554 then :
13555 ac_cv_func_vfork_works=yes
13556 else $as_nop
13557 ac_cv_func_vfork_works=no
13558 fi
13559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13560 conftest.$ac_objext conftest.beam conftest.$ac_ext
13561 fi
13562
13563 fi
13564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13565 printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
13566
13567 fi;
13568 if test "x$ac_cv_func_fork_works" = xcross; then
13569 ac_cv_func_vfork_works=$ac_cv_func_vfork
13570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13571 printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13572 fi
13573
13574 if test "x$ac_cv_func_vfork_works" = xyes; then
13575
13576 printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13577
13578 else
13579
13580 printf "%s\n" "#define vfork fork" >>confdefs.h
13581
13582 fi
13583 if test "x$ac_cv_func_fork_works" = xyes; then
13584
13585 printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
13586
13587 fi
13588
13589
13590 # Rumor has it that strcasecmp lives in -lresolv on some odd systems.
13591 # It doesn't hurt much to use our own if we can't find it so I don't
13592 # make the effort here.
13593 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13594 if test "x$ac_cv_func_strcasecmp" = xyes
13595 then :
13596 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13597
13598 fi
13599 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
13600 if test "x$ac_cv_func_strncasecmp" = xyes
13601 then :
13602 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
13603
13604 fi
13605 ac_fn_c_check_func "$LINENO" "strcmpi" "ac_cv_func_strcmpi"
13606 if test "x$ac_cv_func_strcmpi" = xyes
13607 then :
13608 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
13609
13610 fi
13611 ac_fn_c_check_func "$LINENO" "strncmpi" "ac_cv_func_strncmpi"
13612 if test "x$ac_cv_func_strncmpi" = xyes
13613 then :
13614 printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
13615
13616 fi
13617 ac_fn_c_check_func "$LINENO" "stricmp" "ac_cv_func_stricmp"
13618 if test "x$ac_cv_func_stricmp" = xyes
13619 then :
13620 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
13621
13622 fi
13623 ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp"
13624 if test "x$ac_cv_func_strnicmp" = xyes
13625 then :
13626 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
13627
13628 fi
13629
13630
13631 # strcoll() is used by the GNU glob library
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
13633 printf %s "checking for working strcoll... " >&6; }
13634 if test ${ac_cv_func_strcoll_works+y}
13635 then :
13636 printf %s "(cached) " >&6
13637 else $as_nop
13638 if test "$cross_compiling" = yes
13639 then :
13640 case "$host_os" in # ((
13641 # Guess yes on glibc systems.
13642 *-gnu*) ac_cv_func_strcoll_works=yes ;;
13643 # If we don't know, assume the worst.
13644 *) ac_cv_func_strcoll_works=no ;;
13645 esac
13646 else $as_nop
13647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h. */
13649 $ac_includes_default
13650 int
13651 main (void)
13652 {
13653 return (strcoll ("abc", "def") >= 0 ||
13654 strcoll ("ABC", "DEF") >= 0 ||
13655 strcoll ("123", "456") >= 0)
13656 ;
13657 return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_run "$LINENO"
13661 then :
13662 ac_cv_func_strcoll_works=yes
13663 else $as_nop
13664 ac_cv_func_strcoll_works=no
13665 fi
13666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13667 conftest.$ac_objext conftest.beam conftest.$ac_ext
13668 fi
13669
13670 fi
13671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
13672 printf "%s\n" "$ac_cv_func_strcoll_works" >&6; }
13673 if test $ac_cv_func_strcoll_works = yes; then
13674
13675 printf "%s\n" "#define HAVE_STRCOLL 1" >>confdefs.h
13676
13677 fi
13678
13679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
13680 printf %s "checking whether closedir returns void... " >&6; }
13681 if test ${ac_cv_func_closedir_void+y}
13682 then :
13683 printf %s "(cached) " >&6
13684 else $as_nop
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687
13688 #include <$ac_header_dirent>
13689
13690 int
13691 main (void)
13692 {
13693
13694 return closedir(0);
13695
13696 ;
13697 return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_compile "$LINENO"
13701 then :
13702 ac_cv_func_closedir_void=no
13703 else $as_nop
13704 ac_cv_func_closedir_void=yes
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13707 fi
13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
13709 printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
13710 if test $ac_cv_func_closedir_void = yes; then
13711
13712 printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
13713
13714 fi
13715
13716
13717 # dir.c and our glob.c use dirent.d_type if available
13718
13719
13720 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
13721 #include <sys/types.h>
13722 #ifdef HAVE_DIRENT_H
13723 # include <dirent.h>
13724 #else
13725 # define dirent direct
13726 # ifdef HAVE_SYS_NDIR_H
13727 # include <sys/ndir.h>
13728 # endif
13729 # ifdef HAVE_SYS_DIR_H
13730 # include <sys/dir.h>
13731 # endif
13732 # ifdef HAVE_NDIR_H
13733 # include <ndir.h>
13734 # endif
13735 #endif
13736
13737 "
13738 if test "x$ac_cv_member_struct_dirent_d_type" = xyes
13739 then :
13740
13741 printf "%s\n" "#define HAVE_STRUCT_DIRENT_D_TYPE 1" >>confdefs.h
13742
13743
13744 fi
13745
13746
13747
13748 # See if the user wants to add (or not) GNU Guile support
13749
13750 # Check whether --with-guile was given.
13751 if test ${with_guile+y}
13752 then :
13753 withval=$with_guile;
13754 fi
13755
13756
13757 # Annoyingly, each version of Guile comes with it's own PC file so we have to
13758 # specify them as individual packages. Ugh.
13759
13760
13761
13762
13763
13764
13765
13766 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13767 if test -n "$ac_tool_prefix"; then
13768 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13769 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771 printf %s "checking for $ac_word... " >&6; }
13772 if test ${ac_cv_path_PKG_CONFIG+y}
13773 then :
13774 printf %s "(cached) " >&6
13775 else $as_nop
13776 case $PKG_CONFIG in
13777 [\\/]* | ?:[\\/]*)
13778 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13779 ;;
13780 *)
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13783 do
13784 IFS=$as_save_IFS
13785 case $as_dir in #(((
13786 '') as_dir=./ ;;
13787 */) ;;
13788 *) as_dir=$as_dir/ ;;
13789 esac
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13792 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13794 break 2
13795 fi
13796 done
13797 done
13798 IFS=$as_save_IFS
13799
13800 ;;
13801 esac
13802 fi
13803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13804 if test -n "$PKG_CONFIG"; then
13805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13806 printf "%s\n" "$PKG_CONFIG" >&6; }
13807 else
13808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809 printf "%s\n" "no" >&6; }
13810 fi
13811
13812
13813 fi
13814 if test -z "$ac_cv_path_PKG_CONFIG"; then
13815 ac_pt_PKG_CONFIG=$PKG_CONFIG
13816 # Extract the first word of "pkg-config", so it can be a program name with args.
13817 set dummy pkg-config; ac_word=$2
13818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13819 printf %s "checking for $ac_word... " >&6; }
13820 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13821 then :
13822 printf %s "(cached) " >&6
13823 else $as_nop
13824 case $ac_pt_PKG_CONFIG in
13825 [\\/]* | ?:[\\/]*)
13826 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13827 ;;
13828 *)
13829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830 for as_dir in $PATH
13831 do
13832 IFS=$as_save_IFS
13833 case $as_dir in #(((
13834 '') as_dir=./ ;;
13835 */) ;;
13836 *) as_dir=$as_dir/ ;;
13837 esac
13838 for ac_exec_ext in '' $ac_executable_extensions; do
13839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13840 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13842 break 2
13843 fi
13844 done
13845 done
13846 IFS=$as_save_IFS
13847
13848 ;;
13849 esac
13850 fi
13851 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13852 if test -n "$ac_pt_PKG_CONFIG"; then
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13854 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13855 else
13856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857 printf "%s\n" "no" >&6; }
13858 fi
13859
13860 if test "x$ac_pt_PKG_CONFIG" = x; then
13861 PKG_CONFIG=""
13862 else
13863 case $cross_compiling:$ac_tool_warned in
13864 yes:)
13865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13866 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13867 ac_tool_warned=yes ;;
13868 esac
13869 PKG_CONFIG=$ac_pt_PKG_CONFIG
13870 fi
13871 else
13872 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13873 fi
13874
13875 fi
13876 if test -n "$PKG_CONFIG"; then
13877 _pkg_min_version=0.9.0
13878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13879 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13880 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13882 printf "%s\n" "yes" >&6; }
13883 else
13884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13885 printf "%s\n" "no" >&6; }
13886 PKG_CONFIG=""
13887 fi
13888 fi
13889
13890 if test "x$with_guile" != xno
13891 then :
13892 guile_versions="3.0 2.2 2.0 1.8"
13893 guile_version=no
13894 have_guile=no
13895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU Guile" >&5
13896 printf %s "checking for GNU Guile... " >&6; }
13897 for v in $guile_versions; do
13898 if test -n "$PKG_CONFIG" && \
13899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$v\""; } >&5
13900 ($PKG_CONFIG --exists --print-errors "guile-$v") 2>&5
13901 ac_status=$?
13902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903 test $ac_status = 0; }; then
13904 guile_version=$v; have_guile=yes; break
13905 fi
13906 done
13907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $guile_version" >&5
13908 printf "%s\n" "$guile_version" >&6; }
13909 if test "$have_guile" = yes
13910 then :
13911
13912 pkg_failed=no
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for guile-$guile_version" >&5
13914 printf %s "checking for guile-$guile_version... " >&6; }
13915
13916 if test -n "$GUILE_CFLAGS"; then
13917 pkg_cv_GUILE_CFLAGS="$GUILE_CFLAGS"
13918 elif test -n "$PKG_CONFIG"; then
13919 if test -n "$PKG_CONFIG" && \
13920 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
13921 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
13922 ac_status=$?
13923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13924 test $ac_status = 0; }; then
13925 pkg_cv_GUILE_CFLAGS=`$PKG_CONFIG --cflags "guile-$guile_version" 2>/dev/null`
13926 test "x$?" != "x0" && pkg_failed=yes
13927 else
13928 pkg_failed=yes
13929 fi
13930 else
13931 pkg_failed=untried
13932 fi
13933 if test -n "$GUILE_LIBS"; then
13934 pkg_cv_GUILE_LIBS="$GUILE_LIBS"
13935 elif test -n "$PKG_CONFIG"; then
13936 if test -n "$PKG_CONFIG" && \
13937 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"guile-\$guile_version\""; } >&5
13938 ($PKG_CONFIG --exists --print-errors "guile-$guile_version") 2>&5
13939 ac_status=$?
13940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941 test $ac_status = 0; }; then
13942 pkg_cv_GUILE_LIBS=`$PKG_CONFIG --libs "guile-$guile_version" 2>/dev/null`
13943 test "x$?" != "x0" && pkg_failed=yes
13944 else
13945 pkg_failed=yes
13946 fi
13947 else
13948 pkg_failed=untried
13949 fi
13950
13951
13952
13953 if test $pkg_failed = yes; then
13954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13955 printf "%s\n" "no" >&6; }
13956
13957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13958 _pkg_short_errors_supported=yes
13959 else
13960 _pkg_short_errors_supported=no
13961 fi
13962 if test $_pkg_short_errors_supported = yes; then
13963 GUILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "guile-$guile_version" 2>&1`
13964 else
13965 GUILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "guile-$guile_version" 2>&1`
13966 fi
13967 # Put the nasty error message in config.log where it belongs
13968 echo "$GUILE_PKG_ERRORS" >&5
13969
13970 as_fn_error $? "Package requirements (guile-$guile_version) were not met:
13971
13972 $GUILE_PKG_ERRORS
13973
13974 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13975 installed software in a non-standard prefix.
13976
13977 Alternatively, you may set the environment variables GUILE_CFLAGS
13978 and GUILE_LIBS to avoid the need to call pkg-config.
13979 See the pkg-config man page for more details." "$LINENO" 5
13980 elif test $pkg_failed = untried; then
13981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13982 printf "%s\n" "no" >&6; }
13983 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13984 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13985 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13986 is in your PATH or set the PKG_CONFIG environment variable to the full
13987 path to pkg-config.
13988
13989 Alternatively, you may set the environment variables GUILE_CFLAGS
13990 and GUILE_LIBS to avoid the need to call pkg-config.
13991 See the pkg-config man page for more details.
13992
13993 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13994 See \`config.log' for more details" "$LINENO" 5; }
13995 else
13996 GUILE_CFLAGS=$pkg_cv_GUILE_CFLAGS
13997 GUILE_LIBS=$pkg_cv_GUILE_LIBS
13998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 printf "%s\n" "yes" >&6; }
14000
14001 fi
14002 # Unfortunately pkg doesn't help in multi-arch environments where the
14003 # package is installed for some architectures but not others; we need
14004 # to try to link.
14005 keep_CPPFLAGS="$CPPFLAGS"
14006 keep_LIBS="$LIBS"
14007 CPPFLAGS="$CPPFLAGS $GUILE_CFLAGS"
14008 LIBS="$LIBS $GUILE_LIBS"
14009 ac_fn_c_check_header_compile "$LINENO" "libguile.h" "ac_cv_header_libguile_h" "/* Avoid configuration error warnings. */
14010 "
14011 if test "x$ac_cv_header_libguile_h" = xyes
14012 then :
14013 have_guile=yes
14014 else $as_nop
14015 have_guile=no
14016 fi
14017
14018 if test "$have_guile" = yes
14019 then :
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link GNU Guile" >&5
14021 printf %s "checking whether we can link GNU Guile... " >&6; }
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024
14025 #include <libguile.h>
14026 static void *
14027 guile_init (void *arg)
14028 {
14029 (void) arg;
14030 return 0;
14031 }
14032
14033 int
14034 main (void)
14035 {
14036
14037 scm_with_guile (guile_init, 0);
14038
14039 ;
14040 return 0;
14041 }
14042 _ACEOF
14043 if ac_fn_c_try_link "$LINENO"
14044 then :
14045 have_guile=yes
14046 else $as_nop
14047 have_guile=no
14048 fi
14049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14050 conftest$ac_exeext conftest.$ac_ext
14051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_guile" >&5
14052 printf "%s\n" "$have_guile" >&6; }
14053 fi
14054 CPPFLAGS="$keep_CPPFLAGS"
14055 LIBS="$keep_LIBS"
14056
14057 fi
14058
14059 fi
14060
14061 if test "$have_guile" = yes
14062 then :
14063
14064 printf "%s\n" "#define HAVE_GUILE 1" >>confdefs.h
14065
14066 fi
14067 if test "$have_guile" = "yes"; then
14068 HAVE_GUILE_TRUE=
14069 HAVE_GUILE_FALSE='#'
14070 else
14071 HAVE_GUILE_TRUE='#'
14072 HAVE_GUILE_FALSE=
14073 fi
14074
14075
14076 ac_fn_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default
14077 #include <signal.h>
14078 /* NetBSD declares sys_siglist in unistd.h. */
14079 #if HAVE_UNISTD_H
14080 # include <unistd.h>
14081 #endif
14082
14083 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14084 if test "x$ac_cv_have_decl_sys_siglist" = xyes
14085 then :
14086 ac_have_decl=1
14087 else $as_nop
14088 ac_have_decl=0
14089 fi
14090 printf "%s\n" "#define HAVE_DECL_SYS_SIGLIST $ac_have_decl" >>confdefs.h
14091 ac_fn_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "$ac_includes_default
14092 #include <signal.h>
14093 /* NetBSD declares sys_siglist in unistd.h. */
14094 #if HAVE_UNISTD_H
14095 # include <unistd.h>
14096 #endif
14097
14098 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14099 if test "x$ac_cv_have_decl__sys_siglist" = xyes
14100 then :
14101 ac_have_decl=1
14102 else $as_nop
14103 ac_have_decl=0
14104 fi
14105 printf "%s\n" "#define HAVE_DECL__SYS_SIGLIST $ac_have_decl" >>confdefs.h
14106 ac_fn_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default
14107 #include <signal.h>
14108 /* NetBSD declares sys_siglist in unistd.h. */
14109 #if HAVE_UNISTD_H
14110 # include <unistd.h>
14111 #endif
14112
14113 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14114 if test "x$ac_cv_have_decl___sys_siglist" = xyes
14115 then :
14116 ac_have_decl=1
14117 else $as_nop
14118 ac_have_decl=0
14119 fi
14120 printf "%s\n" "#define HAVE_DECL___SYS_SIGLIST $ac_have_decl" >>confdefs.h
14121
14122
14123
14124 # Check out the wait reality.
14125 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "#include <sys/types.h>
14126 "
14127 if test "x$ac_cv_header_sys_wait_h" = xyes
14128 then :
14129 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14130
14131 fi
14132
14133 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
14134 if test "x$ac_cv_func_waitpid" = xyes
14135 then :
14136 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
14137
14138 fi
14139 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
14140 if test "x$ac_cv_func_wait3" = xyes
14141 then :
14142 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
14143
14144 fi
14145
14146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for union wait" >&5
14147 printf %s "checking for union wait... " >&6; }
14148 if test ${make_cv_union_wait+y}
14149 then :
14150 printf %s "(cached) " >&6
14151 else $as_nop
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154 #include <sys/types.h>
14155 #include <sys/wait.h>
14156 int
14157 main (void)
14158 {
14159 union wait status; int pid; pid = wait (&status);
14160 #ifdef WEXITSTATUS
14161 /* Some POSIXoid systems have both the new-style macros and the old
14162 union wait type, and they do not work together. If union wait
14163 conflicts with WEXITSTATUS et al, we don't want to use it at all. */
14164 if (WEXITSTATUS (status) != 0) pid = -1;
14165 #ifdef WTERMSIG
14166 /* If we have WEXITSTATUS and WTERMSIG, just use them on ints. */
14167 -- blow chunks here --
14168 #endif
14169 #endif
14170 #ifdef HAVE_WAITPID
14171 /* Make sure union wait works with waitpid. */
14172 pid = waitpid (-1, &status, 0);
14173 #endif
14174
14175 ;
14176 return 0;
14177 }
14178 _ACEOF
14179 if ac_fn_c_try_link "$LINENO"
14180 then :
14181 make_cv_union_wait=yes
14182 else $as_nop
14183 make_cv_union_wait=no
14184 fi
14185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14186 conftest$ac_exeext conftest.$ac_ext
14187
14188 fi
14189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_union_wait" >&5
14190 printf "%s\n" "$make_cv_union_wait" >&6; }
14191 if test "$make_cv_union_wait" = yes
14192 then :
14193
14194 printf "%s\n" "#define HAVE_UNION_WAIT 1" >>confdefs.h
14195
14196
14197 fi
14198
14199
14200 # If we're building on Windows/DOS/OS/2, add some support for DOS drive specs.
14201 if test "$PATH_SEPARATOR" = ';'
14202 then :
14203
14204 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
14205
14206
14207 fi
14208
14209 # See if the user wants to use pmake's "customs" distributed build capability
14210 REMOTE=stub
14211 use_customs=false
14212
14213 # Check whether --with-customs was given.
14214 if test ${with_customs+y}
14215 then :
14216 withval=$with_customs; case $withval in #(
14217 n|no) :
14218 : ;; #(
14219 *) :
14220 make_cppflags="$CPPFLAGS"
14221 case $withval in #(
14222 y|ye|yes) :
14223 : ;; #(
14224 *) :
14225 CPPFLAGS="$CPPFLAGS -I$with_customs/include/customs"
14226 make_ldflags="$LDFLAGS -L$with_customs/lib" ;;
14227 esac
14228
14229 cf_test_netlibs=no
14230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for network libraries" >&5
14231 printf %s "checking for network libraries... " >&6; }
14232 if test ${cf_cv_netlibs+y}
14233 then :
14234 printf %s "(cached) " >&6
14235 else $as_nop
14236
14237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: working..." >&5
14238 printf "%s\n" "working..." >&6; }
14239 cf_cv_netlibs=""
14240 cf_test_netlibs=yes
14241
14242 for ac_func in gethostname
14243 do :
14244 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
14245 if test "x$ac_cv_func_gethostname" = xyes
14246 then :
14247 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
14248
14249 else $as_nop
14250
14251
14252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lnsl" >&5
14253 printf %s "checking for gethostname in -lnsl... " >&6; }
14254 if test ${ac_cv_lib_nsl_gethostname+y}
14255 then :
14256 printf %s "(cached) " >&6
14257 else $as_nop
14258 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lnsl $cf_cv_netlibs $LIBS"
14260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* end confdefs.h. */
14262
14263 /* Override any GCC internal prototype to avoid an error.
14264 Use char because int might match the return type of a GCC
14265 builtin and then its argument prototype would still apply. */
14266 char gethostname ();
14267 int
14268 main (void)
14269 {
14270 return gethostname ();
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"
14276 then :
14277 ac_cv_lib_nsl_gethostname=yes
14278 else $as_nop
14279 ac_cv_lib_nsl_gethostname=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14282 conftest$ac_exeext conftest.$ac_ext
14283 LIBS=$ac_check_lib_save_LIBS
14284 fi
14285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostname" >&5
14286 printf "%s\n" "$ac_cv_lib_nsl_gethostname" >&6; }
14287 if test "x$ac_cv_lib_nsl_gethostname" = xyes
14288 then :
14289
14290
14291 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
14292
14293
14294 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14295
14296 ac_cv_func_gethostname=yes
14297 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
14298 else $as_nop
14299
14300 ac_cv_func_gethostname=unknown
14301 unset ac_cv_func_gethostname 2>/dev/null
14302
14303
14304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
14305 printf %s "checking for gethostname in -lsocket... " >&6; }
14306 if test ${ac_cv_lib_socket_gethostname+y}
14307 then :
14308 printf %s "(cached) " >&6
14309 else $as_nop
14310 ac_check_lib_save_LIBS=$LIBS
14311 LIBS="-lsocket $cf_cv_netlibs $LIBS"
14312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14314
14315 /* Override any GCC internal prototype to avoid an error.
14316 Use char because int might match the return type of a GCC
14317 builtin and then its argument prototype would still apply. */
14318 char gethostname ();
14319 int
14320 main (void)
14321 {
14322 return gethostname ();
14323 ;
14324 return 0;
14325 }
14326 _ACEOF
14327 if ac_fn_c_try_link "$LINENO"
14328 then :
14329 ac_cv_lib_socket_gethostname=yes
14330 else $as_nop
14331 ac_cv_lib_socket_gethostname=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14334 conftest$ac_exeext conftest.$ac_ext
14335 LIBS=$ac_check_lib_save_LIBS
14336 fi
14337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
14338 printf "%s\n" "$ac_cv_lib_socket_gethostname" >&6; }
14339 if test "x$ac_cv_lib_socket_gethostname" = xyes
14340 then :
14341
14342
14343 cf_tr_func=`echo gethostname | tr '[a-z]' '[A-Z]'`
14344
14345
14346 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14347
14348 ac_cv_func_gethostname=yes
14349 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
14350 else $as_nop
14351
14352 ac_cv_func_gethostname=unknown
14353 unset ac_cv_func_gethostname 2>/dev/null
14354
14355 fi
14356
14357
14358 fi
14359
14360
14361 fi
14362
14363 done
14364 #
14365 # FIXME: sequent needs this library (i.e., -lsocket -linet -lnsl), but
14366 # I don't know the entrypoints - 97/7/22 TD
14367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -linet" >&5
14368 printf %s "checking for main in -linet... " >&6; }
14369 if test ${ac_cv_lib_inet_main+y}
14370 then :
14371 printf %s "(cached) " >&6
14372 else $as_nop
14373 ac_check_lib_save_LIBS=$LIBS
14374 LIBS="-linet $LIBS"
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378
14379 int
14380 main (void)
14381 {
14382 return main ();
14383 ;
14384 return 0;
14385 }
14386 _ACEOF
14387 if ac_fn_c_try_link "$LINENO"
14388 then :
14389 ac_cv_lib_inet_main=yes
14390 else $as_nop
14391 ac_cv_lib_inet_main=no
14392 fi
14393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_check_lib_save_LIBS
14396 fi
14397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_main" >&5
14398 printf "%s\n" "$ac_cv_lib_inet_main" >&6; }
14399 if test "x$ac_cv_lib_inet_main" = xyes
14400 then :
14401 cf_cv_netlibs="-linet $cf_cv_netlibs"
14402 fi
14403
14404 #
14405 if test "$ac_cv_func_lsocket" != no ; then
14406
14407 for ac_func in socket
14408 do :
14409 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14410 if test "x$ac_cv_func_socket" = xyes
14411 then :
14412 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
14413
14414 else $as_nop
14415
14416
14417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14418 printf %s "checking for socket in -lsocket... " >&6; }
14419 if test ${ac_cv_lib_socket_socket+y}
14420 then :
14421 printf %s "(cached) " >&6
14422 else $as_nop
14423 ac_check_lib_save_LIBS=$LIBS
14424 LIBS="-lsocket $cf_cv_netlibs $LIBS"
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427
14428 /* Override any GCC internal prototype to avoid an error.
14429 Use char because int might match the return type of a GCC
14430 builtin and then its argument prototype would still apply. */
14431 char socket ();
14432 int
14433 main (void)
14434 {
14435 return socket ();
14436 ;
14437 return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_link "$LINENO"
14441 then :
14442 ac_cv_lib_socket_socket=yes
14443 else $as_nop
14444 ac_cv_lib_socket_socket=no
14445 fi
14446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14447 conftest$ac_exeext conftest.$ac_ext
14448 LIBS=$ac_check_lib_save_LIBS
14449 fi
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14451 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
14452 if test "x$ac_cv_lib_socket_socket" = xyes
14453 then :
14454
14455
14456 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
14457
14458
14459 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14460
14461 ac_cv_func_socket=yes
14462 cf_cv_netlibs="-lsocket $cf_cv_netlibs"
14463 else $as_nop
14464
14465 ac_cv_func_socket=unknown
14466 unset ac_cv_func_socket 2>/dev/null
14467
14468
14469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lbsd" >&5
14470 printf %s "checking for socket in -lbsd... " >&6; }
14471 if test ${ac_cv_lib_bsd_socket+y}
14472 then :
14473 printf %s "(cached) " >&6
14474 else $as_nop
14475 ac_check_lib_save_LIBS=$LIBS
14476 LIBS="-lbsd $cf_cv_netlibs $LIBS"
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479
14480 /* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14483 char socket ();
14484 int
14485 main (void)
14486 {
14487 return socket ();
14488 ;
14489 return 0;
14490 }
14491 _ACEOF
14492 if ac_fn_c_try_link "$LINENO"
14493 then :
14494 ac_cv_lib_bsd_socket=yes
14495 else $as_nop
14496 ac_cv_lib_bsd_socket=no
14497 fi
14498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14499 conftest$ac_exeext conftest.$ac_ext
14500 LIBS=$ac_check_lib_save_LIBS
14501 fi
14502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_socket" >&5
14503 printf "%s\n" "$ac_cv_lib_bsd_socket" >&6; }
14504 if test "x$ac_cv_lib_bsd_socket" = xyes
14505 then :
14506
14507
14508 cf_tr_func=`echo socket | tr '[a-z]' '[A-Z]'`
14509
14510
14511 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14512
14513 ac_cv_func_socket=yes
14514 cf_cv_netlibs="-lbsd $cf_cv_netlibs"
14515 else $as_nop
14516
14517 ac_cv_func_socket=unknown
14518 unset ac_cv_func_socket 2>/dev/null
14519
14520 fi
14521
14522
14523 fi
14524
14525
14526 fi
14527
14528 done
14529 fi
14530 #
14531
14532 for ac_func in gethostbyname
14533 do :
14534 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14535 if test "x$ac_cv_func_gethostbyname" = xyes
14536 then :
14537 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
14538
14539 else $as_nop
14540
14541
14542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
14543 printf %s "checking for gethostbyname in -lnsl... " >&6; }
14544 if test ${ac_cv_lib_nsl_gethostbyname+y}
14545 then :
14546 printf %s "(cached) " >&6
14547 else $as_nop
14548 ac_check_lib_save_LIBS=$LIBS
14549 LIBS="-lnsl $cf_cv_netlibs $LIBS"
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552
14553 /* Override any GCC internal prototype to avoid an error.
14554 Use char because int might match the return type of a GCC
14555 builtin and then its argument prototype would still apply. */
14556 char gethostbyname ();
14557 int
14558 main (void)
14559 {
14560 return gethostbyname ();
14561 ;
14562 return 0;
14563 }
14564 _ACEOF
14565 if ac_fn_c_try_link "$LINENO"
14566 then :
14567 ac_cv_lib_nsl_gethostbyname=yes
14568 else $as_nop
14569 ac_cv_lib_nsl_gethostbyname=no
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14574 fi
14575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
14576 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
14577 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
14578 then :
14579
14580
14581 cf_tr_func=`echo gethostbyname | tr '[a-z]' '[A-Z]'`
14582
14583
14584 printf "%s\n" "#define HAVE_$cf_tr_func 1" >>confdefs.h
14585
14586 ac_cv_func_gethostbyname=yes
14587 cf_cv_netlibs="-lnsl $cf_cv_netlibs"
14588 else $as_nop
14589
14590 ac_cv_func_gethostbyname=unknown
14591 unset ac_cv_func_gethostbyname 2>/dev/null
14592
14593 fi
14594
14595
14596 fi
14597
14598 done
14599
14600 fi
14601
14602 LIBS="$LIBS $cf_cv_netlibs"
14603 test $cf_test_netlibs = no && echo "$cf_cv_netlibs" >&6
14604
14605 ac_fn_c_check_header_compile "$LINENO" "customs.h" "ac_cv_header_customs_h" "$ac_includes_default"
14606 if test "x$ac_cv_header_customs_h" = xyes
14607 then :
14608 use_customs=true
14609 REMOTE=cstms
14610 LIBS="$LIBS -lcustoms" LDFLAGS="$make_ldflags"
14611 else $as_nop
14612 with_customs=no
14613 CPPFLAGS="$make_cppflags" make_badcust=yes
14614 fi
14615
14616 ;;
14617 esac
14618
14619 fi
14620
14621
14622 # Tell automake about this, so it can include the right .c files.
14623 if test "$use_customs" = true; then
14624 USE_CUSTOMS_TRUE=
14625 USE_CUSTOMS_FALSE='#'
14626 else
14627 USE_CUSTOMS_TRUE='#'
14628 USE_CUSTOMS_FALSE=
14629 fi
14630
14631
14632 # See if the user asked to handle case insensitive file systems.
14633
14634 # Check whether --enable-case-insensitive-file-system was given.
14635 if test ${enable_case_insensitive_file_system+y}
14636 then :
14637 enableval=$enable_case_insensitive_file_system; if test "$enableval" = yes
14638 then :
14639 printf "%s\n" "#define HAVE_CASE_INSENSITIVE_FS 1" >>confdefs.h
14640
14641 fi
14642 fi
14643
14644
14645 # See if we can handle the job server feature, and if the user wants it.
14646 # Check whether --enable-job-server was given.
14647 if test ${enable_job_server+y}
14648 then :
14649 enableval=$enable_job_server; make_cv_job_server="$enableval" user_job_server="$enableval"
14650 else $as_nop
14651 make_cv_job_server="yes"
14652 fi
14653
14654
14655 if test "$ac_cv_func_waitpid" = no && test "$ac_cv_func_wait3" = no
14656 then :
14657 has_wait_nohang=no
14658 else $as_nop
14659 has_wait_nohang=yes
14660 fi
14661
14662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SA_RESTART" >&5
14663 printf %s "checking for SA_RESTART... " >&6; }
14664 if test ${make_cv_sa_restart+y}
14665 then :
14666 printf %s "(cached) " >&6
14667 else $as_nop
14668
14669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h. */
14671 #include <signal.h>
14672 int
14673 main (void)
14674 {
14675 return SA_RESTART;
14676 ;
14677 return 0;
14678 }
14679 _ACEOF
14680 if ac_fn_c_try_compile "$LINENO"
14681 then :
14682 make_cv_sa_restart=yes
14683 else $as_nop
14684 make_cv_sa_restart=no
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14687 fi
14688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sa_restart" >&5
14689 printf "%s\n" "$make_cv_sa_restart" >&6; }
14690
14691 if test "$make_cv_sa_restart" != no
14692 then :
14693
14694 printf "%s\n" "#define HAVE_SA_RESTART 1" >>confdefs.h
14695
14696
14697 fi
14698
14699 # Only allow jobserver on systems that support it
14700 case /$ac_cv_func_pipe/$ac_cv_func_sigaction/$make_cv_sa_restart/$has_wait_nohang/ in #(
14701 */no/*) :
14702 make_cv_job_server=no ;; #(
14703 *) :
14704 ;;
14705 esac
14706
14707 # Also supported on OS2 and MinGW
14708 case $host_os in #(
14709 os2*|mingw*) :
14710 make_cv_job_server=yes ;; #(
14711 *) :
14712 ;;
14713 esac
14714
14715 # If we support it and the user didn't disable it, build with jobserver
14716 case /$make_cv_job_server/$user_job_server/ in #(
14717 */no/*) :
14718 : no jobserver ;; #(
14719 *) :
14720
14721 printf "%s\n" "#define MAKE_JOBSERVER 1" >>confdefs.h
14722
14723 ;;
14724 esac
14725
14726 # If dl*() functions are supported we can enable the load operation
14727 ac_fn_check_decl "$LINENO" "dlopen" "ac_cv_have_decl_dlopen" "#include <dlfcn.h>
14728 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14729 if test "x$ac_cv_have_decl_dlopen" = xyes
14730 then :
14731 ac_have_decl=1
14732 else $as_nop
14733 ac_have_decl=0
14734 fi
14735 printf "%s\n" "#define HAVE_DECL_DLOPEN $ac_have_decl" >>confdefs.h
14736 ac_fn_check_decl "$LINENO" "dlsym" "ac_cv_have_decl_dlsym" "#include <dlfcn.h>
14737 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14738 if test "x$ac_cv_have_decl_dlsym" = xyes
14739 then :
14740 ac_have_decl=1
14741 else $as_nop
14742 ac_have_decl=0
14743 fi
14744 printf "%s\n" "#define HAVE_DECL_DLSYM $ac_have_decl" >>confdefs.h
14745 ac_fn_check_decl "$LINENO" "dlerror" "ac_cv_have_decl_dlerror" "#include <dlfcn.h>
14746 " "$ac_c_undeclared_builtin_options" "CFLAGS"
14747 if test "x$ac_cv_have_decl_dlerror" = xyes
14748 then :
14749 ac_have_decl=1
14750 else $as_nop
14751 ac_have_decl=0
14752 fi
14753 printf "%s\n" "#define HAVE_DECL_DLERROR $ac_have_decl" >>confdefs.h
14754
14755
14756 # Check whether --enable-load was given.
14757 if test ${enable_load+y}
14758 then :
14759 enableval=$enable_load; make_cv_load="$enableval" user_load="$enableval"
14760 else $as_nop
14761 make_cv_load="yes"
14762 fi
14763
14764
14765 case /$ac_cv_have_decl_dlopen/$ac_cv_have_decl_dlsym/$ac_cv_have_decl_dlerror/ in #(
14766 */no/*) :
14767 make_cv_load=no ;; #(
14768 *) :
14769 ;;
14770 esac
14771
14772 # We might need -ldl
14773 if test "$make_cv_load" = yes
14774 then :
14775
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
14777 printf %s "checking for library containing dlopen... " >&6; }
14778 if test ${ac_cv_search_dlopen+y}
14779 then :
14780 printf %s "(cached) " >&6
14781 else $as_nop
14782 ac_func_search_save_LIBS=$LIBS
14783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14784 /* end confdefs.h. */
14785
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 char dlopen ();
14790 int
14791 main (void)
14792 {
14793 return dlopen ();
14794 ;
14795 return 0;
14796 }
14797 _ACEOF
14798 for ac_lib in '' dl
14799 do
14800 if test -z "$ac_lib"; then
14801 ac_res="none required"
14802 else
14803 ac_res=-l$ac_lib
14804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14805 fi
14806 if ac_fn_c_try_link "$LINENO"
14807 then :
14808 ac_cv_search_dlopen=$ac_res
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14811 conftest$ac_exeext
14812 if test ${ac_cv_search_dlopen+y}
14813 then :
14814 break
14815 fi
14816 done
14817 if test ${ac_cv_search_dlopen+y}
14818 then :
14819
14820 else $as_nop
14821 ac_cv_search_dlopen=no
14822 fi
14823 rm conftest.$ac_ext
14824 LIBS=$ac_func_search_save_LIBS
14825 fi
14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
14827 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
14828 ac_res=$ac_cv_search_dlopen
14829 if test "$ac_res" != no
14830 then :
14831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14832
14833 else $as_nop
14834 make_cv_load=
14835 fi
14836
14837
14838 fi
14839
14840 case /$make_cv_load/$user_load/ in #(
14841 */no/*) :
14842 make_cv_load=no ;; #(
14843 *) :
14844
14845 printf "%s\n" "#define MAKE_LOAD 1" >>confdefs.h
14846
14847 ;;
14848 esac
14849
14850 # If we want load support, we might need to link with export-dynamic.
14851 # See if we can figure it out. Unfortunately this is very difficult.
14852 # For example passing -rdynamic to the SunPRO linker gives a warning
14853 # but succeeds and creates a shared object, not an executable!
14854 if test "$make_cv_load" = yes
14855 then :
14856
14857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -Wl,--export-dynamic" >&5
14858 printf %s "checking if the linker accepts -Wl,--export-dynamic... " >&6; }
14859 old_LDFLAGS="$LDFLAGS"
14860 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 int main(){}
14864 _ACEOF
14865 if ac_fn_c_try_link "$LINENO"
14866 then :
14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14868 printf "%s\n" "yes" >&6; }
14869 AM_LDFLAGS=-Wl,--export-dynamic
14870
14871 else $as_nop
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 printf "%s\n" "no" >&6; }
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker accepts -rdynamic" >&5
14875 printf %s "checking if the linker accepts -rdynamic... " >&6; }
14876 LDFLAGS="$old_LDFLAGS -rdynamic"
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 int main(){}
14880 _ACEOF
14881 if ac_fn_c_try_link "$LINENO"
14882 then :
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14884 printf "%s\n" "yes" >&6; }
14885 AM_LDFLAGS=-rdynamic
14886
14887 else $as_nop
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14889 printf "%s\n" "no" >&6; }
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14892 conftest$ac_exeext conftest.$ac_ext
14893
14894 fi
14895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14896 conftest$ac_exeext conftest.$ac_ext
14897 LDFLAGS="$old_LDFLAGS"
14898
14899 fi
14900
14901 # if we have both lstat() and readlink() then we can support symlink
14902 # timechecks.
14903 if test "$ac_cv_func_lstat" = yes && test "$ac_cv_func_readlink" = yes
14904 then :
14905
14906 printf "%s\n" "#define MAKE_SYMLINKS 1" >>confdefs.h
14907
14908
14909 fi
14910
14911 # Use posix_spawn if we have support and the user didn't disable it
14912
14913 # Check whether --enable-posix-spawn was given.
14914 if test ${enable_posix_spawn+y}
14915 then :
14916 enableval=$enable_posix_spawn; make_cv_posix_spawn="$enableval" user_posix_spawn="$enableval"
14917 else $as_nop
14918 make_cv_posix_spawn="yes"
14919 fi
14920
14921
14922 case /$ac_cv_header_spawn/$ac_cv_func_posix_spawn/ in #(
14923 */no/*) :
14924 make_cv_posix_spawn=no ;; #(
14925 *) :
14926 ;;
14927 esac
14928
14929 if test "$make_cv_posix_spawn" = yes
14930 then :
14931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_spawn that fails synchronously" >&5
14932 printf %s "checking for posix_spawn that fails synchronously... " >&6; }
14933 if test ${make_cv_synchronous_posix_spawn+y}
14934 then :
14935 printf %s "(cached) " >&6
14936 else $as_nop
14937 make_cv_synchronous_posix_spawn=no
14938 if test "$cross_compiling" = yes
14939 then :
14940 make_cv_synchronous_posix_spawn="no (cross-compiling)"
14941 else $as_nop
14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h. */
14944
14945 #include <errno.h>
14946 #include <spawn.h>
14947 extern char **environ;
14948 int main () {
14949 char path[] = "./xxx-non-existent";
14950 char *argv[] = {path, 0};
14951 return posix_spawn (0, path, 0, 0, argv, environ) == ENOENT ? 0 : 1;
14952 }
14953 _ACEOF
14954 if ac_fn_c_try_run "$LINENO"
14955 then :
14956 make_cv_synchronous_posix_spawn=yes
14957 else $as_nop
14958 make_cv_synchronous_posix_spawn=no
14959 fi
14960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14961 conftest.$ac_objext conftest.beam conftest.$ac_ext
14962 fi
14963
14964 fi
14965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_synchronous_posix_spawn" >&5
14966 printf "%s\n" "$make_cv_synchronous_posix_spawn" >&6; }
14967 fi
14968
14969 case /$user_posix_spawn/$make_cv_posix_spawn/$make_cv_synchronous_posix_spawn/ in #(
14970 */no/*) :
14971 make_cv_posix_spawn=no ;; #(
14972 *) :
14973
14974 printf "%s\n" "#define USE_POSIX_SPAWN 1" >>confdefs.h
14975
14976 ;;
14977 esac
14978
14979 # Find the SCCS commands, so we can include them in our default rules.
14980
14981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for location of SCCS get command" >&5
14982 printf %s "checking for location of SCCS get command... " >&6; }
14983 if test ${make_cv_path_sccs_get+y}
14984 then :
14985 printf %s "(cached) " >&6
14986 else $as_nop
14987
14988 if test -f /usr/sccs/get
14989 then :
14990 make_cv_path_sccs_get=/usr/sccs/get
14991 else $as_nop
14992 make_cv_path_sccs_get=get
14993 fi
14994
14995 fi
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_path_sccs_get" >&5
14997 printf "%s\n" "$make_cv_path_sccs_get" >&6; }
14998
14999 printf "%s\n" "#define SCCS_GET \"$make_cv_path_sccs_get\"" >>confdefs.h
15000
15001
15002 ac_clean_files="$ac_clean_files s.conftest conftoast" # Remove these later.
15003 if (/usr/sccs/admin -n s.conftest || admin -n s.conftest) >/dev/null 2>&1 &&
15004 test -f s.conftest
15005 then :
15006 # We successfully created an SCCS file.
15007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if SCCS get command understands -G" >&5
15008 printf %s "checking if SCCS get command understands -G... " >&6; }
15009 if test ${make_cv_sys_get_minus_G+y}
15010 then :
15011 printf %s "(cached) " >&6
15012 else $as_nop
15013 if $make_cv_path_sccs_get -Gconftoast s.conftest >/dev/null 2>&1 &&
15014 test -f conftoast
15015 then :
15016 make_cv_sys_get_minus_G=yes
15017 else $as_nop
15018 make_cv_sys_get_minus_G=no
15019 fi
15020
15021 fi
15022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $make_cv_sys_get_minus_G" >&5
15023 printf "%s\n" "$make_cv_sys_get_minus_G" >&6; }
15024 if test "$make_cv_sys_get_minus_G" = yes
15025 then :
15026
15027 printf "%s\n" "#define SCCS_GET_MINUS_G 1" >>confdefs.h
15028
15029
15030 fi
15031
15032 fi
15033 rm -f s.conftest conftoast
15034
15035 # Let the makefile know what our build host is
15036
15037
15038 printf "%s\n" "#define MAKE_HOST \"$host\"" >>confdefs.h
15039
15040 MAKE_HOST="$host"
15041
15042
15043 w32_target_env=no
15044 if false; then
15045 WINDOWSENV_TRUE=
15046 WINDOWSENV_FALSE='#'
15047 else
15048 WINDOWSENV_TRUE='#'
15049 WINDOWSENV_FALSE=
15050 fi
15051
15052
15053 case $host in #(
15054 *-*-mingw32) :
15055 if true; then
15056 WINDOWSENV_TRUE=
15057 WINDOWSENV_FALSE='#'
15058 else
15059 WINDOWSENV_TRUE='#'
15060 WINDOWSENV_FALSE=
15061 fi
15062
15063 w32_target_env=yes
15064
15065 printf "%s\n" "#define WINDOWS32 1" >>confdefs.h
15066
15067
15068 printf "%s\n" "#define HAVE_DOS_PATHS 1" >>confdefs.h
15069
15070 ;; #(
15071 *) :
15072 ;;
15073 esac
15074
15075
15076 printf "%s\n" "#define PATH_SEPARATOR_CHAR '$PATH_SEPARATOR'" >>confdefs.h
15077
15078
15079
15080 printf "%s\n" "#define HAVE_DECL_GETLOADAVG $HAVE_DECL_GETLOADAVG" >>confdefs.h
15081
15082
15083 # Remember that we ran configure to generate config.h
15084
15085
15086 printf "%s\n" "#define MK_CONFIGURE 1" >>confdefs.h
15087
15088
15089 # Include the Maintainer's Makefile section, if it's here.
15090
15091 MAINT_MAKEFILE=/dev/null
15092 if test -r "$srcdir/maintMakefile"
15093 then :
15094 MAINT_MAKEFILE="$srcdir/maintMakefile"
15095
15096 fi
15097
15098
15099 # Allow building with dmalloc
15100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
15101 printf %s "checking if malloc debugging is wanted... " >&6; }
15102
15103 # Check whether --with-dmalloc was given.
15104 if test ${with_dmalloc+y}
15105 then :
15106 withval=$with_dmalloc; if test "$withval" = yes; then
15107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15108 printf "%s\n" "yes" >&6; }
15109
15110 printf "%s\n" "#define WITH_DMALLOC 1" >>confdefs.h
15111
15112 LIBS="$LIBS -ldmalloc"
15113 LDFLAGS="$LDFLAGS -g"
15114 else
15115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15116 printf "%s\n" "no" >&6; }
15117 fi
15118 else $as_nop
15119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15120 printf "%s\n" "no" >&6; }
15121 fi
15122
15123
15124
15125 # Add custom header to config.h
15126
15127
15128 # Forcibly disable SET_MAKE. If it's set it breaks things like the test
15129 # scripts, etc.
15130 SET_MAKE=
15131
15132 # Sanity check and inform the user of what we found
15133
15134 if test "x$make_badcust" = xyes
15135 then :
15136
15137 echo
15138 echo "WARNING: --with-customs specified but no customs.h could be found;"
15139 echo " disabling Customs support."
15140 echo
15141
15142 fi
15143
15144 case $with_customs in #(
15145 ""|n|no|y|ye|yes) :
15146 : ;; #(
15147 *) :
15148 if test -f "$with_customs/lib/libcustoms.a"
15149 then :
15150 :
15151 else $as_nop
15152 echo
15153 echo "WARNING: '$with_customs/lib' does not appear to contain the"
15154 echo " Customs library. You must build and install Customs"
15155 echo " before compiling GNU Make."
15156 echo
15157
15158 fi ;;
15159 esac
15160
15161 if test "x$has_wait_nohang" = xno
15162 then :
15163 echo
15164 echo "WARNING: Your system has neither waitpid() nor wait3()."
15165 echo " Without one of these, signal handling is unreliable."
15166 echo " You should be aware that running GNU Make with -j"
15167 echo " could result in erratic behavior."
15168 echo
15169
15170 fi
15171
15172 if test "x$make_cv_job_server" = xno && test "x$user_job_server" = xyes
15173 then :
15174 echo
15175 echo "WARNING: Make job server requires a POSIX-ish system that"
15176 echo " supports the pipe(), sigaction(), and either"
15177 echo " waitpid() or wait3() functions. Your system doesn't"
15178 echo " appear to provide one or more of those."
15179 echo " Disabling job server support."
15180 echo
15181
15182 fi
15183
15184 if test "x$make_cv_load" = xno && test "x$user_load" = xyes
15185 then :
15186 echo
15187 echo "WARNING: 'load' support requires a POSIX-ish system that"
15188 echo " supports the dlopen(), dlsym(), and dlerror() functions."
15189 echo " Your system doesn't appear to provide one or more of these."
15190 echo " Disabling 'load' support."
15191 echo
15192
15193 fi
15194
15195 if test "x$make_cv_posix_spawn" = xno && test "x$user_posix_spawn" = xyes
15196 then :
15197 echo
15198 echo "WARNING: posix_spawn() is not supported on this system."
15199 echo
15200
15201 fi
15202
15203 # autoconf initializes $prefix to NONE.
15204 if test "x$prefix" = xNONE -o "x$prefix" = x/usr/local \
15205 -o "x$prefix" = x/usr/gnu -o "x$prefix" = x/usr; then
15206 KNOWN_PREFIX_TRUE=
15207 KNOWN_PREFIX_FALSE='#'
15208 else
15209 KNOWN_PREFIX_TRUE='#'
15210 KNOWN_PREFIX_FALSE=
15211 fi
15212
15213
15214 # Specify what files are to be created.
15215 ac_config_files="$ac_config_files build.cfg tests/config-flags.pm Makefile lib/Makefile doc/Makefile po/Makefile.in"
15216
15217 # We don't need this: the standard automake output suffices for POSIX systems.
15218 #mk/Posix.mk
15219
15220 # Put build.sh in the build directory so it's easy to find
15221 ac_config_links="$ac_config_links build.sh:build.sh"
15222
15223
15224 # OK, do it!
15225
15226 cat >confcache <<\_ACEOF
15227 # This file is a shell script that caches the results of configure
15228 # tests run on this system so they can be shared between configure
15229 # scripts and configure runs, see configure's option --config-cache.
15230 # It is not useful on other systems. If it contains results you don't
15231 # want to keep, you may remove or edit it.
15232 #
15233 # config.status only pays attention to the cache file if you give it
15234 # the --recheck option to rerun configure.
15235 #
15236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15238 # following values.
15239
15240 _ACEOF
15241
15242 # The following way of writing the cache mishandles newlines in values,
15243 # but we know of no workaround that is simple, portable, and efficient.
15244 # So, we kill variables containing newlines.
15245 # Ultrix sh set writes to stderr and can't be redirected directly,
15246 # and sets the high bit in the cache file unless we assign to the vars.
15247 (
15248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15249 eval ac_val=\$$ac_var
15250 case $ac_val in #(
15251 *${as_nl}*)
15252 case $ac_var in #(
15253 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15254 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15255 esac
15256 case $ac_var in #(
15257 _ | IFS | as_nl) ;; #(
15258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15259 *) { eval $ac_var=; unset $ac_var;} ;;
15260 esac ;;
15261 esac
15262 done
15263
15264 (set) 2>&1 |
15265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15266 *${as_nl}ac_space=\ *)
15267 # `set' does not quote correctly, so add quotes: double-quote
15268 # substitution turns \\\\ into \\, and sed turns \\ into \.
15269 sed -n \
15270 "s/'/'\\\\''/g;
15271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15272 ;; #(
15273 *)
15274 # `set' quotes correctly as required by POSIX, so do not add quotes.
15275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15276 ;;
15277 esac |
15278 sort
15279 ) |
15280 sed '
15281 /^ac_cv_env_/b end
15282 t clear
15283 :clear
15284 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
15285 t end
15286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15287 :end' >>confcache
15288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15289 if test -w "$cache_file"; then
15290 if test "x$cache_file" != "x/dev/null"; then
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15292 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
15293 if test ! -f "$cache_file" || test -h "$cache_file"; then
15294 cat confcache >"$cache_file"
15295 else
15296 case $cache_file in #(
15297 */* | ?:*)
15298 mv -f confcache "$cache_file"$$ &&
15299 mv -f "$cache_file"$$ "$cache_file" ;; #(
15300 *)
15301 mv -f confcache "$cache_file" ;;
15302 esac
15303 fi
15304 fi
15305 else
15306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15307 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
15308 fi
15309 fi
15310 rm -f confcache
15311
15312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15313 # Let make expand exec_prefix.
15314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15315
15316 DEFS=-DHAVE_CONFIG_H
15317
15318 ac_libobjs=
15319 ac_ltlibobjs=
15320 U=
15321 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15322 # 1. Remove the extension, and $U if already installed.
15323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15324 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
15325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15326 # will be set to the directory where LIBOBJS objects are built.
15327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15329 done
15330 LIBOBJS=$ac_libobjs
15331
15332 LTLIBOBJS=$ac_ltlibobjs
15333
15334
15335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15336 printf %s "checking that generated files are newer than configure... " >&6; }
15337 if test -n "$am_sleep_pid"; then
15338 # Hide warnings about reused PIDs.
15339 wait $am_sleep_pid 2>/dev/null
15340 fi
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
15342 printf "%s\n" "done" >&6; }
15343 if test -n "$EXEEXT"; then
15344 am__EXEEXT_TRUE=
15345 am__EXEEXT_FALSE='#'
15346 else
15347 am__EXEEXT_TRUE='#'
15348 am__EXEEXT_FALSE=
15349 fi
15350
15351 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15352 as_fn_error $? "conditional \"AMDEP\" was never defined.
15353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 fi
15355 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15356 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15358 fi
15359 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15360 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15362 fi
15363 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15364 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15366 fi
15367 # Check whether --enable-year2038 was given.
15368 if test ${enable_year2038+y}
15369 then :
15370 enableval=$enable_year2038;
15371 fi
15372
15373 # Check whether --enable-largefile was given.
15374 if test ${enable_largefile+y}
15375 then :
15376 enableval=$enable_largefile;
15377 fi
15378
15379 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15380 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15382 fi
15383 if test -z "${USE_SYSTEM_GLOB_TRUE}" && test -z "${USE_SYSTEM_GLOB_FALSE}"; then
15384 as_fn_error $? "conditional \"USE_SYSTEM_GLOB\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15386 fi
15387
15388 gl_libobjs=
15389 gl_ltlibobjs=
15390 gl_libobjdeps=
15391 if test -n "$gl_LIBOBJS"; then
15392 # Remove the extension.
15393 sed_drop_objext='s/\.o$//;s/\.obj$//'
15394 sed_dirname1='s,//*,/,g'
15395 sed_dirname2='s,\(.\)/$,\1,'
15396 sed_dirname3='s,^[^/]*$,.,'
15397 sed_dirname4='s,\(.\)/[^/]*$,\1,'
15398 sed_basename1='s,.*/,,'
15399 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15400 gl_libobjs="$gl_libobjs $i.$ac_objext"
15401 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15402 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
15403 i_base=`echo "$i" | sed -e "$sed_basename1"`
15404 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
15405 done
15406 fi
15407 gl_LIBOBJS=$gl_libobjs
15408
15409 gl_LTLIBOBJS=$gl_ltlibobjs
15410
15411 gl_LIBOBJDEPS=$gl_libobjdeps
15412
15413
15414
15415 gltests_libobjs=
15416 gltests_ltlibobjs=
15417 gltests_libobjdeps=
15418 if test -n "$gltests_LIBOBJS"; then
15419 # Remove the extension.
15420 sed_drop_objext='s/\.o$//;s/\.obj$//'
15421 sed_dirname1='s,//*,/,g'
15422 sed_dirname2='s,\(.\)/$,\1,'
15423 sed_dirname3='s,^[^/]*$,.,'
15424 sed_dirname4='s,\(.\)/[^/]*$,\1,'
15425 sed_basename1='s,.*/,,'
15426 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15427 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15428 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15429 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
15430 i_base=`echo "$i" | sed -e "$sed_basename1"`
15431 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
15432 done
15433 fi
15434 gltests_LIBOBJS=$gltests_libobjs
15435
15436 gltests_LTLIBOBJS=$gltests_ltlibobjs
15437
15438 gltests_LIBOBJDEPS=$gltests_libobjdeps
15439
15440
15441
15442 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15443 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
15444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15445 fi
15446 if test -z "${USE_CUSTOMS_TRUE}" && test -z "${USE_CUSTOMS_FALSE}"; then
15447 as_fn_error $? "conditional \"USE_CUSTOMS\" was never defined.
15448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15449 fi
15450 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
15451 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
15452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15453 fi
15454 if test -z "${WINDOWSENV_TRUE}" && test -z "${WINDOWSENV_FALSE}"; then
15455 as_fn_error $? "conditional \"WINDOWSENV\" was never defined.
15456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15457 fi
15458 if test -z "${KNOWN_PREFIX_TRUE}" && test -z "${KNOWN_PREFIX_FALSE}"; then
15459 as_fn_error $? "conditional \"KNOWN_PREFIX\" was never defined.
15460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15461 fi
15462
15463 : "${CONFIG_STATUS=./config.status}"
15464 ac_write_fail=0
15465 ac_clean_files_save=$ac_clean_files
15466 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15468 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
15469 as_write_fail=0
15470 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15471 #! $SHELL
15472 # Generated by $as_me.
15473 # Run this file to recreate the current configuration.
15474 # Compiler output produced by configure, useful for debugging
15475 # configure, is in config.log if it exists.
15476
15477 debug=false
15478 ac_cs_recheck=false
15479 ac_cs_silent=false
15480
15481 SHELL=\${CONFIG_SHELL-$SHELL}
15482 export SHELL
15483 _ASEOF
15484 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15485 ## -------------------- ##
15486 ## M4sh Initialization. ##
15487 ## -------------------- ##
15488
15489 # Be more Bourne compatible
15490 DUALCASE=1; export DUALCASE # for MKS sh
15491 as_nop=:
15492 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15493 then :
15494 emulate sh
15495 NULLCMD=:
15496 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15497 # is contrary to our usage. Disable this feature.
15498 alias -g '${1+"$@"}'='"$@"'
15499 setopt NO_GLOB_SUBST
15500 else $as_nop
15501 case `(set -o) 2>/dev/null` in #(
15502 *posix*) :
15503 set -o posix ;; #(
15504 *) :
15505 ;;
15506 esac
15507 fi
15508
15509
15510
15511 # Reset variables that may have inherited troublesome values from
15512 # the environment.
15513
15514 # IFS needs to be set, to space, tab, and newline, in precisely that order.
15515 # (If _AS_PATH_WALK were called with IFS unset, it would have the
15516 # side effect of setting IFS to empty, thus disabling word splitting.)
15517 # Quoting is to prevent editors from complaining about space-tab.
15518 as_nl='
15519 '
15520 export as_nl
15521 IFS=" "" $as_nl"
15522
15523 PS1='$ '
15524 PS2='> '
15525 PS4='+ '
15526
15527 # Ensure predictable behavior from utilities with locale-dependent output.
15528 LC_ALL=C
15529 export LC_ALL
15530 LANGUAGE=C
15531 export LANGUAGE
15532
15533 # We cannot yet rely on "unset" to work, but we need these variables
15534 # to be unset--not just set to an empty or harmless value--now, to
15535 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15536 # also avoids known problems related to "unset" and subshell syntax
15537 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15538 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15539 do eval test \${$as_var+y} \
15540 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15541 done
15542
15543 # Ensure that fds 0, 1, and 2 are open.
15544 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15545 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15546 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
15547
15548 # The user is always right.
15549 if ${PATH_SEPARATOR+false} :; then
15550 PATH_SEPARATOR=:
15551 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15552 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15553 PATH_SEPARATOR=';'
15554 }
15555 fi
15556
15557
15558 # Find who we are. Look in the path if we contain no directory separator.
15559 as_myself=
15560 case $0 in #((
15561 *[\\/]* ) as_myself=$0 ;;
15562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15563 for as_dir in $PATH
15564 do
15565 IFS=$as_save_IFS
15566 case $as_dir in #(((
15567 '') as_dir=./ ;;
15568 */) ;;
15569 *) as_dir=$as_dir/ ;;
15570 esac
15571 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
15572 done
15573 IFS=$as_save_IFS
15574
15575 ;;
15576 esac
15577 # We did not find ourselves, most probably we were run as `sh COMMAND'
15578 # in which case we are not to be found in the path.
15579 if test "x$as_myself" = x; then
15580 as_myself=$0
15581 fi
15582 if test ! -f "$as_myself"; then
15583 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15584 exit 1
15585 fi
15586
15587
15588
15589 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15590 # ----------------------------------------
15591 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15592 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15593 # script with STATUS, using 1 if that was 0.
15594 as_fn_error ()
15595 {
15596 as_status=$1; test $as_status -eq 0 && as_status=1
15597 if test "$4"; then
15598 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15600 fi
15601 printf "%s\n" "$as_me: error: $2" >&2
15602 as_fn_exit $as_status
15603 } # as_fn_error
15604
15605
15606
15607 # as_fn_set_status STATUS
15608 # -----------------------
15609 # Set $? to STATUS, without forking.
15610 as_fn_set_status ()
15611 {
15612 return $1
15613 } # as_fn_set_status
15614
15615 # as_fn_exit STATUS
15616 # -----------------
15617 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15618 as_fn_exit ()
15619 {
15620 set +e
15621 as_fn_set_status $1
15622 exit $1
15623 } # as_fn_exit
15624
15625 # as_fn_unset VAR
15626 # ---------------
15627 # Portably unset VAR.
15628 as_fn_unset ()
15629 {
15630 { eval $1=; unset $1;}
15631 }
15632 as_unset=as_fn_unset
15633
15634 # as_fn_append VAR VALUE
15635 # ----------------------
15636 # Append the text in VALUE to the end of the definition contained in VAR. Take
15637 # advantage of any shell optimizations that allow amortized linear growth over
15638 # repeated appends, instead of the typical quadratic growth present in naive
15639 # implementations.
15640 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15641 then :
15642 eval 'as_fn_append ()
15643 {
15644 eval $1+=\$2
15645 }'
15646 else $as_nop
15647 as_fn_append ()
15648 {
15649 eval $1=\$$1\$2
15650 }
15651 fi # as_fn_append
15652
15653 # as_fn_arith ARG...
15654 # ------------------
15655 # Perform arithmetic evaluation on the ARGs, and store the result in the
15656 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15657 # must be portable across $(()) and expr.
15658 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15659 then :
15660 eval 'as_fn_arith ()
15661 {
15662 as_val=$(( $* ))
15663 }'
15664 else $as_nop
15665 as_fn_arith ()
15666 {
15667 as_val=`expr "$@" || test $? -eq 1`
15668 }
15669 fi # as_fn_arith
15670
15671
15672 if expr a : '\(a\)' >/dev/null 2>&1 &&
15673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15674 as_expr=expr
15675 else
15676 as_expr=false
15677 fi
15678
15679 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15680 as_basename=basename
15681 else
15682 as_basename=false
15683 fi
15684
15685 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15686 as_dirname=dirname
15687 else
15688 as_dirname=false
15689 fi
15690
15691 as_me=`$as_basename -- "$0" ||
15692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15693 X"$0" : 'X\(//\)$' \| \
15694 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15695 printf "%s\n" X/"$0" |
15696 sed '/^.*\/\([^/][^/]*\)\/*$/{
15697 s//\1/
15698 q
15699 }
15700 /^X\/\(\/\/\)$/{
15701 s//\1/
15702 q
15703 }
15704 /^X\/\(\/\).*/{
15705 s//\1/
15706 q
15707 }
15708 s/.*/./; q'`
15709
15710 # Avoid depending upon Character Ranges.
15711 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15712 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15713 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15714 as_cr_digits='0123456789'
15715 as_cr_alnum=$as_cr_Letters$as_cr_digits
15716
15717
15718 # Determine whether it's possible to make 'echo' print without a newline.
15719 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15720 # for compatibility with existing Makefiles.
15721 ECHO_C= ECHO_N= ECHO_T=
15722 case `echo -n x` in #(((((
15723 -n*)
15724 case `echo 'xy\c'` in
15725 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15726 xy) ECHO_C='\c';;
15727 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15728 ECHO_T=' ';;
15729 esac;;
15730 *)
15731 ECHO_N='-n';;
15732 esac
15733
15734 # For backward compatibility with old third-party macros, we provide
15735 # the shell variables $as_echo and $as_echo_n. New code should use
15736 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15737 as_echo='printf %s\n'
15738 as_echo_n='printf %s'
15739
15740 rm -f conf$$ conf$$.exe conf$$.file
15741 if test -d conf$$.dir; then
15742 rm -f conf$$.dir/conf$$.file
15743 else
15744 rm -f conf$$.dir
15745 mkdir conf$$.dir 2>/dev/null
15746 fi
15747 if (echo >conf$$.file) 2>/dev/null; then
15748 if ln -s conf$$.file conf$$ 2>/dev/null; then
15749 as_ln_s='ln -s'
15750 # ... but there are two gotchas:
15751 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15752 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15753 # In both cases, we have to default to `cp -pR'.
15754 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15755 as_ln_s='cp -pR'
15756 elif ln conf$$.file conf$$ 2>/dev/null; then
15757 as_ln_s=ln
15758 else
15759 as_ln_s='cp -pR'
15760 fi
15761 else
15762 as_ln_s='cp -pR'
15763 fi
15764 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15765 rmdir conf$$.dir 2>/dev/null
15766
15767
15768 # as_fn_mkdir_p
15769 # -------------
15770 # Create "$as_dir" as a directory, including parents if necessary.
15771 as_fn_mkdir_p ()
15772 {
15773
15774 case $as_dir in #(
15775 -*) as_dir=./$as_dir;;
15776 esac
15777 test -d "$as_dir" || eval $as_mkdir_p || {
15778 as_dirs=
15779 while :; do
15780 case $as_dir in #(
15781 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15782 *) as_qdir=$as_dir;;
15783 esac
15784 as_dirs="'$as_qdir' $as_dirs"
15785 as_dir=`$as_dirname -- "$as_dir" ||
15786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15787 X"$as_dir" : 'X\(//\)[^/]' \| \
15788 X"$as_dir" : 'X\(//\)$' \| \
15789 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15790 printf "%s\n" X"$as_dir" |
15791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15792 s//\1/
15793 q
15794 }
15795 /^X\(\/\/\)[^/].*/{
15796 s//\1/
15797 q
15798 }
15799 /^X\(\/\/\)$/{
15800 s//\1/
15801 q
15802 }
15803 /^X\(\/\).*/{
15804 s//\1/
15805 q
15806 }
15807 s/.*/./; q'`
15808 test -d "$as_dir" && break
15809 done
15810 test -z "$as_dirs" || eval "mkdir $as_dirs"
15811 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15812
15813
15814 } # as_fn_mkdir_p
15815 if mkdir -p . 2>/dev/null; then
15816 as_mkdir_p='mkdir -p "$as_dir"'
15817 else
15818 test -d ./-p && rmdir ./-p
15819 as_mkdir_p=false
15820 fi
15821
15822
15823 # as_fn_executable_p FILE
15824 # -----------------------
15825 # Test if FILE is an executable regular file.
15826 as_fn_executable_p ()
15827 {
15828 test -f "$1" && test -x "$1"
15829 } # as_fn_executable_p
15830 as_test_x='test -x'
15831 as_executable_p=as_fn_executable_p
15832
15833 # Sed expression to map a string onto a valid CPP name.
15834 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15835
15836 # Sed expression to map a string onto a valid variable name.
15837 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15838
15839
15840 exec 6>&1
15841 ## ----------------------------------- ##
15842 ## Main body of $CONFIG_STATUS script. ##
15843 ## ----------------------------------- ##
15844 _ASEOF
15845 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15846
15847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15848 # Save the log message, to keep $0 and so on meaningful, and to
15849 # report actual input values of CONFIG_FILES etc. instead of their
15850 # values after options handling.
15851 ac_log="
15852 This file was extended by GNU Make $as_me 4.4.1, which was
15853 generated by GNU Autoconf 2.71. Invocation command line was
15854
15855 CONFIG_FILES = $CONFIG_FILES
15856 CONFIG_HEADERS = $CONFIG_HEADERS
15857 CONFIG_LINKS = $CONFIG_LINKS
15858 CONFIG_COMMANDS = $CONFIG_COMMANDS
15859 $ $0 $@
15860
15861 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15862 "
15863
15864 _ACEOF
15865
15866 case $ac_config_files in *"
15867 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15868 esac
15869
15870 case $ac_config_headers in *"
15871 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15872 esac
15873
15874
15875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15876 # Files that config.status was made for.
15877 config_files="$ac_config_files"
15878 config_headers="$ac_config_headers"
15879 config_links="$ac_config_links"
15880 config_commands="$ac_config_commands"
15881
15882 _ACEOF
15883
15884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15885 ac_cs_usage="\
15886 \`$as_me' instantiates files and other configuration actions
15887 from templates according to the current configuration. Unless the files
15888 and actions are specified as TAGs, all are instantiated by default.
15889
15890 Usage: $0 [OPTION]... [TAG]...
15891
15892 -h, --help print this help, then exit
15893 -V, --version print version number and configuration settings, then exit
15894 --config print configuration, then exit
15895 -q, --quiet, --silent
15896 do not print progress messages
15897 -d, --debug don't remove temporary files
15898 --recheck update $as_me by reconfiguring in the same conditions
15899 --file=FILE[:TEMPLATE]
15900 instantiate the configuration file FILE
15901 --header=FILE[:TEMPLATE]
15902 instantiate the configuration header FILE
15903
15904 Configuration files:
15905 $config_files
15906
15907 Configuration headers:
15908 $config_headers
15909
15910 Configuration links:
15911 $config_links
15912
15913 Configuration commands:
15914 $config_commands
15915
15916 Report bugs to <[email protected]>.
15917 GNU Make home page: <https://www.gnu.org/software/make/>.
15918 General help using GNU software: <https://www.gnu.org/gethelp/>."
15919
15920 _ACEOF
15921 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15922 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
15923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15924 ac_cs_config='$ac_cs_config_escaped'
15925 ac_cs_version="\\
15926 GNU Make config.status 4.4.1
15927 configured by $0, generated by GNU Autoconf 2.71,
15928 with options \\"\$ac_cs_config\\"
15929
15930 Copyright (C) 2021 Free Software Foundation, Inc.
15931 This config.status script is free software; the Free Software Foundation
15932 gives unlimited permission to copy, distribute and modify it."
15933
15934 ac_pwd='$ac_pwd'
15935 srcdir='$srcdir'
15936 INSTALL='$INSTALL'
15937 MKDIR_P='$MKDIR_P'
15938 AWK='$AWK'
15939 test -n "\$AWK" || AWK=awk
15940 _ACEOF
15941
15942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15943 # The default lists apply if the user does not specify any file.
15944 ac_need_defaults=:
15945 while test $# != 0
15946 do
15947 case $1 in
15948 --*=?*)
15949 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15950 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15951 ac_shift=:
15952 ;;
15953 --*=)
15954 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15955 ac_optarg=
15956 ac_shift=:
15957 ;;
15958 *)
15959 ac_option=$1
15960 ac_optarg=$2
15961 ac_shift=shift
15962 ;;
15963 esac
15964
15965 case $ac_option in
15966 # Handling of the options.
15967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15968 ac_cs_recheck=: ;;
15969 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15970 printf "%s\n" "$ac_cs_version"; exit ;;
15971 --config | --confi | --conf | --con | --co | --c )
15972 printf "%s\n" "$ac_cs_config"; exit ;;
15973 --debug | --debu | --deb | --de | --d | -d )
15974 debug=: ;;
15975 --file | --fil | --fi | --f )
15976 $ac_shift
15977 case $ac_optarg in
15978 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15979 '') as_fn_error $? "missing file argument" ;;
15980 esac
15981 as_fn_append CONFIG_FILES " '$ac_optarg'"
15982 ac_need_defaults=false;;
15983 --header | --heade | --head | --hea )
15984 $ac_shift
15985 case $ac_optarg in
15986 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15987 esac
15988 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15989 ac_need_defaults=false;;
15990 --he | --h)
15991 # Conflict between --help and --header
15992 as_fn_error $? "ambiguous option: \`$1'
15993 Try \`$0 --help' for more information.";;
15994 --help | --hel | -h )
15995 printf "%s\n" "$ac_cs_usage"; exit ;;
15996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15997 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15998 ac_cs_silent=: ;;
15999
16000 # This is an error.
16001 -*) as_fn_error $? "unrecognized option: \`$1'
16002 Try \`$0 --help' for more information." ;;
16003
16004 *) as_fn_append ac_config_targets " $1"
16005 ac_need_defaults=false ;;
16006
16007 esac
16008 shift
16009 done
16010
16011 ac_configure_extra_args=
16012
16013 if $ac_cs_silent; then
16014 exec 6>/dev/null
16015 ac_configure_extra_args="$ac_configure_extra_args --silent"
16016 fi
16017
16018 _ACEOF
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 if \$ac_cs_recheck; then
16021 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16022 shift
16023 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
16024 CONFIG_SHELL='$SHELL'
16025 export CONFIG_SHELL
16026 exec "\$@"
16027 fi
16028
16029 _ACEOF
16030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16031 exec 5>>config.log
16032 {
16033 echo
16034 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16035 ## Running $as_me. ##
16036 _ASBOX
16037 printf "%s\n" "$ac_log"
16038 } >&5
16039
16040 _ACEOF
16041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16042 #
16043 # INIT-COMMANDS
16044 #
16045 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16046 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16047 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16048 # from automake < 1.5.
16049 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16050 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16051 LINGUAS="${LINGUAS-%UNSET%}"
16052
16053
16054 _ACEOF
16055
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16057
16058 # Handling of arguments.
16059 for ac_config_target in $ac_config_targets
16060 do
16061 case $ac_config_target in
16062 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16063 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16064 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
16065 "build.cfg") CONFIG_FILES="$CONFIG_FILES build.cfg" ;;
16066 "tests/config-flags.pm") CONFIG_FILES="$CONFIG_FILES tests/config-flags.pm" ;;
16067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16068 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
16069 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16070 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16071 "build.sh") CONFIG_LINKS="$CONFIG_LINKS build.sh:build.sh" ;;
16072
16073 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16074 esac
16075 done
16076
16077
16078 # If the user did not use the arguments to specify the items to instantiate,
16079 # then the envvar interface is used. Set only those that are not.
16080 # We use the long form for the default assignment because of an extremely
16081 # bizarre bug on SunOS 4.1.3.
16082 if $ac_need_defaults; then
16083 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16084 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16085 test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
16086 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
16087 fi
16088
16089 # Have a temporary directory for convenience. Make it in the build tree
16090 # simply because there is no reason against having it here, and in addition,
16091 # creating and moving files from /tmp can sometimes cause problems.
16092 # Hook for its removal unless debugging.
16093 # Note that there is a small window in which the directory will not be cleaned:
16094 # after its creation but before its name has been assigned to `$tmp'.
16095 $debug ||
16096 {
16097 tmp= ac_tmp=
16098 trap 'exit_status=$?
16099 : "${ac_tmp:=$tmp}"
16100 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16101 ' 0
16102 trap 'as_fn_exit 1' 1 2 13 15
16103 }
16104 # Create a (secure) tmp directory for tmp files.
16105
16106 {
16107 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16108 test -d "$tmp"
16109 } ||
16110 {
16111 tmp=./conf$$-$RANDOM
16112 (umask 077 && mkdir "$tmp")
16113 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16114 ac_tmp=$tmp
16115
16116 # Set up the scripts for CONFIG_FILES section.
16117 # No need to generate them if there are no CONFIG_FILES.
16118 # This happens for instance with `./config.status config.h'.
16119 if test -n "$CONFIG_FILES"; then
16120
16121 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16122 ac_cs_awk_getline=:
16123 ac_cs_awk_pipe_init=
16124 ac_cs_awk_read_file='
16125 while ((getline aline < (F[key])) > 0)
16126 print(aline)
16127 close(F[key])'
16128 ac_cs_awk_pipe_fini=
16129 else
16130 ac_cs_awk_getline=false
16131 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16132 ac_cs_awk_read_file='
16133 print "|#_!!_#|"
16134 print "cat " F[key] " &&"
16135 '$ac_cs_awk_pipe_init
16136 # The final `:' finishes the AND list.
16137 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16138 fi
16139 ac_cr=`echo X | tr X '\015'`
16140 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16141 # But we know of no other shell where ac_cr would be empty at this
16142 # point, so we can use a bashism as a fallback.
16143 if test "x$ac_cr" = x; then
16144 eval ac_cr=\$\'\\r\'
16145 fi
16146 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16147 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16148 ac_cs_awk_cr='\\r'
16149 else
16150 ac_cs_awk_cr=$ac_cr
16151 fi
16152
16153 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16154 _ACEOF
16155
16156 # Create commands to substitute file output variables.
16157 {
16158 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16159 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
16160 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16161 echo "_ACAWK" &&
16162 echo "_ACEOF"
16163 } >conf$$files.sh &&
16164 . ./conf$$files.sh ||
16165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16166 rm -f conf$$files.sh
16167
16168 {
16169 echo "cat >conf$$subs.awk <<_ACEOF" &&
16170 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16171 echo "_ACEOF"
16172 } >conf$$subs.sh ||
16173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16174 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16175 ac_delim='%!_!# '
16176 for ac_last_try in false false false false false :; do
16177 . ./conf$$subs.sh ||
16178 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16179
16180 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16181 if test $ac_delim_n = $ac_delim_num; then
16182 break
16183 elif $ac_last_try; then
16184 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16185 else
16186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16187 fi
16188 done
16189 rm -f conf$$subs.sh
16190
16191 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16192 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16193 _ACEOF
16194 sed -n '
16195 h
16196 s/^/S["/; s/!.*/"]=/
16197 p
16198 g
16199 s/^[^!]*!//
16200 :repl
16201 t repl
16202 s/'"$ac_delim"'$//
16203 t delim
16204 :nl
16205 h
16206 s/\(.\{148\}\)..*/\1/
16207 t more1
16208 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16209 p
16210 n
16211 b repl
16212 :more1
16213 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16214 p
16215 g
16216 s/.\{148\}//
16217 t nl
16218 :delim
16219 h
16220 s/\(.\{148\}\)..*/\1/
16221 t more2
16222 s/["\\]/\\&/g; s/^/"/; s/$/"/
16223 p
16224 b
16225 :more2
16226 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16227 p
16228 g
16229 s/.\{148\}//
16230 t delim
16231 ' <conf$$subs.awk | sed '
16232 /^[^""]/{
16233 N
16234 s/\n//
16235 }
16236 ' >>$CONFIG_STATUS || ac_write_fail=1
16237 rm -f conf$$subs.awk
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 _ACAWK
16240 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16241 for (key in S) S_is_set[key] = 1
16242 FS = ""
16243 \$ac_cs_awk_pipe_init
16244 }
16245 {
16246 line = $ 0
16247 nfields = split(line, field, "@")
16248 substed = 0
16249 len = length(field[1])
16250 for (i = 2; i < nfields; i++) {
16251 key = field[i]
16252 keylen = length(key)
16253 if (S_is_set[key]) {
16254 value = S[key]
16255 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16256 len += length(value) + length(field[++i])
16257 substed = 1
16258 } else
16259 len += 1 + keylen
16260 }
16261 if (nfields == 3 && !substed) {
16262 key = field[2]
16263 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16264 \$ac_cs_awk_read_file
16265 next
16266 }
16267 }
16268 print line
16269 }
16270 \$ac_cs_awk_pipe_fini
16271 _ACAWK
16272 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16275 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16276 else
16277 cat
16278 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16279 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16280 _ACEOF
16281
16282 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16283 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16284 # trailing colons and then remove the whole line if VPATH becomes empty
16285 # (actually we leave an empty line to preserve line numbers).
16286 if test "x$srcdir" = x.; then
16287 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16288 h
16289 s///
16290 s/^/:/
16291 s/[ ]*$/:/
16292 s/:\$(srcdir):/:/g
16293 s/:\${srcdir}:/:/g
16294 s/:@srcdir@:/:/g
16295 s/^:*//
16296 s/:*$//
16297 x
16298 s/\(=[ ]*\).*/\1/
16299 G
16300 s/\n//
16301 s/^[^=]*=[ ]*$//
16302 }'
16303 fi
16304
16305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306 fi # test -n "$CONFIG_FILES"
16307
16308 # Set up the scripts for CONFIG_HEADERS section.
16309 # No need to generate them if there are no CONFIG_HEADERS.
16310 # This happens for instance with `./config.status Makefile'.
16311 if test -n "$CONFIG_HEADERS"; then
16312 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16313 BEGIN {
16314 _ACEOF
16315
16316 # Transform confdefs.h into an awk script `defines.awk', embedded as
16317 # here-document in config.status, that substitutes the proper values into
16318 # config.h.in to produce config.h.
16319
16320 # Create a delimiter string that does not exist in confdefs.h, to ease
16321 # handling of long lines.
16322 ac_delim='%!_!# '
16323 for ac_last_try in false false :; do
16324 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16325 if test -z "$ac_tt"; then
16326 break
16327 elif $ac_last_try; then
16328 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16329 else
16330 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16331 fi
16332 done
16333
16334 # For the awk script, D is an array of macro values keyed by name,
16335 # likewise P contains macro parameters if any. Preserve backslash
16336 # newline sequences.
16337
16338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16339 sed -n '
16340 s/.\{148\}/&'"$ac_delim"'/g
16341 t rset
16342 :rset
16343 s/^[ ]*#[ ]*define[ ][ ]*/ /
16344 t def
16345 d
16346 :def
16347 s/\\$//
16348 t bsnl
16349 s/["\\]/\\&/g
16350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16351 D["\1"]=" \3"/p
16352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16353 d
16354 :bsnl
16355 s/["\\]/\\&/g
16356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16357 D["\1"]=" \3\\\\\\n"\\/p
16358 t cont
16359 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16360 t cont
16361 d
16362 :cont
16363 n
16364 s/.\{148\}/&'"$ac_delim"'/g
16365 t clear
16366 :clear
16367 s/\\$//
16368 t bsnlc
16369 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16370 d
16371 :bsnlc
16372 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16373 b cont
16374 ' <confdefs.h | sed '
16375 s/'"$ac_delim"'/"\\\
16376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16377
16378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379 for (key in D) D_is_set[key] = 1
16380 FS = ""
16381 }
16382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16383 line = \$ 0
16384 split(line, arg, " ")
16385 if (arg[1] == "#") {
16386 defundef = arg[2]
16387 mac1 = arg[3]
16388 } else {
16389 defundef = substr(arg[1], 2)
16390 mac1 = arg[2]
16391 }
16392 split(mac1, mac2, "(") #)
16393 macro = mac2[1]
16394 prefix = substr(line, 1, index(line, defundef) - 1)
16395 if (D_is_set[macro]) {
16396 # Preserve the white space surrounding the "#".
16397 print prefix "define", macro P[macro] D[macro]
16398 next
16399 } else {
16400 # Replace #undef with comments. This is necessary, for example,
16401 # in the case of _POSIX_SOURCE, which is predefined and required
16402 # on some systems where configure will not decide to define it.
16403 if (defundef == "undef") {
16404 print "/*", prefix defundef, macro, "*/"
16405 next
16406 }
16407 }
16408 }
16409 { print }
16410 _ACAWK
16411 _ACEOF
16412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16413 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16414 fi # test -n "$CONFIG_HEADERS"
16415
16416
16417 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
16418 shift
16419 for ac_tag
16420 do
16421 case $ac_tag in
16422 :[FHLC]) ac_mode=$ac_tag; continue;;
16423 esac
16424 case $ac_mode$ac_tag in
16425 :[FHL]*:*);;
16426 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16427 :[FH]-) ac_tag=-:-;;
16428 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16429 esac
16430 ac_save_IFS=$IFS
16431 IFS=:
16432 set x $ac_tag
16433 IFS=$ac_save_IFS
16434 shift
16435 ac_file=$1
16436 shift
16437
16438 case $ac_mode in
16439 :L) ac_source=$1;;
16440 :[FH])
16441 ac_file_inputs=
16442 for ac_f
16443 do
16444 case $ac_f in
16445 -) ac_f="$ac_tmp/stdin";;
16446 *) # Look for the file first in the build tree, then in the source tree
16447 # (if the path is not absolute). The absolute path cannot be DOS-style,
16448 # because $ac_f cannot contain `:'.
16449 test -f "$ac_f" ||
16450 case $ac_f in
16451 [\\/$]*) false;;
16452 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16453 esac ||
16454 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16455 esac
16456 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16457 as_fn_append ac_file_inputs " '$ac_f'"
16458 done
16459
16460 # Let's still pretend it is `configure' which instantiates (i.e., don't
16461 # use $as_me), people would be surprised to read:
16462 # /* config.h. Generated by config.status. */
16463 configure_input='Generated from '`
16464 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16465 `' by configure.'
16466 if test x"$ac_file" != x-; then
16467 configure_input="$ac_file. $configure_input"
16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16469 printf "%s\n" "$as_me: creating $ac_file" >&6;}
16470 fi
16471 # Neutralize special characters interpreted by sed in replacement strings.
16472 case $configure_input in #(
16473 *\&* | *\|* | *\\* )
16474 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
16475 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16476 *) ac_sed_conf_input=$configure_input;;
16477 esac
16478
16479 case $ac_tag in
16480 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16481 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16482 esac
16483 ;;
16484 esac
16485
16486 ac_dir=`$as_dirname -- "$ac_file" ||
16487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488 X"$ac_file" : 'X\(//\)[^/]' \| \
16489 X"$ac_file" : 'X\(//\)$' \| \
16490 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16491 printf "%s\n" X"$ac_file" |
16492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493 s//\1/
16494 q
16495 }
16496 /^X\(\/\/\)[^/].*/{
16497 s//\1/
16498 q
16499 }
16500 /^X\(\/\/\)$/{
16501 s//\1/
16502 q
16503 }
16504 /^X\(\/\).*/{
16505 s//\1/
16506 q
16507 }
16508 s/.*/./; q'`
16509 as_dir="$ac_dir"; as_fn_mkdir_p
16510 ac_builddir=.
16511
16512 case "$ac_dir" in
16513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16514 *)
16515 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
16516 # A ".." for each directory in $ac_dir_suffix.
16517 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16518 case $ac_top_builddir_sub in
16519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16521 esac ;;
16522 esac
16523 ac_abs_top_builddir=$ac_pwd
16524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16525 # for backward compatibility:
16526 ac_top_builddir=$ac_top_build_prefix
16527
16528 case $srcdir in
16529 .) # We are building in place.
16530 ac_srcdir=.
16531 ac_top_srcdir=$ac_top_builddir_sub
16532 ac_abs_top_srcdir=$ac_pwd ;;
16533 [\\/]* | ?:[\\/]* ) # Absolute name.
16534 ac_srcdir=$srcdir$ac_dir_suffix;
16535 ac_top_srcdir=$srcdir
16536 ac_abs_top_srcdir=$srcdir ;;
16537 *) # Relative name.
16538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16539 ac_top_srcdir=$ac_top_build_prefix$srcdir
16540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16541 esac
16542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16543
16544
16545 case $ac_mode in
16546 :F)
16547 #
16548 # CONFIG_FILE
16549 #
16550
16551 case $INSTALL in
16552 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16553 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16554 esac
16555 ac_MKDIR_P=$MKDIR_P
16556 case $MKDIR_P in
16557 [\\/$]* | ?:[\\/]* ) ;;
16558 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16559 esac
16560 _ACEOF
16561
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 # If the template does not know about datarootdir, expand it.
16564 # FIXME: This hack should be removed a few years after 2.60.
16565 ac_datarootdir_hack=; ac_datarootdir_seen=
16566 ac_sed_dataroot='
16567 /datarootdir/ {
16568 p
16569 q
16570 }
16571 /@datadir@/p
16572 /@docdir@/p
16573 /@infodir@/p
16574 /@localedir@/p
16575 /@mandir@/p'
16576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16577 *datarootdir*) ac_datarootdir_seen=yes;;
16578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16580 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583 ac_datarootdir_hack='
16584 s&@datadir@&$datadir&g
16585 s&@docdir@&$docdir&g
16586 s&@infodir@&$infodir&g
16587 s&@localedir@&$localedir&g
16588 s&@mandir@&$mandir&g
16589 s&\\\${datarootdir}&$datarootdir&g' ;;
16590 esac
16591 _ACEOF
16592
16593 # Neutralize VPATH when `$srcdir' = `.'.
16594 # Shell code in configure.ac might set extrasub.
16595 # FIXME: do we really want to maintain this feature?
16596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597 ac_sed_extra="$ac_vpsub
16598 $extrasub
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 :t
16602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16603 s|@configure_input@|$ac_sed_conf_input|;t t
16604 s&@top_builddir@&$ac_top_builddir_sub&;t t
16605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16606 s&@srcdir@&$ac_srcdir&;t t
16607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16608 s&@top_srcdir@&$ac_top_srcdir&;t t
16609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16610 s&@builddir@&$ac_builddir&;t t
16611 s&@abs_builddir@&$ac_abs_builddir&;t t
16612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16613 s&@INSTALL@&$ac_INSTALL&;t t
16614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16615 $ac_datarootdir_hack
16616 "
16617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16618 if $ac_cs_awk_getline; then
16619 $AWK -f "$ac_tmp/subs.awk"
16620 else
16621 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16622 fi \
16623 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16624
16625 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16626 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16627 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16628 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16630 which seems to be undefined. Please make sure it is defined" >&5
16631 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16632 which seems to be undefined. Please make sure it is defined" >&2;}
16633
16634 rm -f "$ac_tmp/stdin"
16635 case $ac_file in
16636 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16637 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16638 esac \
16639 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16640 ;;
16641 :H)
16642 #
16643 # CONFIG_HEADER
16644 #
16645 if test x"$ac_file" != x-; then
16646 {
16647 printf "%s\n" "/* $configure_input */" >&1 \
16648 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16649 } >"$ac_tmp/config.h" \
16650 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16651 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16653 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
16654 else
16655 rm -f "$ac_file"
16656 mv "$ac_tmp/config.h" "$ac_file" \
16657 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16658 fi
16659 else
16660 printf "%s\n" "/* $configure_input */" >&1 \
16661 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16662 || as_fn_error $? "could not create -" "$LINENO" 5
16663 fi
16664 # Compute "$ac_file"'s index in $config_headers.
16665 _am_arg="$ac_file"
16666 _am_stamp_count=1
16667 for _am_header in $config_headers :; do
16668 case $_am_header in
16669 $_am_arg | $_am_arg:* )
16670 break ;;
16671 * )
16672 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16673 esac
16674 done
16675 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16676 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16677 X"$_am_arg" : 'X\(//\)[^/]' \| \
16678 X"$_am_arg" : 'X\(//\)$' \| \
16679 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16680 printf "%s\n" X"$_am_arg" |
16681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16682 s//\1/
16683 q
16684 }
16685 /^X\(\/\/\)[^/].*/{
16686 s//\1/
16687 q
16688 }
16689 /^X\(\/\/\)$/{
16690 s//\1/
16691 q
16692 }
16693 /^X\(\/\).*/{
16694 s//\1/
16695 q
16696 }
16697 s/.*/./; q'`/stamp-h$_am_stamp_count
16698 ;;
16699 :L)
16700 #
16701 # CONFIG_LINK
16702 #
16703
16704 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16705 :
16706 else
16707 # Prefer the file from the source tree if names are identical.
16708 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16709 ac_source=$srcdir/$ac_source
16710 fi
16711
16712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16713 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
16714
16715 if test ! -r "$ac_source"; then
16716 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16717 fi
16718 rm -f "$ac_file"
16719
16720 # Try a relative symlink, then a hard link, then a copy.
16721 case $ac_source in
16722 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16723 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16724 esac
16725 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16726 ln "$ac_source" "$ac_file" 2>/dev/null ||
16727 cp -p "$ac_source" "$ac_file" ||
16728 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16729 fi
16730 ;;
16731 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16732 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
16733 ;;
16734 esac
16735
16736
16737 case $ac_file$ac_mode in
16738 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16739 # Older Autoconf quotes --file arguments for eval, but not when files
16740 # are listed without --file. Let's play safe and only enable the eval
16741 # if we detect the quoting.
16742 # TODO: see whether this extra hack can be removed once we start
16743 # requiring Autoconf 2.70 or later.
16744 case $CONFIG_FILES in #(
16745 *\'*) :
16746 eval set x "$CONFIG_FILES" ;; #(
16747 *) :
16748 set x $CONFIG_FILES ;; #(
16749 *) :
16750 ;;
16751 esac
16752 shift
16753 # Used to flag and report bootstrapping failures.
16754 am_rc=0
16755 for am_mf
16756 do
16757 # Strip MF so we end up with the name of the file.
16758 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
16759 # Check whether this is an Automake generated Makefile which includes
16760 # dependency-tracking related rules and includes.
16761 # Grep'ing the whole file directly is not great: AIX grep has a line
16762 # limit of 2048, but all sed's we know have understand at least 4000.
16763 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
16764 || continue
16765 am_dirpart=`$as_dirname -- "$am_mf" ||
16766 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16767 X"$am_mf" : 'X\(//\)[^/]' \| \
16768 X"$am_mf" : 'X\(//\)$' \| \
16769 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16770 printf "%s\n" X"$am_mf" |
16771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16772 s//\1/
16773 q
16774 }
16775 /^X\(\/\/\)[^/].*/{
16776 s//\1/
16777 q
16778 }
16779 /^X\(\/\/\)$/{
16780 s//\1/
16781 q
16782 }
16783 /^X\(\/\).*/{
16784 s//\1/
16785 q
16786 }
16787 s/.*/./; q'`
16788 am_filepart=`$as_basename -- "$am_mf" ||
16789 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
16790 X"$am_mf" : 'X\(//\)$' \| \
16791 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
16792 printf "%s\n" X/"$am_mf" |
16793 sed '/^.*\/\([^/][^/]*\)\/*$/{
16794 s//\1/
16795 q
16796 }
16797 /^X\/\(\/\/\)$/{
16798 s//\1/
16799 q
16800 }
16801 /^X\/\(\/\).*/{
16802 s//\1/
16803 q
16804 }
16805 s/.*/./; q'`
16806 { echo "$as_me:$LINENO: cd "$am_dirpart" \
16807 && sed -e '/# am--include-marker/d' "$am_filepart" \
16808 | $MAKE -f - am--depfiles" >&5
16809 (cd "$am_dirpart" \
16810 && sed -e '/# am--include-marker/d' "$am_filepart" \
16811 | $MAKE -f - am--depfiles) >&5 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } || am_rc=$?
16815 done
16816 if test $am_rc -ne 0; then
16817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16818 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16819 as_fn_error $? "Something went wrong bootstrapping makefile fragments
16820 for automatic dependency tracking. If GNU make was not used, consider
16821 re-running the configure script with MAKE=\"gmake\" (or whatever is
16822 necessary). You can also try re-running configure with the
16823 '--disable-dependency-tracking' option to at least be able to build
16824 the package (albeit without support for automatic dependency tracking).
16825 See \`config.log' for more details" "$LINENO" 5; }
16826 fi
16827 { am_dirpart=; unset am_dirpart;}
16828 { am_filepart=; unset am_filepart;}
16829 { am_mf=; unset am_mf;}
16830 { am_rc=; unset am_rc;}
16831 rm -f conftest-deps.mk
16832 }
16833 ;;
16834 "po-directories":C)
16835 for ac_file in $CONFIG_FILES; do
16836 # Support "outfile[:infile[:infile...]]"
16837 case "$ac_file" in
16838 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16839 esac
16840 # PO directories have a Makefile.in generated from Makefile.in.in.
16841 case "$ac_file" in */Makefile.in)
16842 # Adjust a relative srcdir.
16843 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16844 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16845 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16846 # In autoconf-2.13 it is called $ac_given_srcdir.
16847 # In autoconf-2.50 it is called $srcdir.
16848 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16849 case "$ac_given_srcdir" in
16850 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16851 /*) top_srcdir="$ac_given_srcdir" ;;
16852 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16853 esac
16854 # Treat a directory as a PO directory if and only if it has a
16855 # POTFILES.in file. This allows packages to have multiple PO
16856 # directories under different names or in different locations.
16857 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16858 rm -f "$ac_dir/POTFILES"
16859 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16860 gt_tab=`printf '\t'`
16861 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"
16862 POMAKEFILEDEPS="POTFILES.in"
16863 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16864 # on $ac_dir but don't depend on user-specified configuration
16865 # parameters.
16866 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16867 # The LINGUAS file contains the set of available languages.
16868 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16869 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16870 fi
16871 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16872 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16873 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16874 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16875 else
16876 # The set of available languages was given in configure.in.
16877 # Hide the ALL_LINGUAS assignment from automake < 1.5.
16878 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16879 fi
16880 # Compute POFILES
16881 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16882 # Compute UPDATEPOFILES
16883 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16884 # Compute DUMMYPOFILES
16885 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16886 # Compute GMOFILES
16887 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16888 case "$ac_given_srcdir" in
16889 .) srcdirpre= ;;
16890 *) srcdirpre='$(srcdir)/' ;;
16891 esac
16892 POFILES=
16893 UPDATEPOFILES=
16894 DUMMYPOFILES=
16895 GMOFILES=
16896 for lang in $ALL_LINGUAS; do
16897 POFILES="$POFILES $srcdirpre$lang.po"
16898 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16899 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16900 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16901 done
16902 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16903 # environment variable.
16904 INST_LINGUAS=
16905 if test -n "$ALL_LINGUAS"; then
16906 for presentlang in $ALL_LINGUAS; do
16907 useit=no
16908 if test "%UNSET%" != "$LINGUAS"; then
16909 desiredlanguages="$LINGUAS"
16910 else
16911 desiredlanguages="$ALL_LINGUAS"
16912 fi
16913 for desiredlang in $desiredlanguages; do
16914 # Use the presentlang catalog if desiredlang is
16915 # a. equal to presentlang, or
16916 # b. a variant of presentlang (because in this case,
16917 # presentlang can be used as a fallback for messages
16918 # which are not translated in the desiredlang catalog).
16919 case "$desiredlang" in
16920 "$presentlang"*) useit=yes;;
16921 esac
16922 done
16923 if test $useit = yes; then
16924 INST_LINGUAS="$INST_LINGUAS $presentlang"
16925 fi
16926 done
16927 fi
16928 CATALOGS=
16929 if test -n "$INST_LINGUAS"; then
16930 for lang in $INST_LINGUAS; do
16931 CATALOGS="$CATALOGS $lang.gmo"
16932 done
16933 fi
16934 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16935 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"
16936 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16937 if test -f "$f"; then
16938 case "$f" in
16939 *.orig | *.bak | *~) ;;
16940 *) cat "$f" >> "$ac_dir/Makefile" ;;
16941 esac
16942 fi
16943 done
16944 fi
16945 ;;
16946 esac
16947 done ;;
16948
16949 esac
16950 done # for ac_tag
16951
16952
16953 as_fn_exit 0
16954 _ACEOF
16955 ac_clean_files=$ac_clean_files_save
16956
16957 test $ac_write_fail = 0 ||
16958 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16959
16960
16961 # configure is writing to config.log, and then calls config.status.
16962 # config.status does its own redirection, appending to config.log.
16963 # Unfortunately, on DOS this fails, as config.log is still kept open
16964 # by configure, so config.status won't be able to write to it; its
16965 # output is simply discarded. So we exec the FD to /dev/null,
16966 # effectively closing config.log, so it can be properly (re)opened and
16967 # appended to by config.status. When coming back to configure, we
16968 # need to make the FD available again.
16969 if test "$no_create" != yes; then
16970 ac_cs_success=:
16971 ac_config_status_args=
16972 test "$silent" = yes &&
16973 ac_config_status_args="$ac_config_status_args --quiet"
16974 exec 5>/dev/null
16975 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16976 exec 5>>config.log
16977 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16978 # would make configure fail if this is the last instruction.
16979 $ac_cs_success || as_fn_exit 1
16980 fi
16981 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16983 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16984 fi
16985
16986
16987