beta-0.89.2
[luatex.git] / source / libs / gmp / configure
blob06504a8992d44a29b7d872e973a7f2bbfd4ba68c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gmp (TeX Live) 6.1.0.
5 # Report bugs to <tex-k@tug.org>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and tex-k@tug.org
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='gmp (TeX Live)'
582 PACKAGE_TARNAME='gmp--tex-live-'
583 PACKAGE_VERSION='6.1.0'
584 PACKAGE_STRING='gmp (TeX Live) 6.1.0'
585 PACKAGE_BUGREPORT='tex-k@tug.org'
586 PACKAGE_URL=''
588 ac_unique_file="gmp-src/gmp-impl.h"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
625 enable_option_checking=no
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 subdirs
631 LIBGMP_DLL
632 HAVE_HOST_CPU_FAMILY_powerpc
633 HAVE_HOST_CPU_FAMILY_power
634 GMP_TREE
635 build_FALSE
636 build_TRUE
637 GMP_NAIL_BITS
638 GMP_LIMB_BITS
639 DEFN_LONG_LONG_LIMB
640 EGREP
641 GREP
643 host_os
644 host_vendor
645 host_cpu
646 host
647 build_os
648 build_vendor
649 build_cpu
650 build
651 VISIBILITY_CFLAGS
652 LN_S
653 RANLIB
654 WARNING_CFLAGS
655 am__fastdepCC_FALSE
656 am__fastdepCC_TRUE
657 CCDEPMODE
658 am__nodep
659 AMDEPBACKSLASH
660 AMDEP_FALSE
661 AMDEP_TRUE
662 am__quote
663 am__include
664 DEPDIR
665 OBJEXT
666 EXEEXT
667 ac_ct_CC
668 CPPFLAGS
669 LDFLAGS
670 CFLAGS
672 MAINT
673 MAINTAINER_MODE_FALSE
674 MAINTAINER_MODE_TRUE
675 AM_BACKSLASH
676 AM_DEFAULT_VERBOSITY
677 AM_DEFAULT_V
678 AM_V
679 am__untar
680 am__tar
681 AMTAR
682 am__leading_dot
683 SET_MAKE
685 mkdir_p
686 MKDIR_P
687 INSTALL_STRIP_PROGRAM
688 STRIP
689 install_sh
690 MAKEINFO
691 AUTOHEADER
692 AUTOMAKE
693 AUTOCONF
694 ACLOCAL
695 VERSION
696 PACKAGE
697 CYGPATH_W
698 am__isrc
699 INSTALL_DATA
700 INSTALL_SCRIPT
701 INSTALL_PROGRAM
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_URL
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_silent_rules
744 enable_maintainer_mode
745 enable_dependency_tracking
746 enable_compiler_warnings
748 ac_precious_vars='build_alias
749 host_alias
750 target_alias
752 CFLAGS
753 LDFLAGS
754 LIBS
755 CPPFLAGS
756 CPP'
757 ac_subdirs_all='native'
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 ac_unrecognized_opts=
763 ac_unrecognized_sep=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
766 cache_file=/dev/null
767 exec_prefix=NONE
768 no_create=
769 no_recursion=
770 prefix=NONE
771 program_prefix=NONE
772 program_suffix=NONE
773 program_transform_name=s,x,x,
774 silent=
775 site=
776 srcdir=
777 verbose=
778 x_includes=NONE
779 x_libraries=NONE
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
807 ac_prev=
808 ac_dashdash=
809 for ac_option
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
818 case $ac_option in
819 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *=) ac_optarg= ;;
821 *) ac_optarg=yes ;;
822 esac
824 # Accept the important Cygnus configure options, so we can diagnose typos.
826 case $ac_dashdash$ac_option in
828 ac_dashdash=yes ;;
830 -bindir | --bindir | --bindi | --bind | --bin | --bi)
831 ac_prev=bindir ;;
832 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 bindir=$ac_optarg ;;
835 -build | --build | --buil | --bui | --bu)
836 ac_prev=build_alias ;;
837 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
838 build_alias=$ac_optarg ;;
840 -cache-file | --cache-file | --cache-fil | --cache-fi \
841 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
842 ac_prev=cache_file ;;
843 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
844 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
845 cache_file=$ac_optarg ;;
847 --config-cache | -C)
848 cache_file=config.cache ;;
850 -datadir | --datadir | --datadi | --datad)
851 ac_prev=datadir ;;
852 -datadir=* | --datadir=* | --datadi=* | --datad=*)
853 datadir=$ac_optarg ;;
855 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
856 | --dataroo | --dataro | --datar)
857 ac_prev=datarootdir ;;
858 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
859 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
860 datarootdir=$ac_optarg ;;
862 -disable-* | --disable-*)
863 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 as_fn_error $? "invalid feature name: $ac_useropt"
867 ac_useropt_orig=$ac_useropt
868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
869 case $ac_user_opts in
871 "enable_$ac_useropt"
872 "*) ;;
873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
874 ac_unrecognized_sep=', ';;
875 esac
876 eval enable_$ac_useropt=no ;;
878 -docdir | --docdir | --docdi | --doc | --do)
879 ac_prev=docdir ;;
880 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 docdir=$ac_optarg ;;
883 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
884 ac_prev=dvidir ;;
885 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 dvidir=$ac_optarg ;;
888 -enable-* | --enable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=\$ac_optarg ;;
904 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
905 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
906 | --exec | --exe | --ex)
907 ac_prev=exec_prefix ;;
908 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
909 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
910 | --exec=* | --exe=* | --ex=*)
911 exec_prefix=$ac_optarg ;;
913 -gas | --gas | --ga | --g)
914 # Obsolete; use --with-gas.
915 with_gas=yes ;;
917 -help | --help | --hel | --he | -h)
918 ac_init_help=long ;;
919 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
920 ac_init_help=recursive ;;
921 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
922 ac_init_help=short ;;
924 -host | --host | --hos | --ho)
925 ac_prev=host_alias ;;
926 -host=* | --host=* | --hos=* | --ho=*)
927 host_alias=$ac_optarg ;;
929 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
930 ac_prev=htmldir ;;
931 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
932 | --ht=*)
933 htmldir=$ac_optarg ;;
935 -includedir | --includedir | --includedi | --included | --include \
936 | --includ | --inclu | --incl | --inc)
937 ac_prev=includedir ;;
938 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
939 | --includ=* | --inclu=* | --incl=* | --inc=*)
940 includedir=$ac_optarg ;;
942 -infodir | --infodir | --infodi | --infod | --info | --inf)
943 ac_prev=infodir ;;
944 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
945 infodir=$ac_optarg ;;
947 -libdir | --libdir | --libdi | --libd)
948 ac_prev=libdir ;;
949 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 libdir=$ac_optarg ;;
952 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
953 | --libexe | --libex | --libe)
954 ac_prev=libexecdir ;;
955 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
956 | --libexe=* | --libex=* | --libe=*)
957 libexecdir=$ac_optarg ;;
959 -localedir | --localedir | --localedi | --localed | --locale)
960 ac_prev=localedir ;;
961 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
962 localedir=$ac_optarg ;;
964 -localstatedir | --localstatedir | --localstatedi | --localstated \
965 | --localstate | --localstat | --localsta | --localst | --locals)
966 ac_prev=localstatedir ;;
967 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
968 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
969 localstatedir=$ac_optarg ;;
971 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
972 ac_prev=mandir ;;
973 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
974 mandir=$ac_optarg ;;
976 -nfp | --nfp | --nf)
977 # Obsolete; use --without-fp.
978 with_fp=no ;;
980 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
981 | --no-cr | --no-c | -n)
982 no_create=yes ;;
984 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
985 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 no_recursion=yes ;;
988 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
989 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
990 | --oldin | --oldi | --old | --ol | --o)
991 ac_prev=oldincludedir ;;
992 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
993 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
994 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
995 oldincludedir=$ac_optarg ;;
997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
998 ac_prev=prefix ;;
999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 prefix=$ac_optarg ;;
1002 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1003 | --program-pre | --program-pr | --program-p)
1004 ac_prev=program_prefix ;;
1005 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1006 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1007 program_prefix=$ac_optarg ;;
1009 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1010 | --program-suf | --program-su | --program-s)
1011 ac_prev=program_suffix ;;
1012 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1013 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1014 program_suffix=$ac_optarg ;;
1016 -program-transform-name | --program-transform-name \
1017 | --program-transform-nam | --program-transform-na \
1018 | --program-transform-n | --program-transform- \
1019 | --program-transform | --program-transfor \
1020 | --program-transfo | --program-transf \
1021 | --program-trans | --program-tran \
1022 | --progr-tra | --program-tr | --program-t)
1023 ac_prev=program_transform_name ;;
1024 -program-transform-name=* | --program-transform-name=* \
1025 | --program-transform-nam=* | --program-transform-na=* \
1026 | --program-transform-n=* | --program-transform-=* \
1027 | --program-transform=* | --program-transfor=* \
1028 | --program-transfo=* | --program-transf=* \
1029 | --program-trans=* | --program-tran=* \
1030 | --progr-tra=* | --program-tr=* | --program-t=*)
1031 program_transform_name=$ac_optarg ;;
1033 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1034 ac_prev=pdfdir ;;
1035 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1036 pdfdir=$ac_optarg ;;
1038 -psdir | --psdir | --psdi | --psd | --ps)
1039 ac_prev=psdir ;;
1040 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 psdir=$ac_optarg ;;
1043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044 | -silent | --silent | --silen | --sile | --sil)
1045 silent=yes ;;
1047 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1048 ac_prev=sbindir ;;
1049 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1050 | --sbi=* | --sb=*)
1051 sbindir=$ac_optarg ;;
1053 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1054 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1055 | --sharedst | --shareds | --shared | --share | --shar \
1056 | --sha | --sh)
1057 ac_prev=sharedstatedir ;;
1058 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1059 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1060 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1061 | --sha=* | --sh=*)
1062 sharedstatedir=$ac_optarg ;;
1064 -site | --site | --sit)
1065 ac_prev=site ;;
1066 -site=* | --site=* | --sit=*)
1067 site=$ac_optarg ;;
1069 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1070 ac_prev=srcdir ;;
1071 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1072 srcdir=$ac_optarg ;;
1074 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1075 | --syscon | --sysco | --sysc | --sys | --sy)
1076 ac_prev=sysconfdir ;;
1077 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1078 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1079 sysconfdir=$ac_optarg ;;
1081 -target | --target | --targe | --targ | --tar | --ta | --t)
1082 ac_prev=target_alias ;;
1083 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1084 target_alias=$ac_optarg ;;
1086 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 verbose=yes ;;
1089 -version | --version | --versio | --versi | --vers | -V)
1090 ac_init_version=: ;;
1092 -with-* | --with-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error $? "invalid package name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "with_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval with_$ac_useropt=\$ac_optarg ;;
1108 -without-* | --without-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "with_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval with_$ac_useropt=no ;;
1124 --x)
1125 # Obsolete; use --with-x.
1126 with_x=yes ;;
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1143 Try \`$0 --help' for more information"
1146 *=*)
1147 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148 # Reject names that are not valid shell variable names.
1149 case $ac_envvar in #(
1150 '' | [0-9]* | *[!_$as_cr_alnum]* )
1151 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1152 esac
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1164 esac
1165 done
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 as_fn_error $? "missing argument to $ac_option"
1172 if test -n "$ac_unrecognized_opts"; then
1173 case $enable_option_checking in
1174 no) ;;
1175 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1176 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1177 esac
1180 # Check all directory arguments for consistency.
1181 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1182 datadir sysconfdir sharedstatedir localstatedir includedir \
1183 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1184 libdir localedir mandir
1186 eval ac_val=\$$ac_var
1187 # Remove trailing slashes.
1188 case $ac_val in
1189 */ )
1190 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1191 eval $ac_var=\$ac_val;;
1192 esac
1193 # Be sure to have absolute directory names.
1194 case $ac_val in
1195 [\\/$]* | ?:[\\/]* ) continue;;
1196 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1197 esac
1198 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 done
1201 # There might be people who depend on the old broken behavior: `$host'
1202 # used to hold the argument of --host etc.
1203 # FIXME: To remove some day.
1204 build=$build_alias
1205 host=$host_alias
1206 target=$target_alias
1208 # FIXME: To remove some day.
1209 if test "x$host_alias" != x; then
1210 if test "x$build_alias" = x; then
1211 cross_compiling=maybe
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 s//\1/
1245 /^X\(\/\/\)[^/].*/{
1246 s//\1/
1249 /^X\(\/\/\)$/{
1250 s//\1/
1253 /^X\(\/\).*/{
1254 s//\1/
1257 s/.*/./; q'`
1258 srcdir=$ac_confdir
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 srcdir=..
1262 else
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1272 pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 srcdir=.
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1296 cat <<_ACEOF
1297 \`configure' configures gmp (TeX Live) 6.1.0 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1306 Configuration:
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 [PREFIX]
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp--tex-live-]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1350 _ACEOF
1352 cat <<\_ACEOF
1354 Program names:
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1359 System types:
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 _ACEOF
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of gmp (TeX Live) 6.1.0:";;
1368 esac
1369 cat <<\_ACEOF
1371 Optional Features:
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --enable-silent-rules less verbose build output (undo: "make V=1")
1376 --disable-silent-rules verbose build output (undo: "make V=0")
1377 --enable-maintainer-mode
1378 enable make rules and dependencies not useful (and
1379 sometimes confusing) to the casual installer
1380 --enable-dependency-tracking
1381 do not reject slow dependency extractors
1382 --disable-dependency-tracking
1383 speeds up one-time build
1384 --enable-compiler-warnings=[no|min|yes|max|all]
1385 Turn on compiler warnings [default: yes if
1386 maintainer-mode, min otherwise]
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1398 Use these variables to override the choices made by `configure' or to help
1399 it to find libraries and programs with nonstandard names/locations.
1401 Report bugs to <tex-k@tug.org>.
1402 _ACEOF
1403 ac_status=$?
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1411 continue
1412 ac_builddir=.
1414 case "$ac_dir" in
1415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1417 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 esac ;;
1424 esac
1425 ac_abs_top_builddir=$ac_pwd
1426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir=$ac_top_build_prefix
1430 case $srcdir in
1431 .) # We are building in place.
1432 ac_srcdir=.
1433 ac_top_srcdir=$ac_top_builddir_sub
1434 ac_abs_top_srcdir=$ac_pwd ;;
1435 [\\/]* | ?:[\\/]* ) # Absolute name.
1436 ac_srcdir=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir=$srcdir
1438 ac_abs_top_srcdir=$srcdir ;;
1439 *) # Relative name.
1440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 esac
1444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status=$?; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1449 echo &&
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1454 else
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 fi || ac_status=$?
1457 cd "$ac_pwd" || { ac_status=$?; break; }
1458 done
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1463 cat <<\_ACEOF
1464 gmp (TeX Live) configure 6.1.0
1465 generated by GNU Autoconf 2.69
1467 Copyright (C) 2012 Free Software Foundation, Inc.
1468 This configure script is free software; the Free Software Foundation
1469 gives unlimited permission to copy, distribute and modify it.
1470 _ACEOF
1471 exit
1474 ## ------------------------ ##
1475 ## Autoconf initialization. ##
1476 ## ------------------------ ##
1478 # ac_fn_c_try_compile LINENO
1479 # --------------------------
1480 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1481 ac_fn_c_try_compile ()
1483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1484 rm -f conftest.$ac_objext
1485 if { { ac_try="$ac_compile"
1486 case "(($ac_try" in
1487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488 *) ac_try_echo=$ac_try;;
1489 esac
1490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491 $as_echo "$ac_try_echo"; } >&5
1492 (eval "$ac_compile") 2>conftest.err
1493 ac_status=$?
1494 if test -s conftest.err; then
1495 grep -v '^ *+' conftest.err >conftest.er1
1496 cat conftest.er1 >&5
1497 mv -f conftest.er1 conftest.err
1499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500 test $ac_status = 0; } && {
1501 test -z "$ac_c_werror_flag" ||
1502 test ! -s conftest.err
1503 } && test -s conftest.$ac_objext; then :
1504 ac_retval=0
1505 else
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1509 ac_retval=1
1511 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1512 as_fn_set_status $ac_retval
1514 } # ac_fn_c_try_compile
1516 # ac_fn_c_try_link LINENO
1517 # -----------------------
1518 # Try to link conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_c_try_link ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext conftest$ac_exeext
1523 if { { ac_try="$ac_link"
1524 case "(($ac_try" in
1525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526 *) ac_try_echo=$ac_try;;
1527 esac
1528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_link") 2>conftest.err
1531 ac_status=$?
1532 if test -s conftest.err; then
1533 grep -v '^ *+' conftest.err >conftest.er1
1534 cat conftest.er1 >&5
1535 mv -f conftest.er1 conftest.err
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_c_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest$ac_exeext && {
1542 test "$cross_compiling" = yes ||
1543 test -x conftest$ac_exeext
1544 }; then :
1545 ac_retval=0
1546 else
1547 $as_echo "$as_me: failed program was:" >&5
1548 sed 's/^/| /' conftest.$ac_ext >&5
1550 ac_retval=1
1552 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1553 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1554 # interfere with the next link command; also delete a directory that is
1555 # left behind by Apple's compiler. We do this before executing the actions.
1556 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1558 as_fn_set_status $ac_retval
1560 } # ac_fn_c_try_link
1562 # ac_fn_c_check_func LINENO FUNC VAR
1563 # ----------------------------------
1564 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1565 ac_fn_c_check_func ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1569 $as_echo_n "checking for $2... " >&6; }
1570 if eval \${$3+:} false; then :
1571 $as_echo_n "(cached) " >&6
1572 else
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1575 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1577 #define $2 innocuous_$2
1579 /* System header to define __stub macros and hopefully few prototypes,
1580 which can conflict with char $2 (); below.
1581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1582 <limits.h> exists even on freestanding compilers. */
1584 #ifdef __STDC__
1585 # include <limits.h>
1586 #else
1587 # include <assert.h>
1588 #endif
1590 #undef $2
1592 /* Override any GCC internal prototype to avoid an error.
1593 Use char because int might match the return type of a GCC
1594 builtin and then its argument prototype would still apply. */
1595 #ifdef __cplusplus
1596 extern "C"
1597 #endif
1598 char $2 ();
1599 /* The GNU C library defines this for functions which it implements
1600 to always fail with ENOSYS. Some functions are actually named
1601 something starting with __ and the normal name is an alias. */
1602 #if defined __stub_$2 || defined __stub___$2
1603 choke me
1604 #endif
1607 main ()
1609 return $2 ();
1611 return 0;
1613 _ACEOF
1614 if ac_fn_c_try_link "$LINENO"; then :
1615 eval "$3=yes"
1616 else
1617 eval "$3=no"
1619 rm -f core conftest.err conftest.$ac_objext \
1620 conftest$ac_exeext conftest.$ac_ext
1622 eval ac_res=\$$3
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1624 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 } # ac_fn_c_check_func
1629 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1630 # -------------------------------------------
1631 # Tests whether TYPE exists after having included INCLUDES, setting cache
1632 # variable VAR accordingly.
1633 ac_fn_c_check_type ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \${$3+:} false; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 eval "$3=no"
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1646 main ()
1648 if (sizeof ($2))
1649 return 0;
1651 return 0;
1653 _ACEOF
1654 if ac_fn_c_try_compile "$LINENO"; then :
1655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1656 /* end confdefs.h. */
1659 main ()
1661 if (sizeof (($2)))
1662 return 0;
1664 return 0;
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1669 else
1670 eval "$3=yes"
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 } # ac_fn_c_check_type
1683 # ac_fn_c_try_cpp LINENO
1684 # ----------------------
1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_cpp ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_cpp conftest.$ac_ext"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } > conftest.i && {
1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=1
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_c_try_cpp
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1760 } # ac_fn_c_try_run
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if eval \${$3+:} false; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1794 # --------------------------------------------
1795 # Tries to find the compile-time value of EXPR in a program that includes
1796 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1797 # computed
1798 ac_fn_c_compute_int ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if test "$cross_compiling" = yes; then
1802 # Depending upon the size, compute the lo and hi bounds.
1803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804 /* end confdefs.h. */
1807 main ()
1809 static int test_array [1 - 2 * !(($2) >= 0)];
1810 test_array [0] = 0;
1811 return test_array [0];
1814 return 0;
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818 ac_lo=0 ac_mid=0
1819 while :; do
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1824 main ()
1826 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1827 test_array [0] = 0;
1828 return test_array [0];
1831 return 0;
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_hi=$ac_mid; break
1836 else
1837 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1838 if test $ac_lo -le $ac_mid; then
1839 ac_lo= ac_hi=
1840 break
1842 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 done
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1851 main ()
1853 static int test_array [1 - 2 * !(($2) < 0)];
1854 test_array [0] = 0;
1855 return test_array [0];
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 ac_hi=-1 ac_mid=-1
1863 while :; do
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1868 main ()
1870 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1871 test_array [0] = 0;
1872 return test_array [0];
1875 return 0;
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 ac_lo=$ac_mid; break
1880 else
1881 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1882 if test $ac_mid -le $ac_hi; then
1883 ac_lo= ac_hi=
1884 break
1886 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 done
1890 else
1891 ac_lo= ac_hi=
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 # Binary search between lo and hi bounds.
1897 while test "x$ac_lo" != "x$ac_hi"; do
1898 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1903 main ()
1905 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1906 test_array [0] = 0;
1907 return test_array [0];
1910 return 0;
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_hi=$ac_mid
1915 else
1916 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 done
1920 case $ac_lo in #((
1921 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1922 '') ac_retval=1 ;;
1923 esac
1924 else
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1928 static long int longval () { return $2; }
1929 static unsigned long int ulongval () { return $2; }
1930 #include <stdio.h>
1931 #include <stdlib.h>
1933 main ()
1936 FILE *f = fopen ("conftest.val", "w");
1937 if (! f)
1938 return 1;
1939 if (($2) < 0)
1941 long int i = longval ();
1942 if (i != ($2))
1943 return 1;
1944 fprintf (f, "%ld", i);
1946 else
1948 unsigned long int i = ulongval ();
1949 if (i != ($2))
1950 return 1;
1951 fprintf (f, "%lu", i);
1953 /* Do not output a trailing newline, as this causes \r\n confusion
1954 on some platforms. */
1955 return ferror (f) || fclose (f) != 0;
1958 return 0;
1960 _ACEOF
1961 if ac_fn_c_try_run "$LINENO"; then :
1962 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1963 else
1964 ac_retval=1
1966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1967 conftest.$ac_objext conftest.beam conftest.$ac_ext
1968 rm -f conftest.val
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_compute_int
1975 cat >config.log <<_ACEOF
1976 This file contains any messages produced by compilers while
1977 running configure, to aid debugging if configure makes a mistake.
1979 It was created by gmp (TeX Live) $as_me 6.1.0, which was
1980 generated by GNU Autoconf 2.69. Invocation command line was
1982 $ $0 $@
1984 _ACEOF
1985 exec 5>>config.log
1987 cat <<_ASUNAME
1988 ## --------- ##
1989 ## Platform. ##
1990 ## --------- ##
1992 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1993 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1994 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1995 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1996 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1998 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1999 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2001 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2002 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2003 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2004 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2005 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2006 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2007 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2009 _ASUNAME
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2014 IFS=$as_save_IFS
2015 test -z "$as_dir" && as_dir=.
2016 $as_echo "PATH: $as_dir"
2017 done
2018 IFS=$as_save_IFS
2020 } >&5
2022 cat >&5 <<_ACEOF
2025 ## ----------- ##
2026 ## Core tests. ##
2027 ## ----------- ##
2029 _ACEOF
2032 # Keep a trace of the command line.
2033 # Strip out --no-create and --no-recursion so they do not pile up.
2034 # Strip out --silent because we don't want to record it for future runs.
2035 # Also quote any args containing shell meta-characters.
2036 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_configure_args=
2038 ac_configure_args0=
2039 ac_configure_args1=
2040 ac_must_keep_next=false
2041 for ac_pass in 1 2
2043 for ac_arg
2045 case $ac_arg in
2046 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2048 | -silent | --silent | --silen | --sile | --sil)
2049 continue ;;
2050 *\'*)
2051 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 case $ac_pass in
2054 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2056 as_fn_append ac_configure_args1 " '$ac_arg'"
2057 if test $ac_must_keep_next = true; then
2058 ac_must_keep_next=false # Got value, back to normal.
2059 else
2060 case $ac_arg in
2061 *=* | --config-cache | -C | -disable-* | --disable-* \
2062 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2063 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2064 | -with-* | --with-* | -without-* | --without-* | --x)
2065 case "$ac_configure_args0 " in
2066 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2067 esac
2069 -* ) ac_must_keep_next=true ;;
2070 esac
2072 as_fn_append ac_configure_args " '$ac_arg'"
2074 esac
2075 done
2076 done
2077 { ac_configure_args0=; unset ac_configure_args0;}
2078 { ac_configure_args1=; unset ac_configure_args1;}
2080 # When interrupted or exit'd, cleanup temporary files, and complete
2081 # config.log. We remove comments because anyway the quotes in there
2082 # would cause problems or look ugly.
2083 # WARNING: Use '\'' to represent an apostrophe within the trap.
2084 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2085 trap 'exit_status=$?
2086 # Save into config.log some information that might help in debugging.
2088 echo
2090 $as_echo "## ---------------- ##
2091 ## Cache variables. ##
2092 ## ---------------- ##"
2093 echo
2094 # The following way of writing the cache mishandles newlines in values,
2096 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2097 eval ac_val=\$$ac_var
2098 case $ac_val in #(
2099 *${as_nl}*)
2100 case $ac_var in #(
2101 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2102 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2103 esac
2104 case $ac_var in #(
2105 _ | IFS | as_nl) ;; #(
2106 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2107 *) { eval $ac_var=; unset $ac_var;} ;;
2108 esac ;;
2109 esac
2110 done
2111 (set) 2>&1 |
2112 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2113 *${as_nl}ac_space=\ *)
2114 sed -n \
2115 "s/'\''/'\''\\\\'\'''\''/g;
2116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2117 ;; #(
2119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 esac |
2122 sort
2124 echo
2126 $as_echo "## ----------------- ##
2127 ## Output variables. ##
2128 ## ----------------- ##"
2129 echo
2130 for ac_var in $ac_subst_vars
2132 eval ac_val=\$$ac_var
2133 case $ac_val in
2134 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135 esac
2136 $as_echo "$ac_var='\''$ac_val'\''"
2137 done | sort
2138 echo
2140 if test -n "$ac_subst_files"; then
2141 $as_echo "## ------------------- ##
2142 ## File substitutions. ##
2143 ## ------------------- ##"
2144 echo
2145 for ac_var in $ac_subst_files
2147 eval ac_val=\$$ac_var
2148 case $ac_val in
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2150 esac
2151 $as_echo "$ac_var='\''$ac_val'\''"
2152 done | sort
2153 echo
2156 if test -s confdefs.h; then
2157 $as_echo "## ----------- ##
2158 ## confdefs.h. ##
2159 ## ----------- ##"
2160 echo
2161 cat confdefs.h
2162 echo
2164 test "$ac_signal" != 0 &&
2165 $as_echo "$as_me: caught signal $ac_signal"
2166 $as_echo "$as_me: exit $exit_status"
2167 } >&5
2168 rm -f core *.core core.conftest.* &&
2169 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2170 exit $exit_status
2172 for ac_signal in 1 2 13 15; do
2173 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 done
2175 ac_signal=0
2177 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2178 rm -f -r conftest* confdefs.h
2180 $as_echo "/* confdefs.h */" > confdefs.h
2182 # Predefined preprocessor variables.
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_NAME "$PACKAGE_NAME"
2186 _ACEOF
2188 cat >>confdefs.h <<_ACEOF
2189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2190 _ACEOF
2192 cat >>confdefs.h <<_ACEOF
2193 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2194 _ACEOF
2196 cat >>confdefs.h <<_ACEOF
2197 #define PACKAGE_STRING "$PACKAGE_STRING"
2198 _ACEOF
2200 cat >>confdefs.h <<_ACEOF
2201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2202 _ACEOF
2204 cat >>confdefs.h <<_ACEOF
2205 #define PACKAGE_URL "$PACKAGE_URL"
2206 _ACEOF
2209 # Let the site file select an alternate cache file if it wants to.
2210 # Prefer an explicitly selected file to automatically selected ones.
2211 ac_site_file1=NONE
2212 ac_site_file2=NONE
2213 if test -n "$CONFIG_SITE"; then
2214 # We do not want a PATH search for config.site.
2215 case $CONFIG_SITE in #((
2216 -*) ac_site_file1=./$CONFIG_SITE;;
2217 */*) ac_site_file1=$CONFIG_SITE;;
2218 *) ac_site_file1=./$CONFIG_SITE;;
2219 esac
2220 elif test "x$prefix" != xNONE; then
2221 ac_site_file1=$prefix/share/config.site
2222 ac_site_file2=$prefix/etc/config.site
2223 else
2224 ac_site_file1=$ac_default_prefix/share/config.site
2225 ac_site_file2=$ac_default_prefix/etc/config.site
2227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2229 test "x$ac_site_file" = xNONE && continue
2230 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2233 sed 's/^/| /' "$ac_site_file" >&5
2234 . "$ac_site_file" \
2235 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 as_fn_error $? "failed to load site script $ac_site_file
2238 See \`config.log' for more details" "$LINENO" 5; }
2240 done
2242 if test -r "$cache_file"; then
2243 # Some versions of bash will fail to source /dev/null (special files
2244 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2245 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2247 $as_echo "$as_me: loading cache $cache_file" >&6;}
2248 case $cache_file in
2249 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2250 *) . "./$cache_file";;
2251 esac
2253 else
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2255 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 >$cache_file
2259 # Check that the precious variables saved in the cache have kept the same
2260 # value.
2261 ac_cache_corrupted=false
2262 for ac_var in $ac_precious_vars; do
2263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2264 eval ac_new_set=\$ac_env_${ac_var}_set
2265 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2266 eval ac_new_val=\$ac_env_${ac_var}_value
2267 case $ac_old_set,$ac_new_set in
2268 set,)
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2271 ac_cache_corrupted=: ;;
2272 ,set)
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2274 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2275 ac_cache_corrupted=: ;;
2276 ,);;
2278 if test "x$ac_old_val" != "x$ac_new_val"; then
2279 # differences in whitespace do not lead to failure.
2280 ac_old_val_w=`echo x $ac_old_val`
2281 ac_new_val_w=`echo x $ac_new_val`
2282 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2284 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2285 ac_cache_corrupted=:
2286 else
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2288 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2289 eval $ac_var=\$ac_old_val
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2292 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2294 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2295 fi;;
2296 esac
2297 # Pass precious variables to config.status.
2298 if test "$ac_new_set" = set; then
2299 case $ac_new_val in
2300 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2301 *) ac_arg=$ac_var=$ac_new_val ;;
2302 esac
2303 case " $ac_configure_args " in
2304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2305 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2306 esac
2308 done
2309 if $ac_cache_corrupted; then
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2313 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2314 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2316 ## -------------------- ##
2317 ## Main body of script. ##
2318 ## -------------------- ##
2320 ac_ext=c
2321 ac_cpp='$CPP $CPPFLAGS'
2322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329 ac_aux_dir=
2330 for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
2331 if test -f "$ac_dir/install-sh"; then
2332 ac_aux_dir=$ac_dir
2333 ac_install_sh="$ac_aux_dir/install-sh -c"
2334 break
2335 elif test -f "$ac_dir/install.sh"; then
2336 ac_aux_dir=$ac_dir
2337 ac_install_sh="$ac_aux_dir/install.sh -c"
2338 break
2339 elif test -f "$ac_dir/shtool"; then
2340 ac_aux_dir=$ac_dir
2341 ac_install_sh="$ac_aux_dir/shtool install -c"
2342 break
2344 done
2345 if test -z "$ac_aux_dir"; then
2346 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ../../build-aux \"$srcdir\"/../../build-aux" "$LINENO" 5
2349 # These three variables are undocumented and unsupported,
2350 # and are intended to be withdrawn in a future Autoconf release.
2351 # They can cause serious problems if a builder's source tree is in a directory
2352 # whose full name contains unusual characters.
2353 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2354 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2355 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360 am__api_version='1.15'
2362 # Find a good install program. We prefer a C program (faster),
2363 # so one script is as good as another. But avoid the broken or
2364 # incompatible versions:
2365 # SysV /etc/install, /usr/sbin/install
2366 # SunOS /usr/etc/install
2367 # IRIX /sbin/install
2368 # AIX /bin/install
2369 # AmigaOS /C/install, which installs bootblocks on floppy discs
2370 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2373 # OS/2's system install, which has a completely different semantic
2374 # ./install, which can be erroneously created by make from ./install.sh.
2375 # Reject install programs that cannot install multiple files.
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2378 if test -z "$INSTALL"; then
2379 if ${ac_cv_path_install+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381 else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 # Account for people who put trailing slashes in PATH elements.
2388 case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2392 /usr/ucb/* ) ;;
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2396 # by default.
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2400 if test $ac_prog = install &&
2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2402 # AIX install. It has an incompatible calling convention.
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2408 else
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2412 mkdir conftest.dir
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2417 then
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 break 3
2423 done
2424 done
2426 esac
2428 done
2429 IFS=$as_save_IFS
2431 rm -rf conftest.one conftest.two conftest.dir
2434 if test "${ac_cv_path_install+set}" = set; then
2435 INSTALL=$ac_cv_path_install
2436 else
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
2439 # break other packages using the cache if that directory is
2440 # removed, or if the value is a relative name.
2441 INSTALL=$ac_install_sh
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445 $as_echo "$INSTALL" >&6; }
2447 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448 # It thinks the first close brace ends the variable substitution.
2449 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2451 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2453 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2456 $as_echo_n "checking whether build environment is sane... " >&6; }
2457 # Reject unsafe characters in $srcdir or the absolute working directory
2458 # name. Accept space and tab only in the latter.
2459 am_lf='
2461 case `pwd` in
2462 *[\\\"\#\$\&\'\`$am_lf]*)
2463 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2464 esac
2465 case $srcdir in
2466 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2467 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2468 esac
2470 # Do 'set' in a subshell so we don't clobber the current shell's
2471 # arguments. Must try -L first in case configure is actually a
2472 # symlink; some systems play weird games with the mod time of symlinks
2473 # (eg FreeBSD returns the mod time of the symlink's containing
2474 # directory).
2475 if (
2476 am_has_slept=no
2477 for am_try in 1 2; do
2478 echo "timestamp, slept: $am_has_slept" > conftest.file
2479 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2480 if test "$*" = "X"; then
2481 # -L didn't work.
2482 set X `ls -t "$srcdir/configure" conftest.file`
2484 if test "$*" != "X $srcdir/configure conftest.file" \
2485 && test "$*" != "X conftest.file $srcdir/configure"; then
2487 # If neither matched, then we have a broken ls. This can happen
2488 # if, for instance, CONFIG_SHELL is bash and it inherits a
2489 # broken ls alias from the environment. This has actually
2490 # happened. Such a system could not be considered "sane".
2491 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2492 alias in your environment" "$LINENO" 5
2494 if test "$2" = conftest.file || test $am_try -eq 2; then
2495 break
2497 # Just in case.
2498 sleep 1
2499 am_has_slept=yes
2500 done
2501 test "$2" = conftest.file
2503 then
2504 # Ok.
2506 else
2507 as_fn_error $? "newly created file is older than distributed files!
2508 Check your system clock" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511 $as_echo "yes" >&6; }
2512 # If we didn't sleep, we still need to ensure time stamps of config.status and
2513 # generated files are strictly newer.
2514 am_sleep_pid=
2515 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2516 ( sleep 1 ) &
2517 am_sleep_pid=$!
2520 rm -f conftest.file
2522 test "$program_prefix" != NONE &&
2523 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2524 # Use a double $ so make ignores it.
2525 test "$program_suffix" != NONE &&
2526 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2527 # Double any \ or $.
2528 # By default was `s,x,x', remove it if useless.
2529 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2530 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532 # Expand $ac_aux_dir to an absolute path.
2533 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2535 if test x"${MISSING+set}" != xset; then
2536 case $am_aux_dir in
2537 *\ * | *\ *)
2538 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2540 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2541 esac
2543 # Use eval to expand $SHELL
2544 if eval "$MISSING --is-lightweight"; then
2545 am_missing_run="$MISSING "
2546 else
2547 am_missing_run=
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2549 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2552 if test x"${install_sh+set}" != xset; then
2553 case $am_aux_dir in
2554 *\ * | *\ *)
2555 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2557 install_sh="\${SHELL} $am_aux_dir/install-sh"
2558 esac
2561 # Installed binaries are usually stripped using 'strip' when the user
2562 # run "make install-strip". However 'strip' might not be the right
2563 # tool to use in cross-compilation environments, therefore Automake
2564 # will honor the 'STRIP' environment variable to overrule this program.
2565 if test "$cross_compiling" != no; then
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2568 set dummy ${ac_tool_prefix}strip; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_STRIP+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$STRIP"; then
2575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2584 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2588 done
2589 done
2590 IFS=$as_save_IFS
2594 STRIP=$ac_cv_prog_STRIP
2595 if test -n "$STRIP"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2597 $as_echo "$STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 $as_echo "no" >&6; }
2605 if test -z "$ac_cv_prog_STRIP"; then
2606 ac_ct_STRIP=$STRIP
2607 # Extract the first word of "strip", so it can be a program name with args.
2608 set dummy strip; ac_word=$2
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_STRIP"; then
2615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2624 ac_cv_prog_ac_ct_STRIP="strip"
2625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2628 done
2629 done
2630 IFS=$as_save_IFS
2634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2635 if test -n "$ac_ct_STRIP"; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2637 $as_echo "$ac_ct_STRIP" >&6; }
2638 else
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2640 $as_echo "no" >&6; }
2643 if test "x$ac_ct_STRIP" = x; then
2644 STRIP=":"
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2650 ac_tool_warned=yes ;;
2651 esac
2652 STRIP=$ac_ct_STRIP
2654 else
2655 STRIP="$ac_cv_prog_STRIP"
2659 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2662 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2663 if test -z "$MKDIR_P"; then
2664 if ${ac_cv_path_mkdir+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_prog in mkdir gmkdir; do
2673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2675 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2676 'mkdir (GNU coreutils) '* | \
2677 'mkdir (coreutils) '* | \
2678 'mkdir (fileutils) '4.1*)
2679 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2680 break 3;;
2681 esac
2682 done
2683 done
2684 done
2685 IFS=$as_save_IFS
2689 test -d ./--version && rmdir ./--version
2690 if test "${ac_cv_path_mkdir+set}" = set; then
2691 MKDIR_P="$ac_cv_path_mkdir -p"
2692 else
2693 # As a last resort, use the slow shell script. Don't cache a
2694 # value for MKDIR_P within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the value is a relative name.
2697 MKDIR_P="$ac_install_sh -d"
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2701 $as_echo "$MKDIR_P" >&6; }
2703 for ac_prog in gawk mawk nawk awk
2705 # Extract the first word of "$ac_prog", so it can be a program name with args.
2706 set dummy $ac_prog; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if ${ac_cv_prog_AWK+:} false; then :
2710 $as_echo_n "(cached) " >&6
2711 else
2712 if test -n "$AWK"; then
2713 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_AWK="$ac_prog"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2726 done
2727 done
2728 IFS=$as_save_IFS
2732 AWK=$ac_cv_prog_AWK
2733 if test -n "$AWK"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2735 $as_echo "$AWK" >&6; }
2736 else
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2742 test -n "$AWK" && break
2743 done
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2746 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2747 set x ${MAKE-make}
2748 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2749 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat >conftest.make <<\_ACEOF
2753 SHELL = /bin/sh
2754 all:
2755 @echo '@@@%%%=$(MAKE)=@@@%%%'
2756 _ACEOF
2757 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2758 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2759 *@@@%%%=?*=@@@%%%*)
2760 eval ac_cv_prog_make_${ac_make}_set=yes;;
2762 eval ac_cv_prog_make_${ac_make}_set=no;;
2763 esac
2764 rm -f conftest.make
2766 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2768 $as_echo "yes" >&6; }
2769 SET_MAKE=
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2773 SET_MAKE="MAKE=${MAKE-make}"
2776 rm -rf .tst 2>/dev/null
2777 mkdir .tst 2>/dev/null
2778 if test -d .tst; then
2779 am__leading_dot=.
2780 else
2781 am__leading_dot=_
2783 rmdir .tst 2>/dev/null
2785 # Check whether --enable-silent-rules was given.
2786 if test "${enable_silent_rules+set}" = set; then :
2787 enableval=$enable_silent_rules;
2790 case $enable_silent_rules in # (((
2791 yes) AM_DEFAULT_VERBOSITY=0;;
2792 no) AM_DEFAULT_VERBOSITY=1;;
2793 *) AM_DEFAULT_VERBOSITY=1;;
2794 esac
2795 am_make=${MAKE-make}
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2797 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2798 if ${am_cv_make_support_nested_variables+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 if $as_echo 'TRUE=$(BAR$(V))
2802 BAR0=false
2803 BAR1=true
2805 am__doit:
2806 @$(TRUE)
2807 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2808 am_cv_make_support_nested_variables=yes
2809 else
2810 am_cv_make_support_nested_variables=no
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2814 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2815 if test $am_cv_make_support_nested_variables = yes; then
2816 AM_V='$(V)'
2817 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2818 else
2819 AM_V=$AM_DEFAULT_VERBOSITY
2820 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2822 AM_BACKSLASH='\'
2824 DEPDIR="${am__leading_dot}deps"
2826 ac_config_commands="$ac_config_commands depfiles"
2829 am_make=${MAKE-make}
2830 cat > confinc << 'END'
2831 am__doit:
2832 @echo this is the am__doit target
2833 .PHONY: am__doit
2835 # If we don't find an include directive, just comment out the code.
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2837 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2838 am__include="#"
2839 am__quote=
2840 _am_result=none
2841 # First try GNU make style include.
2842 echo "include confinc" > confmf
2843 # Ignore all kinds of additional output from 'make'.
2844 case `$am_make -s -f confmf 2> /dev/null` in #(
2845 *the\ am__doit\ target*)
2846 am__include=include
2847 am__quote=
2848 _am_result=GNU
2850 esac
2851 # Now try BSD make style include.
2852 if test "$am__include" = "#"; then
2853 echo '.include "confinc"' > confmf
2854 case `$am_make -s -f confmf 2> /dev/null` in #(
2855 *the\ am__doit\ target*)
2856 am__include=.include
2857 am__quote="\""
2858 _am_result=BSD
2860 esac
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2865 $as_echo "$_am_result" >&6; }
2866 rm -f confinc confmf
2868 # Check whether --enable-dependency-tracking was given.
2869 if test "${enable_dependency_tracking+set}" = set; then :
2870 enableval=$enable_dependency_tracking;
2873 if test "x$enable_dependency_tracking" != xno; then
2874 am_depcomp="$ac_aux_dir/depcomp"
2875 AMDEPBACKSLASH='\'
2876 am__nodep='_no'
2878 if test "x$enable_dependency_tracking" != xno; then
2879 AMDEP_TRUE=
2880 AMDEP_FALSE='#'
2881 else
2882 AMDEP_TRUE='#'
2883 AMDEP_FALSE=
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 if test -n "$ac_tool_prefix"; then
2893 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2894 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2896 $as_echo_n "checking for $ac_word... " >&6; }
2897 if ${ac_cv_prog_CC+:} false; then :
2898 $as_echo_n "(cached) " >&6
2899 else
2900 if test -n "$CC"; then
2901 ac_cv_prog_CC="$CC" # Let the user override the test.
2902 else
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2912 break 2
2914 done
2915 done
2916 IFS=$as_save_IFS
2920 CC=$ac_cv_prog_CC
2921 if test -n "$CC"; then
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2923 $as_echo "$CC" >&6; }
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2931 if test -z "$ac_cv_prog_CC"; then
2932 ac_ct_CC=$CC
2933 # Extract the first word of "gcc", so it can be a program name with args.
2934 set dummy gcc; ac_word=$2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2936 $as_echo_n "checking for $ac_word... " >&6; }
2937 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2938 $as_echo_n "(cached) " >&6
2939 else
2940 if test -n "$ac_ct_CC"; then
2941 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2942 else
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2944 for as_dir in $PATH
2946 IFS=$as_save_IFS
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_prog_ac_ct_CC="gcc"
2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2952 break 2
2954 done
2955 done
2956 IFS=$as_save_IFS
2960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2961 if test -n "$ac_ct_CC"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2963 $as_echo "$ac_ct_CC" >&6; }
2964 else
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2969 if test "x$ac_ct_CC" = x; then
2970 CC=""
2971 else
2972 case $cross_compiling:$ac_tool_warned in
2973 yes:)
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2976 ac_tool_warned=yes ;;
2977 esac
2978 CC=$ac_ct_CC
2980 else
2981 CC="$ac_cv_prog_CC"
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2987 set dummy ${ac_tool_prefix}cc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if ${ac_cv_prog_CC+:} false; then :
2991 $as_echo_n "(cached) " >&6
2992 else
2993 if test -n "$CC"; then
2994 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2999 IFS=$as_save_IFS
3000 test -z "$as_dir" && as_dir=.
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3003 ac_cv_prog_CC="${ac_tool_prefix}cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3007 done
3008 done
3009 IFS=$as_save_IFS
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3025 if test -z "$CC"; then
3026 # Extract the first word of "cc", so it can be a program name with args.
3027 set dummy cc; ac_word=$2
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3029 $as_echo_n "checking for $ac_word... " >&6; }
3030 if ${ac_cv_prog_CC+:} false; then :
3031 $as_echo_n "(cached) " >&6
3032 else
3033 if test -n "$CC"; then
3034 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 else
3036 ac_prog_rejected=no
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3045 ac_prog_rejected=yes
3046 continue
3048 ac_cv_prog_CC="cc"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3052 done
3053 done
3054 IFS=$as_save_IFS
3056 if test $ac_prog_rejected = yes; then
3057 # We found a bogon in the path, so make sure we never use it.
3058 set dummy $ac_cv_prog_CC
3059 shift
3060 if test $# != 0; then
3061 # We chose a different compiler from the bogus one.
3062 # However, it has the same basename, so the bogon will be chosen
3063 # first if we set CC to just the basename; use the full file name.
3064 shift
3065 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3070 CC=$ac_cv_prog_CC
3071 if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3074 else
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3081 if test -z "$CC"; then
3082 if test -n "$ac_tool_prefix"; then
3083 for ac_prog in cl.exe
3085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_CC+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$CC"; then
3093 ac_cv_prog_CC="$CC" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 CC=$ac_cv_prog_CC
3113 if test -n "$CC"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3115 $as_echo "$CC" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3122 test -n "$CC" && break
3123 done
3125 if test -z "$CC"; then
3126 ac_ct_CC=$CC
3127 for ac_prog in cl.exe
3129 # Extract the first word of "$ac_prog", so it can be a program name with args.
3130 set dummy $ac_prog; ac_word=$2
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3132 $as_echo_n "checking for $ac_word... " >&6; }
3133 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3134 $as_echo_n "(cached) " >&6
3135 else
3136 if test -n "$ac_ct_CC"; then
3137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3138 else
3139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3140 for as_dir in $PATH
3142 IFS=$as_save_IFS
3143 test -z "$as_dir" && as_dir=.
3144 for ac_exec_ext in '' $ac_executable_extensions; do
3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3146 ac_cv_prog_ac_ct_CC="$ac_prog"
3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3148 break 2
3150 done
3151 done
3152 IFS=$as_save_IFS
3156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3157 if test -n "$ac_ct_CC"; then
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3159 $as_echo "$ac_ct_CC" >&6; }
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3166 test -n "$ac_ct_CC" && break
3167 done
3169 if test "x$ac_ct_CC" = x; then
3170 CC=""
3171 else
3172 case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178 CC=$ac_ct_CC
3185 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details" "$LINENO" 5; }
3190 # Provide some information about the compiler.
3191 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3192 set X $ac_compile
3193 ac_compiler=$2
3194 for ac_option in --version -v -V -qversion; do
3195 { { ac_try="$ac_compiler $ac_option >&5"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3201 $as_echo "$ac_try_echo"; } >&5
3202 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3203 ac_status=$?
3204 if test -s conftest.err; then
3205 sed '10a\
3206 ... rest of stderr output deleted ...
3207 10q' conftest.err >conftest.er1
3208 cat conftest.er1 >&5
3210 rm -f conftest.er1 conftest.err
3211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }
3213 done
3215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3216 /* end confdefs.h. */
3219 main ()
3223 return 0;
3225 _ACEOF
3226 ac_clean_files_save=$ac_clean_files
3227 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3228 # Try to create an executable without -o first, disregard a.out.
3229 # It will help us diagnose broken compilers, and finding out an intuition
3230 # of exeext.
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3232 $as_echo_n "checking whether the C compiler works... " >&6; }
3233 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3235 # The possible output files:
3236 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3238 ac_rmfiles=
3239 for ac_file in $ac_files
3241 case $ac_file in
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3243 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244 esac
3245 done
3246 rm -f $ac_rmfiles
3248 if { { ac_try="$ac_link_default"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_link_default") 2>&5
3256 ac_status=$?
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; then :
3259 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3261 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3262 # so that the user can short-circuit this test for compilers unknown to
3263 # Autoconf.
3264 for ac_file in $ac_files ''
3266 test -f "$ac_file" || continue
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3270 [ab].out )
3271 # We found the default executable, but exeext='' is most
3272 # certainly right.
3273 break;;
3274 *.* )
3275 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3276 then :; else
3277 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3279 # We set ac_cv_exeext here because the later test for it is not
3280 # safe: cross compilers may not add the suffix if given an `-o'
3281 # argument, so we may need to know it at that point already.
3282 # Even if this section looks crufty: it has the advantage of
3283 # actually working.
3284 break;;
3286 break;;
3287 esac
3288 done
3289 test "$ac_cv_exeext" = no && ac_cv_exeext=
3291 else
3292 ac_file=''
3294 if test -z "$ac_file"; then :
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3296 $as_echo "no" >&6; }
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302 as_fn_error 77 "C compiler cannot create executables
3303 See \`config.log' for more details" "$LINENO" 5; }
3304 else
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3306 $as_echo "yes" >&6; }
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3309 $as_echo_n "checking for C compiler default output file name... " >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3311 $as_echo "$ac_file" >&6; }
3312 ac_exeext=$ac_cv_exeext
3314 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3315 ac_clean_files=$ac_clean_files_save
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3317 $as_echo_n "checking for suffix of executables... " >&6; }
3318 if { { ac_try="$ac_link"
3319 case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3322 esac
3323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324 $as_echo "$ac_try_echo"; } >&5
3325 (eval "$ac_link") 2>&5
3326 ac_status=$?
3327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }; then :
3329 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3330 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3331 # work properly (i.e., refer to `conftest.exe'), while it won't with
3332 # `rm'.
3333 for ac_file in conftest.exe conftest conftest.*; do
3334 test -f "$ac_file" || continue
3335 case $ac_file in
3336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3337 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3338 break;;
3339 * ) break;;
3340 esac
3341 done
3342 else
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3346 See \`config.log' for more details" "$LINENO" 5; }
3348 rm -f conftest conftest$ac_cv_exeext
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3350 $as_echo "$ac_cv_exeext" >&6; }
3352 rm -f conftest.$ac_ext
3353 EXEEXT=$ac_cv_exeext
3354 ac_exeext=$EXEEXT
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357 #include <stdio.h>
3359 main ()
3361 FILE *f = fopen ("conftest.out", "w");
3362 return ferror (f) || fclose (f) != 0;
3365 return 0;
3367 _ACEOF
3368 ac_clean_files="$ac_clean_files conftest.out"
3369 # Check that the compiler produces executables we can run. If not, either
3370 # the compiler is broken, or we cross compile.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3372 $as_echo_n "checking whether we are cross compiling... " >&6; }
3373 if test "$cross_compiling" != yes; then
3374 { { ac_try="$ac_link"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }
3385 if { ac_try='./conftest$ac_cv_exeext'
3386 { { case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_try") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }; }; then
3396 cross_compiling=no
3397 else
3398 if test "$cross_compiling" = maybe; then
3399 cross_compiling=yes
3400 else
3401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error $? "cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details" "$LINENO" 5; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3412 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3413 ac_clean_files=$ac_clean_files_save
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3415 $as_echo_n "checking for suffix of object files... " >&6; }
3416 if ${ac_cv_objext+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h. */
3423 main ()
3427 return 0;
3429 _ACEOF
3430 rm -f conftest.o conftest.obj
3431 if { { ac_try="$ac_compile"
3432 case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435 esac
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_compile") 2>&5
3439 ac_status=$?
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }; then :
3442 for ac_file in conftest.o conftest.obj conftest.*; do
3443 test -f "$ac_file" || continue;
3444 case $ac_file in
3445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3446 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3447 break;;
3448 esac
3449 done
3450 else
3451 $as_echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3456 as_fn_error $? "cannot compute suffix of object files: cannot compile
3457 See \`config.log' for more details" "$LINENO" 5; }
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3462 $as_echo "$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3464 ac_objext=$OBJEXT
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3466 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3467 if ${ac_cv_c_compiler_gnu+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3474 main ()
3476 #ifndef __GNUC__
3477 choke me
3478 #endif
3481 return 0;
3483 _ACEOF
3484 if ac_fn_c_try_compile "$LINENO"; then :
3485 ac_compiler_gnu=yes
3486 else
3487 ac_compiler_gnu=no
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3495 if test $ac_compiler_gnu = yes; then
3496 GCC=yes
3497 else
3498 GCC=
3500 ac_test_CFLAGS=${CFLAGS+set}
3501 ac_save_CFLAGS=$CFLAGS
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3504 if ${ac_cv_prog_cc_g+:} false; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 ac_save_c_werror_flag=$ac_c_werror_flag
3508 ac_c_werror_flag=yes
3509 ac_cv_prog_cc_g=no
3510 CFLAGS="-g"
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512 /* end confdefs.h. */
3515 main ()
3519 return 0;
3521 _ACEOF
3522 if ac_fn_c_try_compile "$LINENO"; then :
3523 ac_cv_prog_cc_g=yes
3524 else
3525 CFLAGS=""
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3530 main ()
3534 return 0;
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3539 else
3540 ac_c_werror_flag=$ac_save_c_werror_flag
3541 CFLAGS="-g"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 main ()
3550 return 0;
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_g=yes
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 ac_c_werror_flag=$ac_save_c_werror_flag
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3564 $as_echo "$ac_cv_prog_cc_g" >&6; }
3565 if test "$ac_test_CFLAGS" = set; then
3566 CFLAGS=$ac_save_CFLAGS
3567 elif test $ac_cv_prog_cc_g = yes; then
3568 if test "$GCC" = yes; then
3569 CFLAGS="-g -O2"
3570 else
3571 CFLAGS="-g"
3573 else
3574 if test "$GCC" = yes; then
3575 CFLAGS="-O2"
3576 else
3577 CFLAGS=
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3582 if ${ac_cv_prog_cc_c89+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 ac_cv_prog_cc_c89=no
3586 ac_save_CC=$CC
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3589 #include <stdarg.h>
3590 #include <stdio.h>
3591 struct stat;
3592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3593 struct buf { int x; };
3594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3595 static char *e (p, i)
3596 char **p;
3597 int i;
3599 return p[i];
3601 static char *f (char * (*g) (char **, int), char **p, ...)
3603 char *s;
3604 va_list v;
3605 va_start (v,p);
3606 s = g (p, va_arg (v,int));
3607 va_end (v);
3608 return s;
3611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3612 function prototypes and stuff, but not '\xHH' hex character constants.
3613 These don't provoke an error unfortunately, instead are silently treated
3614 as 'x'. The following induces an error, until -std is added to get
3615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3616 array size at least. It's necessary to write '\x00'==0 to get something
3617 that's true only with -std. */
3618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3621 inside strings and character constants. */
3622 #define FOO(x) 'x'
3623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3625 int test (int i, double x);
3626 struct s1 {int (*f) (int a);};
3627 struct s2 {int (*f) (double a);};
3628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3629 int argc;
3630 char **argv;
3632 main ()
3634 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3636 return 0;
3638 _ACEOF
3639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3642 CC="$ac_save_CC $ac_arg"
3643 if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_prog_cc_c89=$ac_arg
3646 rm -f core conftest.err conftest.$ac_objext
3647 test "x$ac_cv_prog_cc_c89" != "xno" && break
3648 done
3649 rm -f conftest.$ac_ext
3650 CC=$ac_save_CC
3653 # AC_CACHE_VAL
3654 case "x$ac_cv_prog_cc_c89" in
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3657 $as_echo "none needed" >&6; } ;;
3658 xno)
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3660 $as_echo "unsupported" >&6; } ;;
3662 CC="$CC $ac_cv_prog_cc_c89"
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3665 esac
3666 if test "x$ac_cv_prog_cc_c89" != xno; then :
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 ac_ext=c
3677 ac_cpp='$CPP $CPPFLAGS'
3678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3682 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3683 if ${am_cv_prog_cc_c_o+:} false; then :
3684 $as_echo_n "(cached) " >&6
3685 else
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 # Make sure it works both with $CC and with simple cc.
3698 # Following AC_PROG_CC_C_O, we do the test twice because some
3699 # compilers refuse to overwrite an existing .o file with -o,
3700 # though they will create one.
3701 am_cv_prog_cc_c_o=yes
3702 for am_i in 1 2; do
3703 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3704 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } \
3708 && test -f conftest2.$ac_objext; then
3709 : OK
3710 else
3711 am_cv_prog_cc_c_o=no
3712 break
3714 done
3715 rm -f core conftest*
3716 unset am_i
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3719 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3720 if test "$am_cv_prog_cc_c_o" != yes; then
3721 # Losing compiler, so override with the script.
3722 # FIXME: It is wrong to rewrite CC.
3723 # But if we don't then we get into trouble of one sort or another.
3724 # A longer-term fix would be to have automake use am__CC in this case,
3725 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3726 CC="$am_aux_dir/compile $CC"
3728 ac_ext=c
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3735 depcc="$CC" am_compiler_list=
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3738 $as_echo_n "checking dependency style of $depcc... " >&6; }
3739 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743 # We make a subdir and do the tests there. Otherwise we can end up
3744 # making bogus files that we don't know about and never remove. For
3745 # instance it was reported that on HP-UX the gcc test will end up
3746 # making a dummy file named 'D' -- because '-MD' means "put the output
3747 # in D".
3748 rm -rf conftest.dir
3749 mkdir conftest.dir
3750 # Copy depcomp to subdir because otherwise we won't find it if we're
3751 # using a relative directory.
3752 cp "$am_depcomp" conftest.dir
3753 cd conftest.dir
3754 # We will build objects and dependencies in a subdirectory because
3755 # it helps to detect inapplicable dependency modes. For instance
3756 # both Tru64's cc and ICC support -MD to output dependencies as a
3757 # side effect of compilation, but ICC will put the dependencies in
3758 # the current directory while Tru64 will put them in the object
3759 # directory.
3760 mkdir sub
3762 am_cv_CC_dependencies_compiler_type=none
3763 if test "$am_compiler_list" = ""; then
3764 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3766 am__universal=false
3767 case " $depcc " in #(
3768 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3769 esac
3771 for depmode in $am_compiler_list; do
3772 # Setup a source with many dependencies, because some compilers
3773 # like to wrap large dependency lists on column 80 (with \), and
3774 # we should not choose a depcomp mode which is confused by this.
3776 # We need to recreate these files for each test, as the compiler may
3777 # overwrite some of them when testing with obscure command lines.
3778 # This happens at least with the AIX C compiler.
3779 : > sub/conftest.c
3780 for i in 1 2 3 4 5 6; do
3781 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3782 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3783 # Solaris 10 /bin/sh.
3784 echo '/* dummy */' > sub/conftst$i.h
3785 done
3786 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3788 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3789 # mode. It turns out that the SunPro C++ compiler does not properly
3790 # handle '-M -o', and we need to detect this. Also, some Intel
3791 # versions had trouble with output in subdirs.
3792 am__obj=sub/conftest.${OBJEXT-o}
3793 am__minus_obj="-o $am__obj"
3794 case $depmode in
3795 gcc)
3796 # This depmode causes a compiler race in universal mode.
3797 test "$am__universal" = false || continue
3799 nosideeffect)
3800 # After this tag, mechanisms are not by side-effect, so they'll
3801 # only be used when explicitly requested.
3802 if test "x$enable_dependency_tracking" = xyes; then
3803 continue
3804 else
3805 break
3808 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3809 # This compiler won't grok '-c -o', but also, the minuso test has
3810 # not run yet. These depmodes are late enough in the game, and
3811 # so weak that their functioning should not be impacted.
3812 am__obj=conftest.${OBJEXT-o}
3813 am__minus_obj=
3815 none) break ;;
3816 esac
3817 if depmode=$depmode \
3818 source=sub/conftest.c object=$am__obj \
3819 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3820 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3821 >/dev/null 2>conftest.err &&
3822 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3823 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3825 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826 # icc doesn't choke on unknown options, it will just issue warnings
3827 # or remarks (even with -Werror). So we grep stderr for any message
3828 # that says an option was ignored or not supported.
3829 # When given -MP, icc 7.0 and 7.1 complain thusly:
3830 # icc: Command line warning: ignoring option '-M'; no argument required
3831 # The diagnosis changed in icc 8.0:
3832 # icc: Command line remark: option '-MP' not supported
3833 if (grep 'ignoring option' conftest.err ||
3834 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835 am_cv_CC_dependencies_compiler_type=$depmode
3836 break
3839 done
3841 cd ..
3842 rm -rf conftest.dir
3843 else
3844 am_cv_CC_dependencies_compiler_type=none
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3849 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3850 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3853 test "x$enable_dependency_tracking" != xno \
3854 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3855 am__fastdepCC_TRUE=
3856 am__fastdepCC_FALSE='#'
3857 else
3858 am__fastdepCC_TRUE='#'
3859 am__fastdepCC_FALSE=
3864 # Check whether --enable-compiler-warnings was given.
3865 if test "${enable_compiler_warnings+set}" = set; then :
3866 enableval=$enable_compiler_warnings;
3868 case $enable_compiler_warnings in #(
3869 no | min | yes | max | all) :
3870 ;; #(
3871 *) :
3872 if test "x$enable_maintainer_mode" = xyes; then :
3873 enable_compiler_warnings=yes
3874 else
3875 enable_compiler_warnings=min
3876 fi ;;
3877 esac
3880 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3881 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3882 # is not polluted with repeated "-I."
3883 am__isrc=' -I$(srcdir)'
3884 # test to see if srcdir already configured
3885 if test -f $srcdir/config.status; then
3886 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3890 # test whether we have cygpath
3891 if test -z "$CYGPATH_W"; then
3892 if (cygpath --version) >/dev/null 2>/dev/null; then
3893 CYGPATH_W='cygpath -w'
3894 else
3895 CYGPATH_W=echo
3900 # Define the identity of the package.
3901 PACKAGE='gmp--tex-live-'
3902 VERSION='6.1.0'
3905 cat >>confdefs.h <<_ACEOF
3906 #define PACKAGE "$PACKAGE"
3907 _ACEOF
3910 cat >>confdefs.h <<_ACEOF
3911 #define VERSION "$VERSION"
3912 _ACEOF
3914 # Some tools Automake needs.
3916 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3919 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3922 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3925 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3928 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3930 # For better backward compatibility. To be removed once Automake 1.9.x
3931 # dies out for good. For more background, see:
3932 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3933 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3934 mkdir_p='$(MKDIR_P)'
3936 # We need awk for the "check" target (and possibly the TAP driver). The
3937 # system "awk" is bad on some platforms.
3938 # Always define AMTAR for backward compatibility. Yes, it's still used
3939 # in the wild :-( We should find a proper way to deprecate it ...
3940 AMTAR='$${TAR-tar}'
3943 # We'll loop over all known methods to create a tar archive until one works.
3944 _am_tools='gnutar pax cpio none'
3946 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3953 # POSIX will say in a future version that running "rm -f" with no argument
3954 # is OK; and we want to be able to make that assumption in our Makefile
3955 # recipes. So use an aggressive probe to check that the usage we want is
3956 # actually supported "in the wild" to an acceptable degree.
3957 # See automake bug#10828.
3958 # To make any issue more visible, cause the running configure to be aborted
3959 # by default if the 'rm' program in use doesn't match our expectations; the
3960 # user can still override this though.
3961 if rm -f && rm -fr && rm -rf; then : OK; else
3962 cat >&2 <<'END'
3963 Oops!
3965 Your 'rm' program seems unable to run without file operands specified
3966 on the command line, even when the '-f' option is present. This is contrary
3967 to the behaviour of most rm programs out there, and not conforming with
3968 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3970 Please tell bug-automake@gnu.org about your system, including the value
3971 of your $PATH and any error possibly output before this message. This
3972 can help us improve future automake versions.
3975 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3976 echo 'Configuration will proceed anyway, since you have set the' >&2
3977 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3978 echo >&2
3979 else
3980 cat >&2 <<'END'
3981 Aborting the configuration process, to ensure you take notice of the issue.
3983 You can download and install GNU coreutils to get an 'rm' implementation
3984 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3986 If you want to complete the configuration process using your problematic
3987 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3988 to "yes", and re-run configure.
3991 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3997 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3998 # Check whether --enable-maintainer-mode was given.
3999 if test "${enable_maintainer_mode+set}" = set; then :
4000 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4001 else
4002 USE_MAINTAINER_MODE=no
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4006 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4007 if test $USE_MAINTAINER_MODE = yes; then
4008 MAINTAINER_MODE_TRUE=
4009 MAINTAINER_MODE_FALSE='#'
4010 else
4011 MAINTAINER_MODE_TRUE='#'
4012 MAINTAINER_MODE_FALSE=
4015 MAINT=$MAINTAINER_MODE_TRUE
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler accepts prototypes" >&5
4019 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
4020 if ${kb_cv_c_prototypes+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025 #include <stdarg.h>
4027 main ()
4029 extern void foo(int i,...);
4031 return 0;
4033 _ACEOF
4034 if ac_fn_c_try_link "$LINENO"; then :
4035 kb_cv_c_prototypes=yes
4036 else
4037 kb_cv_c_prototypes=no
4039 rm -f core conftest.err conftest.$ac_objext \
4040 conftest$ac_exeext conftest.$ac_ext
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kb_cv_c_prototypes" >&5
4043 $as_echo "$kb_cv_c_prototypes" >&6; }
4044 if test "x$kb_cv_c_prototypes" = xno; then
4045 as_fn_error $? "Sorry, your compiler does not understand prototypes." "$LINENO" 5
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
4048 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
4049 if ${kpse_cv_warning_cflags+:} false; then :
4050 $as_echo_n "(cached) " >&6
4051 else
4052 if test "x$GCC" = xyes; then
4053 kpse_cv_warning_cflags=
4054 if test "x$enable_compiler_warnings" != xno; then
4055 kpse_cv_warning_cflags="-Wimplicit -Wreturn-type"
4056 case `$CC -dumpversion` in #(
4057 3.4.* | 4.* | 5.*) :
4058 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wdeclaration-after-statement" ;; #(
4059 *) :
4061 esac
4062 case `$CC -dumpversion` in #(
4063 3.[234].* | 4.* | 5.*) :
4064 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wno-unknown-pragmas" ;; #(
4065 *) :
4067 esac
4068 if test "x$enable_compiler_warnings" != xmin; then
4069 kpse_cv_warning_cflags="-Wall -Wunused $kpse_cv_warning_cflags"
4070 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wmissing-prototypes -Wmissing-declarations"
4071 if test "x$enable_compiler_warnings" != xyes; then
4072 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wparentheses -Wswitch -Wtrigraphs -Wpointer-arith"
4073 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wcast-qual -Wcast-align -Wwrite-strings"
4074 case `$CC -dumpversion` in #(
4075 3.4.* | 4.* | 5.*) :
4076 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wold-style-definition" ;; #(
4077 *) :
4079 esac
4080 if test "x$enable_compiler_warnings" != xmax; then
4081 kpse_cv_warning_cflags="$kpse_cv_warning_cflags -Wshadow"
4086 elif test "x$enable_compiler_warnings" = xno; then
4087 kpse_cv_warning_cflags=
4088 else
4089 kpse_cv_warning_cflags= # FIXME: warning flags for non-GNU C compilers
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_warning_cflags" >&5
4093 $as_echo "$kpse_cv_warning_cflags" >&6; }
4094 WARNING_CFLAGS=$kpse_cv_warning_cflags
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 if test -n "$ac_tool_prefix"; then
4109 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4110 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_CC+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$CC"; then
4117 ac_cv_prog_CC="$CC" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 CC=$ac_cv_prog_CC
4137 if test -n "$CC"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4139 $as_echo "$CC" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4147 if test -z "$ac_cv_prog_CC"; then
4148 ac_ct_CC=$CC
4149 # Extract the first word of "gcc", so it can be a program name with args.
4150 set dummy gcc; ac_word=$2
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152 $as_echo_n "checking for $ac_word... " >&6; }
4153 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4154 $as_echo_n "(cached) " >&6
4155 else
4156 if test -n "$ac_ct_CC"; then
4157 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4158 else
4159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4160 for as_dir in $PATH
4162 IFS=$as_save_IFS
4163 test -z "$as_dir" && as_dir=.
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_ac_ct_CC="gcc"
4167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 break 2
4170 done
4171 done
4172 IFS=$as_save_IFS
4176 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4177 if test -n "$ac_ct_CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4179 $as_echo "$ac_ct_CC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4185 if test "x$ac_ct_CC" = x; then
4186 CC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 CC=$ac_ct_CC
4196 else
4197 CC="$ac_cv_prog_CC"
4200 if test -z "$CC"; then
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4203 set dummy ${ac_tool_prefix}cc; ac_word=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC="$CC" # Let the user override the test.
4211 else
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 for as_dir in $PATH
4215 IFS=$as_save_IFS
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC="${ac_tool_prefix}cc"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 break 2
4223 done
4224 done
4225 IFS=$as_save_IFS
4229 CC=$ac_cv_prog_CC
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4233 else
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4241 if test -z "$CC"; then
4242 # Extract the first word of "cc", so it can be a program name with args.
4243 set dummy cc; ac_word=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_CC+:} false; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 if test -n "$CC"; then
4250 ac_cv_prog_CC="$CC" # Let the user override the test.
4251 else
4252 ac_prog_rejected=no
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4260 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4261 ac_prog_rejected=yes
4262 continue
4264 ac_cv_prog_CC="cc"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4266 break 2
4268 done
4269 done
4270 IFS=$as_save_IFS
4272 if test $ac_prog_rejected = yes; then
4273 # We found a bogon in the path, so make sure we never use it.
4274 set dummy $ac_cv_prog_CC
4275 shift
4276 if test $# != 0; then
4277 # We chose a different compiler from the bogus one.
4278 # However, it has the same basename, so the bogon will be chosen
4279 # first if we set CC to just the basename; use the full file name.
4280 shift
4281 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4286 CC=$ac_cv_prog_CC
4287 if test -n "$CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4289 $as_echo "$CC" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4297 if test -z "$CC"; then
4298 if test -n "$ac_tool_prefix"; then
4299 for ac_prog in cl.exe
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_CC+:} false; then :
4306 $as_echo_n "(cached) " >&6
4307 else
4308 if test -n "$CC"; then
4309 ac_cv_prog_CC="$CC" # Let the user override the test.
4310 else
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4318 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 break 2
4322 done
4323 done
4324 IFS=$as_save_IFS
4328 CC=$ac_cv_prog_CC
4329 if test -n "$CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 $as_echo "$CC" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4338 test -n "$CC" && break
4339 done
4341 if test -z "$CC"; then
4342 ac_ct_CC=$CC
4343 for ac_prog in cl.exe
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346 set dummy $ac_prog; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$ac_ct_CC"; then
4353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_prog_ac_ct_CC="$ac_prog"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4366 done
4367 done
4368 IFS=$as_save_IFS
4372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4373 if test -n "$ac_ct_CC"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4375 $as_echo "$ac_ct_CC" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4382 test -n "$ac_ct_CC" && break
4383 done
4385 if test "x$ac_ct_CC" = x; then
4386 CC=""
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389 yes:)
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4392 ac_tool_warned=yes ;;
4393 esac
4394 CC=$ac_ct_CC
4401 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403 as_fn_error $? "no acceptable C compiler found in \$PATH
4404 See \`config.log' for more details" "$LINENO" 5; }
4406 # Provide some information about the compiler.
4407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4408 set X $ac_compile
4409 ac_compiler=$2
4410 for ac_option in --version -v -V -qversion; do
4411 { { ac_try="$ac_compiler $ac_option >&5"
4412 case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4419 ac_status=$?
4420 if test -s conftest.err; then
4421 sed '10a\
4422 ... rest of stderr output deleted ...
4423 10q' conftest.err >conftest.er1
4424 cat conftest.er1 >&5
4426 rm -f conftest.er1 conftest.err
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4429 done
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4432 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4433 if ${ac_cv_c_compiler_gnu+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4442 #ifndef __GNUC__
4443 choke me
4444 #endif
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_compiler_gnu=yes
4452 else
4453 ac_compiler_gnu=no
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4460 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4461 if test $ac_compiler_gnu = yes; then
4462 GCC=yes
4463 else
4464 GCC=
4466 ac_test_CFLAGS=${CFLAGS+set}
4467 ac_save_CFLAGS=$CFLAGS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4469 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4470 if ${ac_cv_prog_cc_g+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 ac_save_c_werror_flag=$ac_c_werror_flag
4474 ac_c_werror_flag=yes
4475 ac_cv_prog_cc_g=no
4476 CFLAGS="-g"
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4481 main ()
4485 return 0;
4487 _ACEOF
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489 ac_cv_prog_cc_g=yes
4490 else
4491 CFLAGS=""
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_c_try_compile "$LINENO"; then :
4505 else
4506 ac_c_werror_flag=$ac_save_c_werror_flag
4507 CFLAGS="-g"
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4512 main ()
4516 return 0;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_cv_prog_cc_g=yes
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_c_werror_flag=$ac_save_c_werror_flag
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4530 $as_echo "$ac_cv_prog_cc_g" >&6; }
4531 if test "$ac_test_CFLAGS" = set; then
4532 CFLAGS=$ac_save_CFLAGS
4533 elif test $ac_cv_prog_cc_g = yes; then
4534 if test "$GCC" = yes; then
4535 CFLAGS="-g -O2"
4536 else
4537 CFLAGS="-g"
4539 else
4540 if test "$GCC" = yes; then
4541 CFLAGS="-O2"
4542 else
4543 CFLAGS=
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4547 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4548 if ${ac_cv_prog_cc_c89+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 ac_cv_prog_cc_c89=no
4552 ac_save_CC=$CC
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4555 #include <stdarg.h>
4556 #include <stdio.h>
4557 struct stat;
4558 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4559 struct buf { int x; };
4560 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4561 static char *e (p, i)
4562 char **p;
4563 int i;
4565 return p[i];
4567 static char *f (char * (*g) (char **, int), char **p, ...)
4569 char *s;
4570 va_list v;
4571 va_start (v,p);
4572 s = g (p, va_arg (v,int));
4573 va_end (v);
4574 return s;
4577 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4578 function prototypes and stuff, but not '\xHH' hex character constants.
4579 These don't provoke an error unfortunately, instead are silently treated
4580 as 'x'. The following induces an error, until -std is added to get
4581 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4582 array size at least. It's necessary to write '\x00'==0 to get something
4583 that's true only with -std. */
4584 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4586 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4587 inside strings and character constants. */
4588 #define FOO(x) 'x'
4589 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4591 int test (int i, double x);
4592 struct s1 {int (*f) (int a);};
4593 struct s2 {int (*f) (double a);};
4594 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4595 int argc;
4596 char **argv;
4598 main ()
4600 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4602 return 0;
4604 _ACEOF
4605 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4606 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4608 CC="$ac_save_CC $ac_arg"
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 ac_cv_prog_cc_c89=$ac_arg
4612 rm -f core conftest.err conftest.$ac_objext
4613 test "x$ac_cv_prog_cc_c89" != "xno" && break
4614 done
4615 rm -f conftest.$ac_ext
4616 CC=$ac_save_CC
4619 # AC_CACHE_VAL
4620 case "x$ac_cv_prog_cc_c89" in
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4623 $as_echo "none needed" >&6; } ;;
4624 xno)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4626 $as_echo "unsupported" >&6; } ;;
4628 CC="$CC $ac_cv_prog_cc_c89"
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4630 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4631 esac
4632 if test "x$ac_cv_prog_cc_c89" != xno; then :
4636 ac_ext=c
4637 ac_cpp='$CPP $CPPFLAGS'
4638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 ac_ext=c
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4648 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4649 if ${am_cv_prog_cc_c_o+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 # Make sure it works both with $CC and with simple cc.
4664 # Following AC_PROG_CC_C_O, we do the test twice because some
4665 # compilers refuse to overwrite an existing .o file with -o,
4666 # though they will create one.
4667 am_cv_prog_cc_c_o=yes
4668 for am_i in 1 2; do
4669 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4670 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } \
4674 && test -f conftest2.$ac_objext; then
4675 : OK
4676 else
4677 am_cv_prog_cc_c_o=no
4678 break
4680 done
4681 rm -f core conftest*
4682 unset am_i
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4685 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4686 if test "$am_cv_prog_cc_c_o" != yes; then
4687 # Losing compiler, so override with the script.
4688 # FIXME: It is wrong to rewrite CC.
4689 # But if we don't then we get into trouble of one sort or another.
4690 # A longer-term fix would be to have automake use am__CC in this case,
4691 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4692 CC="$am_aux_dir/compile $CC"
4694 ac_ext=c
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4701 depcc="$CC" am_compiler_list=
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4704 $as_echo_n "checking dependency style of $depcc... " >&6; }
4705 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4709 # We make a subdir and do the tests there. Otherwise we can end up
4710 # making bogus files that we don't know about and never remove. For
4711 # instance it was reported that on HP-UX the gcc test will end up
4712 # making a dummy file named 'D' -- because '-MD' means "put the output
4713 # in D".
4714 rm -rf conftest.dir
4715 mkdir conftest.dir
4716 # Copy depcomp to subdir because otherwise we won't find it if we're
4717 # using a relative directory.
4718 cp "$am_depcomp" conftest.dir
4719 cd conftest.dir
4720 # We will build objects and dependencies in a subdirectory because
4721 # it helps to detect inapplicable dependency modes. For instance
4722 # both Tru64's cc and ICC support -MD to output dependencies as a
4723 # side effect of compilation, but ICC will put the dependencies in
4724 # the current directory while Tru64 will put them in the object
4725 # directory.
4726 mkdir sub
4728 am_cv_CC_dependencies_compiler_type=none
4729 if test "$am_compiler_list" = ""; then
4730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4732 am__universal=false
4733 case " $depcc " in #(
4734 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4735 esac
4737 for depmode in $am_compiler_list; do
4738 # Setup a source with many dependencies, because some compilers
4739 # like to wrap large dependency lists on column 80 (with \), and
4740 # we should not choose a depcomp mode which is confused by this.
4742 # We need to recreate these files for each test, as the compiler may
4743 # overwrite some of them when testing with obscure command lines.
4744 # This happens at least with the AIX C compiler.
4745 : > sub/conftest.c
4746 for i in 1 2 3 4 5 6; do
4747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4748 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4749 # Solaris 10 /bin/sh.
4750 echo '/* dummy */' > sub/conftst$i.h
4751 done
4752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4754 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4755 # mode. It turns out that the SunPro C++ compiler does not properly
4756 # handle '-M -o', and we need to detect this. Also, some Intel
4757 # versions had trouble with output in subdirs.
4758 am__obj=sub/conftest.${OBJEXT-o}
4759 am__minus_obj="-o $am__obj"
4760 case $depmode in
4761 gcc)
4762 # This depmode causes a compiler race in universal mode.
4763 test "$am__universal" = false || continue
4765 nosideeffect)
4766 # After this tag, mechanisms are not by side-effect, so they'll
4767 # only be used when explicitly requested.
4768 if test "x$enable_dependency_tracking" = xyes; then
4769 continue
4770 else
4771 break
4774 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4775 # This compiler won't grok '-c -o', but also, the minuso test has
4776 # not run yet. These depmodes are late enough in the game, and
4777 # so weak that their functioning should not be impacted.
4778 am__obj=conftest.${OBJEXT-o}
4779 am__minus_obj=
4781 none) break ;;
4782 esac
4783 if depmode=$depmode \
4784 source=sub/conftest.c object=$am__obj \
4785 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4786 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4787 >/dev/null 2>conftest.err &&
4788 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4789 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4790 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4791 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4792 # icc doesn't choke on unknown options, it will just issue warnings
4793 # or remarks (even with -Werror). So we grep stderr for any message
4794 # that says an option was ignored or not supported.
4795 # When given -MP, icc 7.0 and 7.1 complain thusly:
4796 # icc: Command line warning: ignoring option '-M'; no argument required
4797 # The diagnosis changed in icc 8.0:
4798 # icc: Command line remark: option '-MP' not supported
4799 if (grep 'ignoring option' conftest.err ||
4800 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4801 am_cv_CC_dependencies_compiler_type=$depmode
4802 break
4805 done
4807 cd ..
4808 rm -rf conftest.dir
4809 else
4810 am_cv_CC_dependencies_compiler_type=none
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4815 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4819 test "x$enable_dependency_tracking" != xno \
4820 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4821 am__fastdepCC_TRUE=
4822 am__fastdepCC_FALSE='#'
4823 else
4824 am__fastdepCC_TRUE='#'
4825 am__fastdepCC_FALSE=
4829 if test -n "$ac_tool_prefix"; then
4830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833 $as_echo_n "checking for $ac_word... " >&6; }
4834 if ${ac_cv_prog_RANLIB+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if test -n "$RANLIB"; then
4838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4839 else
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4843 IFS=$as_save_IFS
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849 break 2
4851 done
4852 done
4853 IFS=$as_save_IFS
4857 RANLIB=$ac_cv_prog_RANLIB
4858 if test -n "$RANLIB"; then
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4860 $as_echo "$RANLIB" >&6; }
4861 else
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4868 if test -z "$ac_cv_prog_RANLIB"; then
4869 ac_ct_RANLIB=$RANLIB
4870 # Extract the first word of "ranlib", so it can be a program name with args.
4871 set dummy ranlib; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4875 $as_echo_n "(cached) " >&6
4876 else
4877 if test -n "$ac_ct_RANLIB"; then
4878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4887 ac_cv_prog_ac_ct_RANLIB="ranlib"
4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4891 done
4892 done
4893 IFS=$as_save_IFS
4897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4898 if test -n "$ac_ct_RANLIB"; then
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4900 $as_echo "$ac_ct_RANLIB" >&6; }
4901 else
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4906 if test "x$ac_ct_RANLIB" = x; then
4907 RANLIB=":"
4908 else
4909 case $cross_compiling:$ac_tool_warned in
4910 yes:)
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4913 ac_tool_warned=yes ;;
4914 esac
4915 RANLIB=$ac_ct_RANLIB
4917 else
4918 RANLIB="$ac_cv_prog_RANLIB"
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4922 $as_echo_n "checking whether ln -s works... " >&6; }
4923 LN_S=$as_ln_s
4924 if test "$LN_S" = "ln -s"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926 $as_echo "yes" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4929 $as_echo "no, using $LN_S" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for C to hide external symbols" >&5
4934 $as_echo_n "checking CFLAGS for C to hide external symbols... " >&6; }
4935 if ${kpse_cv_visibility_cflags+:} false; then :
4936 $as_echo_n "(cached) " >&6
4937 else
4938 ac_ext=c
4939 ac_cpp='$CPP $CPPFLAGS'
4940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944 kpse_cv_visibility_cflags=unknown
4945 kpse_save_flags=$CFLAGS
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <stdio.h>
4949 extern void foo(void);
4950 void foo(void){printf("foo\n");}
4951 _ACEOF
4952 # FIXME: Add tests for non-GNU compilers
4953 for kpse_flag in '-fvisibility=hidden -fvisibility-inlines-hidden' '-fvisibility=hidden'; do
4954 CFLAGS="$kpse_save_flags -Werror $kpse_flag"
4955 if ac_fn_c_try_compile "$LINENO"; then :
4956 kpse_cv_visibility_cflags=$kpse_flag; break
4958 rm -f core conftest.err conftest.$ac_objext
4959 done
4960 ac_ext=c
4961 ac_cpp='$CPP $CPPFLAGS'
4962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpse_cv_visibility_cflags" >&5
4969 $as_echo "$kpse_cv_visibility_cflags" >&6; }
4970 CFLAGS=$kpse_save_flags
4971 case $kpse_cv_visibility_cflags in #(
4972 unknown) :
4973 ;; #(
4974 *) :
4975 VISIBILITY_CFLAGS=$kpse_cv_visibility_cflags
4977 esac
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4985 if ${ac_cv_prog_cc_c99+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 ac_cv_prog_cc_c99=no
4989 ac_save_CC=$CC
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
4992 #include <stdarg.h>
4993 #include <stdbool.h>
4994 #include <stdlib.h>
4995 #include <wchar.h>
4996 #include <stdio.h>
4998 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4999 #define debug(...) fprintf (stderr, __VA_ARGS__)
5000 #define showlist(...) puts (#__VA_ARGS__)
5001 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5002 static void
5003 test_varargs_macros (void)
5005 int x = 1234;
5006 int y = 5678;
5007 debug ("Flag");
5008 debug ("X = %d\n", x);
5009 showlist (The first, second, and third items.);
5010 report (x>y, "x is %d but y is %d", x, y);
5013 // Check long long types.
5014 #define BIG64 18446744073709551615ull
5015 #define BIG32 4294967295ul
5016 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5017 #if !BIG_OK
5018 your preprocessor is broken;
5019 #endif
5020 #if BIG_OK
5021 #else
5022 your preprocessor is broken;
5023 #endif
5024 static long long int bignum = -9223372036854775807LL;
5025 static unsigned long long int ubignum = BIG64;
5027 struct incomplete_array
5029 int datasize;
5030 double data[];
5033 struct named_init {
5034 int number;
5035 const wchar_t *name;
5036 double average;
5039 typedef const char *ccp;
5041 static inline int
5042 test_restrict (ccp restrict text)
5044 // See if C++-style comments work.
5045 // Iterate through items via the restricted pointer.
5046 // Also check for declarations in for loops.
5047 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5048 continue;
5049 return 0;
5052 // Check varargs and va_copy.
5053 static void
5054 test_varargs (const char *format, ...)
5056 va_list args;
5057 va_start (args, format);
5058 va_list args_copy;
5059 va_copy (args_copy, args);
5061 const char *str;
5062 int number;
5063 float fnumber;
5065 while (*format)
5067 switch (*format++)
5069 case 's': // string
5070 str = va_arg (args_copy, const char *);
5071 break;
5072 case 'd': // int
5073 number = va_arg (args_copy, int);
5074 break;
5075 case 'f': // float
5076 fnumber = va_arg (args_copy, double);
5077 break;
5078 default:
5079 break;
5082 va_end (args_copy);
5083 va_end (args);
5087 main ()
5090 // Check bool.
5091 _Bool success = false;
5093 // Check restrict.
5094 if (test_restrict ("String literal") == 0)
5095 success = true;
5096 char *restrict newvar = "Another string";
5098 // Check varargs.
5099 test_varargs ("s, d' f .", "string", 65, 34.234);
5100 test_varargs_macros ();
5102 // Check flexible array members.
5103 struct incomplete_array *ia =
5104 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5105 ia->datasize = 10;
5106 for (int i = 0; i < ia->datasize; ++i)
5107 ia->data[i] = i * 1.234;
5109 // Check named initializers.
5110 struct named_init ni = {
5111 .number = 34,
5112 .name = L"Test wide string",
5113 .average = 543.34343,
5116 ni.number = 58;
5118 int dynamic_array[ni.number];
5119 dynamic_array[ni.number - 1] = 543;
5121 // work around unused variable warnings
5122 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5123 || dynamic_array[ni.number - 1] != 543);
5126 return 0;
5128 _ACEOF
5129 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5131 CC="$ac_save_CC $ac_arg"
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 ac_cv_prog_cc_c99=$ac_arg
5135 rm -f core conftest.err conftest.$ac_objext
5136 test "x$ac_cv_prog_cc_c99" != "xno" && break
5137 done
5138 rm -f conftest.$ac_ext
5139 CC=$ac_save_CC
5142 # AC_CACHE_VAL
5143 case "x$ac_cv_prog_cc_c99" in
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5146 $as_echo "none needed" >&6; } ;;
5147 xno)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5149 $as_echo "unsupported" >&6; } ;;
5151 CC="$CC $ac_cv_prog_cc_c99"
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5153 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5154 esac
5155 if test "x$ac_cv_prog_cc_c99" != xno; then :
5160 CFLAGS="$CFLAGS -DNO_ASM"
5162 ac_config_headers="$ac_config_headers config.h"
5165 # Make sure we can run config.sub.
5166 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5167 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5170 $as_echo_n "checking build system type... " >&6; }
5171 if ${ac_cv_build+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173 else
5174 ac_build_alias=$build_alias
5175 test "x$ac_build_alias" = x &&
5176 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5177 test "x$ac_build_alias" = x &&
5178 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5179 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5180 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5184 $as_echo "$ac_cv_build" >&6; }
5185 case $ac_cv_build in
5186 *-*-*) ;;
5187 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5188 esac
5189 build=$ac_cv_build
5190 ac_save_IFS=$IFS; IFS='-'
5191 set x $ac_cv_build
5192 shift
5193 build_cpu=$1
5194 build_vendor=$2
5195 shift; shift
5196 # Remember, the first character of IFS is used to create $*,
5197 # except with old shells:
5198 build_os=$*
5199 IFS=$ac_save_IFS
5200 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5204 $as_echo_n "checking host system type... " >&6; }
5205 if ${ac_cv_host+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test "x$host_alias" = x; then
5209 ac_cv_host=$ac_cv_build
5210 else
5211 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5212 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5217 $as_echo "$ac_cv_host" >&6; }
5218 case $ac_cv_host in
5219 *-*-*) ;;
5220 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5221 esac
5222 host=$ac_cv_host
5223 ac_save_IFS=$IFS; IFS='-'
5224 set x $ac_cv_host
5225 shift
5226 host_cpu=$1
5227 host_vendor=$2
5228 shift; shift
5229 # Remember, the first character of IFS is used to create $*,
5230 # except with old shells:
5231 host_os=$*
5232 IFS=$ac_save_IFS
5233 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5236 if test "x$host_alias" != x && test "x$build_alias" = x; then :
5237 as_fn_error $? "when cross-compiling you must specify both --host and --build." "$LINENO" 5
5239 eval kpse_build_alias=\${build_alias-$build}
5242 for ac_func in memset raise strchr
5243 do :
5244 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5245 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5246 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5247 cat >>confdefs.h <<_ACEOF
5248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5249 _ACEOF
5252 done
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
5256 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
5257 if ${gmp_cv_c_attribute_const+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 int foo (int x) __attribute__ ((const));
5264 main ()
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 gmp_cv_c_attribute_const=yes
5273 else
5274 gmp_cv_c_attribute_const=no
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
5280 $as_echo "$gmp_cv_c_attribute_const" >&6; }
5281 if test $gmp_cv_c_attribute_const = yes; then
5283 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
5288 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
5289 if ${gmp_cv_c_attribute_malloc+:} false; then :
5290 $as_echo_n "(cached) " >&6
5291 else
5292 gmp_cv_c_attribute_malloc=no
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 void *foo (int x) __attribute__ ((malloc));
5297 main ()
5301 return 0;
5303 _ACEOF
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 if grep "attribute directive ignored" conftest.err >/dev/null; then :
5307 else
5308 gmp_cv_c_attribute_malloc=yes
5311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
5315 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
5316 if test $gmp_cv_c_attribute_malloc = yes; then
5318 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
5323 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
5324 if ${gmp_cv_c_attribute_mode+:} false; then :
5325 $as_echo_n "(cached) " >&6
5326 else
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 typedef int SItype __attribute__ ((mode (SI)));
5331 main ()
5335 return 0;
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 gmp_cv_c_attribute_mode=yes
5340 else
5341 gmp_cv_c_attribute_mode=no
5343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
5347 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
5348 if test $gmp_cv_c_attribute_mode = yes; then
5350 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
5355 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
5356 if ${gmp_cv_c_attribute_noreturn+:} false; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 void foo (int x) __attribute__ ((noreturn));
5363 main ()
5367 return 0;
5369 _ACEOF
5370 if ac_fn_c_try_compile "$LINENO"; then :
5371 gmp_cv_c_attribute_noreturn=yes
5372 else
5373 gmp_cv_c_attribute_noreturn=no
5375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
5379 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
5380 if test $gmp_cv_c_attribute_noreturn = yes; then
5382 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
5387 ac_ext=c
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5393 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5394 # On Suns, sometimes $CPP names a directory.
5395 if test -n "$CPP" && test -d "$CPP"; then
5396 CPP=
5398 if test -z "$CPP"; then
5399 if ${ac_cv_prog_CPP+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 # Double quotes because CPP needs to be expanded
5403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5405 ac_preproc_ok=false
5406 for ac_c_preproc_warn_flag in '' yes
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 #ifdef __STDC__
5417 # include <limits.h>
5418 #else
5419 # include <assert.h>
5420 #endif
5421 Syntax error
5422 _ACEOF
5423 if ac_fn_c_try_cpp "$LINENO"; then :
5425 else
5426 # Broken: fails on valid input.
5427 continue
5429 rm -f conftest.err conftest.i conftest.$ac_ext
5431 # OK, works on sane cases. Now check whether nonexistent headers
5432 # can be detected and how.
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <ac_nonexistent.h>
5436 _ACEOF
5437 if ac_fn_c_try_cpp "$LINENO"; then :
5438 # Broken: success on invalid input.
5439 continue
5440 else
5441 # Passes both tests.
5442 ac_preproc_ok=:
5443 break
5445 rm -f conftest.err conftest.i conftest.$ac_ext
5447 done
5448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5449 rm -f conftest.i conftest.err conftest.$ac_ext
5450 if $ac_preproc_ok; then :
5451 break
5454 done
5455 ac_cv_prog_CPP=$CPP
5458 CPP=$ac_cv_prog_CPP
5459 else
5460 ac_cv_prog_CPP=$CPP
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5463 $as_echo "$CPP" >&6; }
5464 ac_preproc_ok=false
5465 for ac_c_preproc_warn_flag in '' yes
5467 # Use a header file that comes with gcc, so configuring glibc
5468 # with a fresh cross-compiler works.
5469 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5470 # <limits.h> exists even on freestanding compilers.
5471 # On the NeXT, cc -E runs the code through the compiler's parser,
5472 # not just through cpp. "Syntax error" is here to catch this case.
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5475 #ifdef __STDC__
5476 # include <limits.h>
5477 #else
5478 # include <assert.h>
5479 #endif
5480 Syntax error
5481 _ACEOF
5482 if ac_fn_c_try_cpp "$LINENO"; then :
5484 else
5485 # Broken: fails on valid input.
5486 continue
5488 rm -f conftest.err conftest.i conftest.$ac_ext
5490 # OK, works on sane cases. Now check whether nonexistent headers
5491 # can be detected and how.
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <ac_nonexistent.h>
5495 _ACEOF
5496 if ac_fn_c_try_cpp "$LINENO"; then :
5497 # Broken: success on invalid input.
5498 continue
5499 else
5500 # Passes both tests.
5501 ac_preproc_ok=:
5502 break
5504 rm -f conftest.err conftest.i conftest.$ac_ext
5506 done
5507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5508 rm -f conftest.i conftest.err conftest.$ac_ext
5509 if $ac_preproc_ok; then :
5511 else
5512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5514 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5515 See \`config.log' for more details" "$LINENO" 5; }
5518 ac_ext=c
5519 ac_cpp='$CPP $CPPFLAGS'
5520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5526 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5527 if ${ac_cv_path_GREP+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -z "$GREP"; then
5531 ac_path_GREP_found=false
5532 # Loop through the user's path and test for each of PROGNAME-LIST
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_prog in grep ggrep; do
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5541 as_fn_executable_p "$ac_path_GREP" || continue
5542 # Check for GNU ac_path_GREP and select it if it is found.
5543 # Check for GNU $ac_path_GREP
5544 case `"$ac_path_GREP" --version 2>&1` in
5545 *GNU*)
5546 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5548 ac_count=0
5549 $as_echo_n 0123456789 >"conftest.in"
5550 while :
5552 cat "conftest.in" "conftest.in" >"conftest.tmp"
5553 mv "conftest.tmp" "conftest.in"
5554 cp "conftest.in" "conftest.nl"
5555 $as_echo 'GREP' >> "conftest.nl"
5556 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5558 as_fn_arith $ac_count + 1 && ac_count=$as_val
5559 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5560 # Best one so far, save it but keep looking for a better one
5561 ac_cv_path_GREP="$ac_path_GREP"
5562 ac_path_GREP_max=$ac_count
5564 # 10*(2^10) chars as input seems more than enough
5565 test $ac_count -gt 10 && break
5566 done
5567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5568 esac
5570 $ac_path_GREP_found && break 3
5571 done
5572 done
5573 done
5574 IFS=$as_save_IFS
5575 if test -z "$ac_cv_path_GREP"; then
5576 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5578 else
5579 ac_cv_path_GREP=$GREP
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5584 $as_echo "$ac_cv_path_GREP" >&6; }
5585 GREP="$ac_cv_path_GREP"
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5589 $as_echo_n "checking for egrep... " >&6; }
5590 if ${ac_cv_path_EGREP+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5594 then ac_cv_path_EGREP="$GREP -E"
5595 else
5596 if test -z "$EGREP"; then
5597 ac_path_EGREP_found=false
5598 # Loop through the user's path and test for each of PROGNAME-LIST
5599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
5604 for ac_prog in egrep; do
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5607 as_fn_executable_p "$ac_path_EGREP" || continue
5608 # Check for GNU ac_path_EGREP and select it if it is found.
5609 # Check for GNU $ac_path_EGREP
5610 case `"$ac_path_EGREP" --version 2>&1` in
5611 *GNU*)
5612 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5614 ac_count=0
5615 $as_echo_n 0123456789 >"conftest.in"
5616 while :
5618 cat "conftest.in" "conftest.in" >"conftest.tmp"
5619 mv "conftest.tmp" "conftest.in"
5620 cp "conftest.in" "conftest.nl"
5621 $as_echo 'EGREP' >> "conftest.nl"
5622 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5624 as_fn_arith $ac_count + 1 && ac_count=$as_val
5625 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5626 # Best one so far, save it but keep looking for a better one
5627 ac_cv_path_EGREP="$ac_path_EGREP"
5628 ac_path_EGREP_max=$ac_count
5630 # 10*(2^10) chars as input seems more than enough
5631 test $ac_count -gt 10 && break
5632 done
5633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5634 esac
5636 $ac_path_EGREP_found && break 3
5637 done
5638 done
5639 done
5640 IFS=$as_save_IFS
5641 if test -z "$ac_cv_path_EGREP"; then
5642 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5644 else
5645 ac_cv_path_EGREP=$EGREP
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5651 $as_echo "$ac_cv_path_EGREP" >&6; }
5652 EGREP="$ac_cv_path_EGREP"
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5656 $as_echo_n "checking for ANSI C header files... " >&6; }
5657 if ${ac_cv_header_stdc+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 #include <stdlib.h>
5663 #include <stdarg.h>
5664 #include <string.h>
5665 #include <float.h>
5668 main ()
5672 return 0;
5674 _ACEOF
5675 if ac_fn_c_try_compile "$LINENO"; then :
5676 ac_cv_header_stdc=yes
5677 else
5678 ac_cv_header_stdc=no
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 if test $ac_cv_header_stdc = yes; then
5683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5685 /* end confdefs.h. */
5686 #include <string.h>
5688 _ACEOF
5689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5690 $EGREP "memchr" >/dev/null 2>&1; then :
5692 else
5693 ac_cv_header_stdc=no
5695 rm -f conftest*
5699 if test $ac_cv_header_stdc = yes; then
5700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5702 /* end confdefs.h. */
5703 #include <stdlib.h>
5705 _ACEOF
5706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5707 $EGREP "free" >/dev/null 2>&1; then :
5709 else
5710 ac_cv_header_stdc=no
5712 rm -f conftest*
5716 if test $ac_cv_header_stdc = yes; then
5717 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5718 if test "$cross_compiling" = yes; then :
5720 else
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <ctype.h>
5724 #include <stdlib.h>
5725 #if ((' ' & 0x0FF) == 0x020)
5726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5728 #else
5729 # define ISLOWER(c) \
5730 (('a' <= (c) && (c) <= 'i') \
5731 || ('j' <= (c) && (c) <= 'r') \
5732 || ('s' <= (c) && (c) <= 'z'))
5733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5734 #endif
5736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5738 main ()
5740 int i;
5741 for (i = 0; i < 256; i++)
5742 if (XOR (islower (i), ISLOWER (i))
5743 || toupper (i) != TOUPPER (i))
5744 return 2;
5745 return 0;
5747 _ACEOF
5748 if ac_fn_c_try_run "$LINENO"; then :
5750 else
5751 ac_cv_header_stdc=no
5753 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5754 conftest.$ac_objext conftest.beam conftest.$ac_ext
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5760 $as_echo "$ac_cv_header_stdc" >&6; }
5761 if test $ac_cv_header_stdc = yes; then
5763 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5767 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5768 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5769 inttypes.h stdint.h unistd.h
5770 do :
5771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5772 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5775 cat >>confdefs.h <<_ACEOF
5776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5777 _ACEOF
5781 done
5784 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5785 if test "x$ac_cv_type_long_long" = xyes; then :
5790 # The cast to long int works around a bug in the HP C Compiler
5791 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5792 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5793 # This bug is HP SR number 8606223364.
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5795 $as_echo_n "checking size of void *... " >&6; }
5796 if ${ac_cv_sizeof_void_p+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5801 else
5802 if test "$ac_cv_type_void_p" = yes; then
5803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5805 as_fn_error 77 "cannot compute sizeof (void *)
5806 See \`config.log' for more details" "$LINENO" 5; }
5807 else
5808 ac_cv_sizeof_void_p=0
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5814 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5818 cat >>confdefs.h <<_ACEOF
5819 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5820 _ACEOF
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
5828 $as_echo_n "checking size of unsigned short... " >&6; }
5829 if ${ac_cv_sizeof_unsigned_short+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
5834 else
5835 if test "$ac_cv_type_unsigned_short" = yes; then
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 as_fn_error 77 "cannot compute sizeof (unsigned short)
5839 See \`config.log' for more details" "$LINENO" 5; }
5840 else
5841 ac_cv_sizeof_unsigned_short=0
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
5847 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
5851 cat >>confdefs.h <<_ACEOF
5852 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
5853 _ACEOF
5856 # The cast to long int works around a bug in the HP C Compiler
5857 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5858 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5859 # This bug is HP SR number 8606223364.
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
5861 $as_echo_n "checking size of unsigned... " >&6; }
5862 if ${ac_cv_sizeof_unsigned+:} false; then :
5863 $as_echo_n "(cached) " >&6
5864 else
5865 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
5867 else
5868 if test "$ac_cv_type_unsigned" = yes; then
5869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5871 as_fn_error 77 "cannot compute sizeof (unsigned)
5872 See \`config.log' for more details" "$LINENO" 5; }
5873 else
5874 ac_cv_sizeof_unsigned=0
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
5880 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
5884 cat >>confdefs.h <<_ACEOF
5885 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
5886 _ACEOF
5889 # The cast to long int works around a bug in the HP C Compiler
5890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5892 # This bug is HP SR number 8606223364.
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
5894 $as_echo_n "checking size of unsigned long... " >&6; }
5895 if ${ac_cv_sizeof_unsigned_long+:} false; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
5900 else
5901 if test "$ac_cv_type_unsigned_long" = yes; then
5902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5904 as_fn_error 77 "cannot compute sizeof (unsigned long)
5905 See \`config.log' for more details" "$LINENO" 5; }
5906 else
5907 ac_cv_sizeof_unsigned_long=0
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
5913 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
5917 cat >>confdefs.h <<_ACEOF
5918 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
5919 _ACEOF
5922 # The cast to long int works around a bug in the HP C Compiler
5923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5925 # This bug is HP SR number 8606223364.
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
5927 $as_echo_n "checking size of unsigned long long... " >&6; }
5928 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
5933 else
5934 if test "$ac_cv_type_unsigned_long_long" = yes; then
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 as_fn_error 77 "cannot compute sizeof (unsigned long long)
5938 See \`config.log' for more details" "$LINENO" 5; }
5939 else
5940 ac_cv_sizeof_unsigned_long_long=0
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
5946 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
5950 cat >>confdefs.h <<_ACEOF
5951 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
5952 _ACEOF
5956 case $host in #(
5957 x86_64-*-cygwin) :
5958 gmp_limb=longlong ;; #(
5959 *) :
5960 if test $ac_cv_sizeof_void_p -gt $ac_cv_sizeof_unsigned_long; then :
5961 if test $ac_cv_sizeof_void_p -le $ac_cv_sizeof_unsigned_long_long; then :
5962 gmp_limb=longlong
5963 else
5964 gmp_limb=unknown
5969 esac
5970 case $gmp_limb in #(
5971 longlong) :
5972 DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1"
5973 gmp_limb_size=$ac_cv_sizeof_unsigned_long_long ;; #(
5974 *) :
5975 DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */"
5976 gmp_limb_size=$ac_cv_sizeof_unsigned_long ;;
5977 esac
5979 GMP_LIMB_BITS=`expr 8 \* $gmp_limb_size`
5982 GMP_NAIL_BITS=0
5985 # KPSE_GMP_H
5986 cat >gmp-tmp.h <<KPSE_EOF
5987 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
5988 #define GMP_NAIL_BITS $GMP_NAIL_BITS
5989 #define GMP_LIMB_BITS 123
5990 $DEFN_LONG_LONG_LIMB
5991 #include "$srcdir/gmp-src/gmp-h.in"
5992 KPSE_EOF
5996 # The cast to long int works around a bug in the HP C Compiler
5997 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5998 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5999 # This bug is HP SR number 8606223364.
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
6001 $as_echo_n "checking size of mp_limb_t... " >&6; }
6002 if ${ac_cv_sizeof_mp_limb_t+:} false; then :
6003 $as_echo_n "(cached) " >&6
6004 else
6005 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#include \"gmp-tmp.h\"
6006 "; then :
6008 else
6009 if test "$ac_cv_type_mp_limb_t" = yes; then
6010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6012 as_fn_error 77 "cannot compute sizeof (mp_limb_t)
6013 See \`config.log' for more details" "$LINENO" 5; }
6014 else
6015 ac_cv_sizeof_mp_limb_t=0
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
6021 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
6025 cat >>confdefs.h <<_ACEOF
6026 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
6027 _ACEOF
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6032 $as_echo_n "checking for inline... " >&6; }
6033 if ${ac_cv_c_inline+:} false; then :
6034 $as_echo_n "(cached) " >&6
6035 else
6036 ac_cv_c_inline=no
6037 for ac_kw in inline __inline__ __inline; do
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #ifndef __cplusplus
6041 typedef int foo_t;
6042 static $ac_kw foo_t static_foo () {return 0; }
6043 $ac_kw foo_t foo () {return 0; }
6044 #endif
6046 _ACEOF
6047 if ac_fn_c_try_compile "$LINENO"; then :
6048 ac_cv_c_inline=$ac_kw
6050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 test "$ac_cv_c_inline" != no && break
6052 done
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6056 $as_echo "$ac_cv_c_inline" >&6; }
6058 case $ac_cv_c_inline in
6059 inline | yes) ;;
6061 case $ac_cv_c_inline in
6062 no) ac_val=;;
6063 *) ac_val=$ac_cv_c_inline;;
6064 esac
6065 cat >>confdefs.h <<_ACEOF
6066 #ifndef __cplusplus
6067 #define inline $ac_val
6068 #endif
6069 _ACEOF
6071 esac
6074 case $ac_cv_c_inline in #(
6075 no) :
6076 ;; #(
6077 *) :
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #define __GMP_WITHIN_CONFIGURE_INLINE 1
6081 #include "gmp-tmp.h"
6082 #ifndef __GMP_EXTERN_INLINE
6083 die die die
6084 #endif
6086 main ()
6090 return 0;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"; then :
6095 else
6096 case $ac_cv_c_inline in #(
6097 yes) :
6098 tmp_inline=inline ;; #(
6099 *) :
6100 tmp_inline=$ac_cv_c_inline ;;
6101 esac
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
6103 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ;;
6106 esac
6110 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6111 # for constant arguments. Useless!
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6113 $as_echo_n "checking for working alloca.h... " >&6; }
6114 if ${gmp_cv_header_alloca+:} false; then :
6115 $as_echo_n "(cached) " >&6
6116 else
6117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118 /* end confdefs.h. */
6119 #include <alloca.h>
6121 main ()
6123 char *p = (char *) alloca (2 * sizeof (int));
6125 return 0;
6127 _ACEOF
6128 if ac_fn_c_try_compile "$LINENO"; then :
6129 gmp_cv_header_alloca=yes
6130 else
6131 gmp_cv_header_alloca=no
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
6136 $as_echo "$gmp_cv_header_alloca" >&6; }
6137 if test "x$gmp_cv_header_alloca" = xyes; then
6139 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
6144 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
6145 if ${gmp_cv_func_alloca+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 #include "gmp-tmp.h"
6151 #include "$srcdir/gmp-6.1.0/gmp-impl.h"
6153 main ()
6155 char *p = (char *) alloca (1);
6157 return 0;
6159 _ACEOF
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 gmp_cv_func_alloca=yes
6162 else
6163 gmp_cv_func_alloca=no
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
6168 $as_echo "$gmp_cv_func_alloca" >&6; }
6169 if test "x$gmp_cv_func_alloca" = xyes; then
6171 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6173 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
6175 else
6176 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
6185 $as_echo_n "checking format of \`double' floating point... " >&6; }
6186 if ${gmp_cv_c_double_format+:} false; then :
6187 $as_echo_n "(cached) " >&6
6188 else
6189 gmp_cv_c_double_format=unknown
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6193 struct foo {
6194 char before[8];
6195 double x;
6196 char after[8];
6198 extern struct foo foo;
6199 struct foo foo = {
6200 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6201 -123456789.0,
6202 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
6206 main ()
6210 return 0;
6212 _ACEOF
6213 if ac_fn_c_try_compile "$LINENO"; then :
6214 cat >conftest.awk <<\EOF
6216 BEGIN {
6217 found = 0
6221 for (f = 2; f <= NF; f++)
6223 for (i = 0; i < 23; i++)
6224 got[i] = got[i+1];
6225 got[23] = $f;
6227 # match the special begin and end sequences
6228 if (got[0] != "001") continue
6229 if (got[1] != "043") continue
6230 if (got[2] != "105") continue
6231 if (got[3] != "147") continue
6232 if (got[4] != "211") continue
6233 if (got[5] != "253") continue
6234 if (got[6] != "315") continue
6235 if (got[7] != "357") continue
6236 if (got[16] != "376") continue
6237 if (got[17] != "334") continue
6238 if (got[18] != "272") continue
6239 if (got[19] != "230") continue
6240 if (got[20] != "166") continue
6241 if (got[21] != "124") continue
6242 if (got[22] != "062") continue
6243 if (got[23] != "020") continue
6245 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
6247 if (got[8] == "000" && \
6248 got[9] == "000" && \
6249 got[10] == "000" && \
6250 got[11] == "124" && \
6251 got[12] == "064" && \
6252 got[13] == "157" && \
6253 got[14] == "235" && \
6254 got[15] == "301")
6256 print "IEEE little endian"
6257 found = 1
6258 exit
6261 # Little endian with the two 4-byte halves swapped, as used by ARM
6262 # when the chip is in little endian mode.
6264 if (got[8] == "064" && \
6265 got[9] == "157" && \
6266 got[10] == "235" && \
6267 got[11] == "301" && \
6268 got[12] == "000" && \
6269 got[13] == "000" && \
6270 got[14] == "000" && \
6271 got[15] == "124")
6273 print "IEEE little endian, swapped halves"
6274 found = 1
6275 exit
6278 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
6279 # the last byte, whereas 124 is correct. Not sure where the bug
6280 # actually lies, but a running program didn't seem to get a full
6281 # mantissa worth of working bits.
6283 # We match this case explicitly so we can give a nice result message,
6284 # but we deliberately exclude it from the normal IEEE double setups
6285 # since it's too broken.
6287 if (got[8] == "064" && \
6288 got[9] == "157" && \
6289 got[10] == "235" && \
6290 got[11] == "301" && \
6291 got[12] == "000" && \
6292 got[13] == "000" && \
6293 got[14] == "000" && \
6294 got[15] == "000")
6296 print "bad ARM software floats"
6297 found = 1
6298 exit
6301 if (got[8] == "301" && \
6302 got[9] == "235" && \
6303 got[10] == "157" && \
6304 got[11] == "064" && \
6305 got[12] == "124" && \
6306 got[13] == "000" && \
6307 got[14] == "000" && \
6308 got[15] == "000")
6310 print "IEEE big endian"
6311 found = 1
6312 exit
6315 if (got[8] == "353" && \
6316 got[9] == "315" && \
6317 got[10] == "242" && \
6318 got[11] == "171" && \
6319 got[12] == "000" && \
6320 got[13] == "240" && \
6321 got[14] == "000" && \
6322 got[15] == "000")
6324 print "VAX D"
6325 found = 1
6326 exit
6329 if (got[8] == "275" && \
6330 got[9] == "301" && \
6331 got[10] == "064" && \
6332 got[11] == "157" && \
6333 got[12] == "000" && \
6334 got[13] == "124" && \
6335 got[14] == "000" && \
6336 got[15] == "000")
6338 print "VAX G"
6339 found = 1
6340 exit
6343 if (got[8] == "300" && \
6344 got[9] == "033" && \
6345 got[10] == "353" && \
6346 got[11] == "171" && \
6347 got[12] == "242" && \
6348 got[13] == "240" && \
6349 got[14] == "000" && \
6350 got[15] == "000")
6352 print "Cray CFP"
6353 found = 1
6354 exit
6359 END {
6360 if (! found)
6361 print "unknown", saw
6365 gmp_cv_c_double_format=`od -b conftest.$ac_objext | $AWK -f conftest.awk`
6366 case $gmp_cv_c_double_format in #(
6367 unknown*) :
6368 echo "cannot match anything, conftest.$ac_objext contains" >&5
6369 od -b conftest.$ac_objext >&5 ;; #(
6370 *) :
6372 esac
6373 else
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6375 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6378 rm -f conftest.awk
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
6381 $as_echo "$gmp_cv_c_double_format" >&6; }
6385 case $gmp_cv_c_double_format in #(
6386 "IEEE big endian") :
6387 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
6388 ;; #(
6389 "IEEE little endian") :
6390 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
6391 ;; #(
6392 "IEEE little endian, swapped halves") :
6393 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
6394 ;; #(
6395 "VAX D") :
6396 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
6397 ;; #(
6398 "VAX G") :
6399 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
6400 ;; #(
6401 "Cray CFP") :
6402 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
6403 ;; #(
6404 "bad ARM software floats") :
6405 ;; #(
6406 unknown*) :
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
6408 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
6410 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;} ;; #(
6411 *) :
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
6413 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;} ;;
6414 esac
6417 if test "x$enable_build" != xno || test -f config.force; then
6419 case $gmp_limb in #(
6420 unknown) :
6421 as_fn_error $? "Sorry, no suitable limb size" "$LINENO" 5 ;; #(
6422 *) :
6424 esac
6426 if test "x$ac_cv_sizeof_mp_limb_t" != "x$gmp_limb_size"; then
6427 as_fn_error $? "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
6430 echo timestamp >config.force
6433 if test "x$enable_build" != xno; then
6434 build_TRUE=
6435 build_FALSE='#'
6436 else
6437 build_TRUE='#'
6438 build_FALSE=
6442 GMP_TREE=gmp-src
6445 HAVE_HOST_CPU_FAMILY_power=0
6447 HAVE_HOST_CPU_FAMILY_powerpc=0
6450 LIBGMP_DLL=0
6453 ac_config_files="$ac_config_files Makefile include/Makefile gmp.h:gmp-src/gmp-h.in"
6458 subdirs="$subdirs native"
6463 cat >confcache <<\_ACEOF
6464 # This file is a shell script that caches the results of configure
6465 # tests run on this system so they can be shared between configure
6466 # scripts and configure runs, see configure's option --config-cache.
6467 # It is not useful on other systems. If it contains results you don't
6468 # want to keep, you may remove or edit it.
6470 # config.status only pays attention to the cache file if you give it
6471 # the --recheck option to rerun configure.
6473 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6474 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6475 # following values.
6477 _ACEOF
6479 # The following way of writing the cache mishandles newlines in values,
6480 # but we know of no workaround that is simple, portable, and efficient.
6481 # So, we kill variables containing newlines.
6482 # Ultrix sh set writes to stderr and can't be redirected directly,
6483 # and sets the high bit in the cache file unless we assign to the vars.
6485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6486 eval ac_val=\$$ac_var
6487 case $ac_val in #(
6488 *${as_nl}*)
6489 case $ac_var in #(
6490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6491 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6492 esac
6493 case $ac_var in #(
6494 _ | IFS | as_nl) ;; #(
6495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6496 *) { eval $ac_var=; unset $ac_var;} ;;
6497 esac ;;
6498 esac
6499 done
6501 (set) 2>&1 |
6502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6503 *${as_nl}ac_space=\ *)
6504 # `set' does not quote correctly, so add quotes: double-quote
6505 # substitution turns \\\\ into \\, and sed turns \\ into \.
6506 sed -n \
6507 "s/'/'\\\\''/g;
6508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6509 ;; #(
6511 # `set' quotes correctly as required by POSIX, so do not add quotes.
6512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6514 esac |
6515 sort
6517 sed '
6518 /^ac_cv_env_/b end
6519 t clear
6520 :clear
6521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6522 t end
6523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6524 :end' >>confcache
6525 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6526 if test -w "$cache_file"; then
6527 if test "x$cache_file" != "x/dev/null"; then
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6529 $as_echo "$as_me: updating cache $cache_file" >&6;}
6530 if test ! -f "$cache_file" || test -h "$cache_file"; then
6531 cat confcache >"$cache_file"
6532 else
6533 case $cache_file in #(
6534 */* | ?:*)
6535 mv -f confcache "$cache_file"$$ &&
6536 mv -f "$cache_file"$$ "$cache_file" ;; #(
6538 mv -f confcache "$cache_file" ;;
6539 esac
6542 else
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6544 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6547 rm -f confcache
6549 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6550 # Let make expand exec_prefix.
6551 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6553 DEFS=-DHAVE_CONFIG_H
6555 ac_libobjs=
6556 ac_ltlibobjs=
6558 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6559 # 1. Remove the extension, and $U if already installed.
6560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6561 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6563 # will be set to the directory where LIBOBJS objects are built.
6564 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6565 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6566 done
6567 LIBOBJS=$ac_libobjs
6569 LTLIBOBJS=$ac_ltlibobjs
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6573 $as_echo_n "checking that generated files are newer than configure... " >&6; }
6574 if test -n "$am_sleep_pid"; then
6575 # Hide warnings about reused PIDs.
6576 wait $am_sleep_pid 2>/dev/null
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6579 $as_echo "done" >&6; }
6580 if test -n "$EXEEXT"; then
6581 am__EXEEXT_TRUE=
6582 am__EXEEXT_FALSE='#'
6583 else
6584 am__EXEEXT_TRUE='#'
6585 am__EXEEXT_FALSE=
6588 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6589 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
6590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6592 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6593 as_fn_error $? "conditional \"AMDEP\" was never defined.
6594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6596 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6597 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6600 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6601 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
6602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6604 if test -z "${build_TRUE}" && test -z "${build_FALSE}"; then
6605 as_fn_error $? "conditional \"build\" was never defined.
6606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6609 : "${CONFIG_STATUS=./config.status}"
6610 ac_write_fail=0
6611 ac_clean_files_save=$ac_clean_files
6612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6614 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6615 as_write_fail=0
6616 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6617 #! $SHELL
6618 # Generated by $as_me.
6619 # Run this file to recreate the current configuration.
6620 # Compiler output produced by configure, useful for debugging
6621 # configure, is in config.log if it exists.
6623 debug=false
6624 ac_cs_recheck=false
6625 ac_cs_silent=false
6627 SHELL=\${CONFIG_SHELL-$SHELL}
6628 export SHELL
6629 _ASEOF
6630 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6631 ## -------------------- ##
6632 ## M4sh Initialization. ##
6633 ## -------------------- ##
6635 # Be more Bourne compatible
6636 DUALCASE=1; export DUALCASE # for MKS sh
6637 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6638 emulate sh
6639 NULLCMD=:
6640 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6641 # is contrary to our usage. Disable this feature.
6642 alias -g '${1+"$@"}'='"$@"'
6643 setopt NO_GLOB_SUBST
6644 else
6645 case `(set -o) 2>/dev/null` in #(
6646 *posix*) :
6647 set -o posix ;; #(
6648 *) :
6650 esac
6654 as_nl='
6656 export as_nl
6657 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6658 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6659 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6660 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6661 # Prefer a ksh shell builtin over an external printf program on Solaris,
6662 # but without wasting forks for bash or zsh.
6663 if test -z "$BASH_VERSION$ZSH_VERSION" \
6664 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6665 as_echo='print -r --'
6666 as_echo_n='print -rn --'
6667 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6668 as_echo='printf %s\n'
6669 as_echo_n='printf %s'
6670 else
6671 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6672 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6673 as_echo_n='/usr/ucb/echo -n'
6674 else
6675 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6676 as_echo_n_body='eval
6677 arg=$1;
6678 case $arg in #(
6679 *"$as_nl"*)
6680 expr "X$arg" : "X\\(.*\\)$as_nl";
6681 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6682 esac;
6683 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6685 export as_echo_n_body
6686 as_echo_n='sh -c $as_echo_n_body as_echo'
6688 export as_echo_body
6689 as_echo='sh -c $as_echo_body as_echo'
6692 # The user is always right.
6693 if test "${PATH_SEPARATOR+set}" != set; then
6694 PATH_SEPARATOR=:
6695 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6696 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6697 PATH_SEPARATOR=';'
6702 # IFS
6703 # We need space, tab and new line, in precisely that order. Quoting is
6704 # there to prevent editors from complaining about space-tab.
6705 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6706 # splitting by setting IFS to empty value.)
6707 IFS=" "" $as_nl"
6709 # Find who we are. Look in the path if we contain no directory separator.
6710 as_myself=
6711 case $0 in #((
6712 *[\\/]* ) as_myself=$0 ;;
6713 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6714 for as_dir in $PATH
6716 IFS=$as_save_IFS
6717 test -z "$as_dir" && as_dir=.
6718 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6719 done
6720 IFS=$as_save_IFS
6723 esac
6724 # We did not find ourselves, most probably we were run as `sh COMMAND'
6725 # in which case we are not to be found in the path.
6726 if test "x$as_myself" = x; then
6727 as_myself=$0
6729 if test ! -f "$as_myself"; then
6730 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6731 exit 1
6734 # Unset variables that we do not need and which cause bugs (e.g. in
6735 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6736 # suppresses any "Segmentation fault" message there. '((' could
6737 # trigger a bug in pdksh 5.2.14.
6738 for as_var in BASH_ENV ENV MAIL MAILPATH
6739 do eval test x\${$as_var+set} = xset \
6740 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6741 done
6742 PS1='$ '
6743 PS2='> '
6744 PS4='+ '
6746 # NLS nuisances.
6747 LC_ALL=C
6748 export LC_ALL
6749 LANGUAGE=C
6750 export LANGUAGE
6752 # CDPATH.
6753 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6756 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6757 # ----------------------------------------
6758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6760 # script with STATUS, using 1 if that was 0.
6761 as_fn_error ()
6763 as_status=$1; test $as_status -eq 0 && as_status=1
6764 if test "$4"; then
6765 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6766 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6768 $as_echo "$as_me: error: $2" >&2
6769 as_fn_exit $as_status
6770 } # as_fn_error
6773 # as_fn_set_status STATUS
6774 # -----------------------
6775 # Set $? to STATUS, without forking.
6776 as_fn_set_status ()
6778 return $1
6779 } # as_fn_set_status
6781 # as_fn_exit STATUS
6782 # -----------------
6783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6784 as_fn_exit ()
6786 set +e
6787 as_fn_set_status $1
6788 exit $1
6789 } # as_fn_exit
6791 # as_fn_unset VAR
6792 # ---------------
6793 # Portably unset VAR.
6794 as_fn_unset ()
6796 { eval $1=; unset $1;}
6798 as_unset=as_fn_unset
6799 # as_fn_append VAR VALUE
6800 # ----------------------
6801 # Append the text in VALUE to the end of the definition contained in VAR. Take
6802 # advantage of any shell optimizations that allow amortized linear growth over
6803 # repeated appends, instead of the typical quadratic growth present in naive
6804 # implementations.
6805 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6806 eval 'as_fn_append ()
6808 eval $1+=\$2
6810 else
6811 as_fn_append ()
6813 eval $1=\$$1\$2
6815 fi # as_fn_append
6817 # as_fn_arith ARG...
6818 # ------------------
6819 # Perform arithmetic evaluation on the ARGs, and store the result in the
6820 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6821 # must be portable across $(()) and expr.
6822 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6823 eval 'as_fn_arith ()
6825 as_val=$(( $* ))
6827 else
6828 as_fn_arith ()
6830 as_val=`expr "$@" || test $? -eq 1`
6832 fi # as_fn_arith
6835 if expr a : '\(a\)' >/dev/null 2>&1 &&
6836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6837 as_expr=expr
6838 else
6839 as_expr=false
6842 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6843 as_basename=basename
6844 else
6845 as_basename=false
6848 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6849 as_dirname=dirname
6850 else
6851 as_dirname=false
6854 as_me=`$as_basename -- "$0" ||
6855 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6856 X"$0" : 'X\(//\)$' \| \
6857 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6858 $as_echo X/"$0" |
6859 sed '/^.*\/\([^/][^/]*\)\/*$/{
6860 s//\1/
6863 /^X\/\(\/\/\)$/{
6864 s//\1/
6867 /^X\/\(\/\).*/{
6868 s//\1/
6871 s/.*/./; q'`
6873 # Avoid depending upon Character Ranges.
6874 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6875 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6876 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6877 as_cr_digits='0123456789'
6878 as_cr_alnum=$as_cr_Letters$as_cr_digits
6880 ECHO_C= ECHO_N= ECHO_T=
6881 case `echo -n x` in #(((((
6882 -n*)
6883 case `echo 'xy\c'` in
6884 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6885 xy) ECHO_C='\c';;
6886 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6887 ECHO_T=' ';;
6888 esac;;
6890 ECHO_N='-n';;
6891 esac
6893 rm -f conf$$ conf$$.exe conf$$.file
6894 if test -d conf$$.dir; then
6895 rm -f conf$$.dir/conf$$.file
6896 else
6897 rm -f conf$$.dir
6898 mkdir conf$$.dir 2>/dev/null
6900 if (echo >conf$$.file) 2>/dev/null; then
6901 if ln -s conf$$.file conf$$ 2>/dev/null; then
6902 as_ln_s='ln -s'
6903 # ... but there are two gotchas:
6904 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6905 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6906 # In both cases, we have to default to `cp -pR'.
6907 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6908 as_ln_s='cp -pR'
6909 elif ln conf$$.file conf$$ 2>/dev/null; then
6910 as_ln_s=ln
6911 else
6912 as_ln_s='cp -pR'
6914 else
6915 as_ln_s='cp -pR'
6917 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6918 rmdir conf$$.dir 2>/dev/null
6921 # as_fn_mkdir_p
6922 # -------------
6923 # Create "$as_dir" as a directory, including parents if necessary.
6924 as_fn_mkdir_p ()
6927 case $as_dir in #(
6928 -*) as_dir=./$as_dir;;
6929 esac
6930 test -d "$as_dir" || eval $as_mkdir_p || {
6931 as_dirs=
6932 while :; do
6933 case $as_dir in #(
6934 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6935 *) as_qdir=$as_dir;;
6936 esac
6937 as_dirs="'$as_qdir' $as_dirs"
6938 as_dir=`$as_dirname -- "$as_dir" ||
6939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6940 X"$as_dir" : 'X\(//\)[^/]' \| \
6941 X"$as_dir" : 'X\(//\)$' \| \
6942 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6943 $as_echo X"$as_dir" |
6944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6945 s//\1/
6948 /^X\(\/\/\)[^/].*/{
6949 s//\1/
6952 /^X\(\/\/\)$/{
6953 s//\1/
6956 /^X\(\/\).*/{
6957 s//\1/
6960 s/.*/./; q'`
6961 test -d "$as_dir" && break
6962 done
6963 test -z "$as_dirs" || eval "mkdir $as_dirs"
6964 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6967 } # as_fn_mkdir_p
6968 if mkdir -p . 2>/dev/null; then
6969 as_mkdir_p='mkdir -p "$as_dir"'
6970 else
6971 test -d ./-p && rmdir ./-p
6972 as_mkdir_p=false
6976 # as_fn_executable_p FILE
6977 # -----------------------
6978 # Test if FILE is an executable regular file.
6979 as_fn_executable_p ()
6981 test -f "$1" && test -x "$1"
6982 } # as_fn_executable_p
6983 as_test_x='test -x'
6984 as_executable_p=as_fn_executable_p
6986 # Sed expression to map a string onto a valid CPP name.
6987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6989 # Sed expression to map a string onto a valid variable name.
6990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6993 exec 6>&1
6994 ## ----------------------------------- ##
6995 ## Main body of $CONFIG_STATUS script. ##
6996 ## ----------------------------------- ##
6997 _ASEOF
6998 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7001 # Save the log message, to keep $0 and so on meaningful, and to
7002 # report actual input values of CONFIG_FILES etc. instead of their
7003 # values after options handling.
7004 ac_log="
7005 This file was extended by gmp (TeX Live) $as_me 6.1.0, which was
7006 generated by GNU Autoconf 2.69. Invocation command line was
7008 CONFIG_FILES = $CONFIG_FILES
7009 CONFIG_HEADERS = $CONFIG_HEADERS
7010 CONFIG_LINKS = $CONFIG_LINKS
7011 CONFIG_COMMANDS = $CONFIG_COMMANDS
7012 $ $0 $@
7014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7017 _ACEOF
7019 case $ac_config_files in *"
7020 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7021 esac
7023 case $ac_config_headers in *"
7024 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7025 esac
7028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7029 # Files that config.status was made for.
7030 config_files="$ac_config_files"
7031 config_headers="$ac_config_headers"
7032 config_commands="$ac_config_commands"
7034 _ACEOF
7036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7037 ac_cs_usage="\
7038 \`$as_me' instantiates files and other configuration actions
7039 from templates according to the current configuration. Unless the files
7040 and actions are specified as TAGs, all are instantiated by default.
7042 Usage: $0 [OPTION]... [TAG]...
7044 -h, --help print this help, then exit
7045 -V, --version print version number and configuration settings, then exit
7046 --config print configuration, then exit
7047 -q, --quiet, --silent
7048 do not print progress messages
7049 -d, --debug don't remove temporary files
7050 --recheck update $as_me by reconfiguring in the same conditions
7051 --file=FILE[:TEMPLATE]
7052 instantiate the configuration file FILE
7053 --header=FILE[:TEMPLATE]
7054 instantiate the configuration header FILE
7056 Configuration files:
7057 $config_files
7059 Configuration headers:
7060 $config_headers
7062 Configuration commands:
7063 $config_commands
7065 Report bugs to <tex-k@tug.org>."
7067 _ACEOF
7068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7069 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7070 ac_cs_version="\\
7071 gmp (TeX Live) config.status 6.1.0
7072 configured by $0, generated by GNU Autoconf 2.69,
7073 with options \\"\$ac_cs_config\\"
7075 Copyright (C) 2012 Free Software Foundation, Inc.
7076 This config.status script is free software; the Free Software Foundation
7077 gives unlimited permission to copy, distribute and modify it."
7079 ac_pwd='$ac_pwd'
7080 srcdir='$srcdir'
7081 INSTALL='$INSTALL'
7082 MKDIR_P='$MKDIR_P'
7083 AWK='$AWK'
7084 test -n "\$AWK" || AWK=awk
7085 _ACEOF
7087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7088 # The default lists apply if the user does not specify any file.
7089 ac_need_defaults=:
7090 while test $# != 0
7092 case $1 in
7093 --*=?*)
7094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7096 ac_shift=:
7098 --*=)
7099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7100 ac_optarg=
7101 ac_shift=:
7104 ac_option=$1
7105 ac_optarg=$2
7106 ac_shift=shift
7108 esac
7110 case $ac_option in
7111 # Handling of the options.
7112 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7113 ac_cs_recheck=: ;;
7114 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7115 $as_echo "$ac_cs_version"; exit ;;
7116 --config | --confi | --conf | --con | --co | --c )
7117 $as_echo "$ac_cs_config"; exit ;;
7118 --debug | --debu | --deb | --de | --d | -d )
7119 debug=: ;;
7120 --file | --fil | --fi | --f )
7121 $ac_shift
7122 case $ac_optarg in
7123 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7124 '') as_fn_error $? "missing file argument" ;;
7125 esac
7126 as_fn_append CONFIG_FILES " '$ac_optarg'"
7127 ac_need_defaults=false;;
7128 --header | --heade | --head | --hea )
7129 $ac_shift
7130 case $ac_optarg in
7131 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7132 esac
7133 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7134 ac_need_defaults=false;;
7135 --he | --h)
7136 # Conflict between --help and --header
7137 as_fn_error $? "ambiguous option: \`$1'
7138 Try \`$0 --help' for more information.";;
7139 --help | --hel | -h )
7140 $as_echo "$ac_cs_usage"; exit ;;
7141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7142 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7143 ac_cs_silent=: ;;
7145 # This is an error.
7146 -*) as_fn_error $? "unrecognized option: \`$1'
7147 Try \`$0 --help' for more information." ;;
7149 *) as_fn_append ac_config_targets " $1"
7150 ac_need_defaults=false ;;
7152 esac
7153 shift
7154 done
7156 ac_configure_extra_args=
7158 if $ac_cs_silent; then
7159 exec 6>/dev/null
7160 ac_configure_extra_args="$ac_configure_extra_args --silent"
7163 _ACEOF
7164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7165 if \$ac_cs_recheck; then
7166 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7167 shift
7168 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7169 CONFIG_SHELL='$SHELL'
7170 export CONFIG_SHELL
7171 exec "\$@"
7174 _ACEOF
7175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7176 exec 5>>config.log
7178 echo
7179 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7180 ## Running $as_me. ##
7181 _ASBOX
7182 $as_echo "$ac_log"
7183 } >&5
7185 _ACEOF
7186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7188 # INIT-COMMANDS
7190 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7192 _ACEOF
7194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7196 # Handling of arguments.
7197 for ac_config_target in $ac_config_targets
7199 case $ac_config_target in
7200 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7201 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7202 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7203 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
7204 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-src/gmp-h.in" ;;
7206 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7207 esac
7208 done
7211 # If the user did not use the arguments to specify the items to instantiate,
7212 # then the envvar interface is used. Set only those that are not.
7213 # We use the long form for the default assignment because of an extremely
7214 # bizarre bug on SunOS 4.1.3.
7215 if $ac_need_defaults; then
7216 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7217 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7218 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7221 # Have a temporary directory for convenience. Make it in the build tree
7222 # simply because there is no reason against having it here, and in addition,
7223 # creating and moving files from /tmp can sometimes cause problems.
7224 # Hook for its removal unless debugging.
7225 # Note that there is a small window in which the directory will not be cleaned:
7226 # after its creation but before its name has been assigned to `$tmp'.
7227 $debug ||
7229 tmp= ac_tmp=
7230 trap 'exit_status=$?
7231 : "${ac_tmp:=$tmp}"
7232 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7234 trap 'as_fn_exit 1' 1 2 13 15
7236 # Create a (secure) tmp directory for tmp files.
7239 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7240 test -d "$tmp"
7241 } ||
7243 tmp=./conf$$-$RANDOM
7244 (umask 077 && mkdir "$tmp")
7245 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7246 ac_tmp=$tmp
7248 # Set up the scripts for CONFIG_FILES section.
7249 # No need to generate them if there are no CONFIG_FILES.
7250 # This happens for instance with `./config.status config.h'.
7251 if test -n "$CONFIG_FILES"; then
7254 ac_cr=`echo X | tr X '\015'`
7255 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7256 # But we know of no other shell where ac_cr would be empty at this
7257 # point, so we can use a bashism as a fallback.
7258 if test "x$ac_cr" = x; then
7259 eval ac_cr=\$\'\\r\'
7261 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7262 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7263 ac_cs_awk_cr='\\r'
7264 else
7265 ac_cs_awk_cr=$ac_cr
7268 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7269 _ACEOF
7273 echo "cat >conf$$subs.awk <<_ACEOF" &&
7274 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7275 echo "_ACEOF"
7276 } >conf$$subs.sh ||
7277 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7278 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7279 ac_delim='%!_!# '
7280 for ac_last_try in false false false false false :; do
7281 . ./conf$$subs.sh ||
7282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7284 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7285 if test $ac_delim_n = $ac_delim_num; then
7286 break
7287 elif $ac_last_try; then
7288 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7289 else
7290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7292 done
7293 rm -f conf$$subs.sh
7295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7296 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7297 _ACEOF
7298 sed -n '
7300 s/^/S["/; s/!.*/"]=/
7303 s/^[^!]*!//
7304 :repl
7305 t repl
7306 s/'"$ac_delim"'$//
7307 t delim
7310 s/\(.\{148\}\)..*/\1/
7311 t more1
7312 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7315 b repl
7316 :more1
7317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7320 s/.\{148\}//
7321 t nl
7322 :delim
7324 s/\(.\{148\}\)..*/\1/
7325 t more2
7326 s/["\\]/\\&/g; s/^/"/; s/$/"/
7329 :more2
7330 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7333 s/.\{148\}//
7334 t delim
7335 ' <conf$$subs.awk | sed '
7336 /^[^""]/{
7338 s/\n//
7340 ' >>$CONFIG_STATUS || ac_write_fail=1
7341 rm -f conf$$subs.awk
7342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7343 _ACAWK
7344 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7345 for (key in S) S_is_set[key] = 1
7346 FS = "\a"
7350 line = $ 0
7351 nfields = split(line, field, "@")
7352 substed = 0
7353 len = length(field[1])
7354 for (i = 2; i < nfields; i++) {
7355 key = field[i]
7356 keylen = length(key)
7357 if (S_is_set[key]) {
7358 value = S[key]
7359 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7360 len += length(value) + length(field[++i])
7361 substed = 1
7362 } else
7363 len += 1 + keylen
7366 print line
7369 _ACAWK
7370 _ACEOF
7371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7372 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7374 else
7376 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7377 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7378 _ACEOF
7380 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7381 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7382 # trailing colons and then remove the whole line if VPATH becomes empty
7383 # (actually we leave an empty line to preserve line numbers).
7384 if test "x$srcdir" = x.; then
7385 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7387 s///
7388 s/^/:/
7389 s/[ ]*$/:/
7390 s/:\$(srcdir):/:/g
7391 s/:\${srcdir}:/:/g
7392 s/:@srcdir@:/:/g
7393 s/^:*//
7394 s/:*$//
7396 s/\(=[ ]*\).*/\1/
7398 s/\n//
7399 s/^[^=]*=[ ]*$//
7403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7404 fi # test -n "$CONFIG_FILES"
7406 # Set up the scripts for CONFIG_HEADERS section.
7407 # No need to generate them if there are no CONFIG_HEADERS.
7408 # This happens for instance with `./config.status Makefile'.
7409 if test -n "$CONFIG_HEADERS"; then
7410 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7411 BEGIN {
7412 _ACEOF
7414 # Transform confdefs.h into an awk script `defines.awk', embedded as
7415 # here-document in config.status, that substitutes the proper values into
7416 # config.h.in to produce config.h.
7418 # Create a delimiter string that does not exist in confdefs.h, to ease
7419 # handling of long lines.
7420 ac_delim='%!_!# '
7421 for ac_last_try in false false :; do
7422 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7423 if test -z "$ac_tt"; then
7424 break
7425 elif $ac_last_try; then
7426 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7427 else
7428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7430 done
7432 # For the awk script, D is an array of macro values keyed by name,
7433 # likewise P contains macro parameters if any. Preserve backslash
7434 # newline sequences.
7436 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7437 sed -n '
7438 s/.\{148\}/&'"$ac_delim"'/g
7439 t rset
7440 :rset
7441 s/^[ ]*#[ ]*define[ ][ ]*/ /
7442 t def
7444 :def
7445 s/\\$//
7446 t bsnl
7447 s/["\\]/\\&/g
7448 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7449 D["\1"]=" \3"/p
7450 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7452 :bsnl
7453 s/["\\]/\\&/g
7454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7455 D["\1"]=" \3\\\\\\n"\\/p
7456 t cont
7457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7458 t cont
7460 :cont
7462 s/.\{148\}/&'"$ac_delim"'/g
7463 t clear
7464 :clear
7465 s/\\$//
7466 t bsnlc
7467 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7469 :bsnlc
7470 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7471 b cont
7472 ' <confdefs.h | sed '
7473 s/'"$ac_delim"'/"\\\
7474 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7477 for (key in D) D_is_set[key] = 1
7478 FS = "\a"
7480 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7481 line = \$ 0
7482 split(line, arg, " ")
7483 if (arg[1] == "#") {
7484 defundef = arg[2]
7485 mac1 = arg[3]
7486 } else {
7487 defundef = substr(arg[1], 2)
7488 mac1 = arg[2]
7490 split(mac1, mac2, "(") #)
7491 macro = mac2[1]
7492 prefix = substr(line, 1, index(line, defundef) - 1)
7493 if (D_is_set[macro]) {
7494 # Preserve the white space surrounding the "#".
7495 print prefix "define", macro P[macro] D[macro]
7496 next
7497 } else {
7498 # Replace #undef with comments. This is necessary, for example,
7499 # in the case of _POSIX_SOURCE, which is predefined and required
7500 # on some systems where configure will not decide to define it.
7501 if (defundef == "undef") {
7502 print "/*", prefix defundef, macro, "*/"
7503 next
7507 { print }
7508 _ACAWK
7509 _ACEOF
7510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7511 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7512 fi # test -n "$CONFIG_HEADERS"
7515 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7516 shift
7517 for ac_tag
7519 case $ac_tag in
7520 :[FHLC]) ac_mode=$ac_tag; continue;;
7521 esac
7522 case $ac_mode$ac_tag in
7523 :[FHL]*:*);;
7524 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7525 :[FH]-) ac_tag=-:-;;
7526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7527 esac
7528 ac_save_IFS=$IFS
7529 IFS=:
7530 set x $ac_tag
7531 IFS=$ac_save_IFS
7532 shift
7533 ac_file=$1
7534 shift
7536 case $ac_mode in
7537 :L) ac_source=$1;;
7538 :[FH])
7539 ac_file_inputs=
7540 for ac_f
7542 case $ac_f in
7543 -) ac_f="$ac_tmp/stdin";;
7544 *) # Look for the file first in the build tree, then in the source tree
7545 # (if the path is not absolute). The absolute path cannot be DOS-style,
7546 # because $ac_f cannot contain `:'.
7547 test -f "$ac_f" ||
7548 case $ac_f in
7549 [\\/$]*) false;;
7550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7551 esac ||
7552 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7553 esac
7554 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7555 as_fn_append ac_file_inputs " '$ac_f'"
7556 done
7558 # Let's still pretend it is `configure' which instantiates (i.e., don't
7559 # use $as_me), people would be surprised to read:
7560 # /* config.h. Generated by config.status. */
7561 configure_input='Generated from '`
7562 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7563 `' by configure.'
7564 if test x"$ac_file" != x-; then
7565 configure_input="$ac_file. $configure_input"
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7567 $as_echo "$as_me: creating $ac_file" >&6;}
7569 # Neutralize special characters interpreted by sed in replacement strings.
7570 case $configure_input in #(
7571 *\&* | *\|* | *\\* )
7572 ac_sed_conf_input=`$as_echo "$configure_input" |
7573 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7574 *) ac_sed_conf_input=$configure_input;;
7575 esac
7577 case $ac_tag in
7578 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7580 esac
7582 esac
7584 ac_dir=`$as_dirname -- "$ac_file" ||
7585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586 X"$ac_file" : 'X\(//\)[^/]' \| \
7587 X"$ac_file" : 'X\(//\)$' \| \
7588 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7589 $as_echo X"$ac_file" |
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7591 s//\1/
7594 /^X\(\/\/\)[^/].*/{
7595 s//\1/
7598 /^X\(\/\/\)$/{
7599 s//\1/
7602 /^X\(\/\).*/{
7603 s//\1/
7606 s/.*/./; q'`
7607 as_dir="$ac_dir"; as_fn_mkdir_p
7608 ac_builddir=.
7610 case "$ac_dir" in
7611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7614 # A ".." for each directory in $ac_dir_suffix.
7615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7616 case $ac_top_builddir_sub in
7617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7619 esac ;;
7620 esac
7621 ac_abs_top_builddir=$ac_pwd
7622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7623 # for backward compatibility:
7624 ac_top_builddir=$ac_top_build_prefix
7626 case $srcdir in
7627 .) # We are building in place.
7628 ac_srcdir=.
7629 ac_top_srcdir=$ac_top_builddir_sub
7630 ac_abs_top_srcdir=$ac_pwd ;;
7631 [\\/]* | ?:[\\/]* ) # Absolute name.
7632 ac_srcdir=$srcdir$ac_dir_suffix;
7633 ac_top_srcdir=$srcdir
7634 ac_abs_top_srcdir=$srcdir ;;
7635 *) # Relative name.
7636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7637 ac_top_srcdir=$ac_top_build_prefix$srcdir
7638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7639 esac
7640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7643 case $ac_mode in
7646 # CONFIG_FILE
7649 case $INSTALL in
7650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7651 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7652 esac
7653 ac_MKDIR_P=$MKDIR_P
7654 case $MKDIR_P in
7655 [\\/$]* | ?:[\\/]* ) ;;
7656 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7657 esac
7658 _ACEOF
7660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7661 # If the template does not know about datarootdir, expand it.
7662 # FIXME: This hack should be removed a few years after 2.60.
7663 ac_datarootdir_hack=; ac_datarootdir_seen=
7664 ac_sed_dataroot='
7665 /datarootdir/ {
7669 /@datadir@/p
7670 /@docdir@/p
7671 /@infodir@/p
7672 /@localedir@/p
7673 /@mandir@/p'
7674 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7675 *datarootdir*) ac_datarootdir_seen=yes;;
7676 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7678 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7679 _ACEOF
7680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7681 ac_datarootdir_hack='
7682 s&@datadir@&$datadir&g
7683 s&@docdir@&$docdir&g
7684 s&@infodir@&$infodir&g
7685 s&@localedir@&$localedir&g
7686 s&@mandir@&$mandir&g
7687 s&\\\${datarootdir}&$datarootdir&g' ;;
7688 esac
7689 _ACEOF
7691 # Neutralize VPATH when `$srcdir' = `.'.
7692 # Shell code in configure.ac might set extrasub.
7693 # FIXME: do we really want to maintain this feature?
7694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7695 ac_sed_extra="$ac_vpsub
7696 $extrasub
7697 _ACEOF
7698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7701 s|@configure_input@|$ac_sed_conf_input|;t t
7702 s&@top_builddir@&$ac_top_builddir_sub&;t t
7703 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7704 s&@srcdir@&$ac_srcdir&;t t
7705 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7706 s&@top_srcdir@&$ac_top_srcdir&;t t
7707 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7708 s&@builddir@&$ac_builddir&;t t
7709 s&@abs_builddir@&$ac_abs_builddir&;t t
7710 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7711 s&@INSTALL@&$ac_INSTALL&;t t
7712 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7713 $ac_datarootdir_hack
7715 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7716 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7719 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7721 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7723 which seems to be undefined. Please make sure it is defined" >&5
7724 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7725 which seems to be undefined. Please make sure it is defined" >&2;}
7727 rm -f "$ac_tmp/stdin"
7728 case $ac_file in
7729 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7730 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7731 esac \
7732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7736 # CONFIG_HEADER
7738 if test x"$ac_file" != x-; then
7740 $as_echo "/* $configure_input */" \
7741 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7742 } >"$ac_tmp/config.h" \
7743 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7744 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7746 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7747 else
7748 rm -f "$ac_file"
7749 mv "$ac_tmp/config.h" "$ac_file" \
7750 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7752 else
7753 $as_echo "/* $configure_input */" \
7754 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7755 || as_fn_error $? "could not create -" "$LINENO" 5
7757 # Compute "$ac_file"'s index in $config_headers.
7758 _am_arg="$ac_file"
7759 _am_stamp_count=1
7760 for _am_header in $config_headers :; do
7761 case $_am_header in
7762 $_am_arg | $_am_arg:* )
7763 break ;;
7765 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7766 esac
7767 done
7768 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7769 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7770 X"$_am_arg" : 'X\(//\)[^/]' \| \
7771 X"$_am_arg" : 'X\(//\)$' \| \
7772 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7773 $as_echo X"$_am_arg" |
7774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7775 s//\1/
7778 /^X\(\/\/\)[^/].*/{
7779 s//\1/
7782 /^X\(\/\/\)$/{
7783 s//\1/
7786 /^X\(\/\).*/{
7787 s//\1/
7790 s/.*/./; q'`/stamp-h$_am_stamp_count
7793 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7794 $as_echo "$as_me: executing $ac_file commands" >&6;}
7796 esac
7799 case $ac_file$ac_mode in
7800 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7801 # Older Autoconf quotes --file arguments for eval, but not when files
7802 # are listed without --file. Let's play safe and only enable the eval
7803 # if we detect the quoting.
7804 case $CONFIG_FILES in
7805 *\'*) eval set x "$CONFIG_FILES" ;;
7806 *) set x $CONFIG_FILES ;;
7807 esac
7808 shift
7809 for mf
7811 # Strip MF so we end up with the name of the file.
7812 mf=`echo "$mf" | sed -e 's/:.*$//'`
7813 # Check whether this is an Automake generated Makefile or not.
7814 # We used to match only the files named 'Makefile.in', but
7815 # some people rename them; so instead we look at the file content.
7816 # Grep'ing the first line is not enough: some people post-process
7817 # each Makefile.in and add a new line on top of each file to say so.
7818 # Grep'ing the whole file is not good either: AIX grep has a line
7819 # limit of 2048, but all sed's we know have understand at least 4000.
7820 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7821 dirpart=`$as_dirname -- "$mf" ||
7822 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7823 X"$mf" : 'X\(//\)[^/]' \| \
7824 X"$mf" : 'X\(//\)$' \| \
7825 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7826 $as_echo X"$mf" |
7827 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7828 s//\1/
7831 /^X\(\/\/\)[^/].*/{
7832 s//\1/
7835 /^X\(\/\/\)$/{
7836 s//\1/
7839 /^X\(\/\).*/{
7840 s//\1/
7843 s/.*/./; q'`
7844 else
7845 continue
7847 # Extract the definition of DEPDIR, am__include, and am__quote
7848 # from the Makefile without running 'make'.
7849 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7850 test -z "$DEPDIR" && continue
7851 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7852 test -z "$am__include" && continue
7853 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7854 # Find all dependency output files, they are included files with
7855 # $(DEPDIR) in their names. We invoke sed twice because it is the
7856 # simplest approach to changing $(DEPDIR) to its actual value in the
7857 # expansion.
7858 for file in `sed -n "
7859 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7860 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
7861 # Make sure the directory exists.
7862 test -f "$dirpart/$file" && continue
7863 fdir=`$as_dirname -- "$file" ||
7864 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7865 X"$file" : 'X\(//\)[^/]' \| \
7866 X"$file" : 'X\(//\)$' \| \
7867 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7868 $as_echo X"$file" |
7869 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7870 s//\1/
7873 /^X\(\/\/\)[^/].*/{
7874 s//\1/
7877 /^X\(\/\/\)$/{
7878 s//\1/
7881 /^X\(\/\).*/{
7882 s//\1/
7885 s/.*/./; q'`
7886 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7887 # echo "creating $dirpart/$file"
7888 echo '# dummy' > "$dirpart/$file"
7889 done
7890 done
7894 esac
7895 done # for ac_tag
7898 as_fn_exit 0
7899 _ACEOF
7900 ac_clean_files=$ac_clean_files_save
7902 test $ac_write_fail = 0 ||
7903 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7905 rm -rf gmp-tmp.h
7906 if test "x$cross_compiling" = xyes; then :
7907 if test "x$cache_file" != x/dev/null; then :
7908 cache_file=config.cache
7910 ac_configure_args="$ac_configure_args --host='$kpse_build_alias' \
7911 CC='$BUILDCC' CFLAGS='$BUILDCFLAGS' \
7912 CPPFLAGS='$BUILDCPPFLAGS' LDFLAGS='$BUILDLDFLAGS'"
7915 # configure is writing to config.log, and then calls config.status.
7916 # config.status does its own redirection, appending to config.log.
7917 # Unfortunately, on DOS this fails, as config.log is still kept open
7918 # by configure, so config.status won't be able to write to it; its
7919 # output is simply discarded. So we exec the FD to /dev/null,
7920 # effectively closing config.log, so it can be properly (re)opened and
7921 # appended to by config.status. When coming back to configure, we
7922 # need to make the FD available again.
7923 if test "$no_create" != yes; then
7924 ac_cs_success=:
7925 ac_config_status_args=
7926 test "$silent" = yes &&
7927 ac_config_status_args="$ac_config_status_args --quiet"
7928 exec 5>/dev/null
7929 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7930 exec 5>>config.log
7931 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7932 # would make configure fail if this is the last instruction.
7933 $ac_cs_success || as_fn_exit 1
7937 # CONFIG_SUBDIRS section.
7939 if test "$no_recursion" != yes; then
7941 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
7942 # so they do not pile up.
7943 ac_sub_configure_args=
7944 ac_prev=
7945 eval "set x $ac_configure_args"
7946 shift
7947 for ac_arg
7949 if test -n "$ac_prev"; then
7950 ac_prev=
7951 continue
7953 case $ac_arg in
7954 -cache-file | --cache-file | --cache-fil | --cache-fi \
7955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7956 ac_prev=cache_file ;;
7957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7959 | --c=*)
7961 --config-cache | -C)
7963 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7964 ac_prev=srcdir ;;
7965 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7967 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7968 ac_prev=prefix ;;
7969 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7971 --disable-option-checking)
7974 case $ac_arg in
7975 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7976 esac
7977 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
7978 esac
7979 done
7981 # Always prepend --prefix to ensure using the same prefix
7982 # in subdir configurations.
7983 ac_arg="--prefix=$prefix"
7984 case $ac_arg in
7985 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7986 esac
7987 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
7989 # Pass --silent
7990 if test "$silent" = yes; then
7991 ac_sub_configure_args="--silent $ac_sub_configure_args"
7994 # Always prepend --disable-option-checking to silence warnings, since
7995 # different subdirs can have different --enable and --with options.
7996 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
7998 ac_popdir=`pwd`
7999 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8001 # Do not complain, so a configure script can configure whichever
8002 # parts of a large source tree are present.
8003 test -d "$srcdir/$ac_dir" || continue
8005 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8006 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8007 $as_echo "$ac_msg" >&6
8008 as_dir="$ac_dir"; as_fn_mkdir_p
8009 ac_builddir=.
8011 case "$ac_dir" in
8012 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8014 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8015 # A ".." for each directory in $ac_dir_suffix.
8016 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8017 case $ac_top_builddir_sub in
8018 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8019 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8020 esac ;;
8021 esac
8022 ac_abs_top_builddir=$ac_pwd
8023 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8024 # for backward compatibility:
8025 ac_top_builddir=$ac_top_build_prefix
8027 case $srcdir in
8028 .) # We are building in place.
8029 ac_srcdir=.
8030 ac_top_srcdir=$ac_top_builddir_sub
8031 ac_abs_top_srcdir=$ac_pwd ;;
8032 [\\/]* | ?:[\\/]* ) # Absolute name.
8033 ac_srcdir=$srcdir$ac_dir_suffix;
8034 ac_top_srcdir=$srcdir
8035 ac_abs_top_srcdir=$srcdir ;;
8036 *) # Relative name.
8037 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8038 ac_top_srcdir=$ac_top_build_prefix$srcdir
8039 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8040 esac
8041 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8044 cd "$ac_dir"
8046 # Check for guested configure; otherwise get Cygnus style configure.
8047 if test -f "$ac_srcdir/configure.gnu"; then
8048 ac_sub_configure=$ac_srcdir/configure.gnu
8049 elif test -f "$ac_srcdir/configure"; then
8050 ac_sub_configure=$ac_srcdir/configure
8051 elif test -f "$ac_srcdir/configure.in"; then
8052 # This should be Cygnus configure.
8053 ac_sub_configure=$ac_aux_dir/configure
8054 else
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8056 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8057 ac_sub_configure=
8060 # The recursion is here.
8061 if test -n "$ac_sub_configure"; then
8062 # Make the cache file name correct relative to the subdirectory.
8063 case $cache_file in
8064 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8065 *) # Relative name.
8066 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8067 esac
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8070 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8071 # The eval makes quoting arguments work.
8072 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8073 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8074 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8077 cd "$ac_popdir"
8078 done
8080 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8082 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}