gccrs: Add AST to HIR lowering pass
[official-gcc.git] / libdecnumber / configure
blobfb6db05565a0da9750da2eebd4e9382713463366
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libdecnumber .
5 # Report bugs to <gcc-bugs@gcc.gnu.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
270 $0: gcc-bugs@gcc.gnu.org about your system, including any
271 $0: error possibly output before this message. Then install
272 $0: a modern shell, or manually run the script under such a
273 $0: shell if you do 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='libdecnumber'
582 PACKAGE_TARNAME='libdecnumber'
583 PACKAGE_VERSION=' '
584 PACKAGE_STRING='libdecnumber '
585 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
586 PACKAGE_URL=''
588 ac_unique_file="decNumber.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 ac_subst_vars='LTLIBOBJS
626 LIBOBJS
627 CET_HOST_FLAGS
628 PICFLAG
629 ADDITIONAL_OBJS
630 enable_decimal_float
631 target_os
632 target_vendor
633 target_cpu
634 target
635 host_os
636 host_vendor
637 host_cpu
638 host
639 build_os
640 build_vendor
641 build_cpu
642 build
643 MAINT
644 EGREP
645 GREP
647 WERROR
648 nolto_flags
649 WARN_PEDANTIC
650 WARN_CFLAGS
651 AUTOHEADER
652 AUTOCONF
653 ACLOCAL
655 RANLIB
656 OBJEXT
657 EXEEXT
658 ac_ct_CC
659 CPPFLAGS
660 LDFLAGS
661 CFLAGS
663 SET_MAKE
664 target_alias
665 host_alias
666 build_alias
667 LIBS
668 ECHO_T
669 ECHO_N
670 ECHO_C
671 DEFS
672 mandir
673 localedir
674 libdir
675 psdir
676 pdfdir
677 dvidir
678 htmldir
679 infodir
680 docdir
681 oldincludedir
682 includedir
683 localstatedir
684 sharedstatedir
685 sysconfdir
686 datadir
687 datarootdir
688 libexecdir
689 sbindir
690 bindir
691 program_transform_name
692 prefix
693 exec_prefix
694 PACKAGE_URL
695 PACKAGE_BUGREPORT
696 PACKAGE_STRING
697 PACKAGE_VERSION
698 PACKAGE_TARNAME
699 PACKAGE_NAME
700 PATH_SEPARATOR
701 SHELL'
702 ac_subst_files=''
703 ac_user_opts='
704 enable_option_checking
705 enable_werror_always
706 enable_maintainer_mode
707 enable_decimal_float
708 enable_host_shared
709 enable_cet
711 ac_precious_vars='build_alias
712 host_alias
713 target_alias
715 CFLAGS
716 LDFLAGS
717 LIBS
718 CPPFLAGS
719 CPP'
722 # Initialize some variables set by options.
723 ac_init_help=
724 ac_init_version=false
725 ac_unrecognized_opts=
726 ac_unrecognized_sep=
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
729 cache_file=/dev/null
730 exec_prefix=NONE
731 no_create=
732 no_recursion=
733 prefix=NONE
734 program_prefix=NONE
735 program_suffix=NONE
736 program_transform_name=s,x,x,
737 silent=
738 site=
739 srcdir=
740 verbose=
741 x_includes=NONE
742 x_libraries=NONE
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir='${exec_prefix}/bin'
751 sbindir='${exec_prefix}/sbin'
752 libexecdir='${exec_prefix}/libexec'
753 datarootdir='${prefix}/share'
754 datadir='${datarootdir}'
755 sysconfdir='${prefix}/etc'
756 sharedstatedir='${prefix}/com'
757 localstatedir='${prefix}/var'
758 includedir='${prefix}/include'
759 oldincludedir='/usr/include'
760 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir='${datarootdir}/info'
762 htmldir='${docdir}'
763 dvidir='${docdir}'
764 pdfdir='${docdir}'
765 psdir='${docdir}'
766 libdir='${exec_prefix}/lib'
767 localedir='${datarootdir}/locale'
768 mandir='${datarootdir}/man'
770 ac_prev=
771 ac_dashdash=
772 for ac_option
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\$ac_option
777 ac_prev=
778 continue
781 case $ac_option in
782 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783 *=) ac_optarg= ;;
784 *) ac_optarg=yes ;;
785 esac
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
791 ac_dashdash=yes ;;
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 bindir=$ac_optarg ;;
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
810 --config-cache | -C)
811 cache_file=config.cache ;;
813 -datadir | --datadir | --datadi | --datad)
814 ac_prev=datadir ;;
815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 datadir=$ac_optarg ;;
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
825 -disable-* | --disable-*)
826 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error $? "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
834 "enable_$ac_useropt"
835 "*) ;;
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
838 esac
839 eval enable_$ac_useropt=no ;;
841 -docdir | --docdir | --docdi | --doc | --do)
842 ac_prev=docdir ;;
843 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
844 docdir=$ac_optarg ;;
846 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
847 ac_prev=dvidir ;;
848 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
849 dvidir=$ac_optarg ;;
851 -enable-* | --enable-*)
852 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
855 as_fn_error $? "invalid feature name: $ac_useropt"
856 ac_useropt_orig=$ac_useropt
857 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
858 case $ac_user_opts in
860 "enable_$ac_useropt"
861 "*) ;;
862 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
863 ac_unrecognized_sep=', ';;
864 esac
865 eval enable_$ac_useropt=\$ac_optarg ;;
867 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
868 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
869 | --exec | --exe | --ex)
870 ac_prev=exec_prefix ;;
871 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
872 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
873 | --exec=* | --exe=* | --ex=*)
874 exec_prefix=$ac_optarg ;;
876 -gas | --gas | --ga | --g)
877 # Obsolete; use --with-gas.
878 with_gas=yes ;;
880 -help | --help | --hel | --he | -h)
881 ac_init_help=long ;;
882 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
883 ac_init_help=recursive ;;
884 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
885 ac_init_help=short ;;
887 -host | --host | --hos | --ho)
888 ac_prev=host_alias ;;
889 -host=* | --host=* | --hos=* | --ho=*)
890 host_alias=$ac_optarg ;;
892 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
893 ac_prev=htmldir ;;
894 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
895 | --ht=*)
896 htmldir=$ac_optarg ;;
898 -includedir | --includedir | --includedi | --included | --include \
899 | --includ | --inclu | --incl | --inc)
900 ac_prev=includedir ;;
901 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
902 | --includ=* | --inclu=* | --incl=* | --inc=*)
903 includedir=$ac_optarg ;;
905 -infodir | --infodir | --infodi | --infod | --info | --inf)
906 ac_prev=infodir ;;
907 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
908 infodir=$ac_optarg ;;
910 -libdir | --libdir | --libdi | --libd)
911 ac_prev=libdir ;;
912 -libdir=* | --libdir=* | --libdi=* | --libd=*)
913 libdir=$ac_optarg ;;
915 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
916 | --libexe | --libex | --libe)
917 ac_prev=libexecdir ;;
918 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
919 | --libexe=* | --libex=* | --libe=*)
920 libexecdir=$ac_optarg ;;
922 -localedir | --localedir | --localedi | --localed | --locale)
923 ac_prev=localedir ;;
924 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
925 localedir=$ac_optarg ;;
927 -localstatedir | --localstatedir | --localstatedi | --localstated \
928 | --localstate | --localstat | --localsta | --localst | --locals)
929 ac_prev=localstatedir ;;
930 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
931 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
932 localstatedir=$ac_optarg ;;
934 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
935 ac_prev=mandir ;;
936 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 mandir=$ac_optarg ;;
939 -nfp | --nfp | --nf)
940 # Obsolete; use --without-fp.
941 with_fp=no ;;
943 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944 | --no-cr | --no-c | -n)
945 no_create=yes ;;
947 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
949 no_recursion=yes ;;
951 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
952 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
953 | --oldin | --oldi | --old | --ol | --o)
954 ac_prev=oldincludedir ;;
955 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
956 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
957 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
958 oldincludedir=$ac_optarg ;;
960 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
961 ac_prev=prefix ;;
962 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
963 prefix=$ac_optarg ;;
965 -program-prefix | --program-prefix | --program-prefi | --program-pref \
966 | --program-pre | --program-pr | --program-p)
967 ac_prev=program_prefix ;;
968 -program-prefix=* | --program-prefix=* | --program-prefi=* \
969 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
970 program_prefix=$ac_optarg ;;
972 -program-suffix | --program-suffix | --program-suffi | --program-suff \
973 | --program-suf | --program-su | --program-s)
974 ac_prev=program_suffix ;;
975 -program-suffix=* | --program-suffix=* | --program-suffi=* \
976 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
977 program_suffix=$ac_optarg ;;
979 -program-transform-name | --program-transform-name \
980 | --program-transform-nam | --program-transform-na \
981 | --program-transform-n | --program-transform- \
982 | --program-transform | --program-transfor \
983 | --program-transfo | --program-transf \
984 | --program-trans | --program-tran \
985 | --progr-tra | --program-tr | --program-t)
986 ac_prev=program_transform_name ;;
987 -program-transform-name=* | --program-transform-name=* \
988 | --program-transform-nam=* | --program-transform-na=* \
989 | --program-transform-n=* | --program-transform-=* \
990 | --program-transform=* | --program-transfor=* \
991 | --program-transfo=* | --program-transf=* \
992 | --program-trans=* | --program-tran=* \
993 | --progr-tra=* | --program-tr=* | --program-t=*)
994 program_transform_name=$ac_optarg ;;
996 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
997 ac_prev=pdfdir ;;
998 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
999 pdfdir=$ac_optarg ;;
1001 -psdir | --psdir | --psdi | --psd | --ps)
1002 ac_prev=psdir ;;
1003 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1004 psdir=$ac_optarg ;;
1006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1007 | -silent | --silent | --silen | --sile | --sil)
1008 silent=yes ;;
1010 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1011 ac_prev=sbindir ;;
1012 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1013 | --sbi=* | --sb=*)
1014 sbindir=$ac_optarg ;;
1016 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1017 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1018 | --sharedst | --shareds | --shared | --share | --shar \
1019 | --sha | --sh)
1020 ac_prev=sharedstatedir ;;
1021 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1022 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1023 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1024 | --sha=* | --sh=*)
1025 sharedstatedir=$ac_optarg ;;
1027 -site | --site | --sit)
1028 ac_prev=site ;;
1029 -site=* | --site=* | --sit=*)
1030 site=$ac_optarg ;;
1032 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1033 ac_prev=srcdir ;;
1034 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1035 srcdir=$ac_optarg ;;
1037 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1038 | --syscon | --sysco | --sysc | --sys | --sy)
1039 ac_prev=sysconfdir ;;
1040 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1041 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1042 sysconfdir=$ac_optarg ;;
1044 -target | --target | --targe | --targ | --tar | --ta | --t)
1045 ac_prev=target_alias ;;
1046 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1047 target_alias=$ac_optarg ;;
1049 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1050 verbose=yes ;;
1052 -version | --version | --versio | --versi | --vers | -V)
1053 ac_init_version=: ;;
1055 -with-* | --with-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid package name: $ac_useropt"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "with_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval with_$ac_useropt=\$ac_optarg ;;
1071 -without-* | --without-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error $? "invalid package name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1080 "with_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval with_$ac_useropt=no ;;
1087 --x)
1088 # Obsolete; use --with-x.
1089 with_x=yes ;;
1091 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1092 | --x-incl | --x-inc | --x-in | --x-i)
1093 ac_prev=x_includes ;;
1094 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1095 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1096 x_includes=$ac_optarg ;;
1098 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1099 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1100 ac_prev=x_libraries ;;
1101 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1102 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1103 x_libraries=$ac_optarg ;;
1105 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1106 Try \`$0 --help' for more information"
1109 *=*)
1110 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 case $ac_envvar in #(
1113 '' | [0-9]* | *[!_$as_cr_alnum]* )
1114 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1115 esac
1116 eval $ac_envvar=\$ac_optarg
1117 export $ac_envvar ;;
1120 # FIXME: should be removed in autoconf 3.0.
1121 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1122 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1123 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1124 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1127 esac
1128 done
1130 if test -n "$ac_prev"; then
1131 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1132 as_fn_error $? "missing argument to $ac_option"
1135 if test -n "$ac_unrecognized_opts"; then
1136 case $enable_option_checking in
1137 no) ;;
1138 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1139 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 esac
1143 # Check all directory arguments for consistency.
1144 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1145 datadir sysconfdir sharedstatedir localstatedir includedir \
1146 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1147 libdir localedir mandir
1149 eval ac_val=\$$ac_var
1150 # Remove trailing slashes.
1151 case $ac_val in
1152 */ )
1153 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1154 eval $ac_var=\$ac_val;;
1155 esac
1156 # Be sure to have absolute directory names.
1157 case $ac_val in
1158 [\\/$]* | ?:[\\/]* ) continue;;
1159 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1160 esac
1161 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1162 done
1164 # There might be people who depend on the old broken behavior: `$host'
1165 # used to hold the argument of --host etc.
1166 # FIXME: To remove some day.
1167 build=$build_alias
1168 host=$host_alias
1169 target=$target_alias
1171 # FIXME: To remove some day.
1172 if test "x$host_alias" != x; then
1173 if test "x$build_alias" = x; then
1174 cross_compiling=maybe
1175 elif test "x$build_alias" != "x$host_alias"; then
1176 cross_compiling=yes
1180 ac_tool_prefix=
1181 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1183 test "$silent" = yes && exec 6>/dev/null
1186 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187 ac_ls_di=`ls -di .` &&
1188 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189 as_fn_error $? "working directory cannot be determined"
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 as_fn_error $? "pwd does not report name of working directory"
1194 # Find the source files, if location was not specified.
1195 if test -z "$srcdir"; then
1196 ac_srcdir_defaulted=yes
1197 # Try the directory containing this script, then the parent directory.
1198 ac_confdir=`$as_dirname -- "$as_myself" ||
1199 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200 X"$as_myself" : 'X\(//\)[^/]' \| \
1201 X"$as_myself" : 'X\(//\)$' \| \
1202 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203 $as_echo X"$as_myself" |
1204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 s//\1/
1208 /^X\(\/\/\)[^/].*/{
1209 s//\1/
1212 /^X\(\/\/\)$/{
1213 s//\1/
1216 /^X\(\/\).*/{
1217 s//\1/
1220 s/.*/./; q'`
1221 srcdir=$ac_confdir
1222 if test ! -r "$srcdir/$ac_unique_file"; then
1223 srcdir=..
1225 else
1226 ac_srcdir_defaulted=no
1228 if test ! -r "$srcdir/$ac_unique_file"; then
1229 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1232 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 ac_abs_confdir=`(
1234 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235 pwd)`
1236 # When building in place, set srcdir=.
1237 if test "$ac_abs_confdir" = "$ac_pwd"; then
1238 srcdir=.
1240 # Remove unnecessary trailing slashes from srcdir.
1241 # Double slashes in file names in object file debugging info
1242 # mess up M-x gdb in Emacs.
1243 case $srcdir in
1244 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 esac
1246 for ac_var in $ac_precious_vars; do
1247 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248 eval ac_env_${ac_var}_value=\$${ac_var}
1249 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251 done
1254 # Report the --help message.
1256 if test "$ac_init_help" = "long"; then
1257 # Omit some internal or obsolete options to make the list less imposing.
1258 # This message is too long to be a string in the A/UX 3.1 sh.
1259 cat <<_ACEOF
1260 \`configure' configures libdecnumber to adapt to many kinds of systems.
1262 Usage: $0 [OPTION]... [VAR=VALUE]...
1264 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265 VAR=VALUE. See below for descriptions of some of the useful variables.
1267 Defaults for the options are specified in brackets.
1269 Configuration:
1270 -h, --help display this help and exit
1271 --help=short display options specific to this package
1272 --help=recursive display the short help of all the included packages
1273 -V, --version display version information and exit
1274 -q, --quiet, --silent do not print \`checking ...' messages
1275 --cache-file=FILE cache test results in FILE [disabled]
1276 -C, --config-cache alias for \`--cache-file=config.cache'
1277 -n, --no-create do not create output files
1278 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1280 Installation directories:
1281 --prefix=PREFIX install architecture-independent files in PREFIX
1282 [$ac_default_prefix]
1283 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1284 [PREFIX]
1286 By default, \`make install' will install all the files in
1287 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1288 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289 for instance \`--prefix=\$HOME'.
1291 For better control, use the options below.
1293 Fine tuning of the installation directories:
1294 --bindir=DIR user executables [EPREFIX/bin]
1295 --sbindir=DIR system admin executables [EPREFIX/sbin]
1296 --libexecdir=DIR program executables [EPREFIX/libexec]
1297 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1298 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1299 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1300 --libdir=DIR object code libraries [EPREFIX/lib]
1301 --includedir=DIR C header files [PREFIX/include]
1302 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1303 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1304 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1305 --infodir=DIR info documentation [DATAROOTDIR/info]
1306 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1307 --mandir=DIR man documentation [DATAROOTDIR/man]
1308 --docdir=DIR documentation root [DATAROOTDIR/doc/libdecnumber]
1309 --htmldir=DIR html documentation [DOCDIR]
1310 --dvidir=DIR dvi documentation [DOCDIR]
1311 --pdfdir=DIR pdf documentation [DOCDIR]
1312 --psdir=DIR ps documentation [DOCDIR]
1313 _ACEOF
1315 cat <<\_ACEOF
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 --target=TARGET configure for building compilers for TARGET [HOST]
1321 _ACEOF
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive ) echo "Configuration of libdecnumber :";;
1327 esac
1328 cat <<\_ACEOF
1330 Optional Features:
1331 --disable-option-checking ignore unrecognized --enable/--with options
1332 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1333 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1334 --enable-werror-always enable -Werror despite compiler version
1335 --enable-maintainer-mode enable rules only needed by maintainers
1336 --enable-decimal-float={no,yes,bid,dpd}
1337 enable decimal float extension to C. Selecting 'bid'
1338 or 'dpd' choses which decimal floating point format
1339 to use
1340 --enable-host-shared build host code as shared libraries
1341 --enable-cet enable Intel CET in host libraries [default=auto]
1343 Some influential environment variables:
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
1349 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1350 you have headers in a nonstandard directory <include dir>
1351 CPP C preprocessor
1353 Use these variables to override the choices made by `configure' or to help
1354 it to find libraries and programs with nonstandard names/locations.
1356 Report bugs to <gcc-bugs@gcc.gnu.org>.
1357 _ACEOF
1358 ac_status=$?
1361 if test "$ac_init_help" = "recursive"; then
1362 # If there are subdirs, report their specific --help.
1363 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1364 test -d "$ac_dir" ||
1365 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1366 continue
1367 ac_builddir=.
1369 case "$ac_dir" in
1370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1373 # A ".." for each directory in $ac_dir_suffix.
1374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1375 case $ac_top_builddir_sub in
1376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1378 esac ;;
1379 esac
1380 ac_abs_top_builddir=$ac_pwd
1381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382 # for backward compatibility:
1383 ac_top_builddir=$ac_top_build_prefix
1385 case $srcdir in
1386 .) # We are building in place.
1387 ac_srcdir=.
1388 ac_top_srcdir=$ac_top_builddir_sub
1389 ac_abs_top_srcdir=$ac_pwd ;;
1390 [\\/]* | ?:[\\/]* ) # Absolute name.
1391 ac_srcdir=$srcdir$ac_dir_suffix;
1392 ac_top_srcdir=$srcdir
1393 ac_abs_top_srcdir=$srcdir ;;
1394 *) # Relative name.
1395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396 ac_top_srcdir=$ac_top_build_prefix$srcdir
1397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1398 esac
1399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1401 cd "$ac_dir" || { ac_status=$?; continue; }
1402 # Check for guested configure.
1403 if test -f "$ac_srcdir/configure.gnu"; then
1404 echo &&
1405 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406 elif test -f "$ac_srcdir/configure"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure" --help=recursive
1409 else
1410 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1411 fi || ac_status=$?
1412 cd "$ac_pwd" || { ac_status=$?; break; }
1413 done
1416 test -n "$ac_init_help" && exit $ac_status
1417 if $ac_init_version; then
1418 cat <<\_ACEOF
1419 libdecnumber configure
1420 generated by GNU Autoconf 2.69
1422 Copyright (C) 2012 Free Software Foundation, Inc.
1423 This configure script is free software; the Free Software Foundation
1424 gives unlimited permission to copy, distribute and modify it.
1425 _ACEOF
1426 exit
1429 ## ------------------------ ##
1430 ## Autoconf initialization. ##
1431 ## ------------------------ ##
1433 # ac_fn_c_try_compile LINENO
1434 # --------------------------
1435 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1436 ac_fn_c_try_compile ()
1438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439 rm -f conftest.$ac_objext
1440 if { { ac_try="$ac_compile"
1441 case "(($ac_try" in
1442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443 *) ac_try_echo=$ac_try;;
1444 esac
1445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446 $as_echo "$ac_try_echo"; } >&5
1447 (eval "$ac_compile") 2>conftest.err
1448 ac_status=$?
1449 if test -s conftest.err; then
1450 grep -v '^ *+' conftest.err >conftest.er1
1451 cat conftest.er1 >&5
1452 mv -f conftest.er1 conftest.err
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; } && {
1456 test -z "$ac_c_werror_flag" ||
1457 test ! -s conftest.err
1458 } && test -s conftest.$ac_objext; then :
1459 ac_retval=0
1460 else
1461 $as_echo "$as_me: failed program was:" >&5
1462 sed 's/^/| /' conftest.$ac_ext >&5
1464 ac_retval=1
1466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1467 as_fn_set_status $ac_retval
1469 } # ac_fn_c_try_compile
1471 # ac_fn_c_try_cpp LINENO
1472 # ----------------------
1473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1474 ac_fn_c_try_cpp ()
1476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477 if { { ac_try="$ac_cpp conftest.$ac_ext"
1478 case "(($ac_try" in
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1481 esac
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 $as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1485 ac_status=$?
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } > conftest.i && {
1493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1495 }; then :
1496 ac_retval=0
1497 else
1498 $as_echo "$as_me: failed program was:" >&5
1499 sed 's/^/| /' conftest.$ac_ext >&5
1501 ac_retval=1
1503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1504 as_fn_set_status $ac_retval
1506 } # ac_fn_c_try_cpp
1508 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1509 # -------------------------------------------------------
1510 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1511 # the include files in INCLUDES and setting the cache variable VAR
1512 # accordingly.
1513 ac_fn_c_check_header_mongrel ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if eval \${$3+:} false; then :
1517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518 $as_echo_n "checking for $2... " >&6; }
1519 if eval \${$3+:} false; then :
1520 $as_echo_n "(cached) " >&6
1522 eval ac_res=\$$3
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1524 $as_echo "$ac_res" >&6; }
1525 else
1526 # Is the header compilable?
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1528 $as_echo_n "checking $2 usability... " >&6; }
1529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530 /* end confdefs.h. */
1532 #include <$2>
1533 _ACEOF
1534 if ac_fn_c_try_compile "$LINENO"; then :
1535 ac_header_compiler=yes
1536 else
1537 ac_header_compiler=no
1539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1541 $as_echo "$ac_header_compiler" >&6; }
1543 # Is the header present?
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1545 $as_echo_n "checking $2 presence... " >&6; }
1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547 /* end confdefs.h. */
1548 #include <$2>
1549 _ACEOF
1550 if ac_fn_c_try_cpp "$LINENO"; then :
1551 ac_header_preproc=yes
1552 else
1553 ac_header_preproc=no
1555 rm -f conftest.err conftest.i conftest.$ac_ext
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1557 $as_echo "$ac_header_preproc" >&6; }
1559 # So? What about this header?
1560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1561 yes:no: )
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1563 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1565 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1567 no:yes:* )
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1569 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1571 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1573 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1575 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1577 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1578 ( $as_echo "## ----------------------------------- ##
1579 ## Report this to gcc-bugs@gcc.gnu.org ##
1580 ## ----------------------------------- ##"
1581 ) | sed "s/^/$as_me: WARNING: /" >&2
1583 esac
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1585 $as_echo_n "checking for $2... " >&6; }
1586 if eval \${$3+:} false; then :
1587 $as_echo_n "(cached) " >&6
1588 else
1589 eval "$3=\$ac_header_compiler"
1591 eval ac_res=\$$3
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1593 $as_echo "$ac_res" >&6; }
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597 } # ac_fn_c_check_header_mongrel
1599 # ac_fn_c_try_run LINENO
1600 # ----------------------
1601 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1602 # that executables *can* be run.
1603 ac_fn_c_try_run ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_link"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_link") 2>&5
1614 ac_status=$?
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1617 { { case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_try") 2>&5
1624 ac_status=$?
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; }; }; then :
1627 ac_retval=0
1628 else
1629 $as_echo "$as_me: program exited with status $ac_status" >&5
1630 $as_echo "$as_me: failed program was:" >&5
1631 sed 's/^/| /' conftest.$ac_ext >&5
1633 ac_retval=$ac_status
1635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_run
1641 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists and can be compiled using the include files in
1644 # INCLUDES, setting the cache variable VAR accordingly.
1645 ac_fn_c_check_header_compile ()
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649 $as_echo_n "checking for $2... " >&6; }
1650 if eval \${$3+:} false; then :
1651 $as_echo_n "(cached) " >&6
1652 else
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"; then :
1659 eval "$3=yes"
1660 else
1661 eval "$3=no"
1663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 $as_echo "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 } # ac_fn_c_check_header_compile
1672 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1673 # -------------------------------------------
1674 # Tests whether TYPE exists after having included INCLUDES, setting cache
1675 # variable VAR accordingly.
1676 ac_fn_c_check_type ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=no"
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1689 main ()
1691 if (sizeof ($2))
1692 return 0;
1694 return 0;
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1702 main ()
1704 if (sizeof (($2)))
1705 return 0;
1707 return 0;
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1712 else
1713 eval "$3=yes"
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1719 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_type
1726 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1727 # --------------------------------------------
1728 # Tries to find the compile-time value of EXPR in a program that includes
1729 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1730 # computed
1731 ac_fn_c_compute_int ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if test "$cross_compiling" = yes; then
1735 # Depending upon the size, compute the lo and hi bounds.
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1740 main ()
1742 static int test_array [1 - 2 * !(($2) >= 0)];
1743 test_array [0] = 0;
1744 return test_array [0];
1747 return 0;
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_lo=0 ac_mid=0
1752 while :; do
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1757 main ()
1759 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1760 test_array [0] = 0;
1761 return test_array [0];
1764 return 0;
1766 _ACEOF
1767 if ac_fn_c_try_compile "$LINENO"; then :
1768 ac_hi=$ac_mid; break
1769 else
1770 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1771 if test $ac_lo -le $ac_mid; then
1772 ac_lo= ac_hi=
1773 break
1775 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 done
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1784 main ()
1786 static int test_array [1 - 2 * !(($2) < 0)];
1787 test_array [0] = 0;
1788 return test_array [0];
1791 return 0;
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_hi=-1 ac_mid=-1
1796 while :; do
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1801 main ()
1803 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1804 test_array [0] = 0;
1805 return test_array [0];
1808 return 0;
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_lo=$ac_mid; break
1813 else
1814 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1815 if test $ac_mid -le $ac_hi; then
1816 ac_lo= ac_hi=
1817 break
1819 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 done
1823 else
1824 ac_lo= ac_hi=
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 # Binary search between lo and hi bounds.
1830 while test "x$ac_lo" != "x$ac_hi"; do
1831 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1836 main ()
1838 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1839 test_array [0] = 0;
1840 return test_array [0];
1843 return 0;
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 ac_hi=$ac_mid
1848 else
1849 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 done
1853 case $ac_lo in #((
1854 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1855 '') ac_retval=1 ;;
1856 esac
1857 else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859 /* end confdefs.h. */
1861 static long int longval () { return $2; }
1862 static unsigned long int ulongval () { return $2; }
1863 #include <stdio.h>
1864 #include <stdlib.h>
1866 main ()
1869 FILE *f = fopen ("conftest.val", "w");
1870 if (! f)
1871 return 1;
1872 if (($2) < 0)
1874 long int i = longval ();
1875 if (i != ($2))
1876 return 1;
1877 fprintf (f, "%ld", i);
1879 else
1881 unsigned long int i = ulongval ();
1882 if (i != ($2))
1883 return 1;
1884 fprintf (f, "%lu", i);
1886 /* Do not output a trailing newline, as this causes \r\n confusion
1887 on some platforms. */
1888 return ferror (f) || fclose (f) != 0;
1891 return 0;
1893 _ACEOF
1894 if ac_fn_c_try_run "$LINENO"; then :
1895 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1896 else
1897 ac_retval=1
1899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1900 conftest.$ac_objext conftest.beam conftest.$ac_ext
1901 rm -f conftest.val
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1905 as_fn_set_status $ac_retval
1907 } # ac_fn_c_compute_int
1909 # ac_fn_c_try_link LINENO
1910 # -----------------------
1911 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 ac_fn_c_try_link ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 rm -f conftest.$ac_objext conftest$ac_exeext
1916 if { { ac_try="$ac_link"
1917 case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920 esac
1921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1922 $as_echo "$ac_try_echo"; } >&5
1923 (eval "$ac_link") 2>conftest.err
1924 ac_status=$?
1925 if test -s conftest.err; then
1926 grep -v '^ *+' conftest.err >conftest.er1
1927 cat conftest.er1 >&5
1928 mv -f conftest.er1 conftest.err
1930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1931 test $ac_status = 0; } && {
1932 test -z "$ac_c_werror_flag" ||
1933 test ! -s conftest.err
1934 } && test -s conftest$ac_exeext && {
1935 test "$cross_compiling" = yes ||
1936 test -x conftest$ac_exeext
1937 }; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1946 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1947 # interfere with the next link command; also delete a directory that is
1948 # left behind by Apple's compiler. We do this before executing the actions.
1949 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_c_try_link
1954 cat >config.log <<_ACEOF
1955 This file contains any messages produced by compilers while
1956 running configure, to aid debugging if configure makes a mistake.
1958 It was created by libdecnumber $as_me , which was
1959 generated by GNU Autoconf 2.69. Invocation command line was
1961 $ $0 $@
1963 _ACEOF
1964 exec 5>>config.log
1966 cat <<_ASUNAME
1967 ## --------- ##
1968 ## Platform. ##
1969 ## --------- ##
1971 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1972 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1973 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1974 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1975 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1977 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1978 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1980 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1981 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1982 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1983 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1984 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1985 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1986 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988 _ASUNAME
1990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991 for as_dir in $PATH
1993 IFS=$as_save_IFS
1994 test -z "$as_dir" && as_dir=.
1995 $as_echo "PATH: $as_dir"
1996 done
1997 IFS=$as_save_IFS
1999 } >&5
2001 cat >&5 <<_ACEOF
2004 ## ----------- ##
2005 ## Core tests. ##
2006 ## ----------- ##
2008 _ACEOF
2011 # Keep a trace of the command line.
2012 # Strip out --no-create and --no-recursion so they do not pile up.
2013 # Strip out --silent because we don't want to record it for future runs.
2014 # Also quote any args containing shell meta-characters.
2015 # Make two passes to allow for proper duplicate-argument suppression.
2016 ac_configure_args=
2017 ac_configure_args0=
2018 ac_configure_args1=
2019 ac_must_keep_next=false
2020 for ac_pass in 1 2
2022 for ac_arg
2024 case $ac_arg in
2025 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 continue ;;
2029 *\'*)
2030 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 esac
2032 case $ac_pass in
2033 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2035 as_fn_append ac_configure_args1 " '$ac_arg'"
2036 if test $ac_must_keep_next = true; then
2037 ac_must_keep_next=false # Got value, back to normal.
2038 else
2039 case $ac_arg in
2040 *=* | --config-cache | -C | -disable-* | --disable-* \
2041 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2042 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2043 | -with-* | --with-* | -without-* | --without-* | --x)
2044 case "$ac_configure_args0 " in
2045 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 esac
2048 -* ) ac_must_keep_next=true ;;
2049 esac
2051 as_fn_append ac_configure_args " '$ac_arg'"
2053 esac
2054 done
2055 done
2056 { ac_configure_args0=; unset ac_configure_args0;}
2057 { ac_configure_args1=; unset ac_configure_args1;}
2059 # When interrupted or exit'd, cleanup temporary files, and complete
2060 # config.log. We remove comments because anyway the quotes in there
2061 # would cause problems or look ugly.
2062 # WARNING: Use '\'' to represent an apostrophe within the trap.
2063 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2064 trap 'exit_status=$?
2065 # Save into config.log some information that might help in debugging.
2067 echo
2069 $as_echo "## ---------------- ##
2070 ## Cache variables. ##
2071 ## ---------------- ##"
2072 echo
2073 # The following way of writing the cache mishandles newlines in values,
2075 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2076 eval ac_val=\$$ac_var
2077 case $ac_val in #(
2078 *${as_nl}*)
2079 case $ac_var in #(
2080 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2081 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 esac
2083 case $ac_var in #(
2084 _ | IFS | as_nl) ;; #(
2085 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2086 *) { eval $ac_var=; unset $ac_var;} ;;
2087 esac ;;
2088 esac
2089 done
2090 (set) 2>&1 |
2091 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2092 *${as_nl}ac_space=\ *)
2093 sed -n \
2094 "s/'\''/'\''\\\\'\'''\''/g;
2095 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 ;; #(
2098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2100 esac |
2101 sort
2103 echo
2105 $as_echo "## ----------------- ##
2106 ## Output variables. ##
2107 ## ----------------- ##"
2108 echo
2109 for ac_var in $ac_subst_vars
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 $as_echo "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2119 if test -n "$ac_subst_files"; then
2120 $as_echo "## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##"
2123 echo
2124 for ac_var in $ac_subst_files
2126 eval ac_val=\$$ac_var
2127 case $ac_val in
2128 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 esac
2130 $as_echo "$ac_var='\''$ac_val'\''"
2131 done | sort
2132 echo
2135 if test -s confdefs.h; then
2136 $as_echo "## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##"
2139 echo
2140 cat confdefs.h
2141 echo
2143 test "$ac_signal" != 0 &&
2144 $as_echo "$as_me: caught signal $ac_signal"
2145 $as_echo "$as_me: exit $exit_status"
2146 } >&5
2147 rm -f core *.core core.conftest.* &&
2148 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149 exit $exit_status
2151 for ac_signal in 1 2 13 15; do
2152 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2153 done
2154 ac_signal=0
2156 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2157 rm -f -r conftest* confdefs.h
2159 $as_echo "/* confdefs.h */" > confdefs.h
2161 # Predefined preprocessor variables.
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_URL "$PACKAGE_URL"
2185 _ACEOF
2188 # Let the site file select an alternate cache file if it wants to.
2189 # Prefer an explicitly selected file to automatically selected ones.
2190 ac_site_file1=NONE
2191 ac_site_file2=NONE
2192 if test -n "$CONFIG_SITE"; then
2193 # We do not want a PATH search for config.site.
2194 case $CONFIG_SITE in #((
2195 -*) ac_site_file1=./$CONFIG_SITE;;
2196 */*) ac_site_file1=$CONFIG_SITE;;
2197 *) ac_site_file1=./$CONFIG_SITE;;
2198 esac
2199 elif test "x$prefix" != xNONE; then
2200 ac_site_file1=$prefix/share/config.site
2201 ac_site_file2=$prefix/etc/config.site
2202 else
2203 ac_site_file1=$ac_default_prefix/share/config.site
2204 ac_site_file2=$ac_default_prefix/etc/config.site
2206 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2208 test "x$ac_site_file" = xNONE && continue
2209 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2211 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2212 sed 's/^/| /' "$ac_site_file" >&5
2213 . "$ac_site_file" \
2214 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216 as_fn_error $? "failed to load site script $ac_site_file
2217 See \`config.log' for more details" "$LINENO" 5; }
2219 done
2221 if test -r "$cache_file"; then
2222 # Some versions of bash will fail to source /dev/null (special files
2223 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2224 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2226 $as_echo "$as_me: loading cache $cache_file" >&6;}
2227 case $cache_file in
2228 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2229 *) . "./$cache_file";;
2230 esac
2232 else
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2234 $as_echo "$as_me: creating cache $cache_file" >&6;}
2235 >$cache_file
2238 # Check that the precious variables saved in the cache have kept the same
2239 # value.
2240 ac_cache_corrupted=false
2241 for ac_var in $ac_precious_vars; do
2242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2243 eval ac_new_set=\$ac_env_${ac_var}_set
2244 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2245 eval ac_new_val=\$ac_env_${ac_var}_value
2246 case $ac_old_set,$ac_new_set in
2247 set,)
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2251 ,set)
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2255 ,);;
2257 if test "x$ac_old_val" != "x$ac_new_val"; then
2258 # differences in whitespace do not lead to failure.
2259 ac_old_val_w=`echo x $ac_old_val`
2260 ac_new_val_w=`echo x $ac_new_val`
2261 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2263 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2264 ac_cache_corrupted=:
2265 else
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2267 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2268 eval $ac_var=\$ac_old_val
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2271 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2273 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2274 fi;;
2275 esac
2276 # Pass precious variables to config.status.
2277 if test "$ac_new_set" = set; then
2278 case $ac_new_val in
2279 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2280 *) ac_arg=$ac_var=$ac_new_val ;;
2281 esac
2282 case " $ac_configure_args " in
2283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2284 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2285 esac
2287 done
2288 if $ac_cache_corrupted; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2292 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2293 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2295 ## -------------------- ##
2296 ## Main body of script. ##
2297 ## -------------------- ##
2299 ac_ext=c
2300 ac_cpp='$CPP $CPPFLAGS'
2301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 ac_aux_dir=
2309 for ac_dir in .. "$srcdir"/..; do
2310 if test -f "$ac_dir/install-sh"; then
2311 ac_aux_dir=$ac_dir
2312 ac_install_sh="$ac_aux_dir/install-sh -c"
2313 break
2314 elif test -f "$ac_dir/install.sh"; then
2315 ac_aux_dir=$ac_dir
2316 ac_install_sh="$ac_aux_dir/install.sh -c"
2317 break
2318 elif test -f "$ac_dir/shtool"; then
2319 ac_aux_dir=$ac_dir
2320 ac_install_sh="$ac_aux_dir/shtool install -c"
2321 break
2323 done
2324 if test -z "$ac_aux_dir"; then
2325 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2328 # These three variables are undocumented and unsupported,
2329 # and are intended to be withdrawn in a future Autoconf release.
2330 # They can cause serious problems if a builder's source tree is in a directory
2331 # whose full name contains unusual characters.
2332 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2333 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2334 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2338 # Checks for programs.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2340 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2341 set x ${MAKE-make}
2342 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2343 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 cat >conftest.make <<\_ACEOF
2347 SHELL = /bin/sh
2348 all:
2349 @echo '@@@%%%=$(MAKE)=@@@%%%'
2350 _ACEOF
2351 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2352 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2353 *@@@%%%=?*=@@@%%%*)
2354 eval ac_cv_prog_make_${ac_make}_set=yes;;
2356 eval ac_cv_prog_make_${ac_make}_set=no;;
2357 esac
2358 rm -f conftest.make
2360 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2362 $as_echo "yes" >&6; }
2363 SET_MAKE=
2364 else
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2366 $as_echo "no" >&6; }
2367 SET_MAKE="MAKE=${MAKE-make}"
2370 ac_ext=c
2371 ac_cpp='$CPP $CPPFLAGS'
2372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2375 if test -n "$ac_tool_prefix"; then
2376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2379 $as_echo_n "checking for $ac_word... " >&6; }
2380 if ${ac_cv_prog_CC+:} false; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test -n "$CC"; then
2384 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 else
2386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 for as_dir in $PATH
2389 IFS=$as_save_IFS
2390 test -z "$as_dir" && as_dir=.
2391 for ac_exec_ext in '' $ac_executable_extensions; do
2392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2395 break 2
2397 done
2398 done
2399 IFS=$as_save_IFS
2403 CC=$ac_cv_prog_CC
2404 if test -n "$CC"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2406 $as_echo "$CC" >&6; }
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2409 $as_echo "no" >&6; }
2414 if test -z "$ac_cv_prog_CC"; then
2415 ac_ct_CC=$CC
2416 # Extract the first word of "gcc", so it can be a program name with args.
2417 set dummy gcc; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_ac_ct_CC="gcc"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2437 done
2438 done
2439 IFS=$as_save_IFS
2443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444 if test -n "$ac_ct_CC"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2446 $as_echo "$ac_ct_CC" >&6; }
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456 yes:)
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2460 esac
2461 CC=$ac_ct_CC
2463 else
2464 CC="$ac_cv_prog_CC"
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2470 set dummy ${ac_tool_prefix}cc; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if ${ac_cv_prog_CC+:} false; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 else
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2482 IFS=$as_save_IFS
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_CC="${ac_tool_prefix}cc"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 break 2
2490 done
2491 done
2492 IFS=$as_save_IFS
2496 CC=$ac_cv_prog_CC
2497 if test -n "$CC"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499 $as_echo "$CC" >&6; }
2500 else
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2508 if test -z "$CC"; then
2509 # Extract the first word of "cc", so it can be a program name with args.
2510 set dummy cc; ac_word=$2
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if ${ac_cv_prog_CC+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 if test -n "$CC"; then
2517 ac_cv_prog_CC="$CC" # Let the user override the test.
2518 else
2519 ac_prog_rejected=no
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
2526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2528 ac_prog_rejected=yes
2529 continue
2531 ac_cv_prog_CC="cc"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2535 done
2536 done
2537 IFS=$as_save_IFS
2539 if test $ac_prog_rejected = yes; then
2540 # We found a bogon in the path, so make sure we never use it.
2541 set dummy $ac_cv_prog_CC
2542 shift
2543 if test $# != 0; then
2544 # We chose a different compiler from the bogus one.
2545 # However, it has the same basename, so the bogon will be chosen
2546 # first if we set CC to just the basename; use the full file name.
2547 shift
2548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2553 CC=$ac_cv_prog_CC
2554 if test -n "$CC"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2556 $as_echo "$CC" >&6; }
2557 else
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2564 if test -z "$CC"; then
2565 if test -n "$ac_tool_prefix"; then
2566 for ac_prog in cl.exe
2568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if ${ac_cv_prog_CC+:} false; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577 else
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579 for as_dir in $PATH
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
2589 done
2590 done
2591 IFS=$as_save_IFS
2595 CC=$ac_cv_prog_CC
2596 if test -n "$CC"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2598 $as_echo "$CC" >&6; }
2599 else
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2605 test -n "$CC" && break
2606 done
2608 if test -z "$CC"; then
2609 ac_ct_CC=$CC
2610 for ac_prog in cl.exe
2612 # Extract the first word of "$ac_prog", so it can be a program name with args.
2613 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$ac_ct_CC"; then
2620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_CC="$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2633 done
2634 done
2635 IFS=$as_save_IFS
2639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2640 if test -n "$ac_ct_CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2642 $as_echo "$ac_ct_CC" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2649 test -n "$ac_ct_CC" && break
2650 done
2652 if test "x$ac_ct_CC" = x; then
2653 CC=""
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656 yes:)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659 ac_tool_warned=yes ;;
2660 esac
2661 CC=$ac_ct_CC
2668 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 as_fn_error $? "no acceptable C compiler found in \$PATH
2671 See \`config.log' for more details" "$LINENO" 5; }
2673 # Provide some information about the compiler.
2674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2675 set X $ac_compile
2676 ac_compiler=$2
2677 for ac_option in --version -v -V -qversion; do
2678 { { ac_try="$ac_compiler $ac_option >&5"
2679 case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682 esac
2683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2684 $as_echo "$ac_try_echo"; } >&5
2685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2686 ac_status=$?
2687 if test -s conftest.err; then
2688 sed '10a\
2689 ... rest of stderr output deleted ...
2690 10q' conftest.err >conftest.er1
2691 cat conftest.er1 >&5
2693 rm -f conftest.er1 conftest.err
2694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695 test $ac_status = 0; }
2696 done
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2702 main ()
2706 return 0;
2708 _ACEOF
2709 ac_clean_files_save=$ac_clean_files
2710 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2711 # Try to create an executable without -o first, disregard a.out.
2712 # It will help us diagnose broken compilers, and finding out an intuition
2713 # of exeext.
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2715 $as_echo_n "checking whether the C compiler works... " >&6; }
2716 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2718 # The possible output files:
2719 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2721 ac_rmfiles=
2722 for ac_file in $ac_files
2724 case $ac_file in
2725 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2726 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2727 esac
2728 done
2729 rm -f $ac_rmfiles
2731 if { { ac_try="$ac_link_default"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737 $as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_link_default") 2>&5
2739 ac_status=$?
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }; then :
2742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2743 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2744 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2745 # so that the user can short-circuit this test for compilers unknown to
2746 # Autoconf.
2747 for ac_file in $ac_files ''
2749 test -f "$ac_file" || continue
2750 case $ac_file in
2751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2753 [ab].out )
2754 # We found the default executable, but exeext='' is most
2755 # certainly right.
2756 break;;
2757 *.* )
2758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2759 then :; else
2760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2762 # We set ac_cv_exeext here because the later test for it is not
2763 # safe: cross compilers may not add the suffix if given an `-o'
2764 # argument, so we may need to know it at that point already.
2765 # Even if this section looks crufty: it has the advantage of
2766 # actually working.
2767 break;;
2769 break;;
2770 esac
2771 done
2772 test "$ac_cv_exeext" = no && ac_cv_exeext=
2774 else
2775 ac_file=''
2777 if test -z "$ac_file"; then :
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 $as_echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2785 as_fn_error 77 "C compiler cannot create executables
2786 See \`config.log' for more details" "$LINENO" 5; }
2787 else
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789 $as_echo "yes" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2792 $as_echo_n "checking for C compiler default output file name... " >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2794 $as_echo "$ac_file" >&6; }
2795 ac_exeext=$ac_cv_exeext
2797 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2798 ac_clean_files=$ac_clean_files_save
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2800 $as_echo_n "checking for suffix of executables... " >&6; }
2801 if { { ac_try="$ac_link"
2802 case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805 esac
2806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807 $as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_link") 2>&5
2809 ac_status=$?
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; }; then :
2812 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2813 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2814 # work properly (i.e., refer to `conftest.exe'), while it won't with
2815 # `rm'.
2816 for ac_file in conftest.exe conftest conftest.*; do
2817 test -f "$ac_file" || continue
2818 case $ac_file in
2819 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2820 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2821 break;;
2822 * ) break;;
2823 esac
2824 done
2825 else
2826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2829 See \`config.log' for more details" "$LINENO" 5; }
2831 rm -f conftest conftest$ac_cv_exeext
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2833 $as_echo "$ac_cv_exeext" >&6; }
2835 rm -f conftest.$ac_ext
2836 EXEEXT=$ac_cv_exeext
2837 ac_exeext=$EXEEXT
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2840 #include <stdio.h>
2842 main ()
2844 FILE *f = fopen ("conftest.out", "w");
2845 return ferror (f) || fclose (f) != 0;
2848 return 0;
2850 _ACEOF
2851 ac_clean_files="$ac_clean_files conftest.out"
2852 # Check that the compiler produces executables we can run. If not, either
2853 # the compiler is broken, or we cross compile.
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2855 $as_echo_n "checking whether we are cross compiling... " >&6; }
2856 if test "$cross_compiling" != yes; then
2857 { { ac_try="$ac_link"
2858 case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861 esac
2862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863 $as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_link") 2>&5
2865 ac_status=$?
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }
2868 if { ac_try='./conftest$ac_cv_exeext'
2869 { { case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872 esac
2873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2874 $as_echo "$ac_try_echo"; } >&5
2875 (eval "$ac_try") 2>&5
2876 ac_status=$?
2877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2878 test $ac_status = 0; }; }; then
2879 cross_compiling=no
2880 else
2881 if test "$cross_compiling" = maybe; then
2882 cross_compiling=yes
2883 else
2884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2886 as_fn_error $? "cannot run C compiled programs.
2887 If you meant to cross compile, use \`--host'.
2888 See \`config.log' for more details" "$LINENO" 5; }
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2893 $as_echo "$cross_compiling" >&6; }
2895 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2896 ac_clean_files=$ac_clean_files_save
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2898 $as_echo_n "checking for suffix of object files... " >&6; }
2899 if ${ac_cv_objext+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2906 main ()
2910 return 0;
2912 _ACEOF
2913 rm -f conftest.o conftest.obj
2914 if { { ac_try="$ac_compile"
2915 case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918 esac
2919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920 $as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_compile") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; then :
2925 for ac_file in conftest.o conftest.obj conftest.*; do
2926 test -f "$ac_file" || continue;
2927 case $ac_file in
2928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2929 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2930 break;;
2931 esac
2932 done
2933 else
2934 $as_echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error $? "cannot compute suffix of object files: cannot compile
2940 See \`config.log' for more details" "$LINENO" 5; }
2942 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2945 $as_echo "$ac_cv_objext" >&6; }
2946 OBJEXT=$ac_cv_objext
2947 ac_objext=$OBJEXT
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2949 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2950 if ${ac_cv_c_compiler_gnu+:} false; then :
2951 $as_echo_n "(cached) " >&6
2952 else
2953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2954 /* end confdefs.h. */
2957 main ()
2959 #ifndef __GNUC__
2960 choke me
2961 #endif
2964 return 0;
2966 _ACEOF
2967 if ac_fn_c_try_compile "$LINENO"; then :
2968 ac_compiler_gnu=yes
2969 else
2970 ac_compiler_gnu=no
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2977 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2978 if test $ac_compiler_gnu = yes; then
2979 GCC=yes
2980 else
2981 GCC=
2983 ac_test_CFLAGS=${CFLAGS+set}
2984 ac_save_CFLAGS=$CFLAGS
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2986 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2987 if ${ac_cv_prog_cc_g+:} false; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 ac_save_c_werror_flag=$ac_c_werror_flag
2991 ac_c_werror_flag=yes
2992 ac_cv_prog_cc_g=no
2993 CFLAGS="-g"
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2998 main ()
3002 return 0;
3004 _ACEOF
3005 if ac_fn_c_try_compile "$LINENO"; then :
3006 ac_cv_prog_cc_g=yes
3007 else
3008 CFLAGS=""
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3013 main ()
3017 return 0;
3019 _ACEOF
3020 if ac_fn_c_try_compile "$LINENO"; then :
3022 else
3023 ac_c_werror_flag=$ac_save_c_werror_flag
3024 CFLAGS="-g"
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3029 main ()
3033 return 0;
3035 _ACEOF
3036 if ac_fn_c_try_compile "$LINENO"; then :
3037 ac_cv_prog_cc_g=yes
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 ac_c_werror_flag=$ac_save_c_werror_flag
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3047 $as_echo "$ac_cv_prog_cc_g" >&6; }
3048 if test "$ac_test_CFLAGS" = set; then
3049 CFLAGS=$ac_save_CFLAGS
3050 elif test $ac_cv_prog_cc_g = yes; then
3051 if test "$GCC" = yes; then
3052 CFLAGS="-g -O2"
3053 else
3054 CFLAGS="-g"
3056 else
3057 if test "$GCC" = yes; then
3058 CFLAGS="-O2"
3059 else
3060 CFLAGS=
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3064 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3065 if ${ac_cv_prog_cc_c89+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 ac_cv_prog_cc_c89=no
3069 ac_save_CC=$CC
3070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3071 /* end confdefs.h. */
3072 #include <stdarg.h>
3073 #include <stdio.h>
3074 struct stat;
3075 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3076 struct buf { int x; };
3077 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3078 static char *e (p, i)
3079 char **p;
3080 int i;
3082 return p[i];
3084 static char *f (char * (*g) (char **, int), char **p, ...)
3086 char *s;
3087 va_list v;
3088 va_start (v,p);
3089 s = g (p, va_arg (v,int));
3090 va_end (v);
3091 return s;
3094 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3095 function prototypes and stuff, but not '\xHH' hex character constants.
3096 These don't provoke an error unfortunately, instead are silently treated
3097 as 'x'. The following induces an error, until -std is added to get
3098 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3099 array size at least. It's necessary to write '\x00'==0 to get something
3100 that's true only with -std. */
3101 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3103 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3104 inside strings and character constants. */
3105 #define FOO(x) 'x'
3106 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3108 int test (int i, double x);
3109 struct s1 {int (*f) (int a);};
3110 struct s2 {int (*f) (double a);};
3111 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3112 int argc;
3113 char **argv;
3115 main ()
3117 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3119 return 0;
3121 _ACEOF
3122 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3123 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3125 CC="$ac_save_CC $ac_arg"
3126 if ac_fn_c_try_compile "$LINENO"; then :
3127 ac_cv_prog_cc_c89=$ac_arg
3129 rm -f core conftest.err conftest.$ac_objext
3130 test "x$ac_cv_prog_cc_c89" != "xno" && break
3131 done
3132 rm -f conftest.$ac_ext
3133 CC=$ac_save_CC
3136 # AC_CACHE_VAL
3137 case "x$ac_cv_prog_cc_c89" in
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3140 $as_echo "none needed" >&6; } ;;
3141 xno)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3143 $as_echo "unsupported" >&6; } ;;
3145 CC="$CC $ac_cv_prog_cc_c89"
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3147 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3148 esac
3149 if test "x$ac_cv_prog_cc_c89" != xno; then :
3153 ac_ext=c
3154 ac_cpp='$CPP $CPPFLAGS'
3155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_RANLIB+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$RANLIB"; then
3168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3181 done
3182 done
3183 IFS=$as_save_IFS
3187 RANLIB=$ac_cv_prog_RANLIB
3188 if test -n "$RANLIB"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3190 $as_echo "$RANLIB" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3198 if test -z "$ac_cv_prog_RANLIB"; then
3199 ac_ct_RANLIB=$RANLIB
3200 # Extract the first word of "ranlib", so it can be a program name with args.
3201 set dummy ranlib; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3205 $as_echo_n "(cached) " >&6
3206 else
3207 if test -n "$ac_ct_RANLIB"; then
3208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_ac_ct_RANLIB="ranlib"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3221 done
3222 done
3223 IFS=$as_save_IFS
3227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3228 if test -n "$ac_ct_RANLIB"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3230 $as_echo "$ac_ct_RANLIB" >&6; }
3231 else
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3236 if test "x$ac_ct_RANLIB" = x; then
3237 RANLIB=":"
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3243 ac_tool_warned=yes ;;
3244 esac
3245 RANLIB=$ac_ct_RANLIB
3247 else
3248 RANLIB="$ac_cv_prog_RANLIB"
3251 if test -n "$ac_tool_prefix"; then
3252 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3253 set dummy ${ac_tool_prefix}ar; ac_word=$2
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 $as_echo_n "checking for $ac_word... " >&6; }
3256 if ${ac_cv_prog_AR+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 if test -n "$AR"; then
3260 ac_cv_prog_AR="$AR" # Let the user override the test.
3261 else
3262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 for as_dir in $PATH
3265 IFS=$as_save_IFS
3266 test -z "$as_dir" && as_dir=.
3267 for ac_exec_ext in '' $ac_executable_extensions; do
3268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3269 ac_cv_prog_AR="${ac_tool_prefix}ar"
3270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 break 2
3273 done
3274 done
3275 IFS=$as_save_IFS
3279 AR=$ac_cv_prog_AR
3280 if test -n "$AR"; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3282 $as_echo "$AR" >&6; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3290 if test -z "$ac_cv_prog_AR"; then
3291 ac_ct_AR=$AR
3292 # Extract the first word of "ar", so it can be a program name with args.
3293 set dummy ar; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298 else
3299 if test -n "$ac_ct_AR"; then
3300 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_AR="ar"
3310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3313 done
3314 done
3315 IFS=$as_save_IFS
3319 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3320 if test -n "$ac_ct_AR"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3322 $as_echo "$ac_ct_AR" >&6; }
3323 else
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3328 if test "x$ac_ct_AR" = x; then
3329 AR=""
3330 else
3331 case $cross_compiling:$ac_tool_warned in
3332 yes:)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3335 ac_tool_warned=yes ;;
3336 esac
3337 AR=$ac_ct_AR
3339 else
3340 AR="$ac_cv_prog_AR"
3344 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
3345 for ac_prog in aclocal
3347 # Extract the first word of "$ac_prog", so it can be a program name with args.
3348 set dummy $ac_prog; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_ACLOCAL+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 if test -n "$ACLOCAL"; then
3355 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_ACLOCAL="$ac_prog"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3368 done
3369 done
3370 IFS=$as_save_IFS
3374 ACLOCAL=$ac_cv_prog_ACLOCAL
3375 if test -n "$ACLOCAL"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
3377 $as_echo "$ACLOCAL" >&6; }
3378 else
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3384 test -n "$ACLOCAL" && break
3385 done
3386 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
3388 for ac_prog in autoconf
3390 # Extract the first word of "$ac_prog", so it can be a program name with args.
3391 set dummy $ac_prog; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_AUTOCONF+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$AUTOCONF"; then
3398 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3399 else
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_prog_AUTOCONF="$ac_prog"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 break 2
3411 done
3412 done
3413 IFS=$as_save_IFS
3417 AUTOCONF=$ac_cv_prog_AUTOCONF
3418 if test -n "$AUTOCONF"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
3420 $as_echo "$AUTOCONF" >&6; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3427 test -n "$AUTOCONF" && break
3428 done
3429 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
3431 for ac_prog in autoheader
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy $ac_prog; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_AUTOHEADER+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$AUTOHEADER"; then
3441 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_AUTOHEADER="$ac_prog"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3454 done
3455 done
3456 IFS=$as_save_IFS
3460 AUTOHEADER=$ac_cv_prog_AUTOHEADER
3461 if test -n "$AUTOHEADER"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
3463 $as_echo "$AUTOHEADER" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3470 test -n "$AUTOHEADER" && break
3471 done
3472 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
3475 # Figure out what compiler warnings we can enable.
3476 # See config/warnings.m4 for details.
3479 ac_ext=c
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3485 WARN_CFLAGS=
3486 save_CFLAGS="$CFLAGS"
3487 for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
3488 -Wmissing-prototypes -Wold-style-definition \
3489 -Wmissing-format-attribute -Wcast-qual; do
3490 # Do the check with the no- prefix removed since gcc silently
3491 # accepts any -Wno-* option on purpose
3492 case $real_option in
3493 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
3494 *) option=$real_option ;;
3495 esac
3496 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3499 $as_echo_n "checking whether $CC supports $option... " >&6; }
3500 if eval \${$as_acx_Woption+:} false; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 CFLAGS="$option"
3504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 eval "$as_acx_Woption=yes"
3517 else
3518 eval "$as_acx_Woption=no"
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3523 eval ac_res=\$$as_acx_Woption
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3525 $as_echo "$ac_res" >&6; }
3526 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
3527 WARN_CFLAGS="$WARN_CFLAGS${WARN_CFLAGS:+ }$real_option"
3529 done
3530 CFLAGS="$save_CFLAGS"
3531 ac_ext=c
3532 ac_cpp='$CPP $CPPFLAGS'
3533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3544 WARN_PEDANTIC=
3545 # Do the check with the no- prefix removed from the warning options
3546 # since gcc silently accepts any -Wno-* option on purpose
3547 if test "$GCC" = yes; then :
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
3549 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
3550 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 save_CFLAGS="$CFLAGS"
3554 CFLAGS="-pedantic -Wlong-long"
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 acx_cv_prog_cc_pedantic__Wlong_long=yes
3568 else
3569 acx_cv_prog_cc_pedantic__Wlong_long=no
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 CFLAGS="$save_CFLAGS"
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
3575 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
3576 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
3577 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595 nolto_flags=
3596 save_CFLAGS="$CFLAGS"
3597 for real_option in -fno-lto; do
3598 # Do the check with the no- prefix removed since gcc silently
3599 # accepts any -Wno-* option on purpose
3600 case $real_option in
3601 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
3602 *) option=$real_option ;;
3603 esac
3604 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
3607 $as_echo_n "checking whether $CC supports $option... " >&6; }
3608 if eval \${$as_acx_Woption+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 CFLAGS="$option"
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3616 main ()
3620 return 0;
3622 _ACEOF
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624 eval "$as_acx_Woption=yes"
3625 else
3626 eval "$as_acx_Woption=no"
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 eval ac_res=\$$as_acx_Woption
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3633 $as_echo "$ac_res" >&6; }
3634 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
3635 nolto_flags="$nolto_flags${nolto_flags:+ }$real_option"
3637 done
3638 CFLAGS="$save_CFLAGS"
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 # Only enable with --enable-werror-always until existing warnings are
3648 # corrected.
3649 ac_ext=c
3650 ac_cpp='$CPP $CPPFLAGS'
3651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655 WERROR=
3656 # Check whether --enable-werror-always was given.
3657 if test "${enable_werror_always+set}" = set; then :
3658 enableval=$enable_werror_always;
3659 else
3660 enable_werror_always=no
3663 if test $enable_werror_always = yes; then :
3664 WERROR="$WERROR${WERROR:+ }-Werror"
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675 # Checks for header files.
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 how to run the C preprocessor" >&5
3682 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3683 # On Suns, sometimes $CPP names a directory.
3684 if test -n "$CPP" && test -d "$CPP"; then
3685 CPP=
3687 if test -z "$CPP"; then
3688 if ${ac_cv_prog_CPP+:} false; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 # Double quotes because CPP needs to be expanded
3692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3694 ac_preproc_ok=false
3695 for ac_c_preproc_warn_flag in '' yes
3697 # Use a header file that comes with gcc, so configuring glibc
3698 # with a fresh cross-compiler works.
3699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3700 # <limits.h> exists even on freestanding compilers.
3701 # On the NeXT, cc -E runs the code through the compiler's parser,
3702 # not just through cpp. "Syntax error" is here to catch this case.
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3705 #ifdef __STDC__
3706 # include <limits.h>
3707 #else
3708 # include <assert.h>
3709 #endif
3710 Syntax error
3711 _ACEOF
3712 if ac_fn_c_try_cpp "$LINENO"; then :
3714 else
3715 # Broken: fails on valid input.
3716 continue
3718 rm -f conftest.err conftest.i conftest.$ac_ext
3720 # OK, works on sane cases. Now check whether nonexistent headers
3721 # can be detected and how.
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3724 #include <ac_nonexistent.h>
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3727 # Broken: success on invalid input.
3728 continue
3729 else
3730 # Passes both tests.
3731 ac_preproc_ok=:
3732 break
3734 rm -f conftest.err conftest.i conftest.$ac_ext
3736 done
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.i conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then :
3740 break
3743 done
3744 ac_cv_prog_CPP=$CPP
3747 CPP=$ac_cv_prog_CPP
3748 else
3749 ac_cv_prog_CPP=$CPP
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3752 $as_echo "$CPP" >&6; }
3753 ac_preproc_ok=false
3754 for ac_c_preproc_warn_flag in '' yes
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769 Syntax error
3770 _ACEOF
3771 if ac_fn_c_try_cpp "$LINENO"; then :
3773 else
3774 # Broken: fails on valid input.
3775 continue
3777 rm -f conftest.err conftest.i conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <ac_nonexistent.h>
3784 _ACEOF
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3786 # Broken: success on invalid input.
3787 continue
3788 else
3789 # Passes both tests.
3790 ac_preproc_ok=:
3791 break
3793 rm -f conftest.err conftest.i conftest.$ac_ext
3795 done
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.i conftest.err conftest.$ac_ext
3798 if $ac_preproc_ok; then :
3800 else
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3804 See \`config.log' for more details" "$LINENO" 5; }
3807 ac_ext=c
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3815 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3816 if ${ac_cv_path_GREP+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 if test -z "$GREP"; then
3820 ac_path_GREP_found=false
3821 # Loop through the user's path and test for each of PROGNAME-LIST
3822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_prog in grep ggrep; do
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3830 as_fn_executable_p "$ac_path_GREP" || continue
3831 # Check for GNU ac_path_GREP and select it if it is found.
3832 # Check for GNU $ac_path_GREP
3833 case `"$ac_path_GREP" --version 2>&1` in
3834 *GNU*)
3835 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3837 ac_count=0
3838 $as_echo_n 0123456789 >"conftest.in"
3839 while :
3841 cat "conftest.in" "conftest.in" >"conftest.tmp"
3842 mv "conftest.tmp" "conftest.in"
3843 cp "conftest.in" "conftest.nl"
3844 $as_echo 'GREP' >> "conftest.nl"
3845 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3847 as_fn_arith $ac_count + 1 && ac_count=$as_val
3848 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3849 # Best one so far, save it but keep looking for a better one
3850 ac_cv_path_GREP="$ac_path_GREP"
3851 ac_path_GREP_max=$ac_count
3853 # 10*(2^10) chars as input seems more than enough
3854 test $ac_count -gt 10 && break
3855 done
3856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857 esac
3859 $ac_path_GREP_found && break 3
3860 done
3861 done
3862 done
3863 IFS=$as_save_IFS
3864 if test -z "$ac_cv_path_GREP"; then
3865 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3867 else
3868 ac_cv_path_GREP=$GREP
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3873 $as_echo "$ac_cv_path_GREP" >&6; }
3874 GREP="$ac_cv_path_GREP"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3878 $as_echo_n "checking for egrep... " >&6; }
3879 if ${ac_cv_path_EGREP+:} false; then :
3880 $as_echo_n "(cached) " >&6
3881 else
3882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3883 then ac_cv_path_EGREP="$GREP -E"
3884 else
3885 if test -z "$EGREP"; then
3886 ac_path_EGREP_found=false
3887 # Loop through the user's path and test for each of PROGNAME-LIST
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_prog in egrep; do
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3896 as_fn_executable_p "$ac_path_EGREP" || continue
3897 # Check for GNU ac_path_EGREP and select it if it is found.
3898 # Check for GNU $ac_path_EGREP
3899 case `"$ac_path_EGREP" --version 2>&1` in
3900 *GNU*)
3901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3903 ac_count=0
3904 $as_echo_n 0123456789 >"conftest.in"
3905 while :
3907 cat "conftest.in" "conftest.in" >"conftest.tmp"
3908 mv "conftest.tmp" "conftest.in"
3909 cp "conftest.in" "conftest.nl"
3910 $as_echo 'EGREP' >> "conftest.nl"
3911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913 as_fn_arith $ac_count + 1 && ac_count=$as_val
3914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915 # Best one so far, save it but keep looking for a better one
3916 ac_cv_path_EGREP="$ac_path_EGREP"
3917 ac_path_EGREP_max=$ac_count
3919 # 10*(2^10) chars as input seems more than enough
3920 test $ac_count -gt 10 && break
3921 done
3922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3923 esac
3925 $ac_path_EGREP_found && break 3
3926 done
3927 done
3928 done
3929 IFS=$as_save_IFS
3930 if test -z "$ac_cv_path_EGREP"; then
3931 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3933 else
3934 ac_cv_path_EGREP=$EGREP
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3940 $as_echo "$ac_cv_path_EGREP" >&6; }
3941 EGREP="$ac_cv_path_EGREP"
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3945 $as_echo_n "checking for ANSI C header files... " >&6; }
3946 if ${ac_cv_header_stdc+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951 #include <stdlib.h>
3952 #include <stdarg.h>
3953 #include <string.h>
3954 #include <float.h>
3957 main ()
3961 return 0;
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965 ac_cv_header_stdc=yes
3966 else
3967 ac_cv_header_stdc=no
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 if test $ac_cv_header_stdc = yes; then
3972 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3975 #include <string.h>
3977 _ACEOF
3978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3979 $EGREP "memchr" >/dev/null 2>&1; then :
3981 else
3982 ac_cv_header_stdc=no
3984 rm -f conftest*
3988 if test $ac_cv_header_stdc = yes; then
3989 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdlib.h>
3994 _ACEOF
3995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3996 $EGREP "free" >/dev/null 2>&1; then :
3998 else
3999 ac_cv_header_stdc=no
4001 rm -f conftest*
4005 if test $ac_cv_header_stdc = yes; then
4006 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4007 if test "$cross_compiling" = yes; then :
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #include <ctype.h>
4013 #include <stdlib.h>
4014 #if ((' ' & 0x0FF) == 0x020)
4015 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4016 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4017 #else
4018 # define ISLOWER(c) \
4019 (('a' <= (c) && (c) <= 'i') \
4020 || ('j' <= (c) && (c) <= 'r') \
4021 || ('s' <= (c) && (c) <= 'z'))
4022 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4023 #endif
4025 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4027 main ()
4029 int i;
4030 for (i = 0; i < 256; i++)
4031 if (XOR (islower (i), ISLOWER (i))
4032 || toupper (i) != TOUPPER (i))
4033 return 2;
4034 return 0;
4036 _ACEOF
4037 if ac_fn_c_try_run "$LINENO"; then :
4039 else
4040 ac_cv_header_stdc=no
4042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4043 conftest.$ac_objext conftest.beam conftest.$ac_ext
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4049 $as_echo "$ac_cv_header_stdc" >&6; }
4050 if test $ac_cv_header_stdc = yes; then
4052 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4056 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4057 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4058 inttypes.h stdint.h unistd.h
4059 do :
4060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4061 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4063 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4064 cat >>confdefs.h <<_ACEOF
4065 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4066 _ACEOF
4070 done
4073 for ac_header in ctype.h stddef.h string.h stdio.h
4074 do :
4075 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4076 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4078 cat >>confdefs.h <<_ACEOF
4079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4080 _ACEOF
4084 done
4088 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
4090 acx_cv_header_stdint=stddef.h
4091 acx_cv_header_stdint_kind="(already complete)"
4092 for i in stdint.h $inttype_headers; do
4093 unset ac_cv_type_uintptr_t
4094 unset ac_cv_type_uintmax_t
4095 unset ac_cv_type_int_least32_t
4096 unset ac_cv_type_int_fast32_t
4097 unset ac_cv_type_uint64_t
4098 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
4099 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
4100 #include <$i>
4102 if test "x$ac_cv_type_uintmax_t" = xyes; then :
4103 acx_cv_header_stdint=$i
4104 else
4105 continue
4108 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
4109 #include <$i>
4111 if test "x$ac_cv_type_uintptr_t" = xyes; then :
4113 else
4114 acx_cv_header_stdint_kind="(mostly complete)"
4117 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
4118 #include <$i>
4120 if test "x$ac_cv_type_int_least32_t" = xyes; then :
4122 else
4123 acx_cv_header_stdint_kind="(mostly complete)"
4126 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
4127 #include <$i>
4129 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
4131 else
4132 acx_cv_header_stdint_kind="(mostly complete)"
4135 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
4136 #include <$i>
4138 if test "x$ac_cv_type_uint64_t" = xyes; then :
4140 else
4141 acx_cv_header_stdint_kind="(lacks uint64_t)"
4144 break
4145 done
4146 if test "$acx_cv_header_stdint" = stddef.h; then
4147 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4148 for i in stdint.h $inttype_headers; do
4149 unset ac_cv_type_uintptr_t
4150 unset ac_cv_type_uint32_t
4151 unset ac_cv_type_uint64_t
4152 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
4153 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
4154 #include <$i>
4156 if test "x$ac_cv_type_uint32_t" = xyes; then :
4157 acx_cv_header_stdint=$i
4158 else
4159 continue
4162 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
4163 #include <$i>
4165 if test "x$ac_cv_type_uint64_t" = xyes; then :
4169 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
4170 #include <$i>
4172 if test "x$ac_cv_type_uintptr_t" = xyes; then :
4176 break
4177 done
4179 if test "$acx_cv_header_stdint" = stddef.h; then
4180 acx_cv_header_stdint_kind="(u_intXX_t style)"
4181 for i in sys/types.h $inttype_headers; do
4182 unset ac_cv_type_u_int32_t
4183 unset ac_cv_type_u_int64_t
4184 $as_echo_n "looking for u_intXX_t types in $i, " >&6
4185 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
4186 #include <$i>
4188 if test "x$ac_cv_type_u_int32_t" = xyes; then :
4189 acx_cv_header_stdint=$i
4190 else
4191 continue
4194 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
4195 #include <$i>
4197 if test "x$ac_cv_type_u_int64_t" = xyes; then :
4201 break
4202 done
4204 if test "$acx_cv_header_stdint" = stddef.h; then
4205 acx_cv_header_stdint_kind="(using manual detection)"
4208 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
4209 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
4210 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
4211 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
4212 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
4214 # ----------------- Summarize what we found so far
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
4217 $as_echo_n "checking what to include in gstdint.h... " >&6; }
4219 case `$as_basename -- gstdint.h ||
4220 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
4221 Xgstdint.h : 'X\(//\)$' \| \
4222 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
4223 $as_echo X/gstdint.h |
4224 sed '/^.*\/\([^/][^/]*\)\/*$/{
4225 s//\1/
4228 /^X\/\(\/\/\)$/{
4229 s//\1/
4232 /^X\/\(\/\).*/{
4233 s//\1/
4236 s/.*/./; q'` in
4237 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
4238 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4239 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
4240 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
4241 *) ;;
4242 esac
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
4245 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
4247 # ----------------- done included file, check C basic types --------
4249 # Lacking an uintptr_t? Test size of void *
4250 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
4251 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
4252 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4253 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4254 # This bug is HP SR number 8606223364.
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4256 $as_echo_n "checking size of void *... " >&6; }
4257 if ${ac_cv_sizeof_void_p+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4262 else
4263 if test "$ac_cv_type_void_p" = yes; then
4264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266 as_fn_error 77 "cannot compute sizeof (void *)
4267 See \`config.log' for more details" "$LINENO" 5; }
4268 else
4269 ac_cv_sizeof_void_p=0
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4275 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4279 cat >>confdefs.h <<_ACEOF
4280 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4281 _ACEOF
4284 esac
4286 # Lacking an uint64_t? Test size of long
4287 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
4288 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
4289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4291 # This bug is HP SR number 8606223364.
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4293 $as_echo_n "checking size of long... " >&6; }
4294 if ${ac_cv_sizeof_long+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296 else
4297 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4299 else
4300 if test "$ac_cv_type_long" = yes; then
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303 as_fn_error 77 "cannot compute sizeof (long)
4304 See \`config.log' for more details" "$LINENO" 5; }
4305 else
4306 ac_cv_sizeof_long=0
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4312 $as_echo "$ac_cv_sizeof_long" >&6; }
4316 cat >>confdefs.h <<_ACEOF
4317 #define SIZEOF_LONG $ac_cv_sizeof_long
4318 _ACEOF
4321 esac
4323 if test $acx_cv_header_stdint = stddef.h; then
4324 # Lacking a good header? Test size of everything and deduce all types.
4325 # The cast to long int works around a bug in the HP C Compiler
4326 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4327 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4328 # This bug is HP SR number 8606223364.
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4330 $as_echo_n "checking size of int... " >&6; }
4331 if ${ac_cv_sizeof_int+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4336 else
4337 if test "$ac_cv_type_int" = yes; then
4338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4340 as_fn_error 77 "cannot compute sizeof (int)
4341 See \`config.log' for more details" "$LINENO" 5; }
4342 else
4343 ac_cv_sizeof_int=0
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4349 $as_echo "$ac_cv_sizeof_int" >&6; }
4353 cat >>confdefs.h <<_ACEOF
4354 #define SIZEOF_INT $ac_cv_sizeof_int
4355 _ACEOF
4358 # The cast to long int works around a bug in the HP C Compiler
4359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4361 # This bug is HP SR number 8606223364.
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4363 $as_echo_n "checking size of short... " >&6; }
4364 if ${ac_cv_sizeof_short+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4369 else
4370 if test "$ac_cv_type_short" = yes; then
4371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373 as_fn_error 77 "cannot compute sizeof (short)
4374 See \`config.log' for more details" "$LINENO" 5; }
4375 else
4376 ac_cv_sizeof_short=0
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4382 $as_echo "$ac_cv_sizeof_short" >&6; }
4386 cat >>confdefs.h <<_ACEOF
4387 #define SIZEOF_SHORT $ac_cv_sizeof_short
4388 _ACEOF
4391 # The cast to long int works around a bug in the HP C Compiler
4392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4394 # This bug is HP SR number 8606223364.
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
4396 $as_echo_n "checking size of char... " >&6; }
4397 if ${ac_cv_sizeof_char+:} false; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
4402 else
4403 if test "$ac_cv_type_char" = yes; then
4404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4406 as_fn_error 77 "cannot compute sizeof (char)
4407 See \`config.log' for more details" "$LINENO" 5; }
4408 else
4409 ac_cv_sizeof_char=0
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
4415 $as_echo "$ac_cv_sizeof_char" >&6; }
4419 cat >>confdefs.h <<_ACEOF
4420 #define SIZEOF_CHAR $ac_cv_sizeof_char
4421 _ACEOF
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
4426 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
4427 case "$ac_cv_sizeof_char" in
4428 1) acx_cv_type_int8_t=char ;;
4429 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
4430 esac
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
4432 $as_echo "$acx_cv_type_int8_t" >&6; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
4435 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
4436 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
4437 2:*) acx_cv_type_int16_t=int ;;
4438 *:2) acx_cv_type_int16_t=short ;;
4439 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
4440 esac
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
4442 $as_echo "$acx_cv_type_int16_t" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
4445 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
4446 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
4447 4:*) acx_cv_type_int32_t=int ;;
4448 *:4) acx_cv_type_int32_t=long ;;
4449 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
4450 esac
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
4452 $as_echo "$acx_cv_type_int32_t" >&6; }
4455 # These tests are here to make the output prettier
4457 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
4458 case "$ac_cv_sizeof_long" in
4459 8) acx_cv_type_int64_t=long ;;
4460 esac
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
4462 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
4464 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
4467 # Now we can use the above types
4469 if test "$ac_cv_type_uintptr_t" != yes; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
4471 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
4472 case $ac_cv_sizeof_void_p in
4473 2) acx_cv_type_intptr_t=int16_t ;;
4474 4) acx_cv_type_intptr_t=int32_t ;;
4475 8) acx_cv_type_intptr_t=int64_t ;;
4476 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
4477 esac
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
4479 $as_echo "$acx_cv_type_intptr_t" >&6; }
4482 # ----------------- done all checks, emit header -------------
4483 ac_config_commands="$ac_config_commands gstdint.h"
4488 # Checks for typedefs, structures, and compiler characteristics.
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4490 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4491 if ${ac_cv_c_const+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4498 main ()
4501 #ifndef __cplusplus
4502 /* Ultrix mips cc rejects this sort of thing. */
4503 typedef int charset[2];
4504 const charset cs = { 0, 0 };
4505 /* SunOS 4.1.1 cc rejects this. */
4506 char const *const *pcpcc;
4507 char **ppc;
4508 /* NEC SVR4.0.2 mips cc rejects this. */
4509 struct point {int x, y;};
4510 static struct point const zero = {0,0};
4511 /* AIX XL C 1.02.0.0 rejects this.
4512 It does not let you subtract one const X* pointer from another in
4513 an arm of an if-expression whose if-part is not a constant
4514 expression */
4515 const char *g = "string";
4516 pcpcc = &g + (g ? g-g : 0);
4517 /* HPUX 7.0 cc rejects these. */
4518 ++pcpcc;
4519 ppc = (char**) pcpcc;
4520 pcpcc = (char const *const *) ppc;
4521 { /* SCO 3.2v4 cc rejects this sort of thing. */
4522 char tx;
4523 char *t = &tx;
4524 char const *s = 0 ? (char *) 0 : (char const *) 0;
4526 *t++ = 0;
4527 if (s) return 0;
4529 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4530 int x[] = {25, 17};
4531 const int *foo = &x[0];
4532 ++foo;
4534 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4535 typedef const int *iptr;
4536 iptr p = 0;
4537 ++p;
4539 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
4540 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4541 struct s { int j; const int *ap[3]; } bx;
4542 struct s *b = &bx; b->j = 5;
4544 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4545 const int foo = 10;
4546 if (!foo) return 0;
4548 return !cs[0] && !zero.x;
4549 #endif
4552 return 0;
4554 _ACEOF
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_c_const=yes
4557 else
4558 ac_cv_c_const=no
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4563 $as_echo "$ac_cv_c_const" >&6; }
4564 if test $ac_cv_c_const = no; then
4566 $as_echo "#define const /**/" >>confdefs.h
4570 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4571 if test "x$ac_cv_type_off_t" = xyes; then :
4573 else
4575 cat >>confdefs.h <<_ACEOF
4576 #define off_t long int
4577 _ACEOF
4581 # The cast to long int works around a bug in the HP C Compiler
4582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4584 # This bug is HP SR number 8606223364.
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4586 $as_echo_n "checking size of int... " >&6; }
4587 if ${ac_cv_sizeof_int+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4592 else
4593 if test "$ac_cv_type_int" = yes; then
4594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596 as_fn_error 77 "cannot compute sizeof (int)
4597 See \`config.log' for more details" "$LINENO" 5; }
4598 else
4599 ac_cv_sizeof_int=0
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4605 $as_echo "$ac_cv_sizeof_int" >&6; }
4609 cat >>confdefs.h <<_ACEOF
4610 #define SIZEOF_INT $ac_cv_sizeof_int
4611 _ACEOF
4614 # The cast to long int works around a bug in the HP C Compiler
4615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4617 # This bug is HP SR number 8606223364.
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4619 $as_echo_n "checking size of long... " >&6; }
4620 if ${ac_cv_sizeof_long+:} false; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4625 else
4626 if test "$ac_cv_type_long" = yes; then
4627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4629 as_fn_error 77 "cannot compute sizeof (long)
4630 See \`config.log' for more details" "$LINENO" 5; }
4631 else
4632 ac_cv_sizeof_long=0
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4638 $as_echo "$ac_cv_sizeof_long" >&6; }
4642 cat >>confdefs.h <<_ACEOF
4643 #define SIZEOF_LONG $ac_cv_sizeof_long
4644 _ACEOF
4648 # Checks for library functions.
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4650 $as_echo_n "checking for ANSI C header files... " >&6; }
4651 if ${ac_cv_header_stdc+:} false; then :
4652 $as_echo_n "(cached) " >&6
4653 else
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656 #include <stdlib.h>
4657 #include <stdarg.h>
4658 #include <string.h>
4659 #include <float.h>
4662 main ()
4666 return 0;
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670 ac_cv_header_stdc=yes
4671 else
4672 ac_cv_header_stdc=no
4674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676 if test $ac_cv_header_stdc = yes; then
4677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4679 /* end confdefs.h. */
4680 #include <string.h>
4682 _ACEOF
4683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4684 $EGREP "memchr" >/dev/null 2>&1; then :
4686 else
4687 ac_cv_header_stdc=no
4689 rm -f conftest*
4693 if test $ac_cv_header_stdc = yes; then
4694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4697 #include <stdlib.h>
4699 _ACEOF
4700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4701 $EGREP "free" >/dev/null 2>&1; then :
4703 else
4704 ac_cv_header_stdc=no
4706 rm -f conftest*
4710 if test $ac_cv_header_stdc = yes; then
4711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4712 if test "$cross_compiling" = yes; then :
4714 else
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717 #include <ctype.h>
4718 #include <stdlib.h>
4719 #if ((' ' & 0x0FF) == 0x020)
4720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4722 #else
4723 # define ISLOWER(c) \
4724 (('a' <= (c) && (c) <= 'i') \
4725 || ('j' <= (c) && (c) <= 'r') \
4726 || ('s' <= (c) && (c) <= 'z'))
4727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4728 #endif
4730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4732 main ()
4734 int i;
4735 for (i = 0; i < 256; i++)
4736 if (XOR (islower (i), ISLOWER (i))
4737 || toupper (i) != TOUPPER (i))
4738 return 2;
4739 return 0;
4741 _ACEOF
4742 if ac_fn_c_try_run "$LINENO"; then :
4744 else
4745 ac_cv_header_stdc=no
4747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4748 conftest.$ac_objext conftest.beam conftest.$ac_ext
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4754 $as_echo "$ac_cv_header_stdc" >&6; }
4755 if test $ac_cv_header_stdc = yes; then
4757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4762 # Check whether --enable-maintainer-mode was given.
4763 if test "${enable_maintainer_mode+set}" = set; then :
4764 enableval=$enable_maintainer_mode;
4765 else
4766 enable_maintainer_mode=no
4770 if test "x$enable_maintainer_mode" = xno; then
4771 MAINT='#'
4772 else
4773 MAINT=
4777 # Make sure we can run config.sub.
4778 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4779 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4782 $as_echo_n "checking build system type... " >&6; }
4783 if ${ac_cv_build+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 ac_build_alias=$build_alias
4787 test "x$ac_build_alias" = x &&
4788 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4789 test "x$ac_build_alias" = x &&
4790 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4791 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4792 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4796 $as_echo "$ac_cv_build" >&6; }
4797 case $ac_cv_build in
4798 *-*-*) ;;
4799 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4800 esac
4801 build=$ac_cv_build
4802 ac_save_IFS=$IFS; IFS='-'
4803 set x $ac_cv_build
4804 shift
4805 build_cpu=$1
4806 build_vendor=$2
4807 shift; shift
4808 # Remember, the first character of IFS is used to create $*,
4809 # except with old shells:
4810 build_os=$*
4811 IFS=$ac_save_IFS
4812 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4816 $as_echo_n "checking host system type... " >&6; }
4817 if ${ac_cv_host+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 if test "x$host_alias" = x; then
4821 ac_cv_host=$ac_cv_build
4822 else
4823 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4829 $as_echo "$ac_cv_host" >&6; }
4830 case $ac_cv_host in
4831 *-*-*) ;;
4832 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4833 esac
4834 host=$ac_cv_host
4835 ac_save_IFS=$IFS; IFS='-'
4836 set x $ac_cv_host
4837 shift
4838 host_cpu=$1
4839 host_vendor=$2
4840 shift; shift
4841 # Remember, the first character of IFS is used to create $*,
4842 # except with old shells:
4843 host_os=$*
4844 IFS=$ac_save_IFS
4845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4849 $as_echo_n "checking target system type... " >&6; }
4850 if ${ac_cv_target+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test "x$target_alias" = x; then
4854 ac_cv_target=$ac_cv_host
4855 else
4856 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4857 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4862 $as_echo "$ac_cv_target" >&6; }
4863 case $ac_cv_target in
4864 *-*-*) ;;
4865 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4866 esac
4867 target=$ac_cv_target
4868 ac_save_IFS=$IFS; IFS='-'
4869 set x $ac_cv_target
4870 shift
4871 target_cpu=$1
4872 target_vendor=$2
4873 shift; shift
4874 # Remember, the first character of IFS is used to create $*,
4875 # except with old shells:
4876 target_os=$*
4877 IFS=$ac_save_IFS
4878 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4881 # The aliases save the names the user supplied, while $host etc.
4882 # will get canonicalized.
4883 test -n "$target_alias" &&
4884 test "$program_prefix$program_suffix$program_transform_name" = \
4885 NONENONEs,x,x, &&
4886 program_prefix=${target_alias}-
4888 # Default decimal format
4889 # If you change the defaults here, be sure to change them in the GCC directory also
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decimal floating point" >&5
4891 $as_echo_n "checking for decimal floating point... " >&6; }
4894 # Check whether --enable-decimal-float was given.
4895 if test "${enable_decimal_float+set}" = set; then :
4896 enableval=$enable_decimal_float;
4897 case $enable_decimal_float in
4898 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
4899 *) as_fn_error $? "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
4900 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
4901 esac
4903 else
4905 case $target in
4906 aarch64* | \
4907 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
4908 i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
4909 i?86*-*-mingw* | x86_64*-*-mingw* | \
4910 i?86*-*-cygwin* | x86_64*-*-cygwin*)
4911 enable_decimal_float=yes
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
4915 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
4916 enable_decimal_float=no
4918 esac
4923 # x86's use BID format instead of DPD
4924 case x$enable_decimal_float in
4925 xyes)
4926 case $target in
4927 aarch64* | i?86*-*-* | x86_64*-*-*)
4928 enable_decimal_float=bid
4931 enable_decimal_float=dpd
4933 esac
4934 default_decimal_float=$enable_decimal_float
4936 xno)
4937 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
4938 # dependency on libdecnumber.
4939 default_decimal_float=dpd
4941 esac
4946 # Use default_decimal_float for dependency.
4947 enable_decimal_float=$default_decimal_float
4949 # If BID is being used, additional objects should be linked in.
4950 if test x$enable_decimal_float = xbid; then
4951 ADDITIONAL_OBJS="$ADDITIONAL_OBJS \$(bid_OBJS)"
4952 else
4953 ADDITIONAL_OBJS=
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_decimal_float" >&5
4957 $as_echo "$enable_decimal_float" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4962 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4963 if ${ac_cv_c_bigendian+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 ac_cv_c_bigendian=unknown
4967 # See if we're dealing with a universal compiler.
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 #ifndef __APPLE_CC__
4971 not a universal capable compiler
4972 #endif
4973 typedef int dummy;
4975 _ACEOF
4976 if ac_fn_c_try_compile "$LINENO"; then :
4978 # Check for potential -arch flags. It is not universal unless
4979 # there are at least two -arch flags with different values.
4980 ac_arch=
4981 ac_prev=
4982 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4983 if test -n "$ac_prev"; then
4984 case $ac_word in
4985 i?86 | x86_64 | ppc | ppc64)
4986 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4987 ac_arch=$ac_word
4988 else
4989 ac_cv_c_bigendian=universal
4990 break
4993 esac
4994 ac_prev=
4995 elif test "x$ac_word" = "x-arch"; then
4996 ac_prev=arch
4998 done
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 if test $ac_cv_c_bigendian = unknown; then
5002 # See if sys/param.h defines the BYTE_ORDER macro.
5003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5004 /* end confdefs.h. */
5005 #include <sys/types.h>
5006 #include <sys/param.h>
5009 main ()
5011 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5012 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5013 && LITTLE_ENDIAN)
5014 bogus endian macros
5015 #endif
5018 return 0;
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"; then :
5022 # It does; now see whether it defined to BIG_ENDIAN or not.
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5025 #include <sys/types.h>
5026 #include <sys/param.h>
5029 main ()
5031 #if BYTE_ORDER != BIG_ENDIAN
5032 not big endian
5033 #endif
5036 return 0;
5038 _ACEOF
5039 if ac_fn_c_try_compile "$LINENO"; then :
5040 ac_cv_c_bigendian=yes
5041 else
5042 ac_cv_c_bigendian=no
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 if test $ac_cv_c_bigendian = unknown; then
5049 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <limits.h>
5055 main ()
5057 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5058 bogus endian macros
5059 #endif
5062 return 0;
5064 _ACEOF
5065 if ac_fn_c_try_compile "$LINENO"; then :
5066 # It does; now see whether it defined to _BIG_ENDIAN or not.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #include <limits.h>
5072 main ()
5074 #ifndef _BIG_ENDIAN
5075 not big endian
5076 #endif
5079 return 0;
5081 _ACEOF
5082 if ac_fn_c_try_compile "$LINENO"; then :
5083 ac_cv_c_bigendian=yes
5084 else
5085 ac_cv_c_bigendian=no
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 if test $ac_cv_c_bigendian = unknown; then
5092 # Compile a test program.
5093 if test "$cross_compiling" = yes; then :
5094 # Try to guess by grepping values from an object file.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 short int ascii_mm[] =
5098 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5099 short int ascii_ii[] =
5100 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5101 int use_ascii (int i) {
5102 return ascii_mm[i] + ascii_ii[i];
5104 short int ebcdic_ii[] =
5105 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5106 short int ebcdic_mm[] =
5107 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5108 int use_ebcdic (int i) {
5109 return ebcdic_mm[i] + ebcdic_ii[i];
5111 extern int foo;
5114 main ()
5116 return use_ascii (foo) == use_ebcdic (foo);
5118 return 0;
5120 _ACEOF
5121 if ac_fn_c_try_compile "$LINENO"; then :
5122 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5123 ac_cv_c_bigendian=yes
5125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5126 if test "$ac_cv_c_bigendian" = unknown; then
5127 ac_cv_c_bigendian=no
5128 else
5129 # finding both strings is unlikely to happen, but who knows?
5130 ac_cv_c_bigendian=unknown
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 $ac_includes_default
5140 main ()
5143 /* Are we little or big endian? From Harbison&Steele. */
5144 union
5146 long int l;
5147 char c[sizeof (long int)];
5148 } u;
5149 u.l = 1;
5150 return u.c[sizeof (long int) - 1] == 1;
5153 return 0;
5155 _ACEOF
5156 if ac_fn_c_try_run "$LINENO"; then :
5157 ac_cv_c_bigendian=no
5158 else
5159 ac_cv_c_bigendian=yes
5161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5162 conftest.$ac_objext conftest.beam conftest.$ac_ext
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5168 $as_echo "$ac_cv_c_bigendian" >&6; }
5169 case $ac_cv_c_bigendian in #(
5170 yes)
5171 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5172 ;; #(
5174 ;; #(
5175 universal)
5177 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5179 ;; #(
5181 as_fn_error $? "unknown endianness
5182 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5183 esac
5186 # Enable --enable-host-shared.
5187 # Check whether --enable-host-shared was given.
5188 if test "${enable_host_shared+set}" = set; then :
5189 enableval=$enable_host_shared; PICFLAG=-fPIC
5190 else
5191 PICFLAG=
5196 # Enable Intel CET on Intel CET enabled host if jit is enabled.
5197 # Check whether --enable-cet was given.
5198 if test "${enable_cet+set}" = set; then :
5199 enableval=$enable_cet;
5200 case "$enableval" in
5201 yes|no|auto) ;;
5202 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
5203 esac
5205 else
5206 enable_cet=auto
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
5211 $as_echo_n "checking for CET support... " >&6; }
5213 case "$host" in
5214 i[34567]86-*-linux* | x86_64-*-linux*)
5215 may_have_cet=yes
5216 cet_save_CFLAGS="$CFLAGS"
5217 CFLAGS="$CFLAGS -fcf-protection"
5218 case "$enable_cet" in
5219 auto)
5220 # Check if target supports multi-byte NOPs
5221 # and if compiler and assembler support CET.
5222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223 /* end confdefs.h. */
5226 main ()
5229 #if !defined(__SSE2__)
5230 #error target does not support multi-byte NOPs
5231 #else
5232 asm ("setssbsy");
5233 #endif
5236 return 0;
5238 _ACEOF
5239 if ac_fn_c_try_compile "$LINENO"; then :
5240 enable_cet=yes
5241 else
5242 enable_cet=no
5244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 yes)
5247 # Check if compiler and assembler support CET.
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5252 main ()
5254 asm ("setssbsy");
5256 return 0;
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 support_cet=yes
5261 else
5262 support_cet=no
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 if test $support_cet = "no"; then
5266 if test x$enable_bootstrap != xno \
5267 && test -z "${with_build_subdir}" \
5268 && (test ! -f ../stage_current \
5269 || test `cat ../stage_current` != "stage1"); then
5270 # Require CET support only for the final GCC build.
5271 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
5272 else
5273 # Don't enable CET without CET support for non-bootstrap
5274 # build, in stage1 nor for build support.
5275 enable_cet=no
5279 esac
5280 CFLAGS="$cet_save_CFLAGS"
5283 may_have_cet=no
5284 enable_cet=no
5286 esac
5288 cet_save_CFLAGS="$CFLAGS"
5289 CFLAGS="$CFLAGS -fcf-protection=none"
5290 cet_save_LDFLAGS="$LDFLAGS"
5291 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
5292 if test x$may_have_cet = xyes; then
5293 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5298 main ()
5300 return 0;
5302 return 0;
5304 _ACEOF
5305 if ac_fn_c_try_link "$LINENO"; then :
5306 may_have_cet=yes
5307 else
5308 may_have_cet=no
5310 rm -f core conftest.err conftest.$ac_objext \
5311 conftest$ac_exeext conftest.$ac_ext
5314 if test x$may_have_cet = xyes; then
5315 if test x$cross_compiling = xno; then
5316 if test "$cross_compiling" = yes; then :
5317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5319 as_fn_error $? "cannot run test program while cross compiling
5320 See \`config.log' for more details" "$LINENO" 5; }
5321 else
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323 /* end confdefs.h. */
5326 main ()
5328 asm ("endbr32");
5329 return 0;
5332 _ACEOF
5333 if ac_fn_c_try_run "$LINENO"; then :
5334 have_multi_byte_nop=yes
5335 else
5336 have_multi_byte_nop=no
5338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5339 conftest.$ac_objext conftest.beam conftest.$ac_ext
5342 have_cet=no
5343 if test x$have_multi_byte_nop = xyes; then
5344 if test "$cross_compiling" = yes; then :
5345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5347 as_fn_error $? "cannot run test program while cross compiling
5348 See \`config.log' for more details" "$LINENO" 5; }
5349 else
5350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5353 static void
5354 foo (void)
5358 static void
5359 __attribute__ ((noinline, noclone))
5360 xxx (void (*f) (void))
5362 f ();
5365 static void
5366 __attribute__ ((noinline, noclone))
5367 bar (void)
5369 xxx (foo);
5373 main ()
5375 bar ();
5376 return 0;
5379 _ACEOF
5380 if ac_fn_c_try_run "$LINENO"; then :
5381 have_cet=no
5382 else
5383 have_cet=yes
5385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5386 conftest.$ac_objext conftest.beam conftest.$ac_ext
5390 if test x$enable_cet = xno -a x$have_cet = xyes; then
5391 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
5394 else
5395 # Enable CET in cross compiler if possible so that it will run on both
5396 # CET and non-CET hosts.
5397 have_cet=yes
5399 if test x$enable_cet = xyes; then
5400 CET_HOST_FLAGS="-fcf-protection"
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5402 $as_echo "yes" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5407 CFLAGS="$cet_save_CFLAGS"
5408 LDFLAGS="$cet_save_LDFLAGS"
5410 case x$enable_languages in
5411 *jit*)
5414 CET_HOST_FLAGS=
5416 esac
5420 # Output.
5422 ac_config_headers="$ac_config_headers config.h:config.in"
5424 ac_config_files="$ac_config_files Makefile"
5426 cat >confcache <<\_ACEOF
5427 # This file is a shell script that caches the results of configure
5428 # tests run on this system so they can be shared between configure
5429 # scripts and configure runs, see configure's option --config-cache.
5430 # It is not useful on other systems. If it contains results you don't
5431 # want to keep, you may remove or edit it.
5433 # config.status only pays attention to the cache file if you give it
5434 # the --recheck option to rerun configure.
5436 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5437 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5438 # following values.
5440 _ACEOF
5442 # The following way of writing the cache mishandles newlines in values,
5443 # but we know of no workaround that is simple, portable, and efficient.
5444 # So, we kill variables containing newlines.
5445 # Ultrix sh set writes to stderr and can't be redirected directly,
5446 # and sets the high bit in the cache file unless we assign to the vars.
5448 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5449 eval ac_val=\$$ac_var
5450 case $ac_val in #(
5451 *${as_nl}*)
5452 case $ac_var in #(
5453 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5454 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5455 esac
5456 case $ac_var in #(
5457 _ | IFS | as_nl) ;; #(
5458 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5459 *) { eval $ac_var=; unset $ac_var;} ;;
5460 esac ;;
5461 esac
5462 done
5464 (set) 2>&1 |
5465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5466 *${as_nl}ac_space=\ *)
5467 # `set' does not quote correctly, so add quotes: double-quote
5468 # substitution turns \\\\ into \\, and sed turns \\ into \.
5469 sed -n \
5470 "s/'/'\\\\''/g;
5471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5472 ;; #(
5474 # `set' quotes correctly as required by POSIX, so do not add quotes.
5475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5477 esac |
5478 sort
5480 sed '
5481 /^ac_cv_env_/b end
5482 t clear
5483 :clear
5484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5485 t end
5486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5487 :end' >>confcache
5488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5489 if test -w "$cache_file"; then
5490 if test "x$cache_file" != "x/dev/null"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5492 $as_echo "$as_me: updating cache $cache_file" >&6;}
5493 if test ! -f "$cache_file" || test -h "$cache_file"; then
5494 cat confcache >"$cache_file"
5495 else
5496 case $cache_file in #(
5497 */* | ?:*)
5498 mv -f confcache "$cache_file"$$ &&
5499 mv -f "$cache_file"$$ "$cache_file" ;; #(
5501 mv -f confcache "$cache_file" ;;
5502 esac
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5507 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5510 rm -f confcache
5512 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5513 # Let make expand exec_prefix.
5514 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5516 DEFS=-DHAVE_CONFIG_H
5518 ac_libobjs=
5519 ac_ltlibobjs=
5521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5522 # 1. Remove the extension, and $U if already installed.
5523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5524 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5526 # will be set to the directory where LIBOBJS objects are built.
5527 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5528 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5529 done
5530 LIBOBJS=$ac_libobjs
5532 LTLIBOBJS=$ac_ltlibobjs
5537 : "${CONFIG_STATUS=./config.status}"
5538 ac_write_fail=0
5539 ac_clean_files_save=$ac_clean_files
5540 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5542 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5543 as_write_fail=0
5544 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5545 #! $SHELL
5546 # Generated by $as_me.
5547 # Run this file to recreate the current configuration.
5548 # Compiler output produced by configure, useful for debugging
5549 # configure, is in config.log if it exists.
5551 debug=false
5552 ac_cs_recheck=false
5553 ac_cs_silent=false
5555 SHELL=\${CONFIG_SHELL-$SHELL}
5556 export SHELL
5557 _ASEOF
5558 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5559 ## -------------------- ##
5560 ## M4sh Initialization. ##
5561 ## -------------------- ##
5563 # Be more Bourne compatible
5564 DUALCASE=1; export DUALCASE # for MKS sh
5565 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5566 emulate sh
5567 NULLCMD=:
5568 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5569 # is contrary to our usage. Disable this feature.
5570 alias -g '${1+"$@"}'='"$@"'
5571 setopt NO_GLOB_SUBST
5572 else
5573 case `(set -o) 2>/dev/null` in #(
5574 *posix*) :
5575 set -o posix ;; #(
5576 *) :
5578 esac
5582 as_nl='
5584 export as_nl
5585 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5586 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5587 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5589 # Prefer a ksh shell builtin over an external printf program on Solaris,
5590 # but without wasting forks for bash or zsh.
5591 if test -z "$BASH_VERSION$ZSH_VERSION" \
5592 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5593 as_echo='print -r --'
5594 as_echo_n='print -rn --'
5595 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5596 as_echo='printf %s\n'
5597 as_echo_n='printf %s'
5598 else
5599 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5600 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5601 as_echo_n='/usr/ucb/echo -n'
5602 else
5603 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5604 as_echo_n_body='eval
5605 arg=$1;
5606 case $arg in #(
5607 *"$as_nl"*)
5608 expr "X$arg" : "X\\(.*\\)$as_nl";
5609 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5610 esac;
5611 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5613 export as_echo_n_body
5614 as_echo_n='sh -c $as_echo_n_body as_echo'
5616 export as_echo_body
5617 as_echo='sh -c $as_echo_body as_echo'
5620 # The user is always right.
5621 if test "${PATH_SEPARATOR+set}" != set; then
5622 PATH_SEPARATOR=:
5623 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5624 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5625 PATH_SEPARATOR=';'
5630 # IFS
5631 # We need space, tab and new line, in precisely that order. Quoting is
5632 # there to prevent editors from complaining about space-tab.
5633 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5634 # splitting by setting IFS to empty value.)
5635 IFS=" "" $as_nl"
5637 # Find who we are. Look in the path if we contain no directory separator.
5638 as_myself=
5639 case $0 in #((
5640 *[\\/]* ) as_myself=$0 ;;
5641 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5647 done
5648 IFS=$as_save_IFS
5651 esac
5652 # We did not find ourselves, most probably we were run as `sh COMMAND'
5653 # in which case we are not to be found in the path.
5654 if test "x$as_myself" = x; then
5655 as_myself=$0
5657 if test ! -f "$as_myself"; then
5658 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5659 exit 1
5662 # Unset variables that we do not need and which cause bugs (e.g. in
5663 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5664 # suppresses any "Segmentation fault" message there. '((' could
5665 # trigger a bug in pdksh 5.2.14.
5666 for as_var in BASH_ENV ENV MAIL MAILPATH
5667 do eval test x\${$as_var+set} = xset \
5668 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5669 done
5670 PS1='$ '
5671 PS2='> '
5672 PS4='+ '
5674 # NLS nuisances.
5675 LC_ALL=C
5676 export LC_ALL
5677 LANGUAGE=C
5678 export LANGUAGE
5680 # CDPATH.
5681 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5684 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5685 # ----------------------------------------
5686 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5687 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5688 # script with STATUS, using 1 if that was 0.
5689 as_fn_error ()
5691 as_status=$1; test $as_status -eq 0 && as_status=1
5692 if test "$4"; then
5693 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5694 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5696 $as_echo "$as_me: error: $2" >&2
5697 as_fn_exit $as_status
5698 } # as_fn_error
5701 # as_fn_set_status STATUS
5702 # -----------------------
5703 # Set $? to STATUS, without forking.
5704 as_fn_set_status ()
5706 return $1
5707 } # as_fn_set_status
5709 # as_fn_exit STATUS
5710 # -----------------
5711 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5712 as_fn_exit ()
5714 set +e
5715 as_fn_set_status $1
5716 exit $1
5717 } # as_fn_exit
5719 # as_fn_unset VAR
5720 # ---------------
5721 # Portably unset VAR.
5722 as_fn_unset ()
5724 { eval $1=; unset $1;}
5726 as_unset=as_fn_unset
5727 # as_fn_append VAR VALUE
5728 # ----------------------
5729 # Append the text in VALUE to the end of the definition contained in VAR. Take
5730 # advantage of any shell optimizations that allow amortized linear growth over
5731 # repeated appends, instead of the typical quadratic growth present in naive
5732 # implementations.
5733 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5734 eval 'as_fn_append ()
5736 eval $1+=\$2
5738 else
5739 as_fn_append ()
5741 eval $1=\$$1\$2
5743 fi # as_fn_append
5745 # as_fn_arith ARG...
5746 # ------------------
5747 # Perform arithmetic evaluation on the ARGs, and store the result in the
5748 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5749 # must be portable across $(()) and expr.
5750 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5751 eval 'as_fn_arith ()
5753 as_val=$(( $* ))
5755 else
5756 as_fn_arith ()
5758 as_val=`expr "$@" || test $? -eq 1`
5760 fi # as_fn_arith
5763 if expr a : '\(a\)' >/dev/null 2>&1 &&
5764 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5765 as_expr=expr
5766 else
5767 as_expr=false
5770 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5771 as_basename=basename
5772 else
5773 as_basename=false
5776 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5777 as_dirname=dirname
5778 else
5779 as_dirname=false
5782 as_me=`$as_basename -- "$0" ||
5783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5784 X"$0" : 'X\(//\)$' \| \
5785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5786 $as_echo X/"$0" |
5787 sed '/^.*\/\([^/][^/]*\)\/*$/{
5788 s//\1/
5791 /^X\/\(\/\/\)$/{
5792 s//\1/
5795 /^X\/\(\/\).*/{
5796 s//\1/
5799 s/.*/./; q'`
5801 # Avoid depending upon Character Ranges.
5802 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5803 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5804 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5805 as_cr_digits='0123456789'
5806 as_cr_alnum=$as_cr_Letters$as_cr_digits
5808 ECHO_C= ECHO_N= ECHO_T=
5809 case `echo -n x` in #(((((
5810 -n*)
5811 case `echo 'xy\c'` in
5812 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5813 xy) ECHO_C='\c';;
5814 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5815 ECHO_T=' ';;
5816 esac;;
5818 ECHO_N='-n';;
5819 esac
5821 rm -f conf$$ conf$$.exe conf$$.file
5822 if test -d conf$$.dir; then
5823 rm -f conf$$.dir/conf$$.file
5824 else
5825 rm -f conf$$.dir
5826 mkdir conf$$.dir 2>/dev/null
5828 if (echo >conf$$.file) 2>/dev/null; then
5829 if ln -s conf$$.file conf$$ 2>/dev/null; then
5830 as_ln_s='ln -s'
5831 # ... but there are two gotchas:
5832 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5833 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5834 # In both cases, we have to default to `cp -pR'.
5835 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5836 as_ln_s='cp -pR'
5837 elif ln conf$$.file conf$$ 2>/dev/null; then
5838 as_ln_s=ln
5839 else
5840 as_ln_s='cp -pR'
5842 else
5843 as_ln_s='cp -pR'
5845 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5846 rmdir conf$$.dir 2>/dev/null
5849 # as_fn_mkdir_p
5850 # -------------
5851 # Create "$as_dir" as a directory, including parents if necessary.
5852 as_fn_mkdir_p ()
5855 case $as_dir in #(
5856 -*) as_dir=./$as_dir;;
5857 esac
5858 test -d "$as_dir" || eval $as_mkdir_p || {
5859 as_dirs=
5860 while :; do
5861 case $as_dir in #(
5862 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5863 *) as_qdir=$as_dir;;
5864 esac
5865 as_dirs="'$as_qdir' $as_dirs"
5866 as_dir=`$as_dirname -- "$as_dir" ||
5867 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5868 X"$as_dir" : 'X\(//\)[^/]' \| \
5869 X"$as_dir" : 'X\(//\)$' \| \
5870 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5871 $as_echo X"$as_dir" |
5872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5873 s//\1/
5876 /^X\(\/\/\)[^/].*/{
5877 s//\1/
5880 /^X\(\/\/\)$/{
5881 s//\1/
5884 /^X\(\/\).*/{
5885 s//\1/
5888 s/.*/./; q'`
5889 test -d "$as_dir" && break
5890 done
5891 test -z "$as_dirs" || eval "mkdir $as_dirs"
5892 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5895 } # as_fn_mkdir_p
5896 if mkdir -p . 2>/dev/null; then
5897 as_mkdir_p='mkdir -p "$as_dir"'
5898 else
5899 test -d ./-p && rmdir ./-p
5900 as_mkdir_p=false
5904 # as_fn_executable_p FILE
5905 # -----------------------
5906 # Test if FILE is an executable regular file.
5907 as_fn_executable_p ()
5909 test -f "$1" && test -x "$1"
5910 } # as_fn_executable_p
5911 as_test_x='test -x'
5912 as_executable_p=as_fn_executable_p
5914 # Sed expression to map a string onto a valid CPP name.
5915 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5917 # Sed expression to map a string onto a valid variable name.
5918 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5921 exec 6>&1
5922 ## ----------------------------------- ##
5923 ## Main body of $CONFIG_STATUS script. ##
5924 ## ----------------------------------- ##
5925 _ASEOF
5926 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5929 # Save the log message, to keep $0 and so on meaningful, and to
5930 # report actual input values of CONFIG_FILES etc. instead of their
5931 # values after options handling.
5932 ac_log="
5933 This file was extended by libdecnumber $as_me , which was
5934 generated by GNU Autoconf 2.69. Invocation command line was
5936 CONFIG_FILES = $CONFIG_FILES
5937 CONFIG_HEADERS = $CONFIG_HEADERS
5938 CONFIG_LINKS = $CONFIG_LINKS
5939 CONFIG_COMMANDS = $CONFIG_COMMANDS
5940 $ $0 $@
5942 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5945 _ACEOF
5947 case $ac_config_files in *"
5948 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5949 esac
5951 case $ac_config_headers in *"
5952 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5953 esac
5956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5957 # Files that config.status was made for.
5958 config_files="$ac_config_files"
5959 config_headers="$ac_config_headers"
5960 config_commands="$ac_config_commands"
5962 _ACEOF
5964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5965 ac_cs_usage="\
5966 \`$as_me' instantiates files and other configuration actions
5967 from templates according to the current configuration. Unless the files
5968 and actions are specified as TAGs, all are instantiated by default.
5970 Usage: $0 [OPTION]... [TAG]...
5972 -h, --help print this help, then exit
5973 -V, --version print version number and configuration settings, then exit
5974 --config print configuration, then exit
5975 -q, --quiet, --silent
5976 do not print progress messages
5977 -d, --debug don't remove temporary files
5978 --recheck update $as_me by reconfiguring in the same conditions
5979 --file=FILE[:TEMPLATE]
5980 instantiate the configuration file FILE
5981 --header=FILE[:TEMPLATE]
5982 instantiate the configuration header FILE
5984 Configuration files:
5985 $config_files
5987 Configuration headers:
5988 $config_headers
5990 Configuration commands:
5991 $config_commands
5993 Report bugs to <gcc-bugs@gcc.gnu.org>."
5995 _ACEOF
5996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5997 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5998 ac_cs_version="\\
5999 libdecnumber config.status
6000 configured by $0, generated by GNU Autoconf 2.69,
6001 with options \\"\$ac_cs_config\\"
6003 Copyright (C) 2012 Free Software Foundation, Inc.
6004 This config.status script is free software; the Free Software Foundation
6005 gives unlimited permission to copy, distribute and modify it."
6007 ac_pwd='$ac_pwd'
6008 srcdir='$srcdir'
6009 test -n "\$AWK" || AWK=awk
6010 _ACEOF
6012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6013 # The default lists apply if the user does not specify any file.
6014 ac_need_defaults=:
6015 while test $# != 0
6017 case $1 in
6018 --*=?*)
6019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6021 ac_shift=:
6023 --*=)
6024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6025 ac_optarg=
6026 ac_shift=:
6029 ac_option=$1
6030 ac_optarg=$2
6031 ac_shift=shift
6033 esac
6035 case $ac_option in
6036 # Handling of the options.
6037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6038 ac_cs_recheck=: ;;
6039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6040 $as_echo "$ac_cs_version"; exit ;;
6041 --config | --confi | --conf | --con | --co | --c )
6042 $as_echo "$ac_cs_config"; exit ;;
6043 --debug | --debu | --deb | --de | --d | -d )
6044 debug=: ;;
6045 --file | --fil | --fi | --f )
6046 $ac_shift
6047 case $ac_optarg in
6048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6049 '') as_fn_error $? "missing file argument" ;;
6050 esac
6051 as_fn_append CONFIG_FILES " '$ac_optarg'"
6052 ac_need_defaults=false;;
6053 --header | --heade | --head | --hea )
6054 $ac_shift
6055 case $ac_optarg in
6056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6057 esac
6058 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6059 ac_need_defaults=false;;
6060 --he | --h)
6061 # Conflict between --help and --header
6062 as_fn_error $? "ambiguous option: \`$1'
6063 Try \`$0 --help' for more information.";;
6064 --help | --hel | -h )
6065 $as_echo "$ac_cs_usage"; exit ;;
6066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6068 ac_cs_silent=: ;;
6070 # This is an error.
6071 -*) as_fn_error $? "unrecognized option: \`$1'
6072 Try \`$0 --help' for more information." ;;
6074 *) as_fn_append ac_config_targets " $1"
6075 ac_need_defaults=false ;;
6077 esac
6078 shift
6079 done
6081 ac_configure_extra_args=
6083 if $ac_cs_silent; then
6084 exec 6>/dev/null
6085 ac_configure_extra_args="$ac_configure_extra_args --silent"
6088 _ACEOF
6089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6090 if \$ac_cs_recheck; then
6091 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6092 shift
6093 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6094 CONFIG_SHELL='$SHELL'
6095 export CONFIG_SHELL
6096 exec "\$@"
6099 _ACEOF
6100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6101 exec 5>>config.log
6103 echo
6104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6105 ## Running $as_me. ##
6106 _ASBOX
6107 $as_echo "$ac_log"
6108 } >&5
6110 _ACEOF
6111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6113 # INIT-COMMANDS
6116 GCC="$GCC"
6117 CC="$CC"
6118 acx_cv_header_stdint="$acx_cv_header_stdint"
6119 acx_cv_type_int8_t="$acx_cv_type_int8_t"
6120 acx_cv_type_int16_t="$acx_cv_type_int16_t"
6121 acx_cv_type_int32_t="$acx_cv_type_int32_t"
6122 acx_cv_type_int64_t="$acx_cv_type_int64_t"
6123 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
6124 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
6125 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
6126 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
6127 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
6128 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
6129 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
6130 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
6131 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
6134 _ACEOF
6136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6138 # Handling of arguments.
6139 for ac_config_target in $ac_config_targets
6141 case $ac_config_target in
6142 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
6143 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6144 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6146 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6147 esac
6148 done
6151 # If the user did not use the arguments to specify the items to instantiate,
6152 # then the envvar interface is used. Set only those that are not.
6153 # We use the long form for the default assignment because of an extremely
6154 # bizarre bug on SunOS 4.1.3.
6155 if $ac_need_defaults; then
6156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6161 # Have a temporary directory for convenience. Make it in the build tree
6162 # simply because there is no reason against having it here, and in addition,
6163 # creating and moving files from /tmp can sometimes cause problems.
6164 # Hook for its removal unless debugging.
6165 # Note that there is a small window in which the directory will not be cleaned:
6166 # after its creation but before its name has been assigned to `$tmp'.
6167 $debug ||
6169 tmp= ac_tmp=
6170 trap 'exit_status=$?
6171 : "${ac_tmp:=$tmp}"
6172 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6174 trap 'as_fn_exit 1' 1 2 13 15
6176 # Create a (secure) tmp directory for tmp files.
6179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6180 test -d "$tmp"
6181 } ||
6183 tmp=./conf$$-$RANDOM
6184 (umask 077 && mkdir "$tmp")
6185 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6186 ac_tmp=$tmp
6188 # Set up the scripts for CONFIG_FILES section.
6189 # No need to generate them if there are no CONFIG_FILES.
6190 # This happens for instance with `./config.status config.h'.
6191 if test -n "$CONFIG_FILES"; then
6194 ac_cr=`echo X | tr X '\015'`
6195 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6196 # But we know of no other shell where ac_cr would be empty at this
6197 # point, so we can use a bashism as a fallback.
6198 if test "x$ac_cr" = x; then
6199 eval ac_cr=\$\'\\r\'
6201 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6202 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6203 ac_cs_awk_cr='\\r'
6204 else
6205 ac_cs_awk_cr=$ac_cr
6208 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6209 _ACEOF
6213 echo "cat >conf$$subs.awk <<_ACEOF" &&
6214 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6215 echo "_ACEOF"
6216 } >conf$$subs.sh ||
6217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6218 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6219 ac_delim='%!_!# '
6220 for ac_last_try in false false false false false :; do
6221 . ./conf$$subs.sh ||
6222 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6224 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6225 if test $ac_delim_n = $ac_delim_num; then
6226 break
6227 elif $ac_last_try; then
6228 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6229 else
6230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6232 done
6233 rm -f conf$$subs.sh
6235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6236 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6237 _ACEOF
6238 sed -n '
6240 s/^/S["/; s/!.*/"]=/
6243 s/^[^!]*!//
6244 :repl
6245 t repl
6246 s/'"$ac_delim"'$//
6247 t delim
6250 s/\(.\{148\}\)..*/\1/
6251 t more1
6252 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6255 b repl
6256 :more1
6257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6260 s/.\{148\}//
6261 t nl
6262 :delim
6264 s/\(.\{148\}\)..*/\1/
6265 t more2
6266 s/["\\]/\\&/g; s/^/"/; s/$/"/
6269 :more2
6270 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6273 s/.\{148\}//
6274 t delim
6275 ' <conf$$subs.awk | sed '
6276 /^[^""]/{
6278 s/\n//
6280 ' >>$CONFIG_STATUS || ac_write_fail=1
6281 rm -f conf$$subs.awk
6282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6283 _ACAWK
6284 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6285 for (key in S) S_is_set[key] = 1
6286 FS = "\a"
6290 line = $ 0
6291 nfields = split(line, field, "@")
6292 substed = 0
6293 len = length(field[1])
6294 for (i = 2; i < nfields; i++) {
6295 key = field[i]
6296 keylen = length(key)
6297 if (S_is_set[key]) {
6298 value = S[key]
6299 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6300 len += length(value) + length(field[++i])
6301 substed = 1
6302 } else
6303 len += 1 + keylen
6306 print line
6309 _ACAWK
6310 _ACEOF
6311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6312 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6313 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6314 else
6316 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6317 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6318 _ACEOF
6320 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6321 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6322 # trailing colons and then remove the whole line if VPATH becomes empty
6323 # (actually we leave an empty line to preserve line numbers).
6324 if test "x$srcdir" = x.; then
6325 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6327 s///
6328 s/^/:/
6329 s/[ ]*$/:/
6330 s/:\$(srcdir):/:/g
6331 s/:\${srcdir}:/:/g
6332 s/:@srcdir@:/:/g
6333 s/^:*//
6334 s/:*$//
6336 s/\(=[ ]*\).*/\1/
6338 s/\n//
6339 s/^[^=]*=[ ]*$//
6343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6344 fi # test -n "$CONFIG_FILES"
6346 # Set up the scripts for CONFIG_HEADERS section.
6347 # No need to generate them if there are no CONFIG_HEADERS.
6348 # This happens for instance with `./config.status Makefile'.
6349 if test -n "$CONFIG_HEADERS"; then
6350 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6351 BEGIN {
6352 _ACEOF
6354 # Transform confdefs.h into an awk script `defines.awk', embedded as
6355 # here-document in config.status, that substitutes the proper values into
6356 # config.h.in to produce config.h.
6358 # Create a delimiter string that does not exist in confdefs.h, to ease
6359 # handling of long lines.
6360 ac_delim='%!_!# '
6361 for ac_last_try in false false :; do
6362 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6363 if test -z "$ac_tt"; then
6364 break
6365 elif $ac_last_try; then
6366 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6367 else
6368 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6370 done
6372 # For the awk script, D is an array of macro values keyed by name,
6373 # likewise P contains macro parameters if any. Preserve backslash
6374 # newline sequences.
6376 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6377 sed -n '
6378 s/.\{148\}/&'"$ac_delim"'/g
6379 t rset
6380 :rset
6381 s/^[ ]*#[ ]*define[ ][ ]*/ /
6382 t def
6384 :def
6385 s/\\$//
6386 t bsnl
6387 s/["\\]/\\&/g
6388 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6389 D["\1"]=" \3"/p
6390 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6392 :bsnl
6393 s/["\\]/\\&/g
6394 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6395 D["\1"]=" \3\\\\\\n"\\/p
6396 t cont
6397 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6398 t cont
6400 :cont
6402 s/.\{148\}/&'"$ac_delim"'/g
6403 t clear
6404 :clear
6405 s/\\$//
6406 t bsnlc
6407 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6409 :bsnlc
6410 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6411 b cont
6412 ' <confdefs.h | sed '
6413 s/'"$ac_delim"'/"\\\
6414 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6417 for (key in D) D_is_set[key] = 1
6418 FS = "\a"
6420 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6421 line = \$ 0
6422 split(line, arg, " ")
6423 if (arg[1] == "#") {
6424 defundef = arg[2]
6425 mac1 = arg[3]
6426 } else {
6427 defundef = substr(arg[1], 2)
6428 mac1 = arg[2]
6430 split(mac1, mac2, "(") #)
6431 macro = mac2[1]
6432 prefix = substr(line, 1, index(line, defundef) - 1)
6433 if (D_is_set[macro]) {
6434 # Preserve the white space surrounding the "#".
6435 print prefix "define", macro P[macro] D[macro]
6436 next
6437 } else {
6438 # Replace #undef with comments. This is necessary, for example,
6439 # in the case of _POSIX_SOURCE, which is predefined and required
6440 # on some systems where configure will not decide to define it.
6441 if (defundef == "undef") {
6442 print "/*", prefix defundef, macro, "*/"
6443 next
6447 { print }
6448 _ACAWK
6449 _ACEOF
6450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6451 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6452 fi # test -n "$CONFIG_HEADERS"
6455 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6456 shift
6457 for ac_tag
6459 case $ac_tag in
6460 :[FHLC]) ac_mode=$ac_tag; continue;;
6461 esac
6462 case $ac_mode$ac_tag in
6463 :[FHL]*:*);;
6464 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6465 :[FH]-) ac_tag=-:-;;
6466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6467 esac
6468 ac_save_IFS=$IFS
6469 IFS=:
6470 set x $ac_tag
6471 IFS=$ac_save_IFS
6472 shift
6473 ac_file=$1
6474 shift
6476 case $ac_mode in
6477 :L) ac_source=$1;;
6478 :[FH])
6479 ac_file_inputs=
6480 for ac_f
6482 case $ac_f in
6483 -) ac_f="$ac_tmp/stdin";;
6484 *) # Look for the file first in the build tree, then in the source tree
6485 # (if the path is not absolute). The absolute path cannot be DOS-style,
6486 # because $ac_f cannot contain `:'.
6487 test -f "$ac_f" ||
6488 case $ac_f in
6489 [\\/$]*) false;;
6490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6491 esac ||
6492 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6493 esac
6494 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6495 as_fn_append ac_file_inputs " '$ac_f'"
6496 done
6498 # Let's still pretend it is `configure' which instantiates (i.e., don't
6499 # use $as_me), people would be surprised to read:
6500 # /* config.h. Generated by config.status. */
6501 configure_input='Generated from '`
6502 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6503 `' by configure.'
6504 if test x"$ac_file" != x-; then
6505 configure_input="$ac_file. $configure_input"
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6507 $as_echo "$as_me: creating $ac_file" >&6;}
6509 # Neutralize special characters interpreted by sed in replacement strings.
6510 case $configure_input in #(
6511 *\&* | *\|* | *\\* )
6512 ac_sed_conf_input=`$as_echo "$configure_input" |
6513 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6514 *) ac_sed_conf_input=$configure_input;;
6515 esac
6517 case $ac_tag in
6518 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6520 esac
6522 esac
6524 ac_dir=`$as_dirname -- "$ac_file" ||
6525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6526 X"$ac_file" : 'X\(//\)[^/]' \| \
6527 X"$ac_file" : 'X\(//\)$' \| \
6528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6529 $as_echo X"$ac_file" |
6530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6531 s//\1/
6534 /^X\(\/\/\)[^/].*/{
6535 s//\1/
6538 /^X\(\/\/\)$/{
6539 s//\1/
6542 /^X\(\/\).*/{
6543 s//\1/
6546 s/.*/./; q'`
6547 as_dir="$ac_dir"; as_fn_mkdir_p
6548 ac_builddir=.
6550 case "$ac_dir" in
6551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6553 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6554 # A ".." for each directory in $ac_dir_suffix.
6555 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6556 case $ac_top_builddir_sub in
6557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6559 esac ;;
6560 esac
6561 ac_abs_top_builddir=$ac_pwd
6562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6563 # for backward compatibility:
6564 ac_top_builddir=$ac_top_build_prefix
6566 case $srcdir in
6567 .) # We are building in place.
6568 ac_srcdir=.
6569 ac_top_srcdir=$ac_top_builddir_sub
6570 ac_abs_top_srcdir=$ac_pwd ;;
6571 [\\/]* | ?:[\\/]* ) # Absolute name.
6572 ac_srcdir=$srcdir$ac_dir_suffix;
6573 ac_top_srcdir=$srcdir
6574 ac_abs_top_srcdir=$srcdir ;;
6575 *) # Relative name.
6576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6577 ac_top_srcdir=$ac_top_build_prefix$srcdir
6578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6579 esac
6580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6583 case $ac_mode in
6586 # CONFIG_FILE
6589 _ACEOF
6591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6592 # If the template does not know about datarootdir, expand it.
6593 # FIXME: This hack should be removed a few years after 2.60.
6594 ac_datarootdir_hack=; ac_datarootdir_seen=
6595 ac_sed_dataroot='
6596 /datarootdir/ {
6600 /@datadir@/p
6601 /@docdir@/p
6602 /@infodir@/p
6603 /@localedir@/p
6604 /@mandir@/p'
6605 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6606 *datarootdir*) ac_datarootdir_seen=yes;;
6607 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6609 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6610 _ACEOF
6611 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6612 ac_datarootdir_hack='
6613 s&@datadir@&$datadir&g
6614 s&@docdir@&$docdir&g
6615 s&@infodir@&$infodir&g
6616 s&@localedir@&$localedir&g
6617 s&@mandir@&$mandir&g
6618 s&\\\${datarootdir}&$datarootdir&g' ;;
6619 esac
6620 _ACEOF
6622 # Neutralize VPATH when `$srcdir' = `.'.
6623 # Shell code in configure.ac might set extrasub.
6624 # FIXME: do we really want to maintain this feature?
6625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6626 ac_sed_extra="$ac_vpsub
6627 $extrasub
6628 _ACEOF
6629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6632 s|@configure_input@|$ac_sed_conf_input|;t t
6633 s&@top_builddir@&$ac_top_builddir_sub&;t t
6634 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6635 s&@srcdir@&$ac_srcdir&;t t
6636 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6637 s&@top_srcdir@&$ac_top_srcdir&;t t
6638 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6639 s&@builddir@&$ac_builddir&;t t
6640 s&@abs_builddir@&$ac_abs_builddir&;t t
6641 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6642 $ac_datarootdir_hack
6644 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6645 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6647 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6648 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6650 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6652 which seems to be undefined. Please make sure it is defined" >&5
6653 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6654 which seems to be undefined. Please make sure it is defined" >&2;}
6656 rm -f "$ac_tmp/stdin"
6657 case $ac_file in
6658 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6659 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6660 esac \
6661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6665 # CONFIG_HEADER
6667 if test x"$ac_file" != x-; then
6669 $as_echo "/* $configure_input */" \
6670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6671 } >"$ac_tmp/config.h" \
6672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6673 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6675 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6676 else
6677 rm -f "$ac_file"
6678 mv "$ac_tmp/config.h" "$ac_file" \
6679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6681 else
6682 $as_echo "/* $configure_input */" \
6683 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6684 || as_fn_error $? "could not create -" "$LINENO" 5
6688 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6689 $as_echo "$as_me: executing $ac_file commands" >&6;}
6691 esac
6694 case $ac_file$ac_mode in
6695 "gstdint.h":C)
6696 if test "$GCC" = yes; then
6697 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
6698 else
6699 echo "/* generated for $CC */" > tmp-stdint.h
6702 sed 's/^ *//' >> tmp-stdint.h <<EOF
6704 #ifndef GCC_GENERATED_STDINT_H
6705 #define GCC_GENERATED_STDINT_H 1
6707 #include <sys/types.h>
6710 if test "$acx_cv_header_stdint" != stdint.h; then
6711 echo "#include <stddef.h>" >> tmp-stdint.h
6713 if test "$acx_cv_header_stdint" != stddef.h; then
6714 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
6717 sed 's/^ *//' >> tmp-stdint.h <<EOF
6718 /* glibc uses these symbols as guards to prevent redefinitions. */
6719 #ifdef __int8_t_defined
6720 #define _INT8_T
6721 #define _INT16_T
6722 #define _INT32_T
6723 #endif
6724 #ifdef __uint32_t_defined
6725 #define _UINT32_T
6726 #endif
6730 # ----------------- done header, emit basic int types -------------
6731 if test "$acx_cv_header_stdint" = stddef.h; then
6732 sed 's/^ *//' >> tmp-stdint.h <<EOF
6734 #ifndef _UINT8_T
6735 #define _UINT8_T
6736 #ifndef __uint8_t_defined
6737 #define __uint8_t_defined
6738 #ifndef uint8_t
6739 typedef unsigned $acx_cv_type_int8_t uint8_t;
6740 #endif
6741 #endif
6742 #endif
6744 #ifndef _UINT16_T
6745 #define _UINT16_T
6746 #ifndef __uint16_t_defined
6747 #define __uint16_t_defined
6748 #ifndef uint16_t
6749 typedef unsigned $acx_cv_type_int16_t uint16_t;
6750 #endif
6751 #endif
6752 #endif
6754 #ifndef _UINT32_T
6755 #define _UINT32_T
6756 #ifndef __uint32_t_defined
6757 #define __uint32_t_defined
6758 #ifndef uint32_t
6759 typedef unsigned $acx_cv_type_int32_t uint32_t;
6760 #endif
6761 #endif
6762 #endif
6764 #ifndef _INT8_T
6765 #define _INT8_T
6766 #ifndef __int8_t_defined
6767 #define __int8_t_defined
6768 #ifndef int8_t
6769 typedef $acx_cv_type_int8_t int8_t;
6770 #endif
6771 #endif
6772 #endif
6774 #ifndef _INT16_T
6775 #define _INT16_T
6776 #ifndef __int16_t_defined
6777 #define __int16_t_defined
6778 #ifndef int16_t
6779 typedef $acx_cv_type_int16_t int16_t;
6780 #endif
6781 #endif
6782 #endif
6784 #ifndef _INT32_T
6785 #define _INT32_T
6786 #ifndef __int32_t_defined
6787 #define __int32_t_defined
6788 #ifndef int32_t
6789 typedef $acx_cv_type_int32_t int32_t;
6790 #endif
6791 #endif
6792 #endif
6794 elif test "$ac_cv_type_u_int32_t" = yes; then
6795 sed 's/^ *//' >> tmp-stdint.h <<EOF
6797 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
6798 #ifndef _INT8_T
6799 #define _INT8_T
6800 #endif
6801 #ifndef _INT16_T
6802 #define _INT16_T
6803 #endif
6804 #ifndef _INT32_T
6805 #define _INT32_T
6806 #endif
6808 #ifndef _UINT8_T
6809 #define _UINT8_T
6810 #ifndef __uint8_t_defined
6811 #define __uint8_t_defined
6812 #ifndef uint8_t
6813 typedef u_int8_t uint8_t;
6814 #endif
6815 #endif
6816 #endif
6818 #ifndef _UINT16_T
6819 #define _UINT16_T
6820 #ifndef __uint16_t_defined
6821 #define __uint16_t_defined
6822 #ifndef uint16_t
6823 typedef u_int16_t uint16_t;
6824 #endif
6825 #endif
6826 #endif
6828 #ifndef _UINT32_T
6829 #define _UINT32_T
6830 #ifndef __uint32_t_defined
6831 #define __uint32_t_defined
6832 #ifndef uint32_t
6833 typedef u_int32_t uint32_t;
6834 #endif
6835 #endif
6836 #endif
6838 else
6839 sed 's/^ *//' >> tmp-stdint.h <<EOF
6841 /* Some systems have guard macros to prevent redefinitions, define them. */
6842 #ifndef _INT8_T
6843 #define _INT8_T
6844 #endif
6845 #ifndef _INT16_T
6846 #define _INT16_T
6847 #endif
6848 #ifndef _INT32_T
6849 #define _INT32_T
6850 #endif
6851 #ifndef _UINT8_T
6852 #define _UINT8_T
6853 #endif
6854 #ifndef _UINT16_T
6855 #define _UINT16_T
6856 #endif
6857 #ifndef _UINT32_T
6858 #define _UINT32_T
6859 #endif
6863 # ------------- done basic int types, emit int64_t types ------------
6864 if test "$ac_cv_type_uint64_t" = yes; then
6865 sed 's/^ *//' >> tmp-stdint.h <<EOF
6867 /* system headers have good uint64_t and int64_t */
6868 #ifndef _INT64_T
6869 #define _INT64_T
6870 #endif
6871 #ifndef _UINT64_T
6872 #define _UINT64_T
6873 #endif
6875 elif test "$ac_cv_type_u_int64_t" = yes; then
6876 sed 's/^ *//' >> tmp-stdint.h <<EOF
6878 /* system headers have an u_int64_t (and int64_t) */
6879 #ifndef _INT64_T
6880 #define _INT64_T
6881 #endif
6882 #ifndef _UINT64_T
6883 #define _UINT64_T
6884 #ifndef __uint64_t_defined
6885 #define __uint64_t_defined
6886 #ifndef uint64_t
6887 typedef u_int64_t uint64_t;
6888 #endif
6889 #endif
6890 #endif
6892 elif test -n "$acx_cv_type_int64_t"; then
6893 sed 's/^ *//' >> tmp-stdint.h <<EOF
6895 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
6896 #ifndef _INT64_T
6897 #define _INT64_T
6898 #ifndef int64_t
6899 typedef $acx_cv_type_int64_t int64_t;
6900 #endif
6901 #endif
6902 #ifndef _UINT64_T
6903 #define _UINT64_T
6904 #ifndef __uint64_t_defined
6905 #define __uint64_t_defined
6906 #ifndef uint64_t
6907 typedef unsigned $acx_cv_type_int64_t uint64_t;
6908 #endif
6909 #endif
6910 #endif
6912 else
6913 sed 's/^ *//' >> tmp-stdint.h <<EOF
6915 /* some common heuristics for int64_t, using compiler-specific tests */
6916 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
6917 #ifndef _INT64_T
6918 #define _INT64_T
6919 #ifndef __int64_t_defined
6920 #ifndef int64_t
6921 typedef long long int64_t;
6922 #endif
6923 #endif
6924 #endif
6925 #ifndef _UINT64_T
6926 #define _UINT64_T
6927 #ifndef uint64_t
6928 typedef unsigned long long uint64_t;
6929 #endif
6930 #endif
6932 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
6933 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
6934 does not implement __extension__. But that compiler doesn't define
6935 __GNUC_MINOR__. */
6936 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
6937 # define __extension__
6938 # endif
6940 # ifndef _INT64_T
6941 # define _INT64_T
6942 # ifndef int64_t
6943 __extension__ typedef long long int64_t;
6944 # endif
6945 # endif
6946 # ifndef _UINT64_T
6947 # define _UINT64_T
6948 # ifndef uint64_t
6949 __extension__ typedef unsigned long long uint64_t;
6950 # endif
6951 # endif
6953 #elif !defined __STRICT_ANSI__
6954 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
6956 # ifndef _INT64_T
6957 # define _INT64_T
6958 # ifndef int64_t
6959 typedef __int64 int64_t;
6960 # endif
6961 # endif
6962 # ifndef _UINT64_T
6963 # define _UINT64_T
6964 # ifndef uint64_t
6965 typedef unsigned __int64 uint64_t;
6966 # endif
6967 # endif
6968 # endif /* compiler */
6970 #endif /* ANSI version */
6974 # ------------- done int64_t types, emit intptr types ------------
6975 if test "$ac_cv_type_uintptr_t" != yes; then
6976 sed 's/^ *//' >> tmp-stdint.h <<EOF
6978 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
6979 #ifndef __uintptr_t_defined
6980 #ifndef uintptr_t
6981 typedef u$acx_cv_type_intptr_t uintptr_t;
6982 #endif
6983 #endif
6984 #ifndef __intptr_t_defined
6985 #ifndef intptr_t
6986 typedef $acx_cv_type_intptr_t intptr_t;
6987 #endif
6988 #endif
6992 # ------------- done intptr types, emit int_least types ------------
6993 if test "$ac_cv_type_int_least32_t" != yes; then
6994 sed 's/^ *//' >> tmp-stdint.h <<EOF
6996 /* Define int_least types */
6997 typedef int8_t int_least8_t;
6998 typedef int16_t int_least16_t;
6999 typedef int32_t int_least32_t;
7000 #ifdef _INT64_T
7001 typedef int64_t int_least64_t;
7002 #endif
7004 typedef uint8_t uint_least8_t;
7005 typedef uint16_t uint_least16_t;
7006 typedef uint32_t uint_least32_t;
7007 #ifdef _UINT64_T
7008 typedef uint64_t uint_least64_t;
7009 #endif
7013 # ------------- done intptr types, emit int_fast types ------------
7014 if test "$ac_cv_type_int_fast32_t" != yes; then
7015 sed 's/^ *//' >> tmp-stdint.h <<EOF
7017 /* Define int_fast types. short is often slow */
7018 typedef int8_t int_fast8_t;
7019 typedef int int_fast16_t;
7020 typedef int32_t int_fast32_t;
7021 #ifdef _INT64_T
7022 typedef int64_t int_fast64_t;
7023 #endif
7025 typedef uint8_t uint_fast8_t;
7026 typedef unsigned int uint_fast16_t;
7027 typedef uint32_t uint_fast32_t;
7028 #ifdef _UINT64_T
7029 typedef uint64_t uint_fast64_t;
7030 #endif
7034 if test "$ac_cv_type_uintmax_t" != yes; then
7035 sed 's/^ *//' >> tmp-stdint.h <<EOF
7037 /* Define intmax based on what we found */
7038 #ifndef intmax_t
7039 #ifdef _INT64_T
7040 typedef int64_t intmax_t;
7041 #else
7042 typedef long intmax_t;
7043 #endif
7044 #endif
7045 #ifndef uintmax_t
7046 #ifdef _UINT64_T
7047 typedef uint64_t uintmax_t;
7048 #else
7049 typedef unsigned long uintmax_t;
7050 #endif
7051 #endif
7055 sed 's/^ *//' >> tmp-stdint.h <<EOF
7057 #endif /* GCC_GENERATED_STDINT_H */
7060 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
7061 rm -f tmp-stdint.h
7062 else
7063 mv -f tmp-stdint.h gstdint.h
7067 "config.h":H) echo timestamp > stamp-h1 ;;
7069 esac
7070 done # for ac_tag
7073 as_fn_exit 0
7074 _ACEOF
7075 ac_clean_files=$ac_clean_files_save
7077 test $ac_write_fail = 0 ||
7078 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7081 # configure is writing to config.log, and then calls config.status.
7082 # config.status does its own redirection, appending to config.log.
7083 # Unfortunately, on DOS this fails, as config.log is still kept open
7084 # by configure, so config.status won't be able to write to it; its
7085 # output is simply discarded. So we exec the FD to /dev/null,
7086 # effectively closing config.log, so it can be properly (re)opened and
7087 # appended to by config.status. When coming back to configure, we
7088 # need to make the FD available again.
7089 if test "$no_create" != yes; then
7090 ac_cs_success=:
7091 ac_config_status_args=
7092 test "$silent" = yes &&
7093 ac_config_status_args="$ac_config_status_args --quiet"
7094 exec 5>/dev/null
7095 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7096 exec 5>>config.log
7097 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7098 # would make configure fail if this is the last instruction.
7099 $ac_cs_success || as_fn_exit 1
7101 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7103 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}