Daily bump.
[official-gcc.git] / libcpp / configure
blobed98f40a1c1804900ea59c75ec778d56fd4f8eaf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for cpplib .
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='cpplib'
582 PACKAGE_TARNAME='cpplib'
583 PACKAGE_VERSION=' '
584 PACKAGE_STRING='cpplib '
585 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
586 PACKAGE_URL=''
588 ac_unique_file="ucnid.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 CET_HOST_FLAGS
627 PICFLAG
628 enable_host_pie
629 enable_host_shared
630 MAINT
631 USED_CATALOGS
632 PACKAGE
633 LTLIBICONV
634 LIBICONV
635 CATOBJEXT
636 GENCAT
637 INSTOBJEXT
638 DATADIRNAME
639 CATALOGS
640 POSUB
641 GMSGFMT
642 XGETTEXT
643 INCINTL
644 LIBINTL_DEP
645 LIBINTL
646 USE_NLS
647 ALLOCA
648 LIBOBJS
649 CXXDEPMODE
650 DEPDIR
651 am__leading_dot
652 WERROR
653 noexception_flags
654 WARN_PEDANTIC
655 c_warn
656 warn
657 ETAGS
658 AUTOHEADER
659 AUTOCONF
660 ACLOCAL
661 EGREP
662 GREP
665 RANLIB
666 ac_ct_CXX
667 CXXFLAGS
669 OBJEXT
670 EXEEXT
671 ac_ct_CC
672 CPPFLAGS
673 LDFLAGS
674 CFLAGS
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 SET_MAKE
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_largefile
734 enable_werror_always
735 with_gnu_ld
736 enable_rpath
737 with_libiconv_prefix
738 with_libiconv_type
739 enable_maintainer_mode
740 enable_checking
741 enable_canonical_system_headers
742 enable_host_shared
743 enable_host_pie
744 enable_cet
745 enable_valgrind_annotations
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
756 CXXFLAGS
758 CPP'
761 # Initialize some variables set by options.
762 ac_init_help=
763 ac_init_version=false
764 ac_unrecognized_opts=
765 ac_unrecognized_sep=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
809 ac_prev=
810 ac_dashdash=
811 for ac_option
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
816 ac_prev=
817 continue
820 case $ac_option in
821 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 *=) ac_optarg= ;;
823 *) ac_optarg=yes ;;
824 esac
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
830 ac_dashdash=yes ;;
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
849 --config-cache | -C)
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error $? "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error $? "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 ac_prev=sbindir ;;
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 | --sbi=* | --sb=*)
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1058 | --sha | --sh)
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 | --sha=* | --sh=*)
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1067 ac_prev=site ;;
1068 -site=* | --site=* | --sit=*)
1069 site=$ac_optarg ;;
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 ac_prev=srcdir ;;
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 verbose=yes ;;
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1094 -with-* | --with-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error $? "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=no ;;
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information"
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1154 esac
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1166 esac
1167 done
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error $? "missing argument to $ac_option"
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1176 no) ;;
1177 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 esac
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1190 case $ac_val in
1191 */ )
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1194 esac
1195 # Be sure to have absolute directory names.
1196 case $ac_val in
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 esac
1200 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1201 done
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 elif test "x$build_alias" != "x$host_alias"; then
1215 cross_compiling=yes
1219 ac_tool_prefix=
1220 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222 test "$silent" = yes && exec 6>/dev/null
1225 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1226 ac_ls_di=`ls -di .` &&
1227 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1228 as_fn_error $? "working directory cannot be determined"
1229 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1230 as_fn_error $? "pwd does not report name of working directory"
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$as_myself" ||
1238 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$as_myself" : 'X\(//\)[^/]' \| \
1240 X"$as_myself" : 'X\(//\)$' \| \
1241 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1242 $as_echo X"$as_myself" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1251 /^X\(\/\/\)$/{
1252 s//\1/
1255 /^X\(\/\).*/{
1256 s//\1/
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1264 else
1265 ac_srcdir_defaulted=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1272 ac_abs_confdir=`(
1273 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1274 pwd)`
1275 # When building in place, set srcdir=.
1276 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 srcdir=.
1279 # Remove unnecessary trailing slashes from srcdir.
1280 # Double slashes in file names in object file debugging info
1281 # mess up M-x gdb in Emacs.
1282 case $srcdir in
1283 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1284 esac
1285 for ac_var in $ac_precious_vars; do
1286 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_env_${ac_var}_value=\$${ac_var}
1288 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1290 done
1293 # Report the --help message.
1295 if test "$ac_init_help" = "long"; then
1296 # Omit some internal or obsolete options to make the list less imposing.
1297 # This message is too long to be a string in the A/UX 3.1 sh.
1298 cat <<_ACEOF
1299 \`configure' configures cpplib to adapt to many kinds of systems.
1301 Usage: $0 [OPTION]... [VAR=VALUE]...
1303 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1304 VAR=VALUE. See below for descriptions of some of the useful variables.
1306 Defaults for the options are specified in brackets.
1308 Configuration:
1309 -h, --help display this help and exit
1310 --help=short display options specific to this package
1311 --help=recursive display the short help of all the included packages
1312 -V, --version display version information and exit
1313 -q, --quiet, --silent do not print \`checking ...' messages
1314 --cache-file=FILE cache test results in FILE [disabled]
1315 -C, --config-cache alias for \`--cache-file=config.cache'
1316 -n, --no-create do not create output files
1317 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1319 Installation directories:
1320 --prefix=PREFIX install architecture-independent files in PREFIX
1321 [$ac_default_prefix]
1322 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 [PREFIX]
1325 By default, \`make install' will install all the files in
1326 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1327 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1328 for instance \`--prefix=\$HOME'.
1330 For better control, use the options below.
1332 Fine tuning of the installation directories:
1333 --bindir=DIR user executables [EPREFIX/bin]
1334 --sbindir=DIR system admin executables [EPREFIX/sbin]
1335 --libexecdir=DIR program executables [EPREFIX/libexec]
1336 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1337 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1338 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1339 --libdir=DIR object code libraries [EPREFIX/lib]
1340 --includedir=DIR C header files [PREFIX/include]
1341 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1342 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1343 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1344 --infodir=DIR info documentation [DATAROOTDIR/info]
1345 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1346 --mandir=DIR man documentation [DATAROOTDIR/man]
1347 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1354 cat <<\_ACEOF
1356 System types:
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 --target=TARGET configure for building compilers for TARGET [HOST]
1360 _ACEOF
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of cpplib :";;
1366 esac
1367 cat <<\_ACEOF
1369 Optional Features:
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --disable-largefile omit support for large files
1374 --enable-werror-always enable -Werror despite compiler version
1375 --disable-rpath do not hardcode runtime library paths
1376 --enable-maintainer-mode enable rules only needed by maintainers
1377 --enable-checking[=LIST]
1378 enable expensive run-time checks. With LIST, enable
1379 only specific categories of checks. Categories are:
1380 yes,no,all,none,release. Flags are: misc,valgrind or
1381 other strings
1382 --enable-canonical-system-headers
1383 enable or disable system headers canonicalization
1384 --enable-host-shared build host code as shared libraries
1385 --enable-host-pie build host code as PIE
1386 --enable-cet enable Intel CET in host libraries [default=auto]
1387 --enable-valgrind-annotations
1388 enable valgrind runtime interaction
1390 Optional Packages:
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1393 --with-gnu-ld assume the C compiler uses GNU ld default=no
1394 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1395 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1396 --with-libiconv-type=TYPE type of library to search for (auto/static/shared)
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CXX C++ compiler command
1407 CXXFLAGS C++ compiler flags
1408 CPP C preprocessor
1410 Use these variables to override the choices made by `configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1413 Report bugs to <gcc-bugs@gcc.gnu.org>.
1414 _ACEOF
1415 ac_status=$?
1418 if test "$ac_init_help" = "recursive"; then
1419 # If there are subdirs, report their specific --help.
1420 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1421 test -d "$ac_dir" ||
1422 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1423 continue
1424 ac_builddir=.
1426 case "$ac_dir" in
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1435 esac ;;
1436 esac
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1442 case $srcdir in
1443 .) # We are building in place.
1444 ac_srcdir=.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1451 *) # Relative name.
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 esac
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1461 echo &&
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1466 else
1467 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 fi || ac_status=$?
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1470 done
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1475 cat <<\_ACEOF
1476 cpplib configure
1477 generated by GNU Autoconf 2.69
1479 Copyright (C) 2012 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483 exit
1486 ## ------------------------ ##
1487 ## Autoconf initialization. ##
1488 ## ------------------------ ##
1490 # ac_fn_c_try_compile LINENO
1491 # --------------------------
1492 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1493 ac_fn_c_try_compile ()
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 rm -f conftest.$ac_objext
1497 if { { ac_try="$ac_compile"
1498 case "(($ac_try" in
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1501 esac
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_compile") 2>conftest.err
1505 ac_status=$?
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } && {
1513 test -z "$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1515 } && test -s conftest.$ac_objext; then :
1516 ac_retval=0
1517 else
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1521 ac_retval=1
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1526 } # ac_fn_c_try_compile
1528 # ac_fn_cxx_try_compile LINENO
1529 # ----------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_cxx_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_cxx_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1559 ac_retval=1
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1564 } # ac_fn_cxx_try_compile
1566 # ac_fn_c_try_cpp LINENO
1567 # ----------------------
1568 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_cpp ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } > conftest.i && {
1588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1596 ac_retval=1
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1601 } # ac_fn_c_try_cpp
1603 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1606 # the include files in INCLUDES and setting the cache variable VAR
1607 # accordingly.
1608 ac_fn_c_check_header_mongrel ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if eval \${$3+:} false; then :
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if eval \${$3+:} false; then :
1615 $as_echo_n "(cached) " >&6
1617 eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 else
1621 # Is the header compilable?
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1623 $as_echo_n "checking $2 usability... " >&6; }
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630 ac_header_compiler=yes
1631 else
1632 ac_header_compiler=no
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1636 $as_echo "$ac_header_compiler" >&6; }
1638 # Is the header present?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1640 $as_echo_n "checking $2 presence... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_cpp "$LINENO"; then :
1646 ac_header_preproc=yes
1647 else
1648 ac_header_preproc=no
1650 rm -f conftest.err conftest.i conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1652 $as_echo "$ac_header_preproc" >&6; }
1654 # So? What about this header?
1655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 yes:no: )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1658 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 no:yes:* )
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1664 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1666 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1668 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1670 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 ( $as_echo "## ----------------------------------- ##
1674 ## Report this to gcc-bugs@gcc.gnu.org ##
1675 ## ----------------------------------- ##"
1676 ) | sed "s/^/$as_me: WARNING: /" >&2
1678 esac
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=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \${$3+:} false; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 test -x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1814 # -------------------------------------------
1815 # Tests whether TYPE exists after having included INCLUDES, setting cache
1816 # variable VAR accordingly.
1817 ac_fn_c_check_type ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 eval "$3=no"
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1830 main ()
1832 if (sizeof ($2))
1833 return 0;
1835 return 0;
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1843 main ()
1845 if (sizeof (($2)))
1846 return 0;
1848 return 0;
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1853 else
1854 eval "$3=yes"
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1860 eval ac_res=\$$3
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 } # ac_fn_c_check_type
1867 # ac_fn_c_find_uintX_t LINENO BITS VAR
1868 # ------------------------------------
1869 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1870 # accordingly.
1871 ac_fn_c_find_uintX_t ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1875 $as_echo_n "checking for uint$2_t... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 eval "$3=no"
1880 # Order is important - never check a type that is potentially smaller
1881 # than half of the expected target width.
1882 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1883 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1886 $ac_includes_default
1888 main ()
1890 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1891 test_array [0] = 0;
1892 return test_array [0];
1895 return 0;
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 case $ac_type in #(
1900 uint$2_t) :
1901 eval "$3=yes" ;; #(
1902 *) :
1903 eval "$3=\$ac_type" ;;
1904 esac
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 if eval test \"x\$"$3"\" = x"no"; then :
1909 else
1910 break
1912 done
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 } # ac_fn_c_find_uintX_t
1921 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1922 # --------------------------------------------
1923 # Tries to find the compile-time value of EXPR in a program that includes
1924 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1925 # computed
1926 ac_fn_c_compute_int ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if test "$cross_compiling" = yes; then
1930 # Depending upon the size, compute the lo and hi bounds.
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932 /* end confdefs.h. */
1935 main ()
1937 static int test_array [1 - 2 * !(($2) >= 0)];
1938 test_array [0] = 0;
1939 return test_array [0];
1942 return 0;
1944 _ACEOF
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_lo=0 ac_mid=0
1947 while :; do
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1952 main ()
1954 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1955 test_array [0] = 0;
1956 return test_array [0];
1959 return 0;
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963 ac_hi=$ac_mid; break
1964 else
1965 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1966 if test $ac_lo -le $ac_mid; then
1967 ac_lo= ac_hi=
1968 break
1970 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 done
1974 else
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1979 main ()
1981 static int test_array [1 - 2 * !(($2) < 0)];
1982 test_array [0] = 0;
1983 return test_array [0];
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_hi=-1 ac_mid=-1
1991 while :; do
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1996 main ()
1998 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1999 test_array [0] = 0;
2000 return test_array [0];
2003 return 0;
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_lo=$ac_mid; break
2008 else
2009 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2010 if test $ac_mid -le $ac_hi; then
2011 ac_lo= ac_hi=
2012 break
2014 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018 else
2019 ac_lo= ac_hi=
2021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 # Binary search between lo and hi bounds.
2025 while test "x$ac_lo" != "x$ac_hi"; do
2026 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2034 test_array [0] = 0;
2035 return test_array [0];
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_hi=$ac_mid
2043 else
2044 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 done
2048 case $ac_lo in #((
2049 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2050 '') ac_retval=1 ;;
2051 esac
2052 else
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2056 static long int longval () { return $2; }
2057 static unsigned long int ulongval () { return $2; }
2058 #include <stdio.h>
2059 #include <stdlib.h>
2061 main ()
2064 FILE *f = fopen ("conftest.val", "w");
2065 if (! f)
2066 return 1;
2067 if (($2) < 0)
2069 long int i = longval ();
2070 if (i != ($2))
2071 return 1;
2072 fprintf (f, "%ld", i);
2074 else
2076 unsigned long int i = ulongval ();
2077 if (i != ($2))
2078 return 1;
2079 fprintf (f, "%lu", i);
2081 /* Do not output a trailing newline, as this causes \r\n confusion
2082 on some platforms. */
2083 return ferror (f) || fclose (f) != 0;
2086 return 0;
2088 _ACEOF
2089 if ac_fn_c_try_run "$LINENO"; then :
2090 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2091 else
2092 ac_retval=1
2094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2095 conftest.$ac_objext conftest.beam conftest.$ac_ext
2096 rm -f conftest.val
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2102 } # ac_fn_c_compute_int
2104 # ac_fn_c_check_func LINENO FUNC VAR
2105 # ----------------------------------
2106 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2107 ac_fn_c_check_func ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111 $as_echo_n "checking for $2... " >&6; }
2112 if eval \${$3+:} false; then :
2113 $as_echo_n "(cached) " >&6
2114 else
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2119 #define $2 innocuous_$2
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char $2 (); below.
2123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2124 <limits.h> exists even on freestanding compilers. */
2126 #ifdef __STDC__
2127 # include <limits.h>
2128 #else
2129 # include <assert.h>
2130 #endif
2132 #undef $2
2134 /* Override any GCC internal prototype to avoid an error.
2135 Use char because int might match the return type of a GCC
2136 builtin and then its argument prototype would still apply. */
2137 #ifdef __cplusplus
2138 extern "C"
2139 #endif
2140 char $2 ();
2141 /* The GNU C library defines this for functions which it implements
2142 to always fail with ENOSYS. Some functions are actually named
2143 something starting with __ and the normal name is an alias. */
2144 #if defined __stub_$2 || defined __stub___$2
2145 choke me
2146 #endif
2149 main ()
2151 return $2 ();
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_link "$LINENO"; then :
2157 eval "$3=yes"
2158 else
2159 eval "$3=no"
2161 rm -f core conftest.err conftest.$ac_objext \
2162 conftest$ac_exeext conftest.$ac_ext
2164 eval ac_res=\$$3
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2166 $as_echo "$ac_res" >&6; }
2167 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169 } # ac_fn_c_check_func
2171 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2172 # ---------------------------------------------
2173 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_decl ()
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 as_decl_name=`echo $2|sed 's/ *(.*//'`
2179 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2181 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2182 if eval \${$3+:} false; then :
2183 $as_echo_n "(cached) " >&6
2184 else
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2189 main ()
2191 #ifndef $as_decl_name
2192 #ifdef __cplusplus
2193 (void) $as_decl_use;
2194 #else
2195 (void) $as_decl_name;
2196 #endif
2197 #endif
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$3=yes"
2205 else
2206 eval "$3=no"
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 eval ac_res=\$$3
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2212 $as_echo "$ac_res" >&6; }
2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215 } # ac_fn_c_check_decl
2217 # ac_fn_cxx_try_link LINENO
2218 # -------------------------
2219 # Try to link conftest.$ac_ext, and return whether this succeeded.
2220 ac_fn_cxx_try_link ()
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 rm -f conftest.$ac_objext conftest$ac_exeext
2224 if { { ac_try="$ac_link"
2225 case "(($ac_try" in
2226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2227 *) ac_try_echo=$ac_try;;
2228 esac
2229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2230 $as_echo "$ac_try_echo"; } >&5
2231 (eval "$ac_link") 2>conftest.err
2232 ac_status=$?
2233 if test -s conftest.err; then
2234 grep -v '^ *+' conftest.err >conftest.er1
2235 cat conftest.er1 >&5
2236 mv -f conftest.er1 conftest.err
2238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2239 test $ac_status = 0; } && {
2240 test -z "$ac_cxx_werror_flag" ||
2241 test ! -s conftest.err
2242 } && test -s conftest$ac_exeext && {
2243 test "$cross_compiling" = yes ||
2244 test -x conftest$ac_exeext
2245 }; then :
2246 ac_retval=0
2247 else
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2251 ac_retval=1
2253 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2254 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2255 # interfere with the next link command; also delete a directory that is
2256 # left behind by Apple's compiler. We do this before executing the actions.
2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2259 as_fn_set_status $ac_retval
2261 } # ac_fn_cxx_try_link
2262 cat >config.log <<_ACEOF
2263 This file contains any messages produced by compilers while
2264 running configure, to aid debugging if configure makes a mistake.
2266 It was created by cpplib $as_me , which was
2267 generated by GNU Autoconf 2.69. Invocation command line was
2269 $ $0 $@
2271 _ACEOF
2272 exec 5>>config.log
2274 cat <<_ASUNAME
2275 ## --------- ##
2276 ## Platform. ##
2277 ## --------- ##
2279 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2280 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2281 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2282 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2283 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2286 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2289 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2290 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2291 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2292 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2293 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2294 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296 _ASUNAME
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 $as_echo "PATH: $as_dir"
2304 done
2305 IFS=$as_save_IFS
2307 } >&5
2309 cat >&5 <<_ACEOF
2312 ## ----------- ##
2313 ## Core tests. ##
2314 ## ----------- ##
2316 _ACEOF
2319 # Keep a trace of the command line.
2320 # Strip out --no-create and --no-recursion so they do not pile up.
2321 # Strip out --silent because we don't want to record it for future runs.
2322 # Also quote any args containing shell meta-characters.
2323 # Make two passes to allow for proper duplicate-argument suppression.
2324 ac_configure_args=
2325 ac_configure_args0=
2326 ac_configure_args1=
2327 ac_must_keep_next=false
2328 for ac_pass in 1 2
2330 for ac_arg
2332 case $ac_arg in
2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2335 | -silent | --silent | --silen | --sile | --sil)
2336 continue ;;
2337 *\'*)
2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2339 esac
2340 case $ac_pass in
2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2343 as_fn_append ac_configure_args1 " '$ac_arg'"
2344 if test $ac_must_keep_next = true; then
2345 ac_must_keep_next=false # Got value, back to normal.
2346 else
2347 case $ac_arg in
2348 *=* | --config-cache | -C | -disable-* | --disable-* \
2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2351 | -with-* | --with-* | -without-* | --without-* | --x)
2352 case "$ac_configure_args0 " in
2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2354 esac
2356 -* ) ac_must_keep_next=true ;;
2357 esac
2359 as_fn_append ac_configure_args " '$ac_arg'"
2361 esac
2362 done
2363 done
2364 { ac_configure_args0=; unset ac_configure_args0;}
2365 { ac_configure_args1=; unset ac_configure_args1;}
2367 # When interrupted or exit'd, cleanup temporary files, and complete
2368 # config.log. We remove comments because anyway the quotes in there
2369 # would cause problems or look ugly.
2370 # WARNING: Use '\'' to represent an apostrophe within the trap.
2371 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2372 trap 'exit_status=$?
2373 # Save into config.log some information that might help in debugging.
2375 echo
2377 $as_echo "## ---------------- ##
2378 ## Cache variables. ##
2379 ## ---------------- ##"
2380 echo
2381 # The following way of writing the cache mishandles newlines in values,
2383 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2384 eval ac_val=\$$ac_var
2385 case $ac_val in #(
2386 *${as_nl}*)
2387 case $ac_var in #(
2388 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2389 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2390 esac
2391 case $ac_var in #(
2392 _ | IFS | as_nl) ;; #(
2393 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2394 *) { eval $ac_var=; unset $ac_var;} ;;
2395 esac ;;
2396 esac
2397 done
2398 (set) 2>&1 |
2399 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2400 *${as_nl}ac_space=\ *)
2401 sed -n \
2402 "s/'\''/'\''\\\\'\'''\''/g;
2403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2404 ;; #(
2406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2408 esac |
2409 sort
2411 echo
2413 $as_echo "## ----------------- ##
2414 ## Output variables. ##
2415 ## ----------------- ##"
2416 echo
2417 for ac_var in $ac_subst_vars
2419 eval ac_val=\$$ac_var
2420 case $ac_val in
2421 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422 esac
2423 $as_echo "$ac_var='\''$ac_val'\''"
2424 done | sort
2425 echo
2427 if test -n "$ac_subst_files"; then
2428 $as_echo "## ------------------- ##
2429 ## File substitutions. ##
2430 ## ------------------- ##"
2431 echo
2432 for ac_var in $ac_subst_files
2434 eval ac_val=\$$ac_var
2435 case $ac_val in
2436 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2437 esac
2438 $as_echo "$ac_var='\''$ac_val'\''"
2439 done | sort
2440 echo
2443 if test -s confdefs.h; then
2444 $as_echo "## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##"
2447 echo
2448 cat confdefs.h
2449 echo
2451 test "$ac_signal" != 0 &&
2452 $as_echo "$as_me: caught signal $ac_signal"
2453 $as_echo "$as_me: exit $exit_status"
2454 } >&5
2455 rm -f core *.core core.conftest.* &&
2456 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2457 exit $exit_status
2459 for ac_signal in 1 2 13 15; do
2460 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2461 done
2462 ac_signal=0
2464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2465 rm -f -r conftest* confdefs.h
2467 $as_echo "/* confdefs.h */" > confdefs.h
2469 # Predefined preprocessor variables.
2471 cat >>confdefs.h <<_ACEOF
2472 #define PACKAGE_NAME "$PACKAGE_NAME"
2473 _ACEOF
2475 cat >>confdefs.h <<_ACEOF
2476 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2477 _ACEOF
2479 cat >>confdefs.h <<_ACEOF
2480 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2481 _ACEOF
2483 cat >>confdefs.h <<_ACEOF
2484 #define PACKAGE_STRING "$PACKAGE_STRING"
2485 _ACEOF
2487 cat >>confdefs.h <<_ACEOF
2488 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2489 _ACEOF
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_URL "$PACKAGE_URL"
2493 _ACEOF
2496 # Let the site file select an alternate cache file if it wants to.
2497 # Prefer an explicitly selected file to automatically selected ones.
2498 ac_site_file1=NONE
2499 ac_site_file2=NONE
2500 if test -n "$CONFIG_SITE"; then
2501 # We do not want a PATH search for config.site.
2502 case $CONFIG_SITE in #((
2503 -*) ac_site_file1=./$CONFIG_SITE;;
2504 */*) ac_site_file1=$CONFIG_SITE;;
2505 *) ac_site_file1=./$CONFIG_SITE;;
2506 esac
2507 elif test "x$prefix" != xNONE; then
2508 ac_site_file1=$prefix/share/config.site
2509 ac_site_file2=$prefix/etc/config.site
2510 else
2511 ac_site_file1=$ac_default_prefix/share/config.site
2512 ac_site_file2=$ac_default_prefix/etc/config.site
2514 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2516 test "x$ac_site_file" = xNONE && continue
2517 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2519 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2520 sed 's/^/| /' "$ac_site_file" >&5
2521 . "$ac_site_file" \
2522 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error $? "failed to load site script $ac_site_file
2525 See \`config.log' for more details" "$LINENO" 5; }
2527 done
2529 if test -r "$cache_file"; then
2530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2534 $as_echo "$as_me: loading cache $cache_file" >&6;}
2535 case $cache_file in
2536 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537 *) . "./$cache_file";;
2538 esac
2540 else
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2542 $as_echo "$as_me: creating cache $cache_file" >&6;}
2543 >$cache_file
2546 # Check that the precious variables saved in the cache have kept the same
2547 # value.
2548 ac_cache_corrupted=false
2549 for ac_var in $ac_precious_vars; do
2550 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2551 eval ac_new_set=\$ac_env_${ac_var}_set
2552 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2553 eval ac_new_val=\$ac_env_${ac_var}_value
2554 case $ac_old_set,$ac_new_set in
2555 set,)
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2557 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2558 ac_cache_corrupted=: ;;
2559 ,set)
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2561 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2562 ac_cache_corrupted=: ;;
2563 ,);;
2565 if test "x$ac_old_val" != "x$ac_new_val"; then
2566 # differences in whitespace do not lead to failure.
2567 ac_old_val_w=`echo x $ac_old_val`
2568 ac_new_val_w=`echo x $ac_new_val`
2569 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2571 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2572 ac_cache_corrupted=:
2573 else
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2575 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2576 eval $ac_var=\$ac_old_val
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2579 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2581 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2582 fi;;
2583 esac
2584 # Pass precious variables to config.status.
2585 if test "$ac_new_set" = set; then
2586 case $ac_new_val in
2587 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2588 *) ac_arg=$ac_var=$ac_new_val ;;
2589 esac
2590 case " $ac_configure_args " in
2591 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2592 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2593 esac
2595 done
2596 if $ac_cache_corrupted; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2600 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2601 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2603 ## -------------------- ##
2604 ## Main body of script. ##
2605 ## -------------------- ##
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616 ac_aux_dir=
2617 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2618 if test -f "$ac_dir/install-sh"; then
2619 ac_aux_dir=$ac_dir
2620 ac_install_sh="$ac_aux_dir/install-sh -c"
2621 break
2622 elif test -f "$ac_dir/install.sh"; then
2623 ac_aux_dir=$ac_dir
2624 ac_install_sh="$ac_aux_dir/install.sh -c"
2625 break
2626 elif test -f "$ac_dir/shtool"; then
2627 ac_aux_dir=$ac_dir
2628 ac_install_sh="$ac_aux_dir/shtool install -c"
2629 break
2631 done
2632 if test -z "$ac_aux_dir"; then
2633 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2636 # These three variables are undocumented and unsupported,
2637 # and are intended to be withdrawn in a future Autoconf release.
2638 # They can cause serious problems if a builder's source tree is in a directory
2639 # whose full name contains unusual characters.
2640 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2641 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2642 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2645 # Make sure we can run config.sub.
2646 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2647 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2650 $as_echo_n "checking build system type... " >&6; }
2651 if ${ac_cv_build+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 ac_build_alias=$build_alias
2655 test "x$ac_build_alias" = x &&
2656 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2657 test "x$ac_build_alias" = x &&
2658 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2659 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2660 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2664 $as_echo "$ac_cv_build" >&6; }
2665 case $ac_cv_build in
2666 *-*-*) ;;
2667 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2668 esac
2669 build=$ac_cv_build
2670 ac_save_IFS=$IFS; IFS='-'
2671 set x $ac_cv_build
2672 shift
2673 build_cpu=$1
2674 build_vendor=$2
2675 shift; shift
2676 # Remember, the first character of IFS is used to create $*,
2677 # except with old shells:
2678 build_os=$*
2679 IFS=$ac_save_IFS
2680 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2684 $as_echo_n "checking host system type... " >&6; }
2685 if ${ac_cv_host+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test "x$host_alias" = x; then
2689 ac_cv_host=$ac_cv_build
2690 else
2691 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2692 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2697 $as_echo "$ac_cv_host" >&6; }
2698 case $ac_cv_host in
2699 *-*-*) ;;
2700 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2701 esac
2702 host=$ac_cv_host
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_host
2705 shift
2706 host_cpu=$1
2707 host_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 host_os=$*
2712 IFS=$ac_save_IFS
2713 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2717 $as_echo_n "checking target system type... " >&6; }
2718 if ${ac_cv_target+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test "x$target_alias" = x; then
2722 ac_cv_target=$ac_cv_host
2723 else
2724 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2725 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2730 $as_echo "$ac_cv_target" >&6; }
2731 case $ac_cv_target in
2732 *-*-*) ;;
2733 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2734 esac
2735 target=$ac_cv_target
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_target
2738 shift
2739 target_cpu=$1
2740 target_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 target_os=$*
2745 IFS=$ac_save_IFS
2746 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2749 # The aliases save the names the user supplied, while $host etc.
2750 # will get canonicalized.
2751 test -n "$target_alias" &&
2752 test "$program_prefix$program_suffix$program_transform_name" = \
2753 NONENONEs,x,x, &&
2754 program_prefix=${target_alias}-
2757 # Checks for programs.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2759 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2760 set x ${MAKE-make}
2761 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2762 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 cat >conftest.make <<\_ACEOF
2766 SHELL = /bin/sh
2767 all:
2768 @echo '@@@%%%=$(MAKE)=@@@%%%'
2769 _ACEOF
2770 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2771 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2772 *@@@%%%=?*=@@@%%%*)
2773 eval ac_cv_prog_make_${ac_make}_set=yes;;
2775 eval ac_cv_prog_make_${ac_make}_set=no;;
2776 esac
2777 rm -f conftest.make
2779 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2781 $as_echo "yes" >&6; }
2782 SET_MAKE=
2783 else
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2785 $as_echo "no" >&6; }
2786 SET_MAKE="MAKE=${MAKE-make}"
2789 # Find a good install program. We prefer a C program (faster),
2790 # so one script is as good as another. But avoid the broken or
2791 # incompatible versions:
2792 # SysV /etc/install, /usr/sbin/install
2793 # SunOS /usr/etc/install
2794 # IRIX /sbin/install
2795 # AIX /bin/install
2796 # AmigaOS /C/install, which installs bootblocks on floppy discs
2797 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2798 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2799 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2800 # OS/2's system install, which has a completely different semantic
2801 # ./install, which can be erroneously created by make from ./install.sh.
2802 # Reject install programs that cannot install multiple files.
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2804 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2805 if test -z "$INSTALL"; then
2806 if ${ac_cv_path_install+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 # Account for people who put trailing slashes in PATH elements.
2815 case $as_dir/ in #((
2816 ./ | .// | /[cC]/* | \
2817 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2818 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2819 /usr/ucb/* ) ;;
2821 # OSF1 and SCO ODT 3.0 have their own names for install.
2822 # Don't use installbsd from OSF since it installs stuff as root
2823 # by default.
2824 for ac_prog in ginstall scoinst install; do
2825 for ac_exec_ext in '' $ac_executable_extensions; do
2826 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2827 if test $ac_prog = install &&
2828 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2829 # AIX install. It has an incompatible calling convention.
2831 elif test $ac_prog = install &&
2832 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2833 # program-specific install script used by HP pwplus--don't use.
2835 else
2836 rm -rf conftest.one conftest.two conftest.dir
2837 echo one > conftest.one
2838 echo two > conftest.two
2839 mkdir conftest.dir
2840 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2841 test -s conftest.one && test -s conftest.two &&
2842 test -s conftest.dir/conftest.one &&
2843 test -s conftest.dir/conftest.two
2844 then
2845 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2846 break 3
2850 done
2851 done
2853 esac
2855 done
2856 IFS=$as_save_IFS
2858 rm -rf conftest.one conftest.two conftest.dir
2861 if test "${ac_cv_path_install+set}" = set; then
2862 INSTALL=$ac_cv_path_install
2863 else
2864 # As a last resort, use the slow shell script. Don't cache a
2865 # value for INSTALL within a source directory, because that will
2866 # break other packages using the cache if that directory is
2867 # removed, or if the value is a relative name.
2868 INSTALL=$ac_install_sh
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2872 $as_echo "$INSTALL" >&6; }
2874 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2875 # It thinks the first close brace ends the variable substitution.
2876 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2878 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2880 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2882 ac_ext=c
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887 if test -n "$ac_tool_prefix"; then
2888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2889 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$CC"; then
2896 ac_cv_prog_CC="$CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2909 done
2910 done
2911 IFS=$as_save_IFS
2915 CC=$ac_cv_prog_CC
2916 if test -n "$CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918 $as_echo "$CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2926 if test -z "$ac_cv_prog_CC"; then
2927 ac_ct_CC=$CC
2928 # Extract the first word of "gcc", so it can be a program name with args.
2929 set dummy gcc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_ac_ct_CC="gcc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2949 done
2950 done
2951 IFS=$as_save_IFS
2955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956 if test -n "$ac_ct_CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958 $as_echo "$ac_ct_CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2964 if test "x$ac_ct_CC" = x; then
2965 CC=""
2966 else
2967 case $cross_compiling:$ac_tool_warned in
2968 yes:)
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971 ac_tool_warned=yes ;;
2972 esac
2973 CC=$ac_ct_CC
2975 else
2976 CC="$ac_cv_prog_CC"
2979 if test -z "$CC"; then
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2982 set dummy ${ac_tool_prefix}cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992 for as_dir in $PATH
2994 IFS=$as_save_IFS
2995 test -z "$as_dir" && as_dir=.
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="${ac_tool_prefix}cc"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000 break 2
3002 done
3003 done
3004 IFS=$as_save_IFS
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 $as_echo "$CC" >&6; }
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3020 if test -z "$CC"; then
3021 # Extract the first word of "cc", so it can be a program name with args.
3022 set dummy cc; ac_word=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_CC+:} false; then :
3026 $as_echo_n "(cached) " >&6
3027 else
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3030 else
3031 ac_prog_rejected=no
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3040 ac_prog_rejected=yes
3041 continue
3043 ac_cv_prog_CC="cc"
3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045 break 2
3047 done
3048 done
3049 IFS=$as_save_IFS
3051 if test $ac_prog_rejected = yes; then
3052 # We found a bogon in the path, so make sure we never use it.
3053 set dummy $ac_cv_prog_CC
3054 shift
3055 if test $# != 0; then
3056 # We chose a different compiler from the bogus one.
3057 # However, it has the same basename, so the bogon will be chosen
3058 # first if we set CC to just the basename; use the full file name.
3059 shift
3060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3065 CC=$ac_cv_prog_CC
3066 if test -n "$CC"; then
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068 $as_echo "$CC" >&6; }
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3076 if test -z "$CC"; then
3077 if test -n "$ac_tool_prefix"; then
3078 for ac_prog in cl.exe
3080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3101 done
3102 done
3103 IFS=$as_save_IFS
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110 $as_echo "$CC" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3117 test -n "$CC" && break
3118 done
3120 if test -z "$CC"; then
3121 ac_ct_CC=$CC
3122 for ac_prog in cl.exe
3124 # Extract the first word of "$ac_prog", so it can be a program name with args.
3125 set dummy $ac_prog; ac_word=$2
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127 $as_echo_n "checking for $ac_word... " >&6; }
3128 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3129 $as_echo_n "(cached) " >&6
3130 else
3131 if test -n "$ac_ct_CC"; then
3132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3133 else
3134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135 for as_dir in $PATH
3137 IFS=$as_save_IFS
3138 test -z "$as_dir" && as_dir=.
3139 for ac_exec_ext in '' $ac_executable_extensions; do
3140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3141 ac_cv_prog_ac_ct_CC="$ac_prog"
3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 break 2
3145 done
3146 done
3147 IFS=$as_save_IFS
3151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152 if test -n "$ac_ct_CC"; then
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154 $as_echo "$ac_ct_CC" >&6; }
3155 else
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157 $as_echo "no" >&6; }
3161 test -n "$ac_ct_CC" && break
3162 done
3164 if test "x$ac_ct_CC" = x; then
3165 CC=""
3166 else
3167 case $cross_compiling:$ac_tool_warned in
3168 yes:)
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171 ac_tool_warned=yes ;;
3172 esac
3173 CC=$ac_ct_CC
3180 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details" "$LINENO" 5; }
3185 # Provide some information about the compiler.
3186 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3187 set X $ac_compile
3188 ac_compiler=$2
3189 for ac_option in --version -v -V -qversion; do
3190 { { ac_try="$ac_compiler $ac_option >&5"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3198 ac_status=$?
3199 if test -s conftest.err; then
3200 sed '10a\
3201 ... rest of stderr output deleted ...
3202 10q' conftest.err >conftest.er1
3203 cat conftest.er1 >&5
3205 rm -f conftest.er1 conftest.err
3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207 test $ac_status = 0; }
3208 done
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3214 main ()
3218 return 0;
3220 _ACEOF
3221 ac_clean_files_save=$ac_clean_files
3222 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3223 # Try to create an executable without -o first, disregard a.out.
3224 # It will help us diagnose broken compilers, and finding out an intuition
3225 # of exeext.
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3227 $as_echo_n "checking whether the C compiler works... " >&6; }
3228 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230 # The possible output files:
3231 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233 ac_rmfiles=
3234 for ac_file in $ac_files
3236 case $ac_file in
3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3239 esac
3240 done
3241 rm -f $ac_rmfiles
3243 if { { ac_try="$ac_link_default"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249 $as_echo "$ac_try_echo"; } >&5
3250 (eval "$ac_link_default") 2>&5
3251 ac_status=$?
3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253 test $ac_status = 0; }; then :
3254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3255 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3256 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3257 # so that the user can short-circuit this test for compilers unknown to
3258 # Autoconf.
3259 for ac_file in $ac_files ''
3261 test -f "$ac_file" || continue
3262 case $ac_file in
3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3265 [ab].out )
3266 # We found the default executable, but exeext='' is most
3267 # certainly right.
3268 break;;
3269 *.* )
3270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3271 then :; else
3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274 # We set ac_cv_exeext here because the later test for it is not
3275 # safe: cross compilers may not add the suffix if given an `-o'
3276 # argument, so we may need to know it at that point already.
3277 # Even if this section looks crufty: it has the advantage of
3278 # actually working.
3279 break;;
3281 break;;
3282 esac
3283 done
3284 test "$ac_cv_exeext" = no && ac_cv_exeext=
3286 else
3287 ac_file=''
3289 if test -z "$ac_file"; then :
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 $as_echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error 77 "C compiler cannot create executables
3298 See \`config.log' for more details" "$LINENO" 5; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301 $as_echo "yes" >&6; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3304 $as_echo_n "checking for C compiler default output file name... " >&6; }
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3306 $as_echo "$ac_file" >&6; }
3307 ac_exeext=$ac_cv_exeext
3309 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3310 ac_clean_files=$ac_clean_files_save
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3312 $as_echo_n "checking for suffix of executables... " >&6; }
3313 if { { ac_try="$ac_link"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_link") 2>&5
3321 ac_status=$?
3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3323 test $ac_status = 0; }; then :
3324 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3325 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3326 # work properly (i.e., refer to `conftest.exe'), while it won't with
3327 # `rm'.
3328 for ac_file in conftest.exe conftest conftest.*; do
3329 test -f "$ac_file" || continue
3330 case $ac_file in
3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3333 break;;
3334 * ) break;;
3335 esac
3336 done
3337 else
3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3341 See \`config.log' for more details" "$LINENO" 5; }
3343 rm -f conftest conftest$ac_cv_exeext
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3345 $as_echo "$ac_cv_exeext" >&6; }
3347 rm -f conftest.$ac_ext
3348 EXEEXT=$ac_cv_exeext
3349 ac_exeext=$EXEEXT
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351 /* end confdefs.h. */
3352 #include <stdio.h>
3354 main ()
3356 FILE *f = fopen ("conftest.out", "w");
3357 return ferror (f) || fclose (f) != 0;
3360 return 0;
3362 _ACEOF
3363 ac_clean_files="$ac_clean_files conftest.out"
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3367 $as_echo_n "checking whether we are cross compiling... " >&6; }
3368 if test "$cross_compiling" != yes; then
3369 { { ac_try="$ac_link"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_link") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }
3380 if { ac_try='./conftest$ac_cv_exeext'
3381 { { case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3386 $as_echo "$ac_try_echo"; } >&5
3387 (eval "$ac_try") 2>&5
3388 ac_status=$?
3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3390 test $ac_status = 0; }; }; then
3391 cross_compiling=no
3392 else
3393 if test "$cross_compiling" = maybe; then
3394 cross_compiling=yes
3395 else
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error $? "cannot run C compiled programs.
3399 If you meant to cross compile, use \`--host'.
3400 See \`config.log' for more details" "$LINENO" 5; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3405 $as_echo "$cross_compiling" >&6; }
3407 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3408 ac_clean_files=$ac_clean_files_save
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3410 $as_echo_n "checking for suffix of object files... " >&6; }
3411 if ${ac_cv_objext+:} false; then :
3412 $as_echo_n "(cached) " >&6
3413 else
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3418 main ()
3422 return 0;
3424 _ACEOF
3425 rm -f conftest.o conftest.obj
3426 if { { ac_try="$ac_compile"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432 $as_echo "$ac_try_echo"; } >&5
3433 (eval "$ac_compile") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436 test $ac_status = 0; }; then :
3437 for ac_file in conftest.o conftest.obj conftest.*; do
3438 test -f "$ac_file" || continue;
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3442 break;;
3443 esac
3444 done
3445 else
3446 $as_echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot compute suffix of object files: cannot compile
3452 See \`config.log' for more details" "$LINENO" 5; }
3454 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3457 $as_echo "$ac_cv_objext" >&6; }
3458 OBJEXT=$ac_cv_objext
3459 ac_objext=$OBJEXT
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3461 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3462 if ${ac_cv_c_compiler_gnu+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3469 main ()
3471 #ifndef __GNUC__
3472 choke me
3473 #endif
3476 return 0;
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_compiler_gnu=yes
3481 else
3482 ac_compiler_gnu=no
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3489 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3490 if test $ac_compiler_gnu = yes; then
3491 GCC=yes
3492 else
3493 GCC=
3495 ac_test_CFLAGS=${CFLAGS+set}
3496 ac_save_CFLAGS=$CFLAGS
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3498 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3499 if ${ac_cv_prog_cc_g+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 ac_save_c_werror_flag=$ac_c_werror_flag
3503 ac_c_werror_flag=yes
3504 ac_cv_prog_cc_g=no
3505 CFLAGS="-g"
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507 /* end confdefs.h. */
3510 main ()
3514 return 0;
3516 _ACEOF
3517 if ac_fn_c_try_compile "$LINENO"; then :
3518 ac_cv_prog_cc_g=yes
3519 else
3520 CFLAGS=""
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522 /* end confdefs.h. */
3525 main ()
3529 return 0;
3531 _ACEOF
3532 if ac_fn_c_try_compile "$LINENO"; then :
3534 else
3535 ac_c_werror_flag=$ac_save_c_werror_flag
3536 CFLAGS="-g"
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 main ()
3545 return 0;
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_cv_prog_cc_g=yes
3551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_c_werror_flag=$ac_save_c_werror_flag
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3559 $as_echo "$ac_cv_prog_cc_g" >&6; }
3560 if test "$ac_test_CFLAGS" = set; then
3561 CFLAGS=$ac_save_CFLAGS
3562 elif test $ac_cv_prog_cc_g = yes; then
3563 if test "$GCC" = yes; then
3564 CFLAGS="-g -O2"
3565 else
3566 CFLAGS="-g"
3568 else
3569 if test "$GCC" = yes; then
3570 CFLAGS="-O2"
3571 else
3572 CFLAGS=
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3576 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3577 if ${ac_cv_prog_cc_c89+:} false; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 ac_cv_prog_cc_c89=no
3581 ac_save_CC=$CC
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #include <stdarg.h>
3585 #include <stdio.h>
3586 struct stat;
3587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3588 struct buf { int x; };
3589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3590 static char *e (p, i)
3591 char **p;
3592 int i;
3594 return p[i];
3596 static char *f (char * (*g) (char **, int), char **p, ...)
3598 char *s;
3599 va_list v;
3600 va_start (v,p);
3601 s = g (p, va_arg (v,int));
3602 va_end (v);
3603 return s;
3606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3607 function prototypes and stuff, but not '\xHH' hex character constants.
3608 These don't provoke an error unfortunately, instead are silently treated
3609 as 'x'. The following induces an error, until -std is added to get
3610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3611 array size at least. It's necessary to write '\x00'==0 to get something
3612 that's true only with -std. */
3613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3616 inside strings and character constants. */
3617 #define FOO(x) 'x'
3618 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620 int test (int i, double x);
3621 struct s1 {int (*f) (int a);};
3622 struct s2 {int (*f) (double a);};
3623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3624 int argc;
3625 char **argv;
3627 main ()
3629 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3631 return 0;
3633 _ACEOF
3634 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3635 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637 CC="$ac_save_CC $ac_arg"
3638 if ac_fn_c_try_compile "$LINENO"; then :
3639 ac_cv_prog_cc_c89=$ac_arg
3641 rm -f core conftest.err conftest.$ac_objext
3642 test "x$ac_cv_prog_cc_c89" != "xno" && break
3643 done
3644 rm -f conftest.$ac_ext
3645 CC=$ac_save_CC
3648 # AC_CACHE_VAL
3649 case "x$ac_cv_prog_cc_c89" in
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3652 $as_echo "none needed" >&6; } ;;
3653 xno)
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3655 $as_echo "unsupported" >&6; } ;;
3657 CC="$CC $ac_cv_prog_cc_c89"
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3659 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3660 esac
3661 if test "x$ac_cv_prog_cc_c89" != xno; then :
3665 ac_ext=c
3666 ac_cpp='$CPP $CPPFLAGS'
3667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671 ac_ext=cpp
3672 ac_cpp='$CXXCPP $CPPFLAGS'
3673 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3676 if test -z "$CXX"; then
3677 if test -n "$CCC"; then
3678 CXX=$CCC
3679 else
3680 if test -n "$ac_tool_prefix"; then
3681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686 $as_echo_n "checking for $ac_word... " >&6; }
3687 if ${ac_cv_prog_CXX+:} false; then :
3688 $as_echo_n "(cached) " >&6
3689 else
3690 if test -n "$CXX"; then
3691 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3696 IFS=$as_save_IFS
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 break 2
3704 done
3705 done
3706 IFS=$as_save_IFS
3710 CXX=$ac_cv_prog_CXX
3711 if test -n "$CXX"; then
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3713 $as_echo "$CXX" >&6; }
3714 else
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3720 test -n "$CXX" && break
3721 done
3723 if test -z "$CXX"; then
3724 ac_ct_CXX=$CXX
3725 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3727 # Extract the first word of "$ac_prog", so it can be a program name with args.
3728 set dummy $ac_prog; ac_word=$2
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3730 $as_echo_n "checking for $ac_word... " >&6; }
3731 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 if test -n "$ac_ct_CXX"; then
3735 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_prog"
3745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3748 done
3749 done
3750 IFS=$as_save_IFS
3754 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3755 if test -n "$ac_ct_CXX"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3757 $as_echo "$ac_ct_CXX" >&6; }
3758 else
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 test -n "$ac_ct_CXX" && break
3765 done
3767 if test "x$ac_ct_CXX" = x; then
3768 CXX="g++"
3769 else
3770 case $cross_compiling:$ac_tool_warned in
3771 yes:)
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3774 ac_tool_warned=yes ;;
3775 esac
3776 CXX=$ac_ct_CXX
3782 # Provide some information about the compiler.
3783 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3784 set X $ac_compile
3785 ac_compiler=$2
3786 for ac_option in --version -v -V -qversion; do
3787 { { ac_try="$ac_compiler $ac_option >&5"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3795 ac_status=$?
3796 if test -s conftest.err; then
3797 sed '10a\
3798 ... rest of stderr output deleted ...
3799 10q' conftest.err >conftest.er1
3800 cat conftest.er1 >&5
3802 rm -f conftest.er1 conftest.err
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }
3805 done
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3808 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3809 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3816 main ()
3818 #ifndef __GNUC__
3819 choke me
3820 #endif
3823 return 0;
3825 _ACEOF
3826 if ac_fn_cxx_try_compile "$LINENO"; then :
3827 ac_compiler_gnu=yes
3828 else
3829 ac_compiler_gnu=no
3831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3832 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3836 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3837 if test $ac_compiler_gnu = yes; then
3838 GXX=yes
3839 else
3840 GXX=
3842 ac_test_CXXFLAGS=${CXXFLAGS+set}
3843 ac_save_CXXFLAGS=$CXXFLAGS
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3845 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3846 if ${ac_cv_prog_cxx_g+:} false; then :
3847 $as_echo_n "(cached) " >&6
3848 else
3849 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3850 ac_cxx_werror_flag=yes
3851 ac_cv_prog_cxx_g=no
3852 CXXFLAGS="-g"
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h. */
3857 main ()
3861 return 0;
3863 _ACEOF
3864 if ac_fn_cxx_try_compile "$LINENO"; then :
3865 ac_cv_prog_cxx_g=yes
3866 else
3867 CXXFLAGS=""
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3872 main ()
3876 return 0;
3878 _ACEOF
3879 if ac_fn_cxx_try_compile "$LINENO"; then :
3881 else
3882 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3883 CXXFLAGS="-g"
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3888 main ()
3892 return 0;
3894 _ACEOF
3895 if ac_fn_cxx_try_compile "$LINENO"; then :
3896 ac_cv_prog_cxx_g=yes
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3906 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3907 if test "$ac_test_CXXFLAGS" = set; then
3908 CXXFLAGS=$ac_save_CXXFLAGS
3909 elif test $ac_cv_prog_cxx_g = yes; then
3910 if test "$GXX" = yes; then
3911 CXXFLAGS="-g -O2"
3912 else
3913 CXXFLAGS="-g"
3915 else
3916 if test "$GXX" = yes; then
3917 CXXFLAGS="-O2"
3918 else
3919 CXXFLAGS=
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3928 if test -n "$ac_tool_prefix"; then
3929 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3930 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_RANLIB+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935 else
3936 if test -n "$RANLIB"; then
3937 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3950 done
3951 done
3952 IFS=$as_save_IFS
3956 RANLIB=$ac_cv_prog_RANLIB
3957 if test -n "$RANLIB"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3959 $as_echo "$RANLIB" >&6; }
3960 else
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3967 if test -z "$ac_cv_prog_RANLIB"; then
3968 ac_ct_RANLIB=$RANLIB
3969 # Extract the first word of "ranlib", so it can be a program name with args.
3970 set dummy ranlib; ac_word=$2
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3972 $as_echo_n "checking for $ac_word... " >&6; }
3973 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 if test -n "$ac_ct_RANLIB"; then
3977 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3978 else
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 for as_dir in $PATH
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_ac_ct_RANLIB="ranlib"
3987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3990 done
3991 done
3992 IFS=$as_save_IFS
3996 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3997 if test -n "$ac_ct_RANLIB"; then
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3999 $as_echo "$ac_ct_RANLIB" >&6; }
4000 else
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002 $as_echo "no" >&6; }
4005 if test "x$ac_ct_RANLIB" = x; then
4006 RANLIB=":"
4007 else
4008 case $cross_compiling:$ac_tool_warned in
4009 yes:)
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4012 ac_tool_warned=yes ;;
4013 esac
4014 RANLIB=$ac_ct_RANLIB
4016 else
4017 RANLIB="$ac_cv_prog_RANLIB"
4020 if test -n "$ac_tool_prefix"; then
4021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4022 set dummy ${ac_tool_prefix}ar; ac_word=$2
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024 $as_echo_n "checking for $ac_word... " >&6; }
4025 if ${ac_cv_prog_AR+:} false; then :
4026 $as_echo_n "(cached) " >&6
4027 else
4028 if test -n "$AR"; then
4029 ac_cv_prog_AR="$AR" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4038 ac_cv_prog_AR="${ac_tool_prefix}ar"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4042 done
4043 done
4044 IFS=$as_save_IFS
4048 AR=$ac_cv_prog_AR
4049 if test -n "$AR"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4051 $as_echo "$AR" >&6; }
4052 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054 $as_echo "no" >&6; }
4059 if test -z "$ac_cv_prog_AR"; then
4060 ac_ct_AR=$AR
4061 # Extract the first word of "ar", so it can be a program name with args.
4062 set dummy ar; ac_word=$2
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064 $as_echo_n "checking for $ac_word... " >&6; }
4065 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4066 $as_echo_n "(cached) " >&6
4067 else
4068 if test -n "$ac_ct_AR"; then
4069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4070 else
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_ac_ct_AR="ar"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4082 done
4083 done
4084 IFS=$as_save_IFS
4088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4089 if test -n "$ac_ct_AR"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4091 $as_echo "$ac_ct_AR" >&6; }
4092 else
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4097 if test "x$ac_ct_AR" = x; then
4098 AR=""
4099 else
4100 case $cross_compiling:$ac_tool_warned in
4101 yes:)
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104 ac_tool_warned=yes ;;
4105 esac
4106 AR=$ac_ct_AR
4108 else
4109 AR="$ac_cv_prog_AR"
4114 ac_ext=c
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4123 CPP=
4125 if test -z "$CPP"; then
4126 if ${ac_cv_prog_CPP+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 # Double quotes because CPP needs to be expanded
4130 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4132 ac_preproc_ok=false
4133 for ac_c_preproc_warn_flag in '' yes
4135 # Use a header file that comes with gcc, so configuring glibc
4136 # with a fresh cross-compiler works.
4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 # <limits.h> exists even on freestanding compilers.
4139 # On the NeXT, cc -E runs the code through the compiler's parser,
4140 # not just through cpp. "Syntax error" is here to catch this case.
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142 /* end confdefs.h. */
4143 #ifdef __STDC__
4144 # include <limits.h>
4145 #else
4146 # include <assert.h>
4147 #endif
4148 Syntax error
4149 _ACEOF
4150 if ac_fn_c_try_cpp "$LINENO"; then :
4152 else
4153 # Broken: fails on valid input.
4154 continue
4156 rm -f conftest.err conftest.i conftest.$ac_ext
4158 # OK, works on sane cases. Now check whether nonexistent headers
4159 # can be detected and how.
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4162 #include <ac_nonexistent.h>
4163 _ACEOF
4164 if ac_fn_c_try_cpp "$LINENO"; then :
4165 # Broken: success on invalid input.
4166 continue
4167 else
4168 # Passes both tests.
4169 ac_preproc_ok=:
4170 break
4172 rm -f conftest.err conftest.i conftest.$ac_ext
4174 done
4175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4176 rm -f conftest.i conftest.err conftest.$ac_ext
4177 if $ac_preproc_ok; then :
4178 break
4181 done
4182 ac_cv_prog_CPP=$CPP
4185 CPP=$ac_cv_prog_CPP
4186 else
4187 ac_cv_prog_CPP=$CPP
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4190 $as_echo "$CPP" >&6; }
4191 ac_preproc_ok=false
4192 for ac_c_preproc_warn_flag in '' yes
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #ifdef __STDC__
4203 # include <limits.h>
4204 #else
4205 # include <assert.h>
4206 #endif
4207 Syntax error
4208 _ACEOF
4209 if ac_fn_c_try_cpp "$LINENO"; then :
4211 else
4212 # Broken: fails on valid input.
4213 continue
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4217 # OK, works on sane cases. Now check whether nonexistent headers
4218 # can be detected and how.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <ac_nonexistent.h>
4222 _ACEOF
4223 if ac_fn_c_try_cpp "$LINENO"; then :
4224 # Broken: success on invalid input.
4225 continue
4226 else
4227 # Passes both tests.
4228 ac_preproc_ok=:
4229 break
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4233 done
4234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4235 rm -f conftest.i conftest.err conftest.$ac_ext
4236 if $ac_preproc_ok; then :
4238 else
4239 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4242 See \`config.log' for more details" "$LINENO" 5; }
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4253 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4254 if ${ac_cv_path_GREP+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256 else
4257 if test -z "$GREP"; then
4258 ac_path_GREP_found=false
4259 # Loop through the user's path and test for each of PROGNAME-LIST
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_prog in grep ggrep; do
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4268 as_fn_executable_p "$ac_path_GREP" || continue
4269 # Check for GNU ac_path_GREP and select it if it is found.
4270 # Check for GNU $ac_path_GREP
4271 case `"$ac_path_GREP" --version 2>&1` in
4272 *GNU*)
4273 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4275 ac_count=0
4276 $as_echo_n 0123456789 >"conftest.in"
4277 while :
4279 cat "conftest.in" "conftest.in" >"conftest.tmp"
4280 mv "conftest.tmp" "conftest.in"
4281 cp "conftest.in" "conftest.nl"
4282 $as_echo 'GREP' >> "conftest.nl"
4283 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4285 as_fn_arith $ac_count + 1 && ac_count=$as_val
4286 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4287 # Best one so far, save it but keep looking for a better one
4288 ac_cv_path_GREP="$ac_path_GREP"
4289 ac_path_GREP_max=$ac_count
4291 # 10*(2^10) chars as input seems more than enough
4292 test $ac_count -gt 10 && break
4293 done
4294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4295 esac
4297 $ac_path_GREP_found && break 3
4298 done
4299 done
4300 done
4301 IFS=$as_save_IFS
4302 if test -z "$ac_cv_path_GREP"; then
4303 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4305 else
4306 ac_cv_path_GREP=$GREP
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4311 $as_echo "$ac_cv_path_GREP" >&6; }
4312 GREP="$ac_cv_path_GREP"
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4316 $as_echo_n "checking for egrep... " >&6; }
4317 if ${ac_cv_path_EGREP+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4321 then ac_cv_path_EGREP="$GREP -E"
4322 else
4323 if test -z "$EGREP"; then
4324 ac_path_EGREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in egrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4334 as_fn_executable_p "$ac_path_EGREP" || continue
4335 # Check for GNU ac_path_EGREP and select it if it is found.
4336 # Check for GNU $ac_path_EGREP
4337 case `"$ac_path_EGREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'EGREP' >> "conftest.nl"
4349 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 as_fn_arith $ac_count + 1 && ac_count=$as_val
4352 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_EGREP="$ac_path_EGREP"
4355 ac_path_EGREP_max=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4363 $ac_path_EGREP_found && break 3
4364 done
4365 done
4366 done
4367 IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_EGREP"; then
4369 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 else
4372 ac_cv_path_EGREP=$EGREP
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4378 $as_echo "$ac_cv_path_EGREP" >&6; }
4379 EGREP="$ac_cv_path_EGREP"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4383 $as_echo_n "checking for ANSI C header files... " >&6; }
4384 if ${ac_cv_header_stdc+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <stdlib.h>
4390 #include <stdarg.h>
4391 #include <string.h>
4392 #include <float.h>
4395 main ()
4399 return 0;
4401 _ACEOF
4402 if ac_fn_c_try_compile "$LINENO"; then :
4403 ac_cv_header_stdc=yes
4404 else
4405 ac_cv_header_stdc=no
4407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 if test $ac_cv_header_stdc = yes; then
4410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412 /* end confdefs.h. */
4413 #include <string.h>
4415 _ACEOF
4416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4417 $EGREP "memchr" >/dev/null 2>&1; then :
4419 else
4420 ac_cv_header_stdc=no
4422 rm -f conftest*
4426 if test $ac_cv_header_stdc = yes; then
4427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <stdlib.h>
4432 _ACEOF
4433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434 $EGREP "free" >/dev/null 2>&1; then :
4436 else
4437 ac_cv_header_stdc=no
4439 rm -f conftest*
4443 if test $ac_cv_header_stdc = yes; then
4444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4445 if test "$cross_compiling" = yes; then :
4447 else
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <ctype.h>
4451 #include <stdlib.h>
4452 #if ((' ' & 0x0FF) == 0x020)
4453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4455 #else
4456 # define ISLOWER(c) \
4457 (('a' <= (c) && (c) <= 'i') \
4458 || ('j' <= (c) && (c) <= 'r') \
4459 || ('s' <= (c) && (c) <= 'z'))
4460 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4461 #endif
4463 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4465 main ()
4467 int i;
4468 for (i = 0; i < 256; i++)
4469 if (XOR (islower (i), ISLOWER (i))
4470 || toupper (i) != TOUPPER (i))
4471 return 2;
4472 return 0;
4474 _ACEOF
4475 if ac_fn_c_try_run "$LINENO"; then :
4477 else
4478 ac_cv_header_stdc=no
4480 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4481 conftest.$ac_objext conftest.beam conftest.$ac_ext
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4487 $as_echo "$ac_cv_header_stdc" >&6; }
4488 if test $ac_cv_header_stdc = yes; then
4490 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4494 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4496 inttypes.h stdint.h unistd.h
4497 do :
4498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4499 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4501 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4502 cat >>confdefs.h <<_ACEOF
4503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4504 _ACEOF
4508 done
4512 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4513 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4514 MINIX=yes
4515 else
4516 MINIX=
4520 if test "$MINIX" = yes; then
4522 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4525 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4528 $as_echo "#define _MINIX 1" >>confdefs.h
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4534 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4535 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4541 # define __EXTENSIONS__ 1
4542 $ac_includes_default
4544 main ()
4548 return 0;
4550 _ACEOF
4551 if ac_fn_c_try_compile "$LINENO"; then :
4552 ac_cv_safe_to_define___extensions__=yes
4553 else
4554 ac_cv_safe_to_define___extensions__=no
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4559 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4560 test $ac_cv_safe_to_define___extensions__ = yes &&
4561 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4563 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4565 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4567 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4569 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4572 # Check whether --enable-largefile was given.
4573 if test "${enable_largefile+set}" = set; then :
4574 enableval=$enable_largefile;
4577 if test "$enable_largefile" != no; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4580 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4581 if ${ac_cv_sys_largefile_CC+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 ac_cv_sys_largefile_CC=no
4585 if test "$GCC" != yes; then
4586 ac_save_CC=$CC
4587 while :; do
4588 # IRIX 6.2 and later do not support large files by default,
4589 # so use the C compiler's -n32 option if that helps.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592 #include <sys/types.h>
4593 /* Check that off_t can represent 2**63 - 1 correctly.
4594 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4595 since some C++ compilers masquerading as C compilers
4596 incorrectly reject 9223372036854775807. */
4597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4598 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4599 && LARGE_OFF_T % 2147483647 == 1)
4600 ? 1 : -1];
4602 main ()
4606 return 0;
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610 break
4612 rm -f core conftest.err conftest.$ac_objext
4613 CC="$CC -n32"
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 ac_cv_sys_largefile_CC=' -n32'; break
4617 rm -f core conftest.err conftest.$ac_objext
4618 break
4619 done
4620 CC=$ac_save_CC
4621 rm -f conftest.$ac_ext
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4625 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4626 if test "$ac_cv_sys_largefile_CC" != no; then
4627 CC=$CC$ac_cv_sys_largefile_CC
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4631 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4632 if ${ac_cv_sys_file_offset_bits+:} false; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 while :; do
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4638 #include <sys/types.h>
4639 /* Check that off_t can represent 2**63 - 1 correctly.
4640 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4641 since some C++ compilers masquerading as C compilers
4642 incorrectly reject 9223372036854775807. */
4643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4644 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4645 && LARGE_OFF_T % 2147483647 == 1)
4646 ? 1 : -1];
4648 main ()
4652 return 0;
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656 ac_cv_sys_file_offset_bits=no; break
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h. */
4661 #define _FILE_OFFSET_BITS 64
4662 #include <sys/types.h>
4663 /* Check that off_t can represent 2**63 - 1 correctly.
4664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4665 since some C++ compilers masquerading as C compilers
4666 incorrectly reject 9223372036854775807. */
4667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4669 && LARGE_OFF_T % 2147483647 == 1)
4670 ? 1 : -1];
4672 main ()
4676 return 0;
4678 _ACEOF
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680 ac_cv_sys_file_offset_bits=64; break
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 ac_cv_sys_file_offset_bits=unknown
4684 break
4685 done
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4688 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4689 case $ac_cv_sys_file_offset_bits in #(
4690 no | unknown) ;;
4692 cat >>confdefs.h <<_ACEOF
4693 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4694 _ACEOF
4696 esac
4697 rm -rf conftest*
4698 if test $ac_cv_sys_file_offset_bits = unknown; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4700 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4701 if ${ac_cv_sys_large_files+:} false; then :
4702 $as_echo_n "(cached) " >&6
4703 else
4704 while :; do
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4707 #include <sys/types.h>
4708 /* Check that off_t can represent 2**63 - 1 correctly.
4709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4710 since some C++ compilers masquerading as C compilers
4711 incorrectly reject 9223372036854775807. */
4712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4714 && LARGE_OFF_T % 2147483647 == 1)
4715 ? 1 : -1];
4717 main ()
4721 return 0;
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_sys_large_files=no; break
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #define _LARGE_FILES 1
4731 #include <sys/types.h>
4732 /* Check that off_t can represent 2**63 - 1 correctly.
4733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4734 since some C++ compilers masquerading as C compilers
4735 incorrectly reject 9223372036854775807. */
4736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4738 && LARGE_OFF_T % 2147483647 == 1)
4739 ? 1 : -1];
4741 main ()
4745 return 0;
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_sys_large_files=1; break
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 ac_cv_sys_large_files=unknown
4753 break
4754 done
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4757 $as_echo "$ac_cv_sys_large_files" >&6; }
4758 case $ac_cv_sys_large_files in #(
4759 no | unknown) ;;
4761 cat >>confdefs.h <<_ACEOF
4762 #define _LARGE_FILES $ac_cv_sys_large_files
4763 _ACEOF
4765 esac
4766 rm -rf conftest*
4773 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4774 for ac_prog in aclocal
4776 # Extract the first word of "$ac_prog", so it can be a program name with args.
4777 set dummy $ac_prog; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if ${ac_cv_prog_ACLOCAL+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ACLOCAL"; then
4784 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ACLOCAL="$ac_prog"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 ACLOCAL=$ac_cv_prog_ACLOCAL
4804 if test -n "$ACLOCAL"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4806 $as_echo "$ACLOCAL" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4813 test -n "$ACLOCAL" && break
4814 done
4815 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4817 for ac_prog in autoconf
4819 # Extract the first word of "$ac_prog", so it can be a program name with args.
4820 set dummy $ac_prog; ac_word=$2
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822 $as_echo_n "checking for $ac_word... " >&6; }
4823 if ${ac_cv_prog_AUTOCONF+:} false; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 if test -n "$AUTOCONF"; then
4827 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_prog_AUTOCONF="$ac_prog"
4837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4840 done
4841 done
4842 IFS=$as_save_IFS
4846 AUTOCONF=$ac_cv_prog_AUTOCONF
4847 if test -n "$AUTOCONF"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4849 $as_echo "$AUTOCONF" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4856 test -n "$AUTOCONF" && break
4857 done
4858 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4860 for ac_prog in autoheader
4862 # Extract the first word of "$ac_prog", so it can be a program name with args.
4863 set dummy $ac_prog; ac_word=$2
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4865 $as_echo_n "checking for $ac_word... " >&6; }
4866 if ${ac_cv_prog_AUTOHEADER+:} false; then :
4867 $as_echo_n "(cached) " >&6
4868 else
4869 if test -n "$AUTOHEADER"; then
4870 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_prog_AUTOHEADER="$ac_prog"
4880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4883 done
4884 done
4885 IFS=$as_save_IFS
4889 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4890 if test -n "$AUTOHEADER"; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4892 $as_echo "$AUTOHEADER" >&6; }
4893 else
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4895 $as_echo "no" >&6; }
4899 test -n "$AUTOHEADER" && break
4900 done
4901 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4904 if test -z "$ETAGS"; then
4905 ETAGS=etags
4909 # Figure out what compiler warnings we can enable.
4910 # See config/warnings.m4 for details.
4912 ac_ext=c
4913 ac_cpp='$CPP $CPPFLAGS'
4914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918 warn=
4919 save_CFLAGS="$CFLAGS"
4920 for real_option in -W -Wall -Wno-narrowing -Wwrite-strings \
4921 -Wmissing-format-attribute; do
4922 # Do the check with the no- prefix removed since gcc silently
4923 # accepts any -Wno-* option on purpose
4924 case $real_option in
4925 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4926 *) option=$real_option ;;
4927 esac
4928 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4931 $as_echo_n "checking whether $CC supports $option... " >&6; }
4932 if eval \${$as_acx_Woption+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 CFLAGS="$option"
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4940 main ()
4944 return 0;
4946 _ACEOF
4947 if ac_fn_c_try_compile "$LINENO"; then :
4948 eval "$as_acx_Woption=yes"
4949 else
4950 eval "$as_acx_Woption=no"
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 eval ac_res=\$$as_acx_Woption
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4957 $as_echo "$ac_res" >&6; }
4958 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4959 warn="$warn${warn:+ }$real_option"
4961 done
4962 CFLAGS="$save_CFLAGS"
4963 ac_ext=c
4964 ac_cpp='$CPP $CPPFLAGS'
4965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 c_warn=
4977 save_CFLAGS="$CFLAGS"
4978 for real_option in -Wstrict-prototypes -Wmissing-prototypes \
4979 -Wold-style-definition -Wc++-compat; do
4980 # Do the check with the no- prefix removed since gcc silently
4981 # accepts any -Wno-* option on purpose
4982 case $real_option in
4983 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
4984 *) option=$real_option ;;
4985 esac
4986 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4989 $as_echo_n "checking whether $CC supports $option... " >&6; }
4990 if eval \${$as_acx_Woption+:} false; then :
4991 $as_echo_n "(cached) " >&6
4992 else
4993 CFLAGS="$option"
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4998 main ()
5002 return 0;
5004 _ACEOF
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 eval "$as_acx_Woption=yes"
5007 else
5008 eval "$as_acx_Woption=no"
5010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013 eval ac_res=\$$as_acx_Woption
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5015 $as_echo "$ac_res" >&6; }
5016 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5017 c_warn="$c_warn${c_warn:+ }$real_option"
5019 done
5020 CFLAGS="$save_CFLAGS"
5021 ac_ext=c
5022 ac_cpp='$CPP $CPPFLAGS'
5023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5028 ac_ext=c
5029 ac_cpp='$CPP $CPPFLAGS'
5030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034 WARN_PEDANTIC=
5035 # Do the check with the no- prefix removed from the warning options
5036 # since gcc silently accepts any -Wno-* option on purpose
5037 if test "$GCC" = yes; then :
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wlong-long" >&5
5039 $as_echo_n "checking whether $CC supports -pedantic -Wlong-long... " >&6; }
5040 if ${acx_cv_prog_cc_pedantic__Wlong_long+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 save_CFLAGS="$CFLAGS"
5044 CFLAGS="-pedantic -Wlong-long"
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5049 main ()
5053 return 0;
5055 _ACEOF
5056 if ac_fn_c_try_compile "$LINENO"; then :
5057 acx_cv_prog_cc_pedantic__Wlong_long=yes
5058 else
5059 acx_cv_prog_cc_pedantic__Wlong_long=no
5061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062 CFLAGS="$save_CFLAGS"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wlong_long" >&5
5065 $as_echo "$acx_cv_prog_cc_pedantic__Wlong_long" >&6; }
5066 if test $acx_cv_prog_cc_pedantic__Wlong_long = yes; then :
5067 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
5071 ac_ext=c
5072 ac_cpp='$CPP $CPPFLAGS'
5073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 # Disable exceptions and RTTI if building with g++
5080 ac_ext=c
5081 ac_cpp='$CPP $CPPFLAGS'
5082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 noexception_flags=
5087 save_CFLAGS="$CFLAGS"
5088 for real_option in -fno-exceptions -fno-rtti; do
5089 # Do the check with the no- prefix removed since gcc silently
5090 # accepts any -Wno-* option on purpose
5091 case $real_option in
5092 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
5093 *) option=$real_option ;;
5094 esac
5095 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5098 $as_echo_n "checking whether $CC supports $option... " >&6; }
5099 if eval \${$as_acx_Woption+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 CFLAGS="$option"
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5107 main ()
5111 return 0;
5113 _ACEOF
5114 if ac_fn_c_try_compile "$LINENO"; then :
5115 eval "$as_acx_Woption=yes"
5116 else
5117 eval "$as_acx_Woption=no"
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5122 eval ac_res=\$$as_acx_Woption
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5124 $as_echo "$ac_res" >&6; }
5125 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5126 noexception_flags="$noexception_flags${noexception_flags:+ }$real_option"
5128 done
5129 CFLAGS="$save_CFLAGS"
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5138 # Only enable with --enable-werror-always until existing warnings are
5139 # corrected.
5140 ac_ext=c
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5146 WERROR=
5147 # Check whether --enable-werror-always was given.
5148 if test "${enable_werror_always+set}" = set; then :
5149 enableval=$enable_werror_always;
5150 else
5151 enable_werror_always=no
5154 if test $enable_werror_always = yes; then :
5155 WERROR="$WERROR${WERROR:+ }-Werror"
5158 ac_ext=c
5159 ac_cpp='$CPP $CPPFLAGS'
5160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5166 # Dependency checking.
5167 rm -rf .tst 2>/dev/null
5168 mkdir .tst 2>/dev/null
5169 if test -d .tst; then
5170 am__leading_dot=.
5171 else
5172 am__leading_dot=_
5174 rmdir .tst 2>/dev/null
5176 DEPDIR="${am__leading_dot}deps"
5178 ac_config_commands="$ac_config_commands depdir"
5181 ac_ext=cpp
5182 ac_cpp='$CXXCPP $CPPFLAGS'
5183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 int i;
5191 _ACEOF
5192 if ac_fn_cxx_try_compile "$LINENO"; then :
5194 else
5195 as_fn_error $? "C++ compiler missing or inoperational" "$LINENO" 5
5197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5198 ac_ext=c
5199 ac_cpp='$CPP $CPPFLAGS'
5200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204 depcc="$CXX" am_compiler_list=
5206 am_depcomp=$ac_aux_dir/depcomp
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5208 $as_echo_n "checking dependency style of $depcc... " >&6; }
5209 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -f "$am_depcomp"; then
5213 # We make a subdir and do the tests there. Otherwise we can end up
5214 # making bogus files that we don't know about and never remove. For
5215 # instance it was reported that on HP-UX the gcc test will end up
5216 # making a dummy file named `D' -- because `-MD' means `put the output
5217 # in D'.
5218 mkdir conftest.dir
5219 # Copy depcomp to subdir because otherwise we won't find it if we're
5220 # using a relative directory.
5221 cp "$am_depcomp" conftest.dir
5222 cd conftest.dir
5223 # We will build objects and dependencies in a subdirectory because
5224 # it helps to detect inapplicable dependency modes. For instance
5225 # both Tru64's cc and ICC support -MD to output dependencies as a
5226 # side effect of compilation, but ICC will put the dependencies in
5227 # the current directory while Tru64 will put them in the object
5228 # directory.
5229 mkdir sub
5231 am_cv_CXX_dependencies_compiler_type=none
5232 if test "$am_compiler_list" = ""; then
5233 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5235 for depmode in $am_compiler_list; do
5236 if test $depmode = none; then break; fi
5238 $as_echo "$as_me:$LINENO: trying $depmode" >&5
5239 # Setup a source with many dependencies, because some compilers
5240 # like to wrap large dependency lists on column 80 (with \), and
5241 # we should not choose a depcomp mode which is confused by this.
5243 # We need to recreate these files for each test, as the compiler may
5244 # overwrite some of them when testing with obscure command lines.
5245 # This happens at least with the AIX C compiler.
5246 : > sub/conftest.c
5247 for i in 1 2 3 4 5 6; do
5248 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5249 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5250 # Solaris 8's {/usr,}/bin/sh.
5251 touch sub/conftst$i.h
5252 done
5253 echo "include sub/conftest.Po" > confmf
5255 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5256 # mode. It turns out that the SunPro C++ compiler does not properly
5257 # handle `-M -o', and we need to detect this.
5258 depcmd="depmode=$depmode \
5259 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5260 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5261 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5262 echo "| $depcmd" | sed -e 's/ */ /g' >&5
5263 if env $depcmd > conftest.err 2>&1 &&
5264 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5265 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5266 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5267 # icc doesn't choke on unknown options, it will just issue warnings
5268 # or remarks (even with -Werror). So we grep stderr for any message
5269 # that says an option was ignored or not supported.
5270 # When given -MP, icc 7.0 and 7.1 complain thusly:
5271 # icc: Command line warning: ignoring option '-M'; no argument required
5272 # The diagnosis changed in icc 8.0:
5273 # icc: Command line remark: option '-MP' not supported
5274 if (grep 'ignoring option' conftest.err ||
5275 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5276 am_cv_CXX_dependencies_compiler_type=$depmode
5277 $as_echo "$as_me:$LINENO: success" >&5
5278 break
5281 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5282 sed -e 's/^/| /' < conftest.err >&5
5283 done
5285 cd ..
5286 rm -rf conftest.dir
5287 else
5288 am_cv_CXX_dependencies_compiler_type=none
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5293 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5294 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5295 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
5296 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5301 # Checks for header files.
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5303 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5304 if ${ac_cv_header_time+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <sys/types.h>
5310 #include <sys/time.h>
5311 #include <time.h>
5314 main ()
5316 if ((struct tm *) 0)
5317 return 0;
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 ac_cv_header_time=yes
5324 else
5325 ac_cv_header_time=no
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5330 $as_echo "$ac_cv_header_time" >&6; }
5331 if test $ac_cv_header_time = yes; then
5333 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5338 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5339 if ${gcc_cv_header_string+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 #include <string.h>
5345 #include <strings.h>
5347 main ()
5351 return 0;
5353 _ACEOF
5354 if ac_fn_c_try_compile "$LINENO"; then :
5355 gcc_cv_header_string=yes
5356 else
5357 gcc_cv_header_string=no
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5362 $as_echo "$gcc_cv_header_string" >&6; }
5363 if test $gcc_cv_header_string = yes; then
5365 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5370 for ac_header in locale.h fcntl.h limits.h stddef.h \
5371 stdlib.h strings.h string.h sys/file.h unistd.h
5372 do :
5373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5376 cat >>confdefs.h <<_ACEOF
5377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5378 _ACEOF
5382 done
5385 # Checks for typedefs, structures, and compiler characteristics.
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5387 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5388 if ${ac_cv_c_bigendian+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 ac_cv_c_bigendian=unknown
5392 # See if we're dealing with a universal compiler.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #ifndef __APPLE_CC__
5396 not a universal capable compiler
5397 #endif
5398 typedef int dummy;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5403 # Check for potential -arch flags. It is not universal unless
5404 # there are at least two -arch flags with different values.
5405 ac_arch=
5406 ac_prev=
5407 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5408 if test -n "$ac_prev"; then
5409 case $ac_word in
5410 i?86 | x86_64 | ppc | ppc64)
5411 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5412 ac_arch=$ac_word
5413 else
5414 ac_cv_c_bigendian=universal
5415 break
5418 esac
5419 ac_prev=
5420 elif test "x$ac_word" = "x-arch"; then
5421 ac_prev=arch
5423 done
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 if test $ac_cv_c_bigendian = unknown; then
5427 # See if sys/param.h defines the BYTE_ORDER macro.
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 #include <sys/types.h>
5431 #include <sys/param.h>
5434 main ()
5436 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5437 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5438 && LITTLE_ENDIAN)
5439 bogus endian macros
5440 #endif
5443 return 0;
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 # It does; now see whether it defined to BIG_ENDIAN or not.
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <sys/types.h>
5451 #include <sys/param.h>
5454 main ()
5456 #if BYTE_ORDER != BIG_ENDIAN
5457 not big endian
5458 #endif
5461 return 0;
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465 ac_cv_c_bigendian=yes
5466 else
5467 ac_cv_c_bigendian=no
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473 if test $ac_cv_c_bigendian = unknown; then
5474 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 #include <limits.h>
5480 main ()
5482 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5483 bogus endian macros
5484 #endif
5487 return 0;
5489 _ACEOF
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491 # It does; now see whether it defined to _BIG_ENDIAN or not.
5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493 /* end confdefs.h. */
5494 #include <limits.h>
5497 main ()
5499 #ifndef _BIG_ENDIAN
5500 not big endian
5501 #endif
5504 return 0;
5506 _ACEOF
5507 if ac_fn_c_try_compile "$LINENO"; then :
5508 ac_cv_c_bigendian=yes
5509 else
5510 ac_cv_c_bigendian=no
5512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 if test $ac_cv_c_bigendian = unknown; then
5517 # Compile a test program.
5518 if test "$cross_compiling" = yes; then :
5519 # Try to guess by grepping values from an object file.
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 short int ascii_mm[] =
5523 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5524 short int ascii_ii[] =
5525 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5526 int use_ascii (int i) {
5527 return ascii_mm[i] + ascii_ii[i];
5529 short int ebcdic_ii[] =
5530 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5531 short int ebcdic_mm[] =
5532 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5533 int use_ebcdic (int i) {
5534 return ebcdic_mm[i] + ebcdic_ii[i];
5536 extern int foo;
5539 main ()
5541 return use_ascii (foo) == use_ebcdic (foo);
5543 return 0;
5545 _ACEOF
5546 if ac_fn_c_try_compile "$LINENO"; then :
5547 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5548 ac_cv_c_bigendian=yes
5550 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5551 if test "$ac_cv_c_bigendian" = unknown; then
5552 ac_cv_c_bigendian=no
5553 else
5554 # finding both strings is unlikely to happen, but who knows?
5555 ac_cv_c_bigendian=unknown
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 else
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 $ac_includes_default
5565 main ()
5568 /* Are we little or big endian? From Harbison&Steele. */
5569 union
5571 long int l;
5572 char c[sizeof (long int)];
5573 } u;
5574 u.l = 1;
5575 return u.c[sizeof (long int) - 1] == 1;
5578 return 0;
5580 _ACEOF
5581 if ac_fn_c_try_run "$LINENO"; then :
5582 ac_cv_c_bigendian=no
5583 else
5584 ac_cv_c_bigendian=yes
5586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5587 conftest.$ac_objext conftest.beam conftest.$ac_ext
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5593 $as_echo "$ac_cv_c_bigendian" >&6; }
5594 case $ac_cv_c_bigendian in #(
5595 yes)
5596 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5597 ;; #(
5599 ;; #(
5600 universal)
5602 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5604 ;; #(
5606 as_fn_error $? "unknown endianness
5607 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5608 esac
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5611 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5612 if ${ac_cv_c_const+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5619 main ()
5622 #ifndef __cplusplus
5623 /* Ultrix mips cc rejects this sort of thing. */
5624 typedef int charset[2];
5625 const charset cs = { 0, 0 };
5626 /* SunOS 4.1.1 cc rejects this. */
5627 char const *const *pcpcc;
5628 char **ppc;
5629 /* NEC SVR4.0.2 mips cc rejects this. */
5630 struct point {int x, y;};
5631 static struct point const zero = {0,0};
5632 /* AIX XL C 1.02.0.0 rejects this.
5633 It does not let you subtract one const X* pointer from another in
5634 an arm of an if-expression whose if-part is not a constant
5635 expression */
5636 const char *g = "string";
5637 pcpcc = &g + (g ? g-g : 0);
5638 /* HPUX 7.0 cc rejects these. */
5639 ++pcpcc;
5640 ppc = (char**) pcpcc;
5641 pcpcc = (char const *const *) ppc;
5642 { /* SCO 3.2v4 cc rejects this sort of thing. */
5643 char tx;
5644 char *t = &tx;
5645 char const *s = 0 ? (char *) 0 : (char const *) 0;
5647 *t++ = 0;
5648 if (s) return 0;
5650 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5651 int x[] = {25, 17};
5652 const int *foo = &x[0];
5653 ++foo;
5655 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5656 typedef const int *iptr;
5657 iptr p = 0;
5658 ++p;
5660 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5661 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5662 struct s { int j; const int *ap[3]; } bx;
5663 struct s *b = &bx; b->j = 5;
5665 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5666 const int foo = 10;
5667 if (!foo) return 0;
5669 return !cs[0] && !zero.x;
5670 #endif
5673 return 0;
5675 _ACEOF
5676 if ac_fn_c_try_compile "$LINENO"; then :
5677 ac_cv_c_const=yes
5678 else
5679 ac_cv_c_const=no
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5684 $as_echo "$ac_cv_c_const" >&6; }
5685 if test $ac_cv_c_const = no; then
5687 $as_echo "#define const /**/" >>confdefs.h
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5692 $as_echo_n "checking for inline... " >&6; }
5693 if ${ac_cv_c_inline+:} false; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 ac_cv_c_inline=no
5697 for ac_kw in inline __inline__ __inline; do
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #ifndef __cplusplus
5701 typedef int foo_t;
5702 static $ac_kw foo_t static_foo () {return 0; }
5703 $ac_kw foo_t foo () {return 0; }
5704 #endif
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 ac_cv_c_inline=$ac_kw
5710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5711 test "$ac_cv_c_inline" != no && break
5712 done
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5716 $as_echo "$ac_cv_c_inline" >&6; }
5718 case $ac_cv_c_inline in
5719 inline | yes) ;;
5721 case $ac_cv_c_inline in
5722 no) ac_val=;;
5723 *) ac_val=$ac_cv_c_inline;;
5724 esac
5725 cat >>confdefs.h <<_ACEOF
5726 #ifndef __cplusplus
5727 #define inline $ac_val
5728 #endif
5729 _ACEOF
5731 esac
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5734 $as_echo_n "checking for obstacks... " >&6; }
5735 if ${ac_cv_func_obstack+:} false; then :
5736 $as_echo_n "(cached) " >&6
5737 else
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740 $ac_includes_default
5741 #include "obstack.h"
5743 main ()
5745 struct obstack mem;
5746 #define obstack_chunk_alloc malloc
5747 #define obstack_chunk_free free
5748 obstack_init (&mem);
5749 obstack_free (&mem, 0);
5751 return 0;
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 ac_cv_func_obstack=yes
5756 else
5757 ac_cv_func_obstack=no
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5763 $as_echo "$ac_cv_func_obstack" >&6; }
5764 if test $ac_cv_func_obstack = yes; then
5766 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5768 else
5769 case " $LIBOBJS " in
5770 *" obstack.$ac_objext "* ) ;;
5771 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5773 esac
5777 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5778 if test "x$ac_cv_type_off_t" = xyes; then :
5780 else
5782 cat >>confdefs.h <<_ACEOF
5783 #define off_t long int
5784 _ACEOF
5788 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5789 if test "x$ac_cv_type_size_t" = xyes; then :
5791 else
5793 cat >>confdefs.h <<_ACEOF
5794 #define size_t unsigned int
5795 _ACEOF
5799 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5800 if test "x$ac_cv_type_ssize_t" = xyes; then :
5802 else
5804 cat >>confdefs.h <<_ACEOF
5805 #define ssize_t int
5806 _ACEOF
5811 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5812 if test "x$ac_cv_type_uintptr_t" = xyes; then :
5814 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5816 else
5817 for ac_type in 'unsigned int' 'unsigned long int' \
5818 'unsigned long long int'; do
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 $ac_includes_default
5823 main ()
5825 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5826 test_array [0] = 0;
5827 return test_array [0];
5830 return 0;
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"; then :
5835 cat >>confdefs.h <<_ACEOF
5836 #define uintptr_t $ac_type
5837 _ACEOF
5839 ac_type=
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 test -z "$ac_type" && break
5843 done
5847 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5848 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
5850 else
5852 cat >>confdefs.h <<_ACEOF
5853 #define ptrdiff_t int
5854 _ACEOF
5858 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5859 case $ac_cv_c_uint64_t in #(
5860 no|yes) ;; #(
5863 $as_echo "#define _UINT64_T 1" >>confdefs.h
5866 cat >>confdefs.h <<_ACEOF
5867 #define uint64_t $ac_cv_c_uint64_t
5868 _ACEOF
5870 esac
5872 if test x"$ac_cv_c_uint64_t" = x"no"; then
5873 as_fn_error $? "uint64_t not found" "$LINENO" 5
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5876 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5877 if ${ac_cv_struct_tm+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5883 #include <time.h>
5886 main ()
5888 struct tm tm;
5889 int *p = &tm.tm_sec;
5890 return !p;
5892 return 0;
5894 _ACEOF
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_struct_tm=time.h
5897 else
5898 ac_cv_struct_tm=sys/time.h
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5903 $as_echo "$ac_cv_struct_tm" >&6; }
5904 if test $ac_cv_struct_tm = sys/time.h; then
5906 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5910 # The cast to long int works around a bug in the HP C Compiler
5911 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5912 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5913 # This bug is HP SR number 8606223364.
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5915 $as_echo_n "checking size of int... " >&6; }
5916 if ${ac_cv_sizeof_int+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5921 else
5922 if test "$ac_cv_type_int" = yes; then
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 as_fn_error 77 "cannot compute sizeof (int)
5926 See \`config.log' for more details" "$LINENO" 5; }
5927 else
5928 ac_cv_sizeof_int=0
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5934 $as_echo "$ac_cv_sizeof_int" >&6; }
5938 cat >>confdefs.h <<_ACEOF
5939 #define SIZEOF_INT $ac_cv_sizeof_int
5940 _ACEOF
5943 # The cast to long int works around a bug in the HP C Compiler
5944 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5945 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5946 # This bug is HP SR number 8606223364.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5948 $as_echo_n "checking size of long... " >&6; }
5949 if ${ac_cv_sizeof_long+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5954 else
5955 if test "$ac_cv_type_long" = yes; then
5956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5958 as_fn_error 77 "cannot compute sizeof (long)
5959 See \`config.log' for more details" "$LINENO" 5; }
5960 else
5961 ac_cv_sizeof_long=0
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5967 $as_echo "$ac_cv_sizeof_long" >&6; }
5971 cat >>confdefs.h <<_ACEOF
5972 #define SIZEOF_LONG $ac_cv_sizeof_long
5973 _ACEOF
5977 for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
5978 do :
5979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5980 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5981 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5982 cat >>confdefs.h <<_ACEOF
5983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5984 _ACEOF
5987 done
5989 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5990 if test "x$ac_cv_have_decl_abort" = xyes; then :
5991 ac_have_decl=1
5992 else
5993 ac_have_decl=0
5996 cat >>confdefs.h <<_ACEOF
5997 #define HAVE_DECL_ABORT $ac_have_decl
5998 _ACEOF
5999 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
6000 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
6001 ac_have_decl=1
6002 else
6003 ac_have_decl=0
6006 cat >>confdefs.h <<_ACEOF
6007 #define HAVE_DECL_ASPRINTF $ac_have_decl
6008 _ACEOF
6009 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
6010 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
6011 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
6012 ac_have_decl=1
6013 else
6014 ac_have_decl=0
6017 cat >>confdefs.h <<_ACEOF
6018 #define HAVE_DECL_BASENAME $ac_have_decl
6019 _ACEOF
6020 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
6021 if test "x$ac_cv_have_decl_errno" = xyes; then :
6022 ac_have_decl=1
6023 else
6024 ac_have_decl=0
6027 cat >>confdefs.h <<_ACEOF
6028 #define HAVE_DECL_ERRNO $ac_have_decl
6029 _ACEOF
6030 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
6031 if test "x$ac_cv_have_decl_getopt" = xyes; then :
6032 ac_have_decl=1
6033 else
6034 ac_have_decl=0
6037 cat >>confdefs.h <<_ACEOF
6038 #define HAVE_DECL_GETOPT $ac_have_decl
6039 _ACEOF
6040 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
6041 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
6042 ac_have_decl=1
6043 else
6044 ac_have_decl=0
6047 cat >>confdefs.h <<_ACEOF
6048 #define HAVE_DECL_VASPRINTF $ac_have_decl
6049 _ACEOF
6051 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
6052 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes; then :
6053 ac_have_decl=1
6054 else
6055 ac_have_decl=0
6058 cat >>confdefs.h <<_ACEOF
6059 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
6060 _ACEOF
6061 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
6062 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
6063 ac_have_decl=1
6064 else
6065 ac_have_decl=0
6068 cat >>confdefs.h <<_ACEOF
6069 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
6070 _ACEOF
6071 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
6072 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes; then :
6073 ac_have_decl=1
6074 else
6075 ac_have_decl=0
6078 cat >>confdefs.h <<_ACEOF
6079 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
6080 _ACEOF
6081 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
6082 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes; then :
6083 ac_have_decl=1
6084 else
6085 ac_have_decl=0
6088 cat >>confdefs.h <<_ACEOF
6089 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
6090 _ACEOF
6091 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
6092 if test "x$ac_cv_have_decl_fgetc_unlocked" = xyes; then :
6093 ac_have_decl=1
6094 else
6095 ac_have_decl=0
6098 cat >>confdefs.h <<_ACEOF
6099 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
6100 _ACEOF
6101 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
6102 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
6103 ac_have_decl=1
6104 else
6105 ac_have_decl=0
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
6110 _ACEOF
6111 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
6112 if test "x$ac_cv_have_decl_fileno_unlocked" = xyes; then :
6113 ac_have_decl=1
6114 else
6115 ac_have_decl=0
6118 cat >>confdefs.h <<_ACEOF
6119 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
6120 _ACEOF
6121 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
6122 if test "x$ac_cv_have_decl_fprintf_unlocked" = xyes; then :
6123 ac_have_decl=1
6124 else
6125 ac_have_decl=0
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
6130 _ACEOF
6131 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
6132 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes; then :
6133 ac_have_decl=1
6134 else
6135 ac_have_decl=0
6138 cat >>confdefs.h <<_ACEOF
6139 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
6140 _ACEOF
6141 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
6142 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes; then :
6143 ac_have_decl=1
6144 else
6145 ac_have_decl=0
6148 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
6150 _ACEOF
6151 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
6152 if test "x$ac_cv_have_decl_fread_unlocked" = xyes; then :
6153 ac_have_decl=1
6154 else
6155 ac_have_decl=0
6158 cat >>confdefs.h <<_ACEOF
6159 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
6160 _ACEOF
6161 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
6162 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes; then :
6163 ac_have_decl=1
6164 else
6165 ac_have_decl=0
6168 cat >>confdefs.h <<_ACEOF
6169 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
6170 _ACEOF
6171 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
6172 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes; then :
6173 ac_have_decl=1
6174 else
6175 ac_have_decl=0
6178 cat >>confdefs.h <<_ACEOF
6179 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
6180 _ACEOF
6181 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6182 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
6183 ac_have_decl=1
6184 else
6185 ac_have_decl=0
6188 cat >>confdefs.h <<_ACEOF
6189 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6190 _ACEOF
6191 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
6192 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes; then :
6193 ac_have_decl=1
6194 else
6195 ac_have_decl=0
6198 cat >>confdefs.h <<_ACEOF
6199 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
6200 _ACEOF
6201 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
6202 if test "x$ac_cv_have_decl_putc_unlocked" = xyes; then :
6203 ac_have_decl=1
6204 else
6205 ac_have_decl=0
6208 cat >>confdefs.h <<_ACEOF
6209 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
6210 _ACEOF
6213 # Checks for library functions.
6214 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6215 # for constant arguments. Useless!
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6217 $as_echo_n "checking for working alloca.h... " >&6; }
6218 if ${ac_cv_working_alloca_h+:} false; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 #include <alloca.h>
6225 main ()
6227 char *p = (char *) alloca (2 * sizeof (int));
6228 if (p) return 0;
6230 return 0;
6232 _ACEOF
6233 if ac_fn_c_try_link "$LINENO"; then :
6234 ac_cv_working_alloca_h=yes
6235 else
6236 ac_cv_working_alloca_h=no
6238 rm -f core conftest.err conftest.$ac_objext \
6239 conftest$ac_exeext conftest.$ac_ext
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6242 $as_echo "$ac_cv_working_alloca_h" >&6; }
6243 if test $ac_cv_working_alloca_h = yes; then
6245 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6250 $as_echo_n "checking for alloca... " >&6; }
6251 if ${ac_cv_func_alloca_works+:} false; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #ifdef __GNUC__
6257 # define alloca __builtin_alloca
6258 #else
6259 # ifdef _MSC_VER
6260 # include <malloc.h>
6261 # define alloca _alloca
6262 # else
6263 # ifdef HAVE_ALLOCA_H
6264 # include <alloca.h>
6265 # else
6266 # ifdef _AIX
6267 #pragma alloca
6268 # else
6269 # ifndef alloca /* predefined by HP cc +Olibcalls */
6270 void *alloca (size_t);
6271 # endif
6272 # endif
6273 # endif
6274 # endif
6275 #endif
6278 main ()
6280 char *p = (char *) alloca (1);
6281 if (p) return 0;
6283 return 0;
6285 _ACEOF
6286 if ac_fn_c_try_link "$LINENO"; then :
6287 ac_cv_func_alloca_works=yes
6288 else
6289 ac_cv_func_alloca_works=no
6291 rm -f core conftest.err conftest.$ac_objext \
6292 conftest$ac_exeext conftest.$ac_ext
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6295 $as_echo "$ac_cv_func_alloca_works" >&6; }
6297 if test $ac_cv_func_alloca_works = yes; then
6299 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6301 else
6302 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6303 # that cause trouble. Some versions do not even contain alloca or
6304 # contain a buggy version. If you still want to use their alloca,
6305 # use ar to extract alloca.o from them instead of compiling alloca.c.
6307 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6309 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6313 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6314 if ${ac_cv_os_cray+:} false; then :
6315 $as_echo_n "(cached) " >&6
6316 else
6317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #if defined CRAY && ! defined CRAY2
6320 webecray
6321 #else
6322 wenotbecray
6323 #endif
6325 _ACEOF
6326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6327 $EGREP "webecray" >/dev/null 2>&1; then :
6328 ac_cv_os_cray=yes
6329 else
6330 ac_cv_os_cray=no
6332 rm -f conftest*
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6336 $as_echo "$ac_cv_os_cray" >&6; }
6337 if test $ac_cv_os_cray = yes; then
6338 for ac_func in _getb67 GETB67 getb67; do
6339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6340 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6341 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6343 cat >>confdefs.h <<_ACEOF
6344 #define CRAY_STACKSEG_END $ac_func
6345 _ACEOF
6347 break
6350 done
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6354 $as_echo_n "checking stack direction for C alloca... " >&6; }
6355 if ${ac_cv_c_stack_direction+:} false; then :
6356 $as_echo_n "(cached) " >&6
6357 else
6358 if test "$cross_compiling" = yes; then :
6359 ac_cv_c_stack_direction=0
6360 else
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6363 $ac_includes_default
6365 find_stack_direction (int *addr, int depth)
6367 int dir, dummy = 0;
6368 if (! addr)
6369 addr = &dummy;
6370 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6371 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6372 return dir + dummy;
6376 main (int argc, char **argv)
6378 return find_stack_direction (0, argc + !argv + 20) < 0;
6380 _ACEOF
6381 if ac_fn_c_try_run "$LINENO"; then :
6382 ac_cv_c_stack_direction=1
6383 else
6384 ac_cv_c_stack_direction=-1
6386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6387 conftest.$ac_objext conftest.beam conftest.$ac_ext
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6392 $as_echo "$ac_cv_c_stack_direction" >&6; }
6393 cat >>confdefs.h <<_ACEOF
6394 #define STACK_DIRECTION $ac_cv_c_stack_direction
6395 _ACEOF
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6401 $as_echo_n "checking for ANSI C header files... " >&6; }
6402 if ${ac_cv_header_stdc+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6406 /* end confdefs.h. */
6407 #include <stdlib.h>
6408 #include <stdarg.h>
6409 #include <string.h>
6410 #include <float.h>
6413 main ()
6417 return 0;
6419 _ACEOF
6420 if ac_fn_c_try_compile "$LINENO"; then :
6421 ac_cv_header_stdc=yes
6422 else
6423 ac_cv_header_stdc=no
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6427 if test $ac_cv_header_stdc = yes; then
6428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 #include <string.h>
6433 _ACEOF
6434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6435 $EGREP "memchr" >/dev/null 2>&1; then :
6437 else
6438 ac_cv_header_stdc=no
6440 rm -f conftest*
6444 if test $ac_cv_header_stdc = yes; then
6445 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447 /* end confdefs.h. */
6448 #include <stdlib.h>
6450 _ACEOF
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "free" >/dev/null 2>&1; then :
6454 else
6455 ac_cv_header_stdc=no
6457 rm -f conftest*
6461 if test $ac_cv_header_stdc = yes; then
6462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6463 if test "$cross_compiling" = yes; then :
6465 else
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #include <ctype.h>
6469 #include <stdlib.h>
6470 #if ((' ' & 0x0FF) == 0x020)
6471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6473 #else
6474 # define ISLOWER(c) \
6475 (('a' <= (c) && (c) <= 'i') \
6476 || ('j' <= (c) && (c) <= 'r') \
6477 || ('s' <= (c) && (c) <= 'z'))
6478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6479 #endif
6481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6483 main ()
6485 int i;
6486 for (i = 0; i < 256; i++)
6487 if (XOR (islower (i), ISLOWER (i))
6488 || toupper (i) != TOUPPER (i))
6489 return 2;
6490 return 0;
6492 _ACEOF
6493 if ac_fn_c_try_run "$LINENO"; then :
6495 else
6496 ac_cv_header_stdc=no
6498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6499 conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6505 $as_echo "$ac_cv_header_stdc" >&6; }
6506 if test $ac_cv_header_stdc = yes; then
6508 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6514 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6515 if ${am_cv_langinfo_codeset+:} false; then :
6516 $as_echo_n "(cached) " >&6
6517 else
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6520 #include <langinfo.h>
6522 main ()
6524 char* cs = nl_langinfo(CODESET);
6526 return 0;
6528 _ACEOF
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 am_cv_langinfo_codeset=yes
6531 else
6532 am_cv_langinfo_codeset=no
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6539 $as_echo "$am_cv_langinfo_codeset" >&6; }
6540 if test $am_cv_langinfo_codeset = yes; then
6542 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6546 # If we haven't got the data from the intl directory,
6547 # assume NLS is disabled.
6548 USE_NLS=no
6549 LIBINTL=
6550 LIBINTL_DEP=
6551 INCINTL=
6552 XGETTEXT=
6553 GMSGFMT=
6554 POSUB=
6556 if test -f ../intl/config.intl; then
6557 . ../intl/config.intl
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6560 $as_echo_n "checking whether NLS is requested... " >&6; }
6561 if test x"$USE_NLS" != xyes; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6566 $as_echo "yes" >&6; }
6568 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6572 $as_echo_n "checking for catalogs to be installed... " >&6; }
6573 # Look for .po and .gmo files in the source directory.
6574 CATALOGS=
6575 XLINGUAS=
6576 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6577 # If there aren't any .gmo files the shell will give us the
6578 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6579 # weeded out.
6580 case "$cat" in *\**)
6581 continue;;
6582 esac
6583 # The quadruple backslash is collapsed to a double backslash
6584 # by the backticks, then collapsed again by the double quotes,
6585 # leaving us with one backslash in the sed expression (right
6586 # before the dot that mustn't act as a wildcard).
6587 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6588 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6589 # The user is allowed to set LINGUAS to a list of languages to
6590 # install catalogs for. If it's empty that means "all of them."
6591 if test "x$LINGUAS" = x; then
6592 CATALOGS="$CATALOGS $cat"
6593 XLINGUAS="$XLINGUAS $lang"
6594 else
6595 case "$LINGUAS" in *$lang*)
6596 CATALOGS="$CATALOGS $cat"
6597 XLINGUAS="$XLINGUAS $lang"
6599 esac
6601 done
6602 LINGUAS="$XLINGUAS"
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6604 $as_echo "$LINGUAS" >&6; }
6607 DATADIRNAME=share
6609 INSTOBJEXT=.mo
6611 GENCAT=gencat
6613 CATOBJEXT=.gmo
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6618 $as_echo_n "checking for uchar... " >&6; }
6619 if ${gcc_cv_type_uchar+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6625 #include <sys/types.h>
6628 main ()
6630 if ((uchar *)0) return 0;
6631 if (sizeof(uchar)) return 0;
6633 return 0;
6635 _ACEOF
6636 if ac_fn_c_try_compile "$LINENO"; then :
6637 ac_cv_type_uchar=yes
6638 else
6639 ac_cv_type_uchar=no
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6644 $as_echo "$gcc_cv_type_uchar" >&6; }
6645 if test $ac_cv_type_uchar = yes; then
6647 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6651 # The cast to long int works around a bug in the HP C Compiler
6652 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6653 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6654 # This bug is HP SR number 8606223364.
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ino_t" >&5
6656 $as_echo_n "checking size of ino_t... " >&6; }
6657 if ${ac_cv_sizeof_ino_t+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ino_t))" "ac_cv_sizeof_ino_t" "$ac_includes_default"; then :
6662 else
6663 if test "$ac_cv_type_ino_t" = yes; then
6664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6666 as_fn_error 77 "cannot compute sizeof (ino_t)
6667 See \`config.log' for more details" "$LINENO" 5; }
6668 else
6669 ac_cv_sizeof_ino_t=0
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ino_t" >&5
6675 $as_echo "$ac_cv_sizeof_ino_t" >&6; }
6679 cat >>confdefs.h <<_ACEOF
6680 #define SIZEOF_INO_T $ac_cv_sizeof_ino_t
6681 _ACEOF
6684 # The cast to long int works around a bug in the HP C Compiler
6685 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6686 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6687 # This bug is HP SR number 8606223364.
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5
6689 $as_echo_n "checking size of dev_t... " >&6; }
6690 if ${ac_cv_sizeof_dev_t+:} false; then :
6691 $as_echo_n "(cached) " >&6
6692 else
6693 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default"; then :
6695 else
6696 if test "$ac_cv_type_dev_t" = yes; then
6697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6699 as_fn_error 77 "cannot compute sizeof (dev_t)
6700 See \`config.log' for more details" "$LINENO" 5; }
6701 else
6702 ac_cv_sizeof_dev_t=0
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5
6708 $as_echo "$ac_cv_sizeof_dev_t" >&6; }
6712 cat >>confdefs.h <<_ACEOF
6713 #define SIZEOF_DEV_T $ac_cv_sizeof_dev_t
6714 _ACEOF
6718 # g++ on Solaris 10+ defines _XOPEN_SOURCE=600, which exposes a different
6719 # iconv() prototype.
6720 ac_ext=cpp
6721 ac_cpp='$CXXCPP $CPPFLAGS'
6722 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6727 if test "X$prefix" = "XNONE"; then
6728 acl_final_prefix="$ac_default_prefix"
6729 else
6730 acl_final_prefix="$prefix"
6732 if test "X$exec_prefix" = "XNONE"; then
6733 acl_final_exec_prefix='${prefix}'
6734 else
6735 acl_final_exec_prefix="$exec_prefix"
6737 acl_save_prefix="$prefix"
6738 prefix="$acl_final_prefix"
6739 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6740 prefix="$acl_save_prefix"
6743 # Check whether --with-gnu-ld was given.
6744 if test "${with_gnu_ld+set}" = set; then :
6745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6746 else
6747 with_gnu_ld=no
6750 # Prepare PATH_SEPARATOR.
6751 # The user is always right.
6752 if test "${PATH_SEPARATOR+set}" != set; then
6753 echo "#! /bin/sh" >conf$$.sh
6754 echo "exit 0" >>conf$$.sh
6755 chmod +x conf$$.sh
6756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6757 PATH_SEPARATOR=';'
6758 else
6759 PATH_SEPARATOR=:
6761 rm -f conf$$.sh
6763 ac_prog=ld
6764 if test "$GCC" = yes; then
6765 # Check if gcc -print-prog-name=ld gives a path.
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6767 $as_echo_n "checking for ld used by GCC... " >&6; }
6768 case $host in
6769 *-*-mingw*)
6770 # gcc leaves a trailing carriage return which upsets mingw
6771 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6773 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6774 esac
6775 case $ac_prog in
6776 # Accept absolute paths.
6777 [\\/]* | [A-Za-z]:[\\/]*)
6778 re_direlt='/[^/][^/]*/\.\./'
6779 # Canonicalize the path of ld
6780 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6781 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6782 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6783 done
6784 test -z "$LD" && LD="$ac_prog"
6787 # If it fails, then pretend we aren't using GCC.
6788 ac_prog=ld
6791 # If it is relative, then search for the first ld in PATH.
6792 with_gnu_ld=unknown
6794 esac
6795 elif test "$with_gnu_ld" = yes; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6797 $as_echo_n "checking for GNU ld... " >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6800 $as_echo_n "checking for non-GNU ld... " >&6; }
6802 if ${acl_cv_path_LD+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -z "$LD"; then
6806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6807 for ac_dir in $PATH; do
6808 test -z "$ac_dir" && ac_dir=.
6809 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6810 acl_cv_path_LD="$ac_dir/$ac_prog"
6811 # Check to see if the program is GNU ld. I'd rather use --version,
6812 # but apparently some GNU ld's only accept -v.
6813 # Break only if it was the GNU/non-GNU ld that we prefer.
6814 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | $EGREP '(GNU|with BFD)' > /dev/null; then
6815 test "$with_gnu_ld" != no && break
6816 else
6817 test "$with_gnu_ld" != yes && break
6820 done
6821 IFS="$ac_save_ifs"
6822 else
6823 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6827 LD="$acl_cv_path_LD"
6828 if test -n "$LD"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6830 $as_echo "$LD" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 $as_echo "no" >&6; }
6835 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6837 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6838 if ${acl_cv_prog_gnu_ld+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6842 if $LD -v 2>&1 </dev/null | $EGREP '(GNU|with BFD)' 1>&5; then
6843 acl_cv_prog_gnu_ld=yes
6844 else
6845 acl_cv_prog_gnu_ld=no
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6849 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6850 with_gnu_ld=$acl_cv_prog_gnu_ld
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6855 $as_echo_n "checking for shared library run path origin... " >&6; }
6856 if ${acl_cv_rpath+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6860 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6861 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6862 . ./conftest.sh
6863 rm -f ./conftest.sh
6864 acl_cv_rpath=done
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6868 $as_echo "$acl_cv_rpath" >&6; }
6869 wl="$acl_cv_wl"
6870 libext="$acl_cv_libext"
6871 shlibext="$acl_cv_shlibext"
6872 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6873 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6874 hardcode_direct="$acl_cv_hardcode_direct"
6875 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6876 # Check whether --enable-rpath was given.
6877 if test "${enable_rpath+set}" = set; then :
6878 enableval=$enable_rpath; :
6879 else
6880 enable_rpath=yes
6890 use_additional=yes
6892 acl_save_prefix="$prefix"
6893 prefix="$acl_final_prefix"
6894 acl_save_exec_prefix="$exec_prefix"
6895 exec_prefix="$acl_final_exec_prefix"
6897 eval additional_includedir=\"$includedir\"
6898 eval additional_libdir=\"$libdir\"
6900 exec_prefix="$acl_save_exec_prefix"
6901 prefix="$acl_save_prefix"
6904 # Check whether --with-libiconv-prefix was given.
6905 if test "${with_libiconv_prefix+set}" = set; then :
6906 withval=$with_libiconv_prefix;
6907 if test "X$withval" = "Xno"; then
6908 use_additional=no
6909 else
6910 if test "X$withval" = "X"; then
6912 acl_save_prefix="$prefix"
6913 prefix="$acl_final_prefix"
6914 acl_save_exec_prefix="$exec_prefix"
6915 exec_prefix="$acl_final_exec_prefix"
6917 eval additional_includedir=\"$includedir\"
6918 eval additional_libdir=\"$libdir\"
6920 exec_prefix="$acl_save_exec_prefix"
6921 prefix="$acl_save_prefix"
6923 else
6924 additional_includedir="$withval/include"
6925 additional_libdir="$withval/lib"
6932 # Check whether --with-libiconv-type was given.
6933 if test "${with_libiconv_type+set}" = set; then :
6934 withval=$with_libiconv_type; with_libiconv_type=$withval
6935 else
6936 with_libiconv_type=auto
6939 lib_type=`eval echo \$with_libiconv_type`
6941 LIBICONV=
6942 LTLIBICONV=
6943 INCICONV=
6944 rpathdirs=
6945 ltrpathdirs=
6946 names_already_handled=
6947 names_next_round='iconv '
6948 while test -n "$names_next_round"; do
6949 names_this_round="$names_next_round"
6950 names_next_round=
6951 for name in $names_this_round; do
6952 already_handled=
6953 for n in $names_already_handled; do
6954 if test "$n" = "$name"; then
6955 already_handled=yes
6956 break
6958 done
6959 if test -z "$already_handled"; then
6960 names_already_handled="$names_already_handled $name"
6961 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6962 eval value=\"\$HAVE_LIB$uppername\"
6963 if test -n "$value"; then
6964 if test "$value" = yes; then
6965 eval value=\"\$LIB$uppername\"
6966 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6967 eval value=\"\$LTLIB$uppername\"
6968 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6969 else
6972 else
6973 found_dir=
6974 found_la=
6975 found_so=
6976 found_a=
6977 if test $use_additional = yes; then
6978 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext" && test x$lib_type != xstatic; then
6979 found_dir="$additional_libdir"
6980 found_so="$additional_libdir/lib$name.$shlibext"
6981 if test -f "$additional_libdir/lib$name.la"; then
6982 found_la="$additional_libdir/lib$name.la"
6984 elif test x$lib_type != xshared; then
6985 if test -f "$additional_libdir/lib$name.$libext"; then
6986 found_dir="$additional_libdir"
6987 found_a="$additional_libdir/lib$name.$libext"
6988 if test -f "$additional_libdir/lib$name.la"; then
6989 found_la="$additional_libdir/lib$name.la"
6994 if test "X$found_dir" = "X"; then
6995 for x in $LDFLAGS $LTLIBICONV; do
6997 acl_save_prefix="$prefix"
6998 prefix="$acl_final_prefix"
6999 acl_save_exec_prefix="$exec_prefix"
7000 exec_prefix="$acl_final_exec_prefix"
7001 eval x=\"$x\"
7002 exec_prefix="$acl_save_exec_prefix"
7003 prefix="$acl_save_prefix"
7005 case "$x" in
7006 -L*)
7007 dir=`echo "X$x" | sed -e 's/^X-L//'`
7008 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext" && test x$lib_type != xstatic; then
7009 found_dir="$dir"
7010 found_so="$dir/lib$name.$shlibext"
7011 if test -f "$dir/lib$name.la"; then
7012 found_la="$dir/lib$name.la"
7014 elif test x$lib_type != xshared; then
7015 if test -f "$dir/lib$name.$libext"; then
7016 found_dir="$dir"
7017 found_a="$dir/lib$name.$libext"
7018 if test -f "$dir/lib$name.la"; then
7019 found_la="$dir/lib$name.la"
7024 esac
7025 if test "X$found_dir" != "X"; then
7026 break
7028 done
7030 if test "X$found_dir" != "X"; then
7031 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7032 if test "X$found_so" != "X"; then
7033 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7034 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7035 else
7036 haveit=
7037 for x in $ltrpathdirs; do
7038 if test "X$x" = "X$found_dir"; then
7039 haveit=yes
7040 break
7042 done
7043 if test -z "$haveit"; then
7044 ltrpathdirs="$ltrpathdirs $found_dir"
7046 if test "$hardcode_direct" = yes; then
7047 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7048 else
7049 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7050 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7051 haveit=
7052 for x in $rpathdirs; do
7053 if test "X$x" = "X$found_dir"; then
7054 haveit=yes
7055 break
7057 done
7058 if test -z "$haveit"; then
7059 rpathdirs="$rpathdirs $found_dir"
7061 else
7062 haveit=
7063 for x in $LDFLAGS $LIBICONV; do
7065 acl_save_prefix="$prefix"
7066 prefix="$acl_final_prefix"
7067 acl_save_exec_prefix="$exec_prefix"
7068 exec_prefix="$acl_final_exec_prefix"
7069 eval x=\"$x\"
7070 exec_prefix="$acl_save_exec_prefix"
7071 prefix="$acl_save_prefix"
7073 if test "X$x" = "X-L$found_dir"; then
7074 haveit=yes
7075 break
7077 done
7078 if test -z "$haveit"; then
7079 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7081 if test "$hardcode_minus_L" != no; then
7082 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7083 else
7084 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7089 else
7090 if test "X$found_a" != "X"; then
7091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7092 else
7093 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7096 additional_includedir=
7097 case "$found_dir" in
7098 */lib | */lib/)
7099 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7100 additional_includedir="$basedir/include"
7102 esac
7103 if test "X$additional_includedir" != "X"; then
7104 if test "X$additional_includedir" != "X/usr/include"; then
7105 haveit=
7106 if test "X$additional_includedir" = "X/usr/local/include"; then
7107 if test -n "$GCC"; then
7108 case $host_os in
7109 linux*) haveit=yes;;
7110 esac
7113 if test -z "$haveit"; then
7114 for x in $CPPFLAGS $INCICONV; do
7116 acl_save_prefix="$prefix"
7117 prefix="$acl_final_prefix"
7118 acl_save_exec_prefix="$exec_prefix"
7119 exec_prefix="$acl_final_exec_prefix"
7120 eval x=\"$x\"
7121 exec_prefix="$acl_save_exec_prefix"
7122 prefix="$acl_save_prefix"
7124 if test "X$x" = "X-I$additional_includedir"; then
7125 haveit=yes
7126 break
7128 done
7129 if test -z "$haveit"; then
7130 if test -d "$additional_includedir"; then
7131 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7137 if test -n "$found_la"; then
7138 save_libdir="$libdir"
7139 case "$found_la" in
7140 */* | *\\*) . "$found_la" ;;
7141 *) . "./$found_la" ;;
7142 esac
7143 libdir="$save_libdir"
7144 for dep in $dependency_libs; do
7145 case "$dep" in
7146 -L*)
7147 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7148 if test "X$additional_libdir" != "X/usr/lib"; then
7149 haveit=
7150 if test "X$additional_libdir" = "X/usr/local/lib"; then
7151 if test -n "$GCC"; then
7152 case $host_os in
7153 linux*) haveit=yes;;
7154 esac
7157 if test -z "$haveit"; then
7158 haveit=
7159 for x in $LDFLAGS $LIBICONV; do
7161 acl_save_prefix="$prefix"
7162 prefix="$acl_final_prefix"
7163 acl_save_exec_prefix="$exec_prefix"
7164 exec_prefix="$acl_final_exec_prefix"
7165 eval x=\"$x\"
7166 exec_prefix="$acl_save_exec_prefix"
7167 prefix="$acl_save_prefix"
7169 if test "X$x" = "X-L$additional_libdir"; then
7170 haveit=yes
7171 break
7173 done
7174 if test -z "$haveit"; then
7175 if test -d "$additional_libdir"; then
7176 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7179 haveit=
7180 for x in $LDFLAGS $LTLIBICONV; do
7182 acl_save_prefix="$prefix"
7183 prefix="$acl_final_prefix"
7184 acl_save_exec_prefix="$exec_prefix"
7185 exec_prefix="$acl_final_exec_prefix"
7186 eval x=\"$x\"
7187 exec_prefix="$acl_save_exec_prefix"
7188 prefix="$acl_save_prefix"
7190 if test "X$x" = "X-L$additional_libdir"; then
7191 haveit=yes
7192 break
7194 done
7195 if test -z "$haveit"; then
7196 if test -d "$additional_libdir"; then
7197 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7203 -R*)
7204 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7205 if test "$enable_rpath" != no; then
7206 haveit=
7207 for x in $rpathdirs; do
7208 if test "X$x" = "X$dir"; then
7209 haveit=yes
7210 break
7212 done
7213 if test -z "$haveit"; then
7214 rpathdirs="$rpathdirs $dir"
7216 haveit=
7217 for x in $ltrpathdirs; do
7218 if test "X$x" = "X$dir"; then
7219 haveit=yes
7220 break
7222 done
7223 if test -z "$haveit"; then
7224 ltrpathdirs="$ltrpathdirs $dir"
7228 -l*)
7229 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7231 *.la)
7232 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7235 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7236 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7238 esac
7239 done
7241 else
7242 if test "x$lib_type" = "xauto" || test "x$lib_type" = "xshared"; then
7243 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7244 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7245 else
7246 LIBICONV="${LIBICONV}${LIBICONV:+ }-l:lib$name.$libext"
7247 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l:lib$name.$libext"
7252 done
7253 done
7254 if test "X$rpathdirs" != "X"; then
7255 if test -n "$hardcode_libdir_separator"; then
7256 alldirs=
7257 for found_dir in $rpathdirs; do
7258 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7259 done
7260 acl_save_libdir="$libdir"
7261 libdir="$alldirs"
7262 eval flag=\"$hardcode_libdir_flag_spec\"
7263 libdir="$acl_save_libdir"
7264 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7265 else
7266 for found_dir in $rpathdirs; do
7267 acl_save_libdir="$libdir"
7268 libdir="$found_dir"
7269 eval flag=\"$hardcode_libdir_flag_spec\"
7270 libdir="$acl_save_libdir"
7271 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7272 done
7275 if test "X$ltrpathdirs" != "X"; then
7276 for found_dir in $ltrpathdirs; do
7277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7278 done
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7288 $as_echo_n "checking for iconv... " >&6; }
7289 if ${am_cv_func_iconv+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7293 am_cv_func_iconv="no, consider installing GNU libiconv"
7294 am_cv_lib_iconv=no
7295 am_save_CPPFLAGS="$CPPFLAGS"
7296 CPPFLAGS="$CPPFLAGS $INCICONV"
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7298 /* end confdefs.h. */
7299 #include <stdlib.h>
7300 #include <iconv.h>
7302 main ()
7304 iconv_t cd = iconv_open("","");
7305 iconv(cd,NULL,NULL,NULL,NULL);
7306 iconv_close(cd);
7308 return 0;
7310 _ACEOF
7311 if ac_fn_cxx_try_link "$LINENO"; then :
7312 am_cv_func_iconv=yes
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 CPPFLAGS="$am_save_CPPFLAGS"
7318 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
7319 for _libs in .libs _libs; do
7320 am_save_CPPFLAGS="$CPPFLAGS"
7321 am_save_LIBS="$LIBS"
7322 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
7323 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #include <stdlib.h>
7327 #include <iconv.h>
7329 main ()
7331 iconv_t cd = iconv_open("","");
7332 iconv(cd,NULL,NULL,NULL,NULL);
7333 iconv_close(cd);
7335 return 0;
7337 _ACEOF
7338 if ac_fn_cxx_try_link "$LINENO"; then :
7339 INCICONV="-I../libiconv/include"
7340 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
7341 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
7342 am_cv_lib_iconv=yes
7343 am_cv_func_iconv=yes
7345 rm -f core conftest.err conftest.$ac_objext \
7346 conftest$ac_exeext conftest.$ac_ext
7347 CPPFLAGS="$am_save_CPPFLAGS"
7348 LIBS="$am_save_LIBS"
7349 if test "$am_cv_func_iconv" = "yes"; then
7350 break
7352 done
7355 if test "$am_cv_func_iconv" != yes; then
7356 am_save_CPPFLAGS="$CPPFLAGS"
7357 am_save_LIBS="$LIBS"
7358 CPPFLAGS="$CPPFLAGS $INCICONV"
7359 LIBS="$LIBS $LIBICONV"
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 #include <stdlib.h>
7363 #include <iconv.h>
7365 main ()
7367 iconv_t cd = iconv_open("","");
7368 iconv(cd,NULL,NULL,NULL,NULL);
7369 iconv_close(cd);
7371 return 0;
7373 _ACEOF
7374 if ac_fn_cxx_try_link "$LINENO"; then :
7375 am_cv_lib_iconv=yes
7376 am_cv_func_iconv=yes
7378 rm -f core conftest.err conftest.$ac_objext \
7379 conftest$ac_exeext conftest.$ac_ext
7380 CPPFLAGS="$am_save_CPPFLAGS"
7381 LIBS="$am_save_LIBS"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7386 $as_echo "$am_cv_func_iconv" >&6; }
7387 if test "$am_cv_func_iconv" = yes; then
7389 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7392 if test "$am_cv_lib_iconv" = yes; then
7394 for element in $INCICONV; do
7395 haveit=
7396 for x in $CPPFLAGS; do
7398 acl_save_prefix="$prefix"
7399 prefix="$acl_final_prefix"
7400 acl_save_exec_prefix="$exec_prefix"
7401 exec_prefix="$acl_final_exec_prefix"
7402 eval x=\"$x\"
7403 exec_prefix="$acl_save_exec_prefix"
7404 prefix="$acl_save_prefix"
7406 if test "X$x" = "X$element"; then
7407 haveit=yes
7408 break
7410 done
7411 if test -z "$haveit"; then
7412 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7414 done
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7417 $as_echo_n "checking how to link with libiconv... " >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7419 $as_echo "$LIBICONV" >&6; }
7420 else
7421 LIBICONV=
7422 LTLIBICONV=
7427 if test "$am_cv_func_iconv" = yes; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7429 $as_echo_n "checking for iconv declaration... " >&6; }
7430 if ${am_cv_proto_iconv+:} false; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7437 #include <stdlib.h>
7438 #include <iconv.h>
7439 extern
7440 #ifdef __cplusplus
7442 #endif
7443 #if defined(__STDC__) || defined(__cplusplus)
7444 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7445 #else
7446 size_t iconv();
7447 #endif
7450 main ()
7454 return 0;
7456 _ACEOF
7457 if ac_fn_cxx_try_compile "$LINENO"; then :
7458 am_cv_proto_iconv_arg1=""
7459 else
7460 am_cv_proto_iconv_arg1="const"
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7466 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7468 }$am_cv_proto_iconv" >&5
7469 $as_echo "${ac_t:-
7470 }$am_cv_proto_iconv" >&6; }
7472 cat >>confdefs.h <<_ACEOF
7473 #define ICONV_CONST $am_cv_proto_iconv_arg1
7474 _ACEOF
7478 ac_ext=c
7479 ac_cpp='$CPP $CPPFLAGS'
7480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485 # More defines and substitutions.
7486 PACKAGE="$PACKAGE_TARNAME"
7488 cat >>confdefs.h <<_ACEOF
7489 #define PACKAGE "$PACKAGE"
7490 _ACEOF
7494 if test "x$enable_nls" != xno; then
7495 USED_CATALOGS='$(CATALOGS)'
7496 else
7497 USED_CATALOGS=
7501 # Check whether --enable-maintainer-mode was given.
7502 if test "${enable_maintainer_mode+set}" = set; then :
7503 enableval=$enable_maintainer_mode;
7504 else
7505 enable_maintainer_mode=no
7509 if test "x$enable_maintainer_mode" = xno; then
7510 MAINT='#'
7511 else
7512 MAINT=
7516 # Enable expensive internal checks
7517 is_release=
7518 if test -f $srcdir/../gcc/DEV-PHASE \
7519 && test x"`cat $srcdir/../gcc/DEV-PHASE`" != xexperimental; then
7520 is_release=yes
7523 # Check whether --enable-checking was given.
7524 if test "${enable_checking+set}" = set; then :
7525 enableval=$enable_checking; ac_checking_flags="${enableval}"
7526 else
7528 # Determine the default checks.
7529 if test x$is_release = x ; then
7530 ac_checking_flags=yes
7531 else
7532 ac_checking_flags=release
7536 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
7537 for check in release $ac_checking_flags
7539 case $check in
7540 # these set all the flags to specific states
7541 yes|all) ac_checking=1 ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7542 no|none) ac_checking= ; ac_assert_checking= ; ac_valgrind_checking= ;;
7543 release) ac_checking= ; ac_assert_checking=1 ; ac_valgrind_checking= ;;
7544 # these enable particular checks
7545 assert) ac_assert_checking=1 ;;
7546 misc) ac_checking=1 ;;
7547 valgrind) ac_valgrind_checking=1 ;;
7548 # accept
7549 *) ;;
7550 esac
7551 done
7552 IFS="$ac_save_IFS"
7554 if test x$ac_checking != x ; then
7556 $as_echo "#define CHECKING_P 1" >>confdefs.h
7558 else
7559 $as_echo "#define CHECKING_P 0" >>confdefs.h
7563 if test x$ac_assert_checking != x ; then
7565 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
7569 if test x$ac_valgrind_checking != x ; then
7571 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
7575 # Check whether --enable-canonical-system-headers was given.
7576 if test "${enable_canonical_system_headers+set}" = set; then :
7577 enableval=$enable_canonical_system_headers;
7578 else
7579 enable_canonical_system_headers=yes
7582 if test $enable_canonical_system_headers != no; then
7584 $as_echo "#define ENABLE_CANONICAL_SYSTEM_HEADERS 1" >>confdefs.h
7588 case $target in
7589 i?86-* | x86_64-*)
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7594 main ()
7596 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7598 return 0;
7600 _ACEOF
7601 if ac_fn_c_try_compile "$LINENO"; then :
7603 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 esac
7609 # Enable --enable-host-shared.
7610 # Check whether --enable-host-shared was given.
7611 if test "${enable_host_shared+set}" = set; then :
7612 enableval=$enable_host_shared;
7617 # Enable --enable-host-pie.
7618 # Check whether --enable-host-pie was given.
7619 if test "${enable_host_pie+set}" = set; then :
7620 enableval=$enable_host_pie;
7625 if test x$enable_host_shared = xyes; then
7626 PICFLAG=-fPIC
7627 elif test x$enable_host_pie = xyes; then
7628 PICFLAG=-fPIE
7629 else
7630 PICFLAG=
7635 # Enable Intel CET on Intel CET enabled host if jit is enabled.
7636 # Check whether --enable-cet was given.
7637 if test "${enable_cet+set}" = set; then :
7638 enableval=$enable_cet;
7639 case "$enableval" in
7640 yes|no|auto) ;;
7641 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
7642 esac
7644 else
7645 enable_cet=auto
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
7650 $as_echo_n "checking for CET support... " >&6; }
7652 case "$host" in
7653 i[34567]86-*-linux* | x86_64-*-linux*)
7654 may_have_cet=yes
7655 cet_save_CFLAGS="$CFLAGS"
7656 CFLAGS="$CFLAGS -fcf-protection"
7657 case "$enable_cet" in
7658 auto)
7659 # Check if target supports multi-byte NOPs
7660 # and if compiler and assembler support CET.
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7665 main ()
7668 #if !defined(__SSE2__)
7669 #error target does not support multi-byte NOPs
7670 #else
7671 asm ("setssbsy");
7672 #endif
7675 return 0;
7677 _ACEOF
7678 if ac_fn_c_try_compile "$LINENO"; then :
7679 enable_cet=yes
7680 else
7681 enable_cet=no
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 yes)
7686 # Check if compiler and assembler support CET.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7691 main ()
7693 asm ("setssbsy");
7695 return 0;
7697 _ACEOF
7698 if ac_fn_c_try_compile "$LINENO"; then :
7699 support_cet=yes
7700 else
7701 support_cet=no
7703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7704 if test $support_cet = "no"; then
7705 if test x$enable_bootstrap != xno \
7706 && test -z "${with_build_subdir}" \
7707 && (test ! -f ../stage_current \
7708 || test `cat ../stage_current` != "stage1"); then
7709 # Require CET support only for the final GCC build.
7710 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
7711 else
7712 # Don't enable CET without CET support for non-bootstrap
7713 # build, in stage1 nor for build support.
7714 enable_cet=no
7718 esac
7719 CFLAGS="$cet_save_CFLAGS"
7722 may_have_cet=no
7723 enable_cet=no
7725 esac
7727 cet_save_CFLAGS="$CFLAGS"
7728 CFLAGS="$CFLAGS -fcf-protection=none"
7729 cet_save_LDFLAGS="$LDFLAGS"
7730 LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
7731 if test x$may_have_cet = xyes; then
7732 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
7733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734 /* end confdefs.h. */
7737 main ()
7739 return 0;
7741 return 0;
7743 _ACEOF
7744 if ac_fn_c_try_link "$LINENO"; then :
7745 may_have_cet=yes
7746 else
7747 may_have_cet=no
7749 rm -f core conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext
7753 if test x$may_have_cet = xyes; then
7754 if test x$cross_compiling = xno; then
7755 if test "$cross_compiling" = yes; then :
7756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7758 as_fn_error $? "cannot run test program while cross compiling
7759 See \`config.log' for more details" "$LINENO" 5; }
7760 else
7761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 /* end confdefs.h. */
7765 main ()
7767 asm ("endbr32");
7768 return 0;
7771 _ACEOF
7772 if ac_fn_c_try_run "$LINENO"; then :
7773 have_multi_byte_nop=yes
7774 else
7775 have_multi_byte_nop=no
7777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7778 conftest.$ac_objext conftest.beam conftest.$ac_ext
7781 have_cet=no
7782 if test x$have_multi_byte_nop = xyes; then
7783 if test "$cross_compiling" = yes; then :
7784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7786 as_fn_error $? "cannot run test program while cross compiling
7787 See \`config.log' for more details" "$LINENO" 5; }
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7792 static void
7793 foo (void)
7797 static void
7798 __attribute__ ((noinline, noclone))
7799 xxx (void (*f) (void))
7801 f ();
7804 static void
7805 __attribute__ ((noinline, noclone))
7806 bar (void)
7808 xxx (foo);
7812 main ()
7814 bar ();
7815 return 0;
7818 _ACEOF
7819 if ac_fn_c_try_run "$LINENO"; then :
7820 have_cet=no
7821 else
7822 have_cet=yes
7824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7825 conftest.$ac_objext conftest.beam conftest.$ac_ext
7829 if test x$enable_cet = xno -a x$have_cet = xyes; then
7830 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
7833 else
7834 # Enable CET in cross compiler if possible so that it will run on both
7835 # CET and non-CET hosts.
7836 have_cet=yes
7838 if test x$enable_cet = xyes; then
7839 CET_HOST_FLAGS="-fcf-protection"
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7841 $as_echo "yes" >&6; }
7842 else
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7846 CFLAGS="$cet_save_CFLAGS"
7847 LDFLAGS="$cet_save_LDFLAGS"
7849 case x$enable_languages in
7850 *jit*)
7853 CET_HOST_FLAGS=
7855 esac
7858 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
7859 if test "x$ac_cv_header_valgrind_h" = xyes; then :
7860 have_valgrind_h=yes
7861 else
7862 have_valgrind_h=no
7867 # It is certainly possible that there's valgrind but no valgrind.h.
7868 # GCC relies on making annotations so we must have both.
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
7870 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 #include <valgrind/memcheck.h>
7874 #ifndef VALGRIND_DISCARD
7875 #error VALGRIND_DISCARD not defined
7876 #endif
7877 _ACEOF
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879 gcc_cv_header_valgrind_memcheck_h=yes
7880 else
7881 gcc_cv_header_valgrind_memcheck_h=no
7883 rm -f conftest.err conftest.i conftest.$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
7885 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
7887 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h. */
7890 #include <memcheck.h>
7891 #ifndef VALGRIND_DISCARD
7892 #error VALGRIND_DISCARD not defined
7893 #endif
7894 _ACEOF
7895 if ac_fn_c_try_cpp "$LINENO"; then :
7896 gcc_cv_header_memcheck_h=yes
7897 else
7898 gcc_cv_header_memcheck_h=no
7900 rm -f conftest.err conftest.i conftest.$ac_ext
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
7902 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
7903 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
7905 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
7908 if test $gcc_cv_header_memcheck_h = yes; then
7910 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
7914 # Check whether --enable-valgrind-annotations was given.
7915 if test "${enable_valgrind_annotations+set}" = set; then :
7916 enableval=$enable_valgrind_annotations;
7917 else
7918 enable_valgrind_annotations=no
7921 if test x$enable_valgrind_annotations != xno \
7922 || test x$ac_valgrind_checking != x; then
7923 if (test $have_valgrind_h = no \
7924 && test $gcc_cv_header_memcheck_h = no \
7925 && test $gcc_cv_header_valgrind_memcheck_h = no); then
7926 as_fn_error $? "*** valgrind annotations requested, but" "$LINENO" 5
7927 as_fn_error $? "*** Can't find valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
7930 $as_echo "#define ENABLE_VALGRIND_ANNOTATIONS 1" >>confdefs.h
7934 # Output.
7936 ac_config_headers="$ac_config_headers config.h:config.in"
7938 ac_config_files="$ac_config_files Makefile"
7940 cat >confcache <<\_ACEOF
7941 # This file is a shell script that caches the results of configure
7942 # tests run on this system so they can be shared between configure
7943 # scripts and configure runs, see configure's option --config-cache.
7944 # It is not useful on other systems. If it contains results you don't
7945 # want to keep, you may remove or edit it.
7947 # config.status only pays attention to the cache file if you give it
7948 # the --recheck option to rerun configure.
7950 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7951 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7952 # following values.
7954 _ACEOF
7956 # The following way of writing the cache mishandles newlines in values,
7957 # but we know of no workaround that is simple, portable, and efficient.
7958 # So, we kill variables containing newlines.
7959 # Ultrix sh set writes to stderr and can't be redirected directly,
7960 # and sets the high bit in the cache file unless we assign to the vars.
7962 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7963 eval ac_val=\$$ac_var
7964 case $ac_val in #(
7965 *${as_nl}*)
7966 case $ac_var in #(
7967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7968 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7969 esac
7970 case $ac_var in #(
7971 _ | IFS | as_nl) ;; #(
7972 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7973 *) { eval $ac_var=; unset $ac_var;} ;;
7974 esac ;;
7975 esac
7976 done
7978 (set) 2>&1 |
7979 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7980 *${as_nl}ac_space=\ *)
7981 # `set' does not quote correctly, so add quotes: double-quote
7982 # substitution turns \\\\ into \\, and sed turns \\ into \.
7983 sed -n \
7984 "s/'/'\\\\''/g;
7985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7986 ;; #(
7988 # `set' quotes correctly as required by POSIX, so do not add quotes.
7989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7991 esac |
7992 sort
7994 sed '
7995 /^ac_cv_env_/b end
7996 t clear
7997 :clear
7998 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7999 t end
8000 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8001 :end' >>confcache
8002 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8003 if test -w "$cache_file"; then
8004 if test "x$cache_file" != "x/dev/null"; then
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8006 $as_echo "$as_me: updating cache $cache_file" >&6;}
8007 if test ! -f "$cache_file" || test -h "$cache_file"; then
8008 cat confcache >"$cache_file"
8009 else
8010 case $cache_file in #(
8011 */* | ?:*)
8012 mv -f confcache "$cache_file"$$ &&
8013 mv -f "$cache_file"$$ "$cache_file" ;; #(
8015 mv -f confcache "$cache_file" ;;
8016 esac
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8021 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8024 rm -f confcache
8026 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8027 # Let make expand exec_prefix.
8028 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8030 DEFS=-DHAVE_CONFIG_H
8032 ac_libobjs=
8033 ac_ltlibobjs=
8035 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8036 # 1. Remove the extension, and $U if already installed.
8037 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8038 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8039 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8040 # will be set to the directory where LIBOBJS objects are built.
8041 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8042 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8043 done
8044 LIBOBJS=$ac_libobjs
8046 LTLIBOBJS=$ac_ltlibobjs
8051 : "${CONFIG_STATUS=./config.status}"
8052 ac_write_fail=0
8053 ac_clean_files_save=$ac_clean_files
8054 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8056 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8057 as_write_fail=0
8058 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8059 #! $SHELL
8060 # Generated by $as_me.
8061 # Run this file to recreate the current configuration.
8062 # Compiler output produced by configure, useful for debugging
8063 # configure, is in config.log if it exists.
8065 debug=false
8066 ac_cs_recheck=false
8067 ac_cs_silent=false
8069 SHELL=\${CONFIG_SHELL-$SHELL}
8070 export SHELL
8071 _ASEOF
8072 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8073 ## -------------------- ##
8074 ## M4sh Initialization. ##
8075 ## -------------------- ##
8077 # Be more Bourne compatible
8078 DUALCASE=1; export DUALCASE # for MKS sh
8079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8080 emulate sh
8081 NULLCMD=:
8082 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8083 # is contrary to our usage. Disable this feature.
8084 alias -g '${1+"$@"}'='"$@"'
8085 setopt NO_GLOB_SUBST
8086 else
8087 case `(set -o) 2>/dev/null` in #(
8088 *posix*) :
8089 set -o posix ;; #(
8090 *) :
8092 esac
8096 as_nl='
8098 export as_nl
8099 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8100 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8101 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8102 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8103 # Prefer a ksh shell builtin over an external printf program on Solaris,
8104 # but without wasting forks for bash or zsh.
8105 if test -z "$BASH_VERSION$ZSH_VERSION" \
8106 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8107 as_echo='print -r --'
8108 as_echo_n='print -rn --'
8109 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8110 as_echo='printf %s\n'
8111 as_echo_n='printf %s'
8112 else
8113 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8114 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8115 as_echo_n='/usr/ucb/echo -n'
8116 else
8117 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8118 as_echo_n_body='eval
8119 arg=$1;
8120 case $arg in #(
8121 *"$as_nl"*)
8122 expr "X$arg" : "X\\(.*\\)$as_nl";
8123 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8124 esac;
8125 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8127 export as_echo_n_body
8128 as_echo_n='sh -c $as_echo_n_body as_echo'
8130 export as_echo_body
8131 as_echo='sh -c $as_echo_body as_echo'
8134 # The user is always right.
8135 if test "${PATH_SEPARATOR+set}" != set; then
8136 PATH_SEPARATOR=:
8137 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8138 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8139 PATH_SEPARATOR=';'
8144 # IFS
8145 # We need space, tab and new line, in precisely that order. Quoting is
8146 # there to prevent editors from complaining about space-tab.
8147 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8148 # splitting by setting IFS to empty value.)
8149 IFS=" "" $as_nl"
8151 # Find who we are. Look in the path if we contain no directory separator.
8152 as_myself=
8153 case $0 in #((
8154 *[\\/]* ) as_myself=$0 ;;
8155 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
8160 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8161 done
8162 IFS=$as_save_IFS
8165 esac
8166 # We did not find ourselves, most probably we were run as `sh COMMAND'
8167 # in which case we are not to be found in the path.
8168 if test "x$as_myself" = x; then
8169 as_myself=$0
8171 if test ! -f "$as_myself"; then
8172 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8173 exit 1
8176 # Unset variables that we do not need and which cause bugs (e.g. in
8177 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8178 # suppresses any "Segmentation fault" message there. '((' could
8179 # trigger a bug in pdksh 5.2.14.
8180 for as_var in BASH_ENV ENV MAIL MAILPATH
8181 do eval test x\${$as_var+set} = xset \
8182 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8183 done
8184 PS1='$ '
8185 PS2='> '
8186 PS4='+ '
8188 # NLS nuisances.
8189 LC_ALL=C
8190 export LC_ALL
8191 LANGUAGE=C
8192 export LANGUAGE
8194 # CDPATH.
8195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8198 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8199 # ----------------------------------------
8200 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8201 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8202 # script with STATUS, using 1 if that was 0.
8203 as_fn_error ()
8205 as_status=$1; test $as_status -eq 0 && as_status=1
8206 if test "$4"; then
8207 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8208 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8210 $as_echo "$as_me: error: $2" >&2
8211 as_fn_exit $as_status
8212 } # as_fn_error
8215 # as_fn_set_status STATUS
8216 # -----------------------
8217 # Set $? to STATUS, without forking.
8218 as_fn_set_status ()
8220 return $1
8221 } # as_fn_set_status
8223 # as_fn_exit STATUS
8224 # -----------------
8225 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8226 as_fn_exit ()
8228 set +e
8229 as_fn_set_status $1
8230 exit $1
8231 } # as_fn_exit
8233 # as_fn_unset VAR
8234 # ---------------
8235 # Portably unset VAR.
8236 as_fn_unset ()
8238 { eval $1=; unset $1;}
8240 as_unset=as_fn_unset
8241 # as_fn_append VAR VALUE
8242 # ----------------------
8243 # Append the text in VALUE to the end of the definition contained in VAR. Take
8244 # advantage of any shell optimizations that allow amortized linear growth over
8245 # repeated appends, instead of the typical quadratic growth present in naive
8246 # implementations.
8247 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8248 eval 'as_fn_append ()
8250 eval $1+=\$2
8252 else
8253 as_fn_append ()
8255 eval $1=\$$1\$2
8257 fi # as_fn_append
8259 # as_fn_arith ARG...
8260 # ------------------
8261 # Perform arithmetic evaluation on the ARGs, and store the result in the
8262 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8263 # must be portable across $(()) and expr.
8264 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8265 eval 'as_fn_arith ()
8267 as_val=$(( $* ))
8269 else
8270 as_fn_arith ()
8272 as_val=`expr "$@" || test $? -eq 1`
8274 fi # as_fn_arith
8277 if expr a : '\(a\)' >/dev/null 2>&1 &&
8278 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8279 as_expr=expr
8280 else
8281 as_expr=false
8284 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8285 as_basename=basename
8286 else
8287 as_basename=false
8290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8291 as_dirname=dirname
8292 else
8293 as_dirname=false
8296 as_me=`$as_basename -- "$0" ||
8297 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8298 X"$0" : 'X\(//\)$' \| \
8299 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8300 $as_echo X/"$0" |
8301 sed '/^.*\/\([^/][^/]*\)\/*$/{
8302 s//\1/
8305 /^X\/\(\/\/\)$/{
8306 s//\1/
8309 /^X\/\(\/\).*/{
8310 s//\1/
8313 s/.*/./; q'`
8315 # Avoid depending upon Character Ranges.
8316 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8317 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8318 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8319 as_cr_digits='0123456789'
8320 as_cr_alnum=$as_cr_Letters$as_cr_digits
8322 ECHO_C= ECHO_N= ECHO_T=
8323 case `echo -n x` in #(((((
8324 -n*)
8325 case `echo 'xy\c'` in
8326 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8327 xy) ECHO_C='\c';;
8328 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8329 ECHO_T=' ';;
8330 esac;;
8332 ECHO_N='-n';;
8333 esac
8335 rm -f conf$$ conf$$.exe conf$$.file
8336 if test -d conf$$.dir; then
8337 rm -f conf$$.dir/conf$$.file
8338 else
8339 rm -f conf$$.dir
8340 mkdir conf$$.dir 2>/dev/null
8342 if (echo >conf$$.file) 2>/dev/null; then
8343 if ln -s conf$$.file conf$$ 2>/dev/null; then
8344 as_ln_s='ln -s'
8345 # ... but there are two gotchas:
8346 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8347 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8348 # In both cases, we have to default to `cp -pR'.
8349 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8350 as_ln_s='cp -pR'
8351 elif ln conf$$.file conf$$ 2>/dev/null; then
8352 as_ln_s=ln
8353 else
8354 as_ln_s='cp -pR'
8356 else
8357 as_ln_s='cp -pR'
8359 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8360 rmdir conf$$.dir 2>/dev/null
8363 # as_fn_mkdir_p
8364 # -------------
8365 # Create "$as_dir" as a directory, including parents if necessary.
8366 as_fn_mkdir_p ()
8369 case $as_dir in #(
8370 -*) as_dir=./$as_dir;;
8371 esac
8372 test -d "$as_dir" || eval $as_mkdir_p || {
8373 as_dirs=
8374 while :; do
8375 case $as_dir in #(
8376 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8377 *) as_qdir=$as_dir;;
8378 esac
8379 as_dirs="'$as_qdir' $as_dirs"
8380 as_dir=`$as_dirname -- "$as_dir" ||
8381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8382 X"$as_dir" : 'X\(//\)[^/]' \| \
8383 X"$as_dir" : 'X\(//\)$' \| \
8384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8385 $as_echo X"$as_dir" |
8386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8387 s//\1/
8390 /^X\(\/\/\)[^/].*/{
8391 s//\1/
8394 /^X\(\/\/\)$/{
8395 s//\1/
8398 /^X\(\/\).*/{
8399 s//\1/
8402 s/.*/./; q'`
8403 test -d "$as_dir" && break
8404 done
8405 test -z "$as_dirs" || eval "mkdir $as_dirs"
8406 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8409 } # as_fn_mkdir_p
8410 if mkdir -p . 2>/dev/null; then
8411 as_mkdir_p='mkdir -p "$as_dir"'
8412 else
8413 test -d ./-p && rmdir ./-p
8414 as_mkdir_p=false
8418 # as_fn_executable_p FILE
8419 # -----------------------
8420 # Test if FILE is an executable regular file.
8421 as_fn_executable_p ()
8423 test -f "$1" && test -x "$1"
8424 } # as_fn_executable_p
8425 as_test_x='test -x'
8426 as_executable_p=as_fn_executable_p
8428 # Sed expression to map a string onto a valid CPP name.
8429 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8431 # Sed expression to map a string onto a valid variable name.
8432 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8435 exec 6>&1
8436 ## ----------------------------------- ##
8437 ## Main body of $CONFIG_STATUS script. ##
8438 ## ----------------------------------- ##
8439 _ASEOF
8440 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8443 # Save the log message, to keep $0 and so on meaningful, and to
8444 # report actual input values of CONFIG_FILES etc. instead of their
8445 # values after options handling.
8446 ac_log="
8447 This file was extended by cpplib $as_me , which was
8448 generated by GNU Autoconf 2.69. Invocation command line was
8450 CONFIG_FILES = $CONFIG_FILES
8451 CONFIG_HEADERS = $CONFIG_HEADERS
8452 CONFIG_LINKS = $CONFIG_LINKS
8453 CONFIG_COMMANDS = $CONFIG_COMMANDS
8454 $ $0 $@
8456 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8459 _ACEOF
8461 case $ac_config_files in *"
8462 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8463 esac
8465 case $ac_config_headers in *"
8466 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8467 esac
8470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8471 # Files that config.status was made for.
8472 config_files="$ac_config_files"
8473 config_headers="$ac_config_headers"
8474 config_commands="$ac_config_commands"
8476 _ACEOF
8478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8479 ac_cs_usage="\
8480 \`$as_me' instantiates files and other configuration actions
8481 from templates according to the current configuration. Unless the files
8482 and actions are specified as TAGs, all are instantiated by default.
8484 Usage: $0 [OPTION]... [TAG]...
8486 -h, --help print this help, then exit
8487 -V, --version print version number and configuration settings, then exit
8488 --config print configuration, then exit
8489 -q, --quiet, --silent
8490 do not print progress messages
8491 -d, --debug don't remove temporary files
8492 --recheck update $as_me by reconfiguring in the same conditions
8493 --file=FILE[:TEMPLATE]
8494 instantiate the configuration file FILE
8495 --header=FILE[:TEMPLATE]
8496 instantiate the configuration header FILE
8498 Configuration files:
8499 $config_files
8501 Configuration headers:
8502 $config_headers
8504 Configuration commands:
8505 $config_commands
8507 Report bugs to <gcc-bugs@gcc.gnu.org>."
8509 _ACEOF
8510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8511 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8512 ac_cs_version="\\
8513 cpplib config.status
8514 configured by $0, generated by GNU Autoconf 2.69,
8515 with options \\"\$ac_cs_config\\"
8517 Copyright (C) 2012 Free Software Foundation, Inc.
8518 This config.status script is free software; the Free Software Foundation
8519 gives unlimited permission to copy, distribute and modify it."
8521 ac_pwd='$ac_pwd'
8522 srcdir='$srcdir'
8523 INSTALL='$INSTALL'
8524 test -n "\$AWK" || AWK=awk
8525 _ACEOF
8527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8528 # The default lists apply if the user does not specify any file.
8529 ac_need_defaults=:
8530 while test $# != 0
8532 case $1 in
8533 --*=?*)
8534 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8535 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8536 ac_shift=:
8538 --*=)
8539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8540 ac_optarg=
8541 ac_shift=:
8544 ac_option=$1
8545 ac_optarg=$2
8546 ac_shift=shift
8548 esac
8550 case $ac_option in
8551 # Handling of the options.
8552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8553 ac_cs_recheck=: ;;
8554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8555 $as_echo "$ac_cs_version"; exit ;;
8556 --config | --confi | --conf | --con | --co | --c )
8557 $as_echo "$ac_cs_config"; exit ;;
8558 --debug | --debu | --deb | --de | --d | -d )
8559 debug=: ;;
8560 --file | --fil | --fi | --f )
8561 $ac_shift
8562 case $ac_optarg in
8563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8564 '') as_fn_error $? "missing file argument" ;;
8565 esac
8566 as_fn_append CONFIG_FILES " '$ac_optarg'"
8567 ac_need_defaults=false;;
8568 --header | --heade | --head | --hea )
8569 $ac_shift
8570 case $ac_optarg in
8571 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8572 esac
8573 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8574 ac_need_defaults=false;;
8575 --he | --h)
8576 # Conflict between --help and --header
8577 as_fn_error $? "ambiguous option: \`$1'
8578 Try \`$0 --help' for more information.";;
8579 --help | --hel | -h )
8580 $as_echo "$ac_cs_usage"; exit ;;
8581 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8582 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8583 ac_cs_silent=: ;;
8585 # This is an error.
8586 -*) as_fn_error $? "unrecognized option: \`$1'
8587 Try \`$0 --help' for more information." ;;
8589 *) as_fn_append ac_config_targets " $1"
8590 ac_need_defaults=false ;;
8592 esac
8593 shift
8594 done
8596 ac_configure_extra_args=
8598 if $ac_cs_silent; then
8599 exec 6>/dev/null
8600 ac_configure_extra_args="$ac_configure_extra_args --silent"
8603 _ACEOF
8604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8605 if \$ac_cs_recheck; then
8606 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8607 shift
8608 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8609 CONFIG_SHELL='$SHELL'
8610 export CONFIG_SHELL
8611 exec "\$@"
8614 _ACEOF
8615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8616 exec 5>>config.log
8618 echo
8619 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8620 ## Running $as_me. ##
8621 _ASBOX
8622 $as_echo "$ac_log"
8623 } >&5
8625 _ACEOF
8626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8628 # INIT-COMMANDS
8630 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
8632 _ACEOF
8634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8636 # Handling of arguments.
8637 for ac_config_target in $ac_config_targets
8639 case $ac_config_target in
8640 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
8641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
8642 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8644 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8645 esac
8646 done
8649 # If the user did not use the arguments to specify the items to instantiate,
8650 # then the envvar interface is used. Set only those that are not.
8651 # We use the long form for the default assignment because of an extremely
8652 # bizarre bug on SunOS 4.1.3.
8653 if $ac_need_defaults; then
8654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8659 # Have a temporary directory for convenience. Make it in the build tree
8660 # simply because there is no reason against having it here, and in addition,
8661 # creating and moving files from /tmp can sometimes cause problems.
8662 # Hook for its removal unless debugging.
8663 # Note that there is a small window in which the directory will not be cleaned:
8664 # after its creation but before its name has been assigned to `$tmp'.
8665 $debug ||
8667 tmp= ac_tmp=
8668 trap 'exit_status=$?
8669 : "${ac_tmp:=$tmp}"
8670 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8672 trap 'as_fn_exit 1' 1 2 13 15
8674 # Create a (secure) tmp directory for tmp files.
8677 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8678 test -d "$tmp"
8679 } ||
8681 tmp=./conf$$-$RANDOM
8682 (umask 077 && mkdir "$tmp")
8683 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8684 ac_tmp=$tmp
8686 # Set up the scripts for CONFIG_FILES section.
8687 # No need to generate them if there are no CONFIG_FILES.
8688 # This happens for instance with `./config.status config.h'.
8689 if test -n "$CONFIG_FILES"; then
8692 ac_cr=`echo X | tr X '\015'`
8693 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8694 # But we know of no other shell where ac_cr would be empty at this
8695 # point, so we can use a bashism as a fallback.
8696 if test "x$ac_cr" = x; then
8697 eval ac_cr=\$\'\\r\'
8699 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8700 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8701 ac_cs_awk_cr='\\r'
8702 else
8703 ac_cs_awk_cr=$ac_cr
8706 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8707 _ACEOF
8711 echo "cat >conf$$subs.awk <<_ACEOF" &&
8712 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8713 echo "_ACEOF"
8714 } >conf$$subs.sh ||
8715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8716 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8717 ac_delim='%!_!# '
8718 for ac_last_try in false false false false false :; do
8719 . ./conf$$subs.sh ||
8720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8722 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8723 if test $ac_delim_n = $ac_delim_num; then
8724 break
8725 elif $ac_last_try; then
8726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8727 else
8728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8730 done
8731 rm -f conf$$subs.sh
8733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8734 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8735 _ACEOF
8736 sed -n '
8738 s/^/S["/; s/!.*/"]=/
8741 s/^[^!]*!//
8742 :repl
8743 t repl
8744 s/'"$ac_delim"'$//
8745 t delim
8748 s/\(.\{148\}\)..*/\1/
8749 t more1
8750 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8753 b repl
8754 :more1
8755 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8758 s/.\{148\}//
8759 t nl
8760 :delim
8762 s/\(.\{148\}\)..*/\1/
8763 t more2
8764 s/["\\]/\\&/g; s/^/"/; s/$/"/
8767 :more2
8768 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8771 s/.\{148\}//
8772 t delim
8773 ' <conf$$subs.awk | sed '
8774 /^[^""]/{
8776 s/\n//
8778 ' >>$CONFIG_STATUS || ac_write_fail=1
8779 rm -f conf$$subs.awk
8780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8781 _ACAWK
8782 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8783 for (key in S) S_is_set[key] = 1
8784 FS = "\a"
8788 line = $ 0
8789 nfields = split(line, field, "@")
8790 substed = 0
8791 len = length(field[1])
8792 for (i = 2; i < nfields; i++) {
8793 key = field[i]
8794 keylen = length(key)
8795 if (S_is_set[key]) {
8796 value = S[key]
8797 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8798 len += length(value) + length(field[++i])
8799 substed = 1
8800 } else
8801 len += 1 + keylen
8804 print line
8807 _ACAWK
8808 _ACEOF
8809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8810 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8811 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8812 else
8814 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8815 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8816 _ACEOF
8818 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8819 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8820 # trailing colons and then remove the whole line if VPATH becomes empty
8821 # (actually we leave an empty line to preserve line numbers).
8822 if test "x$srcdir" = x.; then
8823 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8825 s///
8826 s/^/:/
8827 s/[ ]*$/:/
8828 s/:\$(srcdir):/:/g
8829 s/:\${srcdir}:/:/g
8830 s/:@srcdir@:/:/g
8831 s/^:*//
8832 s/:*$//
8834 s/\(=[ ]*\).*/\1/
8836 s/\n//
8837 s/^[^=]*=[ ]*$//
8841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8842 fi # test -n "$CONFIG_FILES"
8844 # Set up the scripts for CONFIG_HEADERS section.
8845 # No need to generate them if there are no CONFIG_HEADERS.
8846 # This happens for instance with `./config.status Makefile'.
8847 if test -n "$CONFIG_HEADERS"; then
8848 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8849 BEGIN {
8850 _ACEOF
8852 # Transform confdefs.h into an awk script `defines.awk', embedded as
8853 # here-document in config.status, that substitutes the proper values into
8854 # config.h.in to produce config.h.
8856 # Create a delimiter string that does not exist in confdefs.h, to ease
8857 # handling of long lines.
8858 ac_delim='%!_!# '
8859 for ac_last_try in false false :; do
8860 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8861 if test -z "$ac_tt"; then
8862 break
8863 elif $ac_last_try; then
8864 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8865 else
8866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8868 done
8870 # For the awk script, D is an array of macro values keyed by name,
8871 # likewise P contains macro parameters if any. Preserve backslash
8872 # newline sequences.
8874 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8875 sed -n '
8876 s/.\{148\}/&'"$ac_delim"'/g
8877 t rset
8878 :rset
8879 s/^[ ]*#[ ]*define[ ][ ]*/ /
8880 t def
8882 :def
8883 s/\\$//
8884 t bsnl
8885 s/["\\]/\\&/g
8886 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8887 D["\1"]=" \3"/p
8888 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8890 :bsnl
8891 s/["\\]/\\&/g
8892 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8893 D["\1"]=" \3\\\\\\n"\\/p
8894 t cont
8895 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8896 t cont
8898 :cont
8900 s/.\{148\}/&'"$ac_delim"'/g
8901 t clear
8902 :clear
8903 s/\\$//
8904 t bsnlc
8905 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8907 :bsnlc
8908 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8909 b cont
8910 ' <confdefs.h | sed '
8911 s/'"$ac_delim"'/"\\\
8912 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8915 for (key in D) D_is_set[key] = 1
8916 FS = "\a"
8918 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8919 line = \$ 0
8920 split(line, arg, " ")
8921 if (arg[1] == "#") {
8922 defundef = arg[2]
8923 mac1 = arg[3]
8924 } else {
8925 defundef = substr(arg[1], 2)
8926 mac1 = arg[2]
8928 split(mac1, mac2, "(") #)
8929 macro = mac2[1]
8930 prefix = substr(line, 1, index(line, defundef) - 1)
8931 if (D_is_set[macro]) {
8932 # Preserve the white space surrounding the "#".
8933 print prefix "define", macro P[macro] D[macro]
8934 next
8935 } else {
8936 # Replace #undef with comments. This is necessary, for example,
8937 # in the case of _POSIX_SOURCE, which is predefined and required
8938 # on some systems where configure will not decide to define it.
8939 if (defundef == "undef") {
8940 print "/*", prefix defundef, macro, "*/"
8941 next
8945 { print }
8946 _ACAWK
8947 _ACEOF
8948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8949 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8950 fi # test -n "$CONFIG_HEADERS"
8953 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8954 shift
8955 for ac_tag
8957 case $ac_tag in
8958 :[FHLC]) ac_mode=$ac_tag; continue;;
8959 esac
8960 case $ac_mode$ac_tag in
8961 :[FHL]*:*);;
8962 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8963 :[FH]-) ac_tag=-:-;;
8964 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8965 esac
8966 ac_save_IFS=$IFS
8967 IFS=:
8968 set x $ac_tag
8969 IFS=$ac_save_IFS
8970 shift
8971 ac_file=$1
8972 shift
8974 case $ac_mode in
8975 :L) ac_source=$1;;
8976 :[FH])
8977 ac_file_inputs=
8978 for ac_f
8980 case $ac_f in
8981 -) ac_f="$ac_tmp/stdin";;
8982 *) # Look for the file first in the build tree, then in the source tree
8983 # (if the path is not absolute). The absolute path cannot be DOS-style,
8984 # because $ac_f cannot contain `:'.
8985 test -f "$ac_f" ||
8986 case $ac_f in
8987 [\\/$]*) false;;
8988 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8989 esac ||
8990 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8991 esac
8992 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8993 as_fn_append ac_file_inputs " '$ac_f'"
8994 done
8996 # Let's still pretend it is `configure' which instantiates (i.e., don't
8997 # use $as_me), people would be surprised to read:
8998 # /* config.h. Generated by config.status. */
8999 configure_input='Generated from '`
9000 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9001 `' by configure.'
9002 if test x"$ac_file" != x-; then
9003 configure_input="$ac_file. $configure_input"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9005 $as_echo "$as_me: creating $ac_file" >&6;}
9007 # Neutralize special characters interpreted by sed in replacement strings.
9008 case $configure_input in #(
9009 *\&* | *\|* | *\\* )
9010 ac_sed_conf_input=`$as_echo "$configure_input" |
9011 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9012 *) ac_sed_conf_input=$configure_input;;
9013 esac
9015 case $ac_tag in
9016 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9017 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9018 esac
9020 esac
9022 ac_dir=`$as_dirname -- "$ac_file" ||
9023 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9024 X"$ac_file" : 'X\(//\)[^/]' \| \
9025 X"$ac_file" : 'X\(//\)$' \| \
9026 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9027 $as_echo X"$ac_file" |
9028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9029 s//\1/
9032 /^X\(\/\/\)[^/].*/{
9033 s//\1/
9036 /^X\(\/\/\)$/{
9037 s//\1/
9040 /^X\(\/\).*/{
9041 s//\1/
9044 s/.*/./; q'`
9045 as_dir="$ac_dir"; as_fn_mkdir_p
9046 ac_builddir=.
9048 case "$ac_dir" in
9049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9051 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9052 # A ".." for each directory in $ac_dir_suffix.
9053 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9054 case $ac_top_builddir_sub in
9055 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9056 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9057 esac ;;
9058 esac
9059 ac_abs_top_builddir=$ac_pwd
9060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9061 # for backward compatibility:
9062 ac_top_builddir=$ac_top_build_prefix
9064 case $srcdir in
9065 .) # We are building in place.
9066 ac_srcdir=.
9067 ac_top_srcdir=$ac_top_builddir_sub
9068 ac_abs_top_srcdir=$ac_pwd ;;
9069 [\\/]* | ?:[\\/]* ) # Absolute name.
9070 ac_srcdir=$srcdir$ac_dir_suffix;
9071 ac_top_srcdir=$srcdir
9072 ac_abs_top_srcdir=$srcdir ;;
9073 *) # Relative name.
9074 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9075 ac_top_srcdir=$ac_top_build_prefix$srcdir
9076 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9077 esac
9078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9081 case $ac_mode in
9084 # CONFIG_FILE
9087 case $INSTALL in
9088 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9089 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9090 esac
9091 _ACEOF
9093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9094 # If the template does not know about datarootdir, expand it.
9095 # FIXME: This hack should be removed a few years after 2.60.
9096 ac_datarootdir_hack=; ac_datarootdir_seen=
9097 ac_sed_dataroot='
9098 /datarootdir/ {
9102 /@datadir@/p
9103 /@docdir@/p
9104 /@infodir@/p
9105 /@localedir@/p
9106 /@mandir@/p'
9107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9108 *datarootdir*) ac_datarootdir_seen=yes;;
9109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9111 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9112 _ACEOF
9113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9114 ac_datarootdir_hack='
9115 s&@datadir@&$datadir&g
9116 s&@docdir@&$docdir&g
9117 s&@infodir@&$infodir&g
9118 s&@localedir@&$localedir&g
9119 s&@mandir@&$mandir&g
9120 s&\\\${datarootdir}&$datarootdir&g' ;;
9121 esac
9122 _ACEOF
9124 # Neutralize VPATH when `$srcdir' = `.'.
9125 # Shell code in configure.ac might set extrasub.
9126 # FIXME: do we really want to maintain this feature?
9127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9128 ac_sed_extra="$ac_vpsub
9129 $extrasub
9130 _ACEOF
9131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9134 s|@configure_input@|$ac_sed_conf_input|;t t
9135 s&@top_builddir@&$ac_top_builddir_sub&;t t
9136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9137 s&@srcdir@&$ac_srcdir&;t t
9138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9139 s&@top_srcdir@&$ac_top_srcdir&;t t
9140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9141 s&@builddir@&$ac_builddir&;t t
9142 s&@abs_builddir@&$ac_abs_builddir&;t t
9143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9144 s&@INSTALL@&$ac_INSTALL&;t t
9145 $ac_datarootdir_hack
9147 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9148 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9150 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9151 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9152 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9153 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9155 which seems to be undefined. Please make sure it is defined" >&5
9156 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9157 which seems to be undefined. Please make sure it is defined" >&2;}
9159 rm -f "$ac_tmp/stdin"
9160 case $ac_file in
9161 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9162 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9163 esac \
9164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9168 # CONFIG_HEADER
9170 if test x"$ac_file" != x-; then
9172 $as_echo "/* $configure_input */" \
9173 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9174 } >"$ac_tmp/config.h" \
9175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9176 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9178 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9179 else
9180 rm -f "$ac_file"
9181 mv "$ac_tmp/config.h" "$ac_file" \
9182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9184 else
9185 $as_echo "/* $configure_input */" \
9186 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9187 || as_fn_error $? "could not create -" "$LINENO" 5
9191 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9192 $as_echo "$as_me: executing $ac_file commands" >&6;}
9194 esac
9197 case $ac_file$ac_mode in
9198 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
9199 "config.h":H) echo timestamp > stamp-h1 ;;
9201 esac
9202 done # for ac_tag
9205 as_fn_exit 0
9206 _ACEOF
9207 ac_clean_files=$ac_clean_files_save
9209 test $ac_write_fail = 0 ||
9210 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9213 # configure is writing to config.log, and then calls config.status.
9214 # config.status does its own redirection, appending to config.log.
9215 # Unfortunately, on DOS this fails, as config.log is still kept open
9216 # by configure, so config.status won't be able to write to it; its
9217 # output is simply discarded. So we exec the FD to /dev/null,
9218 # effectively closing config.log, so it can be properly (re)opened and
9219 # appended to by config.status. When coming back to configure, we
9220 # need to make the FD available again.
9221 if test "$no_create" != yes; then
9222 ac_cs_success=:
9223 ac_config_status_args=
9224 test "$silent" = yes &&
9225 ac_config_status_args="$ac_config_status_args --quiet"
9226 exec 5>/dev/null
9227 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9228 exec 5>>config.log
9229 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9230 # would make configure fail if this is the last instruction.
9231 $ac_cs_success || as_fn_exit 1
9233 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9235 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}