re checking -fdump-passes
[official-gcc.git] / libcpp / configure
blob41677ce1f3c40af5d32c3b6f5f54ba444ae86676
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for cpplib .
5 # Report bugs to <gcc-bugs@gcc.gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # 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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: gcc-bugs@gcc.gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 exec 7<&0 </dev/null 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME='cpplib'
551 PACKAGE_TARNAME='cpplib'
552 PACKAGE_VERSION=' '
553 PACKAGE_STRING='cpplib '
554 PACKAGE_BUGREPORT='gcc-bugs@gcc.gnu.org'
555 PACKAGE_URL=''
557 ac_unique_file="ucnid.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_subst_vars='LTLIBOBJS
595 MAINT
596 USED_CATALOGS
597 PACKAGE
598 LTLIBICONV
599 LIBICONV
600 CATOBJEXT
601 GENCAT
602 INSTOBJEXT
603 DATADIRNAME
604 CATALOGS
605 POSUB
606 GMSGFMT
607 XGETTEXT
608 INCINTL
609 LIBINTL_DEP
610 LIBINTL
611 USE_NLS
612 ALLOCA
613 LIBOBJS
614 CXXDEPMODE
615 CCDEPMODE
616 DEPDIR
617 am__leading_dot
618 WERROR
619 WARN_PEDANTIC
620 c_warn
621 warn
622 AUTOHEADER
623 AUTOCONF
624 ACLOCAL
625 ENABLE_BUILD_WITH_CXX
626 EGREP
627 GREP
629 RANLIB
630 ac_ct_CXX
631 CXXFLAGS
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
640 INSTALL_DATA
641 INSTALL_SCRIPT
642 INSTALL_PROGRAM
643 SET_MAKE
644 target_os
645 target_vendor
646 target_cpu
647 target
648 host_os
649 host_vendor
650 host_cpu
651 host
652 build_os
653 build_vendor
654 build_cpu
655 build
656 target_alias
657 host_alias
658 build_alias
659 LIBS
660 ECHO_T
661 ECHO_N
662 ECHO_C
663 DEFS
664 mandir
665 localedir
666 libdir
667 psdir
668 pdfdir
669 dvidir
670 htmldir
671 infodir
672 docdir
673 oldincludedir
674 includedir
675 localstatedir
676 sharedstatedir
677 sysconfdir
678 datadir
679 datarootdir
680 libexecdir
681 sbindir
682 bindir
683 program_transform_name
684 prefix
685 exec_prefix
686 PACKAGE_URL
687 PACKAGE_BUGREPORT
688 PACKAGE_STRING
689 PACKAGE_VERSION
690 PACKAGE_TARNAME
691 PACKAGE_NAME
692 PATH_SEPARATOR
693 SHELL'
694 ac_subst_files=''
695 ac_user_opts='
696 enable_option_checking
697 enable_largefile
698 enable_build_with_cxx
699 enable_werror_always
700 with_gnu_ld
701 enable_rpath
702 with_libiconv_prefix
703 enable_maintainer_mode
704 enable_checking
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
715 CXXFLAGS
717 CPP'
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 ac_unrecognized_opts=
724 ac_unrecognized_sep=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
727 cache_file=/dev/null
728 exec_prefix=NONE
729 no_create=
730 no_recursion=
731 prefix=NONE
732 program_prefix=NONE
733 program_suffix=NONE
734 program_transform_name=s,x,x,
735 silent=
736 site=
737 srcdir=
738 verbose=
739 x_includes=NONE
740 x_libraries=NONE
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759 infodir='${datarootdir}/info'
760 htmldir='${docdir}'
761 dvidir='${docdir}'
762 pdfdir='${docdir}'
763 psdir='${docdir}'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
768 ac_prev=
769 ac_dashdash=
770 for ac_option
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
775 ac_prev=
776 continue
779 case $ac_option in
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 *) ac_optarg=yes ;;
782 esac
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
788 ac_dashdash=yes ;;
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
791 ac_prev=bindir ;;
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
793 bindir=$ac_optarg ;;
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
807 --config-cache | -C)
808 cache_file=config.cache ;;
810 -datadir | --datadir | --datadi | --datad)
811 ac_prev=datadir ;;
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
831 "enable_$ac_useropt"
832 "*) ;;
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
835 esac
836 eval enable_$ac_useropt=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
839 ac_prev=docdir ;;
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
841 docdir=$ac_optarg ;;
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
844 ac_prev=dvidir ;;
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
846 dvidir=$ac_optarg ;;
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
857 "enable_$ac_useropt"
858 "*) ;;
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
861 esac
862 eval enable_$ac_useropt=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1052 -with-* | --with-*)
1053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1061 "with_$ac_useropt"
1062 "*) ;;
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1065 esac
1066 eval with_$ac_useropt=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "with_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval with_$ac_useropt=no ;;
1084 --x)
1085 # Obsolete; use --with-x.
1086 with_x=yes ;;
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) as_fn_error "unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information."
1106 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1112 esac
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124 esac
1125 done
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error "missing argument to $ac_option"
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1134 no) ;;
1135 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1137 esac
1140 # Check all directory arguments for consistency.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
1148 case $ac_val in
1149 */ )
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
1152 esac
1153 # Be sure to have absolute directory names.
1154 case $ac_val in
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 esac
1158 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1159 done
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1164 build=$build_alias
1165 host=$host_alias
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1175 cross_compiling=yes
1179 ac_tool_prefix=
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error "working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error "pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1204 s//\1/
1207 /^X\(\/\/\)[^/].*/{
1208 s//\1/
1211 /^X\(\/\/\)$/{
1212 s//\1/
1215 /^X\(\/\).*/{
1216 s//\1/
1219 s/.*/./; q'`
1220 srcdir=$ac_confdir
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 srcdir=..
1224 else
1225 ac_srcdir_defaulted=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 ac_abs_confdir=`(
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures cpplib to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/cpplib]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1314 cat <<\_ACEOF
1316 System types:
1317 --build=BUILD configure for building on BUILD [guessed]
1318 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1319 --target=TARGET configure for building compilers for TARGET [HOST]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of cpplib :";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-option-checking ignore unrecognized --enable/--with options
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --disable-largefile omit support for large files
1334 --enable-build-with-cxx build with C++ compiler instead of C compiler
1335 --enable-werror-always enable -Werror despite compiler version
1336 --disable-rpath do not hardcode runtime library paths
1337 --enable-maintainer-mode enable rules only needed by maintainers
1338 --enable-checking enable expensive run-time checks
1340 Optional Packages:
1341 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1342 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1343 --with-gnu-ld assume the C compiler uses GNU ld default=no
1344 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1345 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1347 Some influential environment variables:
1348 CC C compiler command
1349 CFLAGS C compiler flags
1350 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1351 nonstandard directory <lib dir>
1352 LIBS libraries to pass to the linker, e.g. -l<library>
1353 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1354 you have headers in a nonstandard directory <include dir>
1355 CXX C++ compiler command
1356 CXXFLAGS C++ compiler flags
1357 CPP C preprocessor
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1362 Report bugs to <gcc-bugs@gcc.gnu.org>.
1363 _ACEOF
1364 ac_status=$?
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" ||
1371 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1372 continue
1373 ac_builddir=.
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 cpplib configure
1426 generated by GNU Autoconf 2.64
1428 Copyright (C) 2009 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1431 _ACEOF
1432 exit
1435 ## ------------------------ ##
1436 ## Autoconf initialization. ##
1437 ## ------------------------ ##
1439 # ac_fn_c_try_compile LINENO
1440 # --------------------------
1441 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1442 ac_fn_c_try_compile ()
1444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1445 rm -f conftest.$ac_objext
1446 if { { ac_try="$ac_compile"
1447 case "(($ac_try" in
1448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1449 *) ac_try_echo=$ac_try;;
1450 esac
1451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1452 $as_echo "$ac_try_echo"; } >&5
1453 (eval "$ac_compile") 2>conftest.err
1454 ac_status=$?
1455 if test -s conftest.err; then
1456 grep -v '^ *+' conftest.err >conftest.er1
1457 cat conftest.er1 >&5
1458 mv -f conftest.er1 conftest.err
1460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1461 test $ac_status = 0; } && {
1462 test -z "$ac_c_werror_flag" ||
1463 test ! -s conftest.err
1464 } && test -s conftest.$ac_objext; then :
1465 ac_retval=0
1466 else
1467 $as_echo "$as_me: failed program was:" >&5
1468 sed 's/^/| /' conftest.$ac_ext >&5
1470 ac_retval=1
1472 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1473 return $ac_retval
1475 } # ac_fn_c_try_compile
1477 # ac_fn_cxx_try_compile LINENO
1478 # ----------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_cxx_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1485 case "(($ac_try" in
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1488 esac
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1492 ac_status=$?
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_cxx_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1508 ac_retval=1
1510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 return $ac_retval
1513 } # ac_fn_cxx_try_compile
1515 # ac_fn_c_try_cpp LINENO
1516 # ----------------------
1517 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_cpp ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { { ac_try="$ac_cpp conftest.$ac_ext"
1522 case "(($ac_try" in
1523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1525 esac
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1529 ac_status=$?
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } >/dev/null && {
1537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 }; then :
1540 ac_retval=0
1541 else
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1545 ac_retval=1
1547 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1548 return $ac_retval
1550 } # ac_fn_c_try_cpp
1552 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1553 # -------------------------------------------------------
1554 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1555 # the include files in INCLUDES and setting the cache variable VAR
1556 # accordingly.
1557 ac_fn_c_check_header_mongrel ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562 $as_echo_n "checking for $2... " >&6; }
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1566 eval ac_res=\$$3
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1568 $as_echo "$ac_res" >&6; }
1569 else
1570 # Is the header compilable?
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1572 $as_echo_n "checking $2 usability... " >&6; }
1573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1574 /* end confdefs.h. */
1576 #include <$2>
1577 _ACEOF
1578 if ac_fn_c_try_compile "$LINENO"; then :
1579 ac_header_compiler=yes
1580 else
1581 ac_header_compiler=no
1583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1585 $as_echo "$ac_header_compiler" >&6; }
1587 # Is the header present?
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1589 $as_echo_n "checking $2 presence... " >&6; }
1590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1591 /* end confdefs.h. */
1592 #include <$2>
1593 _ACEOF
1594 if ac_fn_c_try_cpp "$LINENO"; then :
1595 ac_header_preproc=yes
1596 else
1597 ac_header_preproc=no
1599 rm -f conftest.err conftest.$ac_ext
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1601 $as_echo "$ac_header_preproc" >&6; }
1603 # So? What about this header?
1604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1605 yes:no: )
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1607 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1611 no:yes:* )
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1613 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1615 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1617 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1619 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1622 ( cat <<\_ASBOX
1623 ## ----------------------------------- ##
1624 ## Report this to gcc-bugs@gcc.gnu.org ##
1625 ## ----------------------------------- ##
1626 _ASBOX
1627 ) | sed "s/^/$as_me: WARNING: /" >&2
1629 esac
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633 $as_echo_n "(cached) " >&6
1634 else
1635 eval "$3=\$ac_header_compiler"
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_mongrel
1645 # ac_fn_c_try_run LINENO
1646 # ----------------------
1647 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1648 # that executables *can* be run.
1649 ac_fn_c_try_run ()
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 if { { ac_try="$ac_link"
1653 case "(($ac_try" in
1654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655 *) ac_try_echo=$ac_try;;
1656 esac
1657 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658 $as_echo "$ac_try_echo"; } >&5
1659 (eval "$ac_link") 2>&5
1660 ac_status=$?
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1663 { { case "(($ac_try" in
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_try") 2>&5
1670 ac_status=$?
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; }; }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: program exited with status $ac_status" >&5
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1679 ac_retval=$ac_status
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1685 } # ac_fn_c_try_run
1687 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1688 # -------------------------------------------------------
1689 # Tests whether HEADER exists and can be compiled using the include files in
1690 # INCLUDES, setting the cache variable VAR accordingly.
1691 ac_fn_c_check_header_compile ()
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1698 else
1699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1700 /* end confdefs.h. */
1702 #include <$2>
1703 _ACEOF
1704 if ac_fn_c_try_compile "$LINENO"; then :
1705 eval "$3=yes"
1706 else
1707 eval "$3=no"
1709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 eval ac_res=\$$3
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713 $as_echo "$ac_res" >&6; }
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716 } # ac_fn_c_check_header_compile
1718 # ac_fn_c_try_link LINENO
1719 # -----------------------
1720 # Try to link conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_link ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
1745 $as_test_x conftest$ac_exeext
1746 }; then :
1747 ac_retval=0
1748 else
1749 $as_echo "$as_me: failed program was:" >&5
1750 sed 's/^/| /' conftest.$ac_ext >&5
1752 ac_retval=1
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 return $ac_retval
1762 } # ac_fn_c_try_link
1764 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1765 # -------------------------------------------
1766 # Tests whether TYPE exists after having included INCLUDES, setting cache
1767 # variable VAR accordingly.
1768 ac_fn_c_check_type ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1774 $as_echo_n "(cached) " >&6
1775 else
1776 eval "$3=no"
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778 /* end confdefs.h. */
1781 main ()
1783 if (sizeof ($2))
1784 return 0;
1786 return 0;
1788 _ACEOF
1789 if ac_fn_c_try_compile "$LINENO"; then :
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1794 main ()
1796 if (sizeof (($2)))
1797 return 0;
1799 return 0;
1801 _ACEOF
1802 if ac_fn_c_try_compile "$LINENO"; then :
1804 else
1805 eval "$3=yes"
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1811 eval ac_res=\$$3
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813 $as_echo "$ac_res" >&6; }
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 } # ac_fn_c_check_type
1818 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1819 # --------------------------------------------
1820 # Tries to find the compile-time value of EXPR in a program that includes
1821 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1822 # computed
1823 ac_fn_c_compute_int ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if test "$cross_compiling" = yes; then
1827 # Depending upon the size, compute the lo and hi bounds.
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h. */
1832 main ()
1834 static int test_array [1 - 2 * !(($2) >= 0)];
1835 test_array [0] = 0
1838 return 0;
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_lo=0 ac_mid=0
1843 while :; do
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1848 main ()
1850 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1851 test_array [0] = 0
1854 return 0;
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 ac_hi=$ac_mid; break
1859 else
1860 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1861 if test $ac_lo -le $ac_mid; then
1862 ac_lo= ac_hi=
1863 break
1865 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 done
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 main ()
1876 static int test_array [1 - 2 * !(($2) < 0)];
1877 test_array [0] = 0
1880 return 0;
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_hi=-1 ac_mid=-1
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1890 main ()
1892 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1893 test_array [0] = 0
1896 return 0;
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_lo=$ac_mid; break
1901 else
1902 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1903 if test $ac_mid -le $ac_hi; then
1904 ac_lo= ac_hi=
1905 break
1907 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911 else
1912 ac_lo= ac_hi=
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1917 # Binary search between lo and hi bounds.
1918 while test "x$ac_lo" != "x$ac_hi"; do
1919 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 main ()
1926 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1927 test_array [0] = 0
1930 return 0;
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_hi=$ac_mid
1935 else
1936 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 done
1940 case $ac_lo in #((
1941 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1942 '') ac_retval=1 ;;
1943 esac
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1948 static long int longval () { return $2; }
1949 static unsigned long int ulongval () { return $2; }
1950 #include <stdio.h>
1951 #include <stdlib.h>
1953 main ()
1956 FILE *f = fopen ("conftest.val", "w");
1957 if (! f)
1958 return 1;
1959 if (($2) < 0)
1961 long int i = longval ();
1962 if (i != ($2))
1963 return 1;
1964 fprintf (f, "%ld", i);
1966 else
1968 unsigned long int i = ulongval ();
1969 if (i != ($2))
1970 return 1;
1971 fprintf (f, "%lu", i);
1973 /* Do not output a trailing newline, as this causes \r\n confusion
1974 on some platforms. */
1975 return ferror (f) || fclose (f) != 0;
1978 return 0;
1980 _ACEOF
1981 if ac_fn_c_try_run "$LINENO"; then :
1982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1983 else
1984 ac_retval=1
1986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1987 conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 rm -f conftest.val
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1994 } # ac_fn_c_compute_int
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2018 #ifdef __STDC__
2019 # include <limits.h>
2020 #else
2021 # include <assert.h>
2022 #endif
2024 #undef $2
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029 #ifdef __cplusplus
2030 extern "C"
2031 #endif
2032 char $2 ();
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2037 choke me
2038 #endif
2041 main ()
2043 return $2 ();
2045 return 0;
2047 _ACEOF
2048 if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2053 rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2061 } # ac_fn_c_check_func
2063 # ac_fn_c_check_decl LINENO SYMBOL VAR
2064 # ------------------------------------
2065 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2066 ac_fn_c_check_decl ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2080 main ()
2082 #ifndef $as_decl_name
2083 #ifdef __cplusplus
2084 (void) $as_decl_use;
2085 #else
2086 (void) $as_decl_name;
2087 #endif
2088 #endif
2091 return 0;
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2106 } # ac_fn_c_check_decl
2107 cat >config.log <<_ACEOF
2108 This file contains any messages produced by compilers while
2109 running configure, to aid debugging if configure makes a mistake.
2111 It was created by cpplib $as_me , which was
2112 generated by GNU Autoconf 2.64. Invocation command line was
2114 $ $0 $@
2116 _ACEOF
2117 exec 5>>config.log
2119 cat <<_ASUNAME
2120 ## --------- ##
2121 ## Platform. ##
2122 ## --------- ##
2124 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2125 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2126 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2127 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2128 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2130 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2131 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2133 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2134 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2135 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2136 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2137 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2138 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2139 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2141 _ASUNAME
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 for as_dir in $PATH
2146 IFS=$as_save_IFS
2147 test -z "$as_dir" && as_dir=.
2148 $as_echo "PATH: $as_dir"
2149 done
2150 IFS=$as_save_IFS
2152 } >&5
2154 cat >&5 <<_ACEOF
2157 ## ----------- ##
2158 ## Core tests. ##
2159 ## ----------- ##
2161 _ACEOF
2164 # Keep a trace of the command line.
2165 # Strip out --no-create and --no-recursion so they do not pile up.
2166 # Strip out --silent because we don't want to record it for future runs.
2167 # Also quote any args containing shell meta-characters.
2168 # Make two passes to allow for proper duplicate-argument suppression.
2169 ac_configure_args=
2170 ac_configure_args0=
2171 ac_configure_args1=
2172 ac_must_keep_next=false
2173 for ac_pass in 1 2
2175 for ac_arg
2177 case $ac_arg in
2178 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2180 | -silent | --silent | --silen | --sile | --sil)
2181 continue ;;
2182 *\'*)
2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2184 esac
2185 case $ac_pass in
2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2188 as_fn_append ac_configure_args1 " '$ac_arg'"
2189 if test $ac_must_keep_next = true; then
2190 ac_must_keep_next=false # Got value, back to normal.
2191 else
2192 case $ac_arg in
2193 *=* | --config-cache | -C | -disable-* | --disable-* \
2194 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2195 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2196 | -with-* | --with-* | -without-* | --without-* | --x)
2197 case "$ac_configure_args0 " in
2198 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2199 esac
2201 -* ) ac_must_keep_next=true ;;
2202 esac
2204 as_fn_append ac_configure_args " '$ac_arg'"
2206 esac
2207 done
2208 done
2209 { ac_configure_args0=; unset ac_configure_args0;}
2210 { ac_configure_args1=; unset ac_configure_args1;}
2212 # When interrupted or exit'd, cleanup temporary files, and complete
2213 # config.log. We remove comments because anyway the quotes in there
2214 # would cause problems or look ugly.
2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
2216 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2217 trap 'exit_status=$?
2218 # Save into config.log some information that might help in debugging.
2220 echo
2222 cat <<\_ASBOX
2223 ## ---------------- ##
2224 ## Cache variables. ##
2225 ## ---------------- ##
2226 _ASBOX
2227 echo
2228 # The following way of writing the cache mishandles newlines in values,
2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2231 eval ac_val=\$$ac_var
2232 case $ac_val in #(
2233 *${as_nl}*)
2234 case $ac_var in #(
2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2237 esac
2238 case $ac_var in #(
2239 _ | IFS | as_nl) ;; #(
2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2241 *) { eval $ac_var=; unset $ac_var;} ;;
2242 esac ;;
2243 esac
2244 done
2245 (set) 2>&1 |
2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2247 *${as_nl}ac_space=\ *)
2248 sed -n \
2249 "s/'\''/'\''\\\\'\'''\''/g;
2250 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2251 ;; #(
2253 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2255 esac |
2256 sort
2258 echo
2260 cat <<\_ASBOX
2261 ## ----------------- ##
2262 ## Output variables. ##
2263 ## ----------------- ##
2264 _ASBOX
2265 echo
2266 for ac_var in $ac_subst_vars
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2276 if test -n "$ac_subst_files"; then
2277 cat <<\_ASBOX
2278 ## ------------------- ##
2279 ## File substitutions. ##
2280 ## ------------------- ##
2281 _ASBOX
2282 echo
2283 for ac_var in $ac_subst_files
2285 eval ac_val=\$$ac_var
2286 case $ac_val in
2287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2288 esac
2289 $as_echo "$ac_var='\''$ac_val'\''"
2290 done | sort
2291 echo
2294 if test -s confdefs.h; then
2295 cat <<\_ASBOX
2296 ## ----------- ##
2297 ## confdefs.h. ##
2298 ## ----------- ##
2299 _ASBOX
2300 echo
2301 cat confdefs.h
2302 echo
2304 test "$ac_signal" != 0 &&
2305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
2307 } >&5
2308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2310 exit $exit_status
2312 for ac_signal in 1 2 13 15; do
2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2314 done
2315 ac_signal=0
2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2318 rm -f -r conftest* confdefs.h
2320 $as_echo "/* confdefs.h */" > confdefs.h
2322 # Predefined preprocessor variables.
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_NAME "$PACKAGE_NAME"
2326 _ACEOF
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330 _ACEOF
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2334 _ACEOF
2336 cat >>confdefs.h <<_ACEOF
2337 #define PACKAGE_STRING "$PACKAGE_STRING"
2338 _ACEOF
2340 cat >>confdefs.h <<_ACEOF
2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
2346 _ACEOF
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 ac_site_file1=NONE
2352 ac_site_file2=NONE
2353 if test -n "$CONFIG_SITE"; then
2354 ac_site_file1=$CONFIG_SITE
2355 elif test "x$prefix" != xNONE; then
2356 ac_site_file1=$prefix/share/config.site
2357 ac_site_file2=$prefix/etc/config.site
2358 else
2359 ac_site_file1=$ac_default_prefix/share/config.site
2360 ac_site_file2=$ac_default_prefix/etc/config.site
2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2364 test "x$ac_site_file" = xNONE && continue
2365 if test -r "$ac_site_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2368 sed 's/^/| /' "$ac_site_file" >&5
2369 . "$ac_site_file"
2371 done
2373 if test -r "$cache_file"; then
2374 # Some versions of bash will fail to source /dev/null (special
2375 # files actually), so we avoid doing that.
2376 if test -f "$cache_file"; then
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
2379 case $cache_file in
2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
2382 esac
2384 else
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
2387 >$cache_file
2390 # Check that the precious variables saved in the cache have kept the same
2391 # value.
2392 ac_cache_corrupted=false
2393 for ac_var in $ac_precious_vars; do
2394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395 eval ac_new_set=\$ac_env_${ac_var}_set
2396 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397 eval ac_new_val=\$ac_env_${ac_var}_value
2398 case $ac_old_set,$ac_new_set in
2399 set,)
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2401 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2402 ac_cache_corrupted=: ;;
2403 ,set)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,);;
2409 if test "x$ac_old_val" != "x$ac_new_val"; then
2410 # differences in whitespace do not lead to failure.
2411 ac_old_val_w=`echo x $ac_old_val`
2412 ac_new_val_w=`echo x $ac_new_val`
2413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2415 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416 ac_cache_corrupted=:
2417 else
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2419 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420 eval $ac_var=\$ac_old_val
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2423 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2425 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2426 fi;;
2427 esac
2428 # Pass precious variables to config.status.
2429 if test "$ac_new_set" = set; then
2430 case $ac_new_val in
2431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2432 *) ac_arg=$ac_var=$ac_new_val ;;
2433 esac
2434 case " $ac_configure_args " in
2435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2436 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2437 esac
2439 done
2440 if $ac_cache_corrupted; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2444 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2445 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2447 ## -------------------- ##
2448 ## Main body of script. ##
2449 ## -------------------- ##
2451 ac_ext=c
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463 ac_aux_dir=
2464 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2465 for ac_t in install-sh install.sh shtool; do
2466 if test -f "$ac_dir/$ac_t"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/$ac_t -c"
2469 break 2
2471 done
2472 done
2473 if test -z "$ac_aux_dir"; then
2474 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2477 # These three variables are undocumented and unsupported,
2478 # and are intended to be withdrawn in a future Autoconf release.
2479 # They can cause serious problems if a builder's source tree is in a directory
2480 # whose full name contains unusual characters.
2481 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2482 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2483 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486 # Make sure we can run config.sub.
2487 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2488 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2491 $as_echo_n "checking build system type... " >&6; }
2492 if test "${ac_cv_build+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2494 else
2495 ac_build_alias=$build_alias
2496 test "x$ac_build_alias" = x &&
2497 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2498 test "x$ac_build_alias" = x &&
2499 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2500 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2501 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2505 $as_echo "$ac_cv_build" >&6; }
2506 case $ac_cv_build in
2507 *-*-*) ;;
2508 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2509 esac
2510 build=$ac_cv_build
2511 ac_save_IFS=$IFS; IFS='-'
2512 set x $ac_cv_build
2513 shift
2514 build_cpu=$1
2515 build_vendor=$2
2516 shift; shift
2517 # Remember, the first character of IFS is used to create $*,
2518 # except with old shells:
2519 build_os=$*
2520 IFS=$ac_save_IFS
2521 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2525 $as_echo_n "checking host system type... " >&6; }
2526 if test "${ac_cv_host+set}" = set; then :
2527 $as_echo_n "(cached) " >&6
2528 else
2529 if test "x$host_alias" = x; then
2530 ac_cv_host=$ac_cv_build
2531 else
2532 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2533 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2538 $as_echo "$ac_cv_host" >&6; }
2539 case $ac_cv_host in
2540 *-*-*) ;;
2541 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2542 esac
2543 host=$ac_cv_host
2544 ac_save_IFS=$IFS; IFS='-'
2545 set x $ac_cv_host
2546 shift
2547 host_cpu=$1
2548 host_vendor=$2
2549 shift; shift
2550 # Remember, the first character of IFS is used to create $*,
2551 # except with old shells:
2552 host_os=$*
2553 IFS=$ac_save_IFS
2554 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2558 $as_echo_n "checking target system type... " >&6; }
2559 if test "${ac_cv_target+set}" = set; then :
2560 $as_echo_n "(cached) " >&6
2561 else
2562 if test "x$target_alias" = x; then
2563 ac_cv_target=$ac_cv_host
2564 else
2565 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2566 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2571 $as_echo "$ac_cv_target" >&6; }
2572 case $ac_cv_target in
2573 *-*-*) ;;
2574 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2575 esac
2576 target=$ac_cv_target
2577 ac_save_IFS=$IFS; IFS='-'
2578 set x $ac_cv_target
2579 shift
2580 target_cpu=$1
2581 target_vendor=$2
2582 shift; shift
2583 # Remember, the first character of IFS is used to create $*,
2584 # except with old shells:
2585 target_os=$*
2586 IFS=$ac_save_IFS
2587 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2590 # The aliases save the names the user supplied, while $host etc.
2591 # will get canonicalized.
2592 test -n "$target_alias" &&
2593 test "$program_prefix$program_suffix$program_transform_name" = \
2594 NONENONEs,x,x, &&
2595 program_prefix=${target_alias}-
2598 # Checks for programs.
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2600 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2601 set x ${MAKE-make}
2602 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2603 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2604 $as_echo_n "(cached) " >&6
2605 else
2606 cat >conftest.make <<\_ACEOF
2607 SHELL = /bin/sh
2608 all:
2609 @echo '@@@%%%=$(MAKE)=@@@%%%'
2610 _ACEOF
2611 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2612 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2613 *@@@%%%=?*=@@@%%%*)
2614 eval ac_cv_prog_make_${ac_make}_set=yes;;
2616 eval ac_cv_prog_make_${ac_make}_set=no;;
2617 esac
2618 rm -f conftest.make
2620 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622 $as_echo "yes" >&6; }
2623 SET_MAKE=
2624 else
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626 $as_echo "no" >&6; }
2627 SET_MAKE="MAKE=${MAKE-make}"
2630 # Find a good install program. We prefer a C program (faster),
2631 # so one script is as good as another. But avoid the broken or
2632 # incompatible versions:
2633 # SysV /etc/install, /usr/sbin/install
2634 # SunOS /usr/etc/install
2635 # IRIX /sbin/install
2636 # AIX /bin/install
2637 # AmigaOS /C/install, which installs bootblocks on floppy discs
2638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2641 # OS/2's system install, which has a completely different semantic
2642 # ./install, which can be erroneously created by make from ./install.sh.
2643 # Reject install programs that cannot install multiple files.
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2645 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2646 if test -z "$INSTALL"; then
2647 if test "${ac_cv_path_install+set}" = set; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 # Account for people who put trailing slashes in PATH elements.
2656 case $as_dir/ in #((
2657 ./ | .// | /[cC]/* | \
2658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2659 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2660 /usr/ucb/* ) ;;
2662 # OSF1 and SCO ODT 3.0 have their own names for install.
2663 # Don't use installbsd from OSF since it installs stuff as root
2664 # by default.
2665 for ac_prog in ginstall scoinst install; do
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2668 if test $ac_prog = install &&
2669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2670 # AIX install. It has an incompatible calling convention.
2672 elif test $ac_prog = install &&
2673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2674 # program-specific install script used by HP pwplus--don't use.
2676 else
2677 rm -rf conftest.one conftest.two conftest.dir
2678 echo one > conftest.one
2679 echo two > conftest.two
2680 mkdir conftest.dir
2681 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2682 test -s conftest.one && test -s conftest.two &&
2683 test -s conftest.dir/conftest.one &&
2684 test -s conftest.dir/conftest.two
2685 then
2686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2687 break 3
2691 done
2692 done
2694 esac
2696 done
2697 IFS=$as_save_IFS
2699 rm -rf conftest.one conftest.two conftest.dir
2702 if test "${ac_cv_path_install+set}" = set; then
2703 INSTALL=$ac_cv_path_install
2704 else
2705 # As a last resort, use the slow shell script. Don't cache a
2706 # value for INSTALL within a source directory, because that will
2707 # break other packages using the cache if that directory is
2708 # removed, or if the value is a relative name.
2709 INSTALL=$ac_install_sh
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2713 $as_echo "$INSTALL" >&6; }
2715 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2716 # It thinks the first close brace ends the variable substitution.
2717 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2719 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2721 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2723 ac_ext=c
2724 ac_cpp='$CPP $CPPFLAGS'
2725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2728 if test -n "$ac_tool_prefix"; then
2729 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2730 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 $as_echo_n "checking for $ac_word... " >&6; }
2733 if test "${ac_cv_prog_CC+set}" = set; then :
2734 $as_echo_n "(cached) " >&6
2735 else
2736 if test -n "$CC"; then
2737 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 else
2739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 for as_dir in $PATH
2742 IFS=$as_save_IFS
2743 test -z "$as_dir" && as_dir=.
2744 for ac_exec_ext in '' $ac_executable_extensions; do
2745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 break 2
2750 done
2751 done
2752 IFS=$as_save_IFS
2756 CC=$ac_cv_prog_CC
2757 if test -n "$CC"; then
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2759 $as_echo "$CC" >&6; }
2760 else
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762 $as_echo "no" >&6; }
2767 if test -z "$ac_cv_prog_CC"; then
2768 ac_ct_CC=$CC
2769 # Extract the first word of "gcc", so it can be a program name with args.
2770 set dummy gcc; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_ac_ct_CC="gcc"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2790 done
2791 done
2792 IFS=$as_save_IFS
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2805 if test "x$ac_ct_CC" = x; then
2806 CC=""
2807 else
2808 case $cross_compiling:$ac_tool_warned in
2809 yes:)
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2812 ac_tool_warned=yes ;;
2813 esac
2814 CC=$ac_ct_CC
2816 else
2817 CC="$ac_cv_prog_CC"
2820 if test -z "$CC"; then
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}cc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="${ac_tool_prefix}cc"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2845 IFS=$as_save_IFS
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2861 if test -z "$CC"; then
2862 # Extract the first word of "cc", so it can be a program name with args.
2863 set dummy cc; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 ac_prog_rejected=no
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 for as_dir in $PATH
2876 IFS=$as_save_IFS
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2881 ac_prog_rejected=yes
2882 continue
2884 ac_cv_prog_CC="cc"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2890 IFS=$as_save_IFS
2892 if test $ac_prog_rejected = yes; then
2893 # We found a bogon in the path, so make sure we never use it.
2894 set dummy $ac_cv_prog_CC
2895 shift
2896 if test $# != 0; then
2897 # We chose a different compiler from the bogus one.
2898 # However, it has the same basename, so the bogon will be chosen
2899 # first if we set CC to just the basename; use the full file name.
2900 shift
2901 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2917 if test -z "$CC"; then
2918 if test -n "$ac_tool_prefix"; then
2919 for ac_prog in cl.exe
2921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2924 $as_echo_n "checking for $ac_word... " >&6; }
2925 if test "${ac_cv_prog_CC+set}" = set; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 if test -n "$CC"; then
2929 ac_cv_prog_CC="$CC" # Let the user override the test.
2930 else
2931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932 for as_dir in $PATH
2934 IFS=$as_save_IFS
2935 test -z "$as_dir" && as_dir=.
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2938 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 break 2
2942 done
2943 done
2944 IFS=$as_save_IFS
2948 CC=$ac_cv_prog_CC
2949 if test -n "$CC"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2951 $as_echo "$CC" >&6; }
2952 else
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2954 $as_echo "no" >&6; }
2958 test -n "$CC" && break
2959 done
2961 if test -z "$CC"; then
2962 ac_ct_CC=$CC
2963 for ac_prog in cl.exe
2965 # Extract the first word of "$ac_prog", so it can be a program name with args.
2966 set dummy $ac_prog; ac_word=$2
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968 $as_echo_n "checking for $ac_word... " >&6; }
2969 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 if test -n "$ac_ct_CC"; then
2973 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2982 ac_cv_prog_ac_ct_CC="$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2986 done
2987 done
2988 IFS=$as_save_IFS
2992 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2993 if test -n "$ac_ct_CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2995 $as_echo "$ac_ct_CC" >&6; }
2996 else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998 $as_echo "no" >&6; }
3002 test -n "$ac_ct_CC" && break
3003 done
3005 if test "x$ac_ct_CC" = x; then
3006 CC=""
3007 else
3008 case $cross_compiling:$ac_tool_warned in
3009 yes:)
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012 ac_tool_warned=yes ;;
3013 esac
3014 CC=$ac_ct_CC
3021 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023 as_fn_error "no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." "$LINENO" 5; }
3026 # Provide some information about the compiler.
3027 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3028 set X $ac_compile
3029 ac_compiler=$2
3030 for ac_option in --version -v -V -qversion; do
3031 { { ac_try="$ac_compiler $ac_option >&5"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3037 $as_echo "$ac_try_echo"; } >&5
3038 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3039 ac_status=$?
3040 if test -s conftest.err; then
3041 sed '10a\
3042 ... rest of stderr output deleted ...
3043 10q' conftest.err >conftest.er1
3044 cat conftest.er1 >&5
3045 rm -f conftest.er1 conftest.err
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3049 done
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3055 main ()
3059 return 0;
3061 _ACEOF
3062 ac_clean_files_save=$ac_clean_files
3063 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3064 # Try to create an executable without -o first, disregard a.out.
3065 # It will help us diagnose broken compilers, and finding out an intuition
3066 # of exeext.
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3068 $as_echo_n "checking for C compiler default output file name... " >&6; }
3069 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3071 # The possible output files:
3072 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3074 ac_rmfiles=
3075 for ac_file in $ac_files
3077 case $ac_file in
3078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3079 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3080 esac
3081 done
3082 rm -f $ac_rmfiles
3084 if { { ac_try="$ac_link_default"
3085 case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_link_default") 2>&5
3092 ac_status=$?
3093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3094 test $ac_status = 0; }; then :
3095 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3096 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3097 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3098 # so that the user can short-circuit this test for compilers unknown to
3099 # Autoconf.
3100 for ac_file in $ac_files ''
3102 test -f "$ac_file" || continue
3103 case $ac_file in
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3106 [ab].out )
3107 # We found the default executable, but exeext='' is most
3108 # certainly right.
3109 break;;
3110 *.* )
3111 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3112 then :; else
3113 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115 # We set ac_cv_exeext here because the later test for it is not
3116 # safe: cross compilers may not add the suffix if given an `-o'
3117 # argument, so we may need to know it at that point already.
3118 # Even if this section looks crufty: it has the advantage of
3119 # actually working.
3120 break;;
3122 break;;
3123 esac
3124 done
3125 test "$ac_cv_exeext" = no && ac_cv_exeext=
3127 else
3128 ac_file=''
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3131 $as_echo "$ac_file" >&6; }
3132 if test -z "$ac_file"; then :
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 { as_fn_set_status 77
3139 as_fn_error "C compiler cannot create executables
3140 See \`config.log' for more details." "$LINENO" 5; }; }
3142 ac_exeext=$ac_cv_exeext
3144 # Check that the compiler produces executables we can run. If not, either
3145 # the compiler is broken, or we cross compile.
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3147 $as_echo_n "checking whether the C compiler works... " >&6; }
3148 # If not cross compiling, check that we can run a simple program.
3149 if test "$cross_compiling" != yes; then
3150 if { ac_try='./$ac_file'
3151 { { case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }; }; then
3161 cross_compiling=no
3162 else
3163 if test "$cross_compiling" = maybe; then
3164 cross_compiling=yes
3165 else
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error "cannot run C compiled programs.
3169 If you meant to cross compile, use \`--host'.
3170 See \`config.log' for more details." "$LINENO" 5; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3177 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3178 ac_clean_files=$ac_clean_files_save
3179 # Check that the compiler produces executables we can run. If not, either
3180 # the compiler is broken, or we cross compile.
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3182 $as_echo_n "checking whether we are cross compiling... " >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3184 $as_echo "$cross_compiling" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3187 $as_echo_n "checking for suffix of executables... " >&6; }
3188 if { { ac_try="$ac_link"
3189 case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3192 esac
3193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3194 $as_echo "$ac_try_echo"; } >&5
3195 (eval "$ac_link") 2>&5
3196 ac_status=$?
3197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3198 test $ac_status = 0; }; then :
3199 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3200 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3201 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 # `rm'.
3203 for ac_file in conftest.exe conftest conftest.*; do
3204 test -f "$ac_file" || continue
3205 case $ac_file in
3206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3207 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3208 break;;
3209 * ) break;;
3210 esac
3211 done
3212 else
3213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error "cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details." "$LINENO" 5; }
3218 rm -f conftest$ac_cv_exeext
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3220 $as_echo "$ac_cv_exeext" >&6; }
3222 rm -f conftest.$ac_ext
3223 EXEEXT=$ac_cv_exeext
3224 ac_exeext=$EXEEXT
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3226 $as_echo_n "checking for suffix of object files... " >&6; }
3227 if test "${ac_cv_objext+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 rm -f conftest.o conftest.obj
3242 if { { ac_try="$ac_compile"
3243 case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248 $as_echo "$ac_try_echo"; } >&5
3249 (eval "$ac_compile") 2>&5
3250 ac_status=$?
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
3253 for ac_file in conftest.o conftest.obj conftest.*; do
3254 test -f "$ac_file" || continue;
3255 case $ac_file in
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3257 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 break;;
3259 esac
3260 done
3261 else
3262 $as_echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3267 as_fn_error "cannot compute suffix of object files: cannot compile
3268 See \`config.log' for more details." "$LINENO" 5; }
3270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3273 $as_echo "$ac_cv_objext" >&6; }
3274 OBJEXT=$ac_cv_objext
3275 ac_objext=$OBJEXT
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3277 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3278 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3285 main ()
3287 #ifndef __GNUC__
3288 choke me
3289 #endif
3292 return 0;
3294 _ACEOF
3295 if ac_fn_c_try_compile "$LINENO"; then :
3296 ac_compiler_gnu=yes
3297 else
3298 ac_compiler_gnu=no
3300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3301 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3305 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3306 if test $ac_compiler_gnu = yes; then
3307 GCC=yes
3308 else
3309 GCC=
3311 ac_test_CFLAGS=${CFLAGS+set}
3312 ac_save_CFLAGS=$CFLAGS
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3314 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3315 if test "${ac_cv_prog_cc_g+set}" = set; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 ac_save_c_werror_flag=$ac_c_werror_flag
3319 ac_c_werror_flag=yes
3320 ac_cv_prog_cc_g=no
3321 CFLAGS="-g"
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3326 main ()
3330 return 0;
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_cv_prog_cc_g=yes
3335 else
3336 CFLAGS=""
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3341 main ()
3345 return 0;
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"; then :
3350 else
3351 ac_c_werror_flag=$ac_save_c_werror_flag
3352 CFLAGS="-g"
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3357 main ()
3361 return 0;
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_g=yes
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 ac_c_werror_flag=$ac_save_c_werror_flag
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3375 $as_echo "$ac_cv_prog_cc_g" >&6; }
3376 if test "$ac_test_CFLAGS" = set; then
3377 CFLAGS=$ac_save_CFLAGS
3378 elif test $ac_cv_prog_cc_g = yes; then
3379 if test "$GCC" = yes; then
3380 CFLAGS="-g -O2"
3381 else
3382 CFLAGS="-g"
3384 else
3385 if test "$GCC" = yes; then
3386 CFLAGS="-O2"
3387 else
3388 CFLAGS=
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3392 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3393 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 ac_cv_prog_cc_c89=no
3397 ac_save_CC=$CC
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h. */
3400 #include <stdarg.h>
3401 #include <stdio.h>
3402 #include <sys/types.h>
3403 #include <sys/stat.h>
3404 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3405 struct buf { int x; };
3406 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3407 static char *e (p, i)
3408 char **p;
3409 int i;
3411 return p[i];
3413 static char *f (char * (*g) (char **, int), char **p, ...)
3415 char *s;
3416 va_list v;
3417 va_start (v,p);
3418 s = g (p, va_arg (v,int));
3419 va_end (v);
3420 return s;
3423 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3424 function prototypes and stuff, but not '\xHH' hex character constants.
3425 These don't provoke an error unfortunately, instead are silently treated
3426 as 'x'. The following induces an error, until -std is added to get
3427 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3428 array size at least. It's necessary to write '\x00'==0 to get something
3429 that's true only with -std. */
3430 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3432 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3433 inside strings and character constants. */
3434 #define FOO(x) 'x'
3435 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3437 int test (int i, double x);
3438 struct s1 {int (*f) (int a);};
3439 struct s2 {int (*f) (double a);};
3440 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3441 int argc;
3442 char **argv;
3444 main ()
3446 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3448 return 0;
3450 _ACEOF
3451 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3452 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3454 CC="$ac_save_CC $ac_arg"
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456 ac_cv_prog_cc_c89=$ac_arg
3458 rm -f core conftest.err conftest.$ac_objext
3459 test "x$ac_cv_prog_cc_c89" != "xno" && break
3460 done
3461 rm -f conftest.$ac_ext
3462 CC=$ac_save_CC
3465 # AC_CACHE_VAL
3466 case "x$ac_cv_prog_cc_c89" in
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3469 $as_echo "none needed" >&6; } ;;
3470 xno)
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3472 $as_echo "unsupported" >&6; } ;;
3474 CC="$CC $ac_cv_prog_cc_c89"
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3476 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3477 esac
3478 if test "x$ac_cv_prog_cc_c89" != xno; then :
3482 ac_ext=c
3483 ac_cpp='$CPP $CPPFLAGS'
3484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488 ac_ext=cpp
3489 ac_cpp='$CXXCPP $CPPFLAGS'
3490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3493 if test -z "$CXX"; then
3494 if test -n "$CCC"; then
3495 CXX=$CCC
3496 else
3497 if test -n "$ac_tool_prefix"; then
3498 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3501 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if test "${ac_cv_prog_CXX+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3506 else
3507 if test -n "$CXX"; then
3508 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3509 else
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3523 IFS=$as_save_IFS
3527 CXX=$ac_cv_prog_CXX
3528 if test -n "$CXX"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3530 $as_echo "$CXX" >&6; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$CXX" && break
3538 done
3540 if test -z "$CXX"; then
3541 ac_ct_CXX=$CXX
3542 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy $ac_prog; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$ac_ct_CXX"; then
3552 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_ac_ct_CXX="$ac_prog"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3565 done
3566 done
3567 IFS=$as_save_IFS
3571 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3572 if test -n "$ac_ct_CXX"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3574 $as_echo "$ac_ct_CXX" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3581 test -n "$ac_ct_CXX" && break
3582 done
3584 if test "x$ac_ct_CXX" = x; then
3585 CXX="g++"
3586 else
3587 case $cross_compiling:$ac_tool_warned in
3588 yes:)
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3592 esac
3593 CXX=$ac_ct_CXX
3599 # Provide some information about the compiler.
3600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3601 set X $ac_compile
3602 ac_compiler=$2
3603 for ac_option in --version -v -V -qversion; do
3604 { { ac_try="$ac_compiler $ac_option >&5"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3612 ac_status=$?
3613 if test -s conftest.err; then
3614 sed '10a\
3615 ... rest of stderr output deleted ...
3616 10q' conftest.err >conftest.er1
3617 cat conftest.er1 >&5
3618 rm -f conftest.er1 conftest.err
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3622 done
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3625 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3626 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3633 main ()
3635 #ifndef __GNUC__
3636 choke me
3637 #endif
3640 return 0;
3642 _ACEOF
3643 if ac_fn_cxx_try_compile "$LINENO"; then :
3644 ac_compiler_gnu=yes
3645 else
3646 ac_compiler_gnu=no
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3653 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3654 if test $ac_compiler_gnu = yes; then
3655 GXX=yes
3656 else
3657 GXX=
3659 ac_test_CXXFLAGS=${CXXFLAGS+set}
3660 ac_save_CXXFLAGS=$CXXFLAGS
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3662 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3663 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3665 else
3666 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3667 ac_cxx_werror_flag=yes
3668 ac_cv_prog_cxx_g=no
3669 CXXFLAGS="-g"
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3674 main ()
3678 return 0;
3680 _ACEOF
3681 if ac_fn_cxx_try_compile "$LINENO"; then :
3682 ac_cv_prog_cxx_g=yes
3683 else
3684 CXXFLAGS=""
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3689 main ()
3693 return 0;
3695 _ACEOF
3696 if ac_fn_cxx_try_compile "$LINENO"; then :
3698 else
3699 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3700 CXXFLAGS="-g"
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3705 main ()
3709 return 0;
3711 _ACEOF
3712 if ac_fn_cxx_try_compile "$LINENO"; then :
3713 ac_cv_prog_cxx_g=yes
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3723 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3724 if test "$ac_test_CXXFLAGS" = set; then
3725 CXXFLAGS=$ac_save_CXXFLAGS
3726 elif test $ac_cv_prog_cxx_g = yes; then
3727 if test "$GXX" = yes; then
3728 CXXFLAGS="-g -O2"
3729 else
3730 CXXFLAGS="-g"
3732 else
3733 if test "$GXX" = yes; then
3734 CXXFLAGS="-O2"
3735 else
3736 CXXFLAGS=
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 if test -n "$ac_tool_prefix"; then
3746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3751 $as_echo_n "(cached) " >&6
3752 else
3753 if test -n "$RANLIB"; then
3754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3767 done
3768 done
3769 IFS=$as_save_IFS
3773 RANLIB=$ac_cv_prog_RANLIB
3774 if test -n "$RANLIB"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3776 $as_echo "$RANLIB" >&6; }
3777 else
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3784 if test -z "$ac_cv_prog_RANLIB"; then
3785 ac_ct_RANLIB=$RANLIB
3786 # Extract the first word of "ranlib", so it can be a program name with args.
3787 set dummy ranlib; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if test -n "$ac_ct_RANLIB"; then
3794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_ac_ct_RANLIB="ranlib"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3807 done
3808 done
3809 IFS=$as_save_IFS
3813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3814 if test -n "$ac_ct_RANLIB"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3816 $as_echo "$ac_ct_RANLIB" >&6; }
3817 else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3822 if test "x$ac_ct_RANLIB" = x; then
3823 RANLIB=":"
3824 else
3825 case $cross_compiling:$ac_tool_warned in
3826 yes:)
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3830 esac
3831 RANLIB=$ac_ct_RANLIB
3833 else
3834 RANLIB="$ac_cv_prog_RANLIB"
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3846 # On Suns, sometimes $CPP names a directory.
3847 if test -n "$CPP" && test -d "$CPP"; then
3848 CPP=
3850 if test -z "$CPP"; then
3851 if test "${ac_cv_prog_CPP+set}" = set; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 # Double quotes because CPP needs to be expanded
3855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3857 ac_preproc_ok=false
3858 for ac_c_preproc_warn_flag in '' yes
3860 # Use a header file that comes with gcc, so configuring glibc
3861 # with a fresh cross-compiler works.
3862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3863 # <limits.h> exists even on freestanding compilers.
3864 # On the NeXT, cc -E runs the code through the compiler's parser,
3865 # not just through cpp. "Syntax error" is here to catch this case.
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #ifdef __STDC__
3869 # include <limits.h>
3870 #else
3871 # include <assert.h>
3872 #endif
3873 Syntax error
3874 _ACEOF
3875 if ac_fn_c_try_cpp "$LINENO"; then :
3877 else
3878 # Broken: fails on valid input.
3879 continue
3881 rm -f conftest.err conftest.$ac_ext
3883 # OK, works on sane cases. Now check whether nonexistent headers
3884 # can be detected and how.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <ac_nonexistent.h>
3888 _ACEOF
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3890 # Broken: success on invalid input.
3891 continue
3892 else
3893 # Passes both tests.
3894 ac_preproc_ok=:
3895 break
3897 rm -f conftest.err conftest.$ac_ext
3899 done
3900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3901 rm -f conftest.err conftest.$ac_ext
3902 if $ac_preproc_ok; then :
3903 break
3906 done
3907 ac_cv_prog_CPP=$CPP
3910 CPP=$ac_cv_prog_CPP
3911 else
3912 ac_cv_prog_CPP=$CPP
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3915 $as_echo "$CPP" >&6; }
3916 ac_preproc_ok=false
3917 for ac_c_preproc_warn_flag in '' yes
3919 # Use a header file that comes with gcc, so configuring glibc
3920 # with a fresh cross-compiler works.
3921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3922 # <limits.h> exists even on freestanding compilers.
3923 # On the NeXT, cc -E runs the code through the compiler's parser,
3924 # not just through cpp. "Syntax error" is here to catch this case.
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #ifdef __STDC__
3928 # include <limits.h>
3929 #else
3930 # include <assert.h>
3931 #endif
3932 Syntax error
3933 _ACEOF
3934 if ac_fn_c_try_cpp "$LINENO"; then :
3936 else
3937 # Broken: fails on valid input.
3938 continue
3940 rm -f conftest.err conftest.$ac_ext
3942 # OK, works on sane cases. Now check whether nonexistent headers
3943 # can be detected and how.
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946 #include <ac_nonexistent.h>
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3949 # Broken: success on invalid input.
3950 continue
3951 else
3952 # Passes both tests.
3953 ac_preproc_ok=:
3954 break
3956 rm -f conftest.err conftest.$ac_ext
3958 done
3959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3960 rm -f conftest.err conftest.$ac_ext
3961 if $ac_preproc_ok; then :
3963 else
3964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3966 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." "$LINENO" 5; }
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3979 if test "${ac_cv_path_GREP+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 if test -z "$GREP"; then
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and test for each of PROGNAME-LIST
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in grep ggrep; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3997 *GNU*)
3998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4000 ac_count=0
4001 $as_echo_n 0123456789 >"conftest.in"
4002 while :
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 $as_echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4010 as_fn_arith $ac_count + 1 && ac_count=$as_val
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP="$ac_path_GREP"
4014 ac_path_GREP_max=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4018 done
4019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4020 esac
4022 $ac_path_GREP_found && break 3
4023 done
4024 done
4025 done
4026 IFS=$as_save_IFS
4027 if test -z "$ac_cv_path_GREP"; then
4028 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4030 else
4031 ac_cv_path_GREP=$GREP
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4036 $as_echo "$ac_cv_path_GREP" >&6; }
4037 GREP="$ac_cv_path_GREP"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4041 $as_echo_n "checking for egrep... " >&6; }
4042 if test "${ac_cv_path_EGREP+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4046 then ac_cv_path_EGREP="$GREP -E"
4047 else
4048 if test -z "$EGREP"; then
4049 ac_path_EGREP_found=false
4050 # Loop through the user's path and test for each of PROGNAME-LIST
4051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4054 IFS=$as_save_IFS
4055 test -z "$as_dir" && as_dir=.
4056 for ac_prog in egrep; do
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4060 # Check for GNU ac_path_EGREP and select it if it is found.
4061 # Check for GNU $ac_path_EGREP
4062 case `"$ac_path_EGREP" --version 2>&1` in
4063 *GNU*)
4064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4066 ac_count=0
4067 $as_echo_n 0123456789 >"conftest.in"
4068 while :
4070 cat "conftest.in" "conftest.in" >"conftest.tmp"
4071 mv "conftest.tmp" "conftest.in"
4072 cp "conftest.in" "conftest.nl"
4073 $as_echo 'EGREP' >> "conftest.nl"
4074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4076 as_fn_arith $ac_count + 1 && ac_count=$as_val
4077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4078 # Best one so far, save it but keep looking for a better one
4079 ac_cv_path_EGREP="$ac_path_EGREP"
4080 ac_path_EGREP_max=$ac_count
4082 # 10*(2^10) chars as input seems more than enough
4083 test $ac_count -gt 10 && break
4084 done
4085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086 esac
4088 $ac_path_EGREP_found && break 3
4089 done
4090 done
4091 done
4092 IFS=$as_save_IFS
4093 if test -z "$ac_cv_path_EGREP"; then
4094 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4096 else
4097 ac_cv_path_EGREP=$EGREP
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4103 $as_echo "$ac_cv_path_EGREP" >&6; }
4104 EGREP="$ac_cv_path_EGREP"
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4108 $as_echo_n "checking for ANSI C header files... " >&6; }
4109 if test "${ac_cv_header_stdc+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4114 #include <stdlib.h>
4115 #include <stdarg.h>
4116 #include <string.h>
4117 #include <float.h>
4120 main ()
4124 return 0;
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_header_stdc=yes
4129 else
4130 ac_cv_header_stdc=no
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 if test $ac_cv_header_stdc = yes; then
4135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <string.h>
4140 _ACEOF
4141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4142 $EGREP "memchr" >/dev/null 2>&1; then :
4144 else
4145 ac_cv_header_stdc=no
4147 rm -f conftest*
4151 if test $ac_cv_header_stdc = yes; then
4152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155 #include <stdlib.h>
4157 _ACEOF
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "free" >/dev/null 2>&1; then :
4161 else
4162 ac_cv_header_stdc=no
4164 rm -f conftest*
4168 if test $ac_cv_header_stdc = yes; then
4169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4170 if test "$cross_compiling" = yes; then :
4172 else
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175 #include <ctype.h>
4176 #include <stdlib.h>
4177 #if ((' ' & 0x0FF) == 0x020)
4178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4180 #else
4181 # define ISLOWER(c) \
4182 (('a' <= (c) && (c) <= 'i') \
4183 || ('j' <= (c) && (c) <= 'r') \
4184 || ('s' <= (c) && (c) <= 'z'))
4185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4186 #endif
4188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4190 main ()
4192 int i;
4193 for (i = 0; i < 256; i++)
4194 if (XOR (islower (i), ISLOWER (i))
4195 || toupper (i) != TOUPPER (i))
4196 return 2;
4197 return 0;
4199 _ACEOF
4200 if ac_fn_c_try_run "$LINENO"; then :
4202 else
4203 ac_cv_header_stdc=no
4205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4206 conftest.$ac_objext conftest.beam conftest.$ac_ext
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4212 $as_echo "$ac_cv_header_stdc" >&6; }
4213 if test $ac_cv_header_stdc = yes; then
4215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4221 inttypes.h stdint.h unistd.h
4222 do :
4223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4226 eval as_val=\$$as_ac_Header
4227 if test "x$as_val" = x""yes; then :
4228 cat >>confdefs.h <<_ACEOF
4229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4230 _ACEOF
4234 done
4238 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4239 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4240 MINIX=yes
4241 else
4242 MINIX=
4246 if test "$MINIX" = yes; then
4248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4254 $as_echo "#define _MINIX 1" >>confdefs.h
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4260 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4261 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4267 # define __EXTENSIONS__ 1
4268 $ac_includes_default
4270 main ()
4274 return 0;
4276 _ACEOF
4277 if ac_fn_c_try_compile "$LINENO"; then :
4278 ac_cv_safe_to_define___extensions__=yes
4279 else
4280 ac_cv_safe_to_define___extensions__=no
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4285 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4286 test $ac_cv_safe_to_define___extensions__ = yes &&
4287 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4289 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4291 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4293 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4295 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4298 # Check whether --enable-largefile was given.
4299 if test "${enable_largefile+set}" = set; then :
4300 enableval=$enable_largefile;
4303 if test "$enable_largefile" != no; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4306 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4307 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 ac_cv_sys_largefile_CC=no
4311 if test "$GCC" != yes; then
4312 ac_save_CC=$CC
4313 while :; do
4314 # IRIX 6.2 and later do not support large files by default,
4315 # so use the C compiler's -n32 option if that helps.
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4318 #include <sys/types.h>
4319 /* Check that off_t can represent 2**63 - 1 correctly.
4320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4321 since some C++ compilers masquerading as C compilers
4322 incorrectly reject 9223372036854775807. */
4323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4325 && LARGE_OFF_T % 2147483647 == 1)
4326 ? 1 : -1];
4328 main ()
4332 return 0;
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 break
4338 rm -f core conftest.err conftest.$ac_objext
4339 CC="$CC -n32"
4340 if ac_fn_c_try_compile "$LINENO"; then :
4341 ac_cv_sys_largefile_CC=' -n32'; break
4343 rm -f core conftest.err conftest.$ac_objext
4344 break
4345 done
4346 CC=$ac_save_CC
4347 rm -f conftest.$ac_ext
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4351 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4352 if test "$ac_cv_sys_largefile_CC" != no; then
4353 CC=$CC$ac_cv_sys_largefile_CC
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4357 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 while :; do
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363 /* end confdefs.h. */
4364 #include <sys/types.h>
4365 /* Check that off_t can represent 2**63 - 1 correctly.
4366 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4367 since some C++ compilers masquerading as C compilers
4368 incorrectly reject 9223372036854775807. */
4369 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4370 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4371 && LARGE_OFF_T % 2147483647 == 1)
4372 ? 1 : -1];
4374 main ()
4378 return 0;
4380 _ACEOF
4381 if ac_fn_c_try_compile "$LINENO"; then :
4382 ac_cv_sys_file_offset_bits=no; break
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386 /* end confdefs.h. */
4387 #define _FILE_OFFSET_BITS 64
4388 #include <sys/types.h>
4389 /* Check that off_t can represent 2**63 - 1 correctly.
4390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4391 since some C++ compilers masquerading as C compilers
4392 incorrectly reject 9223372036854775807. */
4393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4395 && LARGE_OFF_T % 2147483647 == 1)
4396 ? 1 : -1];
4398 main ()
4402 return 0;
4404 _ACEOF
4405 if ac_fn_c_try_compile "$LINENO"; then :
4406 ac_cv_sys_file_offset_bits=64; break
4408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4409 ac_cv_sys_file_offset_bits=unknown
4410 break
4411 done
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4414 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4415 case $ac_cv_sys_file_offset_bits in #(
4416 no | unknown) ;;
4418 cat >>confdefs.h <<_ACEOF
4419 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4420 _ACEOF
4422 esac
4423 rm -rf conftest*
4424 if test $ac_cv_sys_file_offset_bits = unknown; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4426 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4427 if test "${ac_cv_sys_large_files+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 while :; do
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 /* Check that off_t can represent 2**63 - 1 correctly.
4435 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4436 since some C++ compilers masquerading as C compilers
4437 incorrectly reject 9223372036854775807. */
4438 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4439 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4440 && LARGE_OFF_T % 2147483647 == 1)
4441 ? 1 : -1];
4443 main ()
4447 return 0;
4449 _ACEOF
4450 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_cv_sys_large_files=no; break
4453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4456 #define _LARGE_FILES 1
4457 #include <sys/types.h>
4458 /* Check that off_t can represent 2**63 - 1 correctly.
4459 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4460 since some C++ compilers masquerading as C compilers
4461 incorrectly reject 9223372036854775807. */
4462 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4463 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4464 && LARGE_OFF_T % 2147483647 == 1)
4465 ? 1 : -1];
4467 main ()
4471 return 0;
4473 _ACEOF
4474 if ac_fn_c_try_compile "$LINENO"; then :
4475 ac_cv_sys_large_files=1; break
4477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4478 ac_cv_sys_large_files=unknown
4479 break
4480 done
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4483 $as_echo "$ac_cv_sys_large_files" >&6; }
4484 case $ac_cv_sys_large_files in #(
4485 no | unknown) ;;
4487 cat >>confdefs.h <<_ACEOF
4488 #define _LARGE_FILES $ac_cv_sys_large_files
4489 _ACEOF
4491 esac
4492 rm -rf conftest*
4497 # See if we are building gcc with C++.
4498 # Do this early so setting lang to C++ affects following tests
4499 # Check whether --enable-build-with-cxx was given.
4500 if test "${enable_build_with_cxx+set}" = set; then :
4501 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
4502 else
4503 ENABLE_BUILD_WITH_CXX=no
4508 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
4509 for ac_prog in aclocal
4511 # Extract the first word of "$ac_prog", so it can be a program name with args.
4512 set dummy $ac_prog; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 if test -n "$ACLOCAL"; then
4519 ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
4520 else
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 for as_dir in $PATH
4524 IFS=$as_save_IFS
4525 test -z "$as_dir" && as_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4528 ac_cv_prog_ACLOCAL="$ac_prog"
4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 break 2
4532 done
4533 done
4534 IFS=$as_save_IFS
4538 ACLOCAL=$ac_cv_prog_ACLOCAL
4539 if test -n "$ACLOCAL"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
4541 $as_echo "$ACLOCAL" >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4548 test -n "$ACLOCAL" && break
4549 done
4550 test -n "$ACLOCAL" || ACLOCAL="$MISSING aclocal"
4552 for ac_prog in autoconf
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$AUTOCONF"; then
4562 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_AUTOCONF="$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4575 done
4576 done
4577 IFS=$as_save_IFS
4581 AUTOCONF=$ac_cv_prog_AUTOCONF
4582 if test -n "$AUTOCONF"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
4584 $as_echo "$AUTOCONF" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4591 test -n "$AUTOCONF" && break
4592 done
4593 test -n "$AUTOCONF" || AUTOCONF="$MISSING autoconf"
4595 for ac_prog in autoheader
4597 # Extract the first word of "$ac_prog", so it can be a program name with args.
4598 set dummy $ac_prog; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_prog_AUTOHEADER+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test -n "$AUTOHEADER"; then
4605 ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
4606 else
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4614 ac_cv_prog_AUTOHEADER="$ac_prog"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4618 done
4619 done
4620 IFS=$as_save_IFS
4624 AUTOHEADER=$ac_cv_prog_AUTOHEADER
4625 if test -n "$AUTOHEADER"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
4627 $as_echo "$AUTOHEADER" >&6; }
4628 else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 $as_echo "no" >&6; }
4634 test -n "$AUTOHEADER" && break
4635 done
4636 test -n "$AUTOHEADER" || AUTOHEADER="$MISSING autoheader"
4639 # Figure out what compiler warnings we can enable.
4640 # See config/warnings.m4 for details.
4642 warn=
4643 save_CFLAGS="$CFLAGS"
4644 for option in -W -Wall -Wwrite-strings \
4645 -Wmissing-format-attribute; do
4646 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4649 $as_echo_n "checking whether $CC supports $option... " >&6; }
4650 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 CFLAGS="$option"
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4658 main ()
4662 return 0;
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 eval "$as_acx_Woption=yes"
4667 else
4668 eval "$as_acx_Woption=no"
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 eval ac_res=\$$as_acx_Woption
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4675 $as_echo "$ac_res" >&6; }
4676 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4677 warn="$warn${warn:+ }$option"
4679 done
4680 CFLAGS="$save_CFLAGS"
4682 c_warn=
4683 save_CFLAGS="$CFLAGS"
4684 for option in -Wstrict-prototypes -Wmissing-prototypes \
4685 -Wold-style-definition -Wc++-compat; do
4686 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
4689 $as_echo_n "checking whether $CC supports $option... " >&6; }
4690 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 CFLAGS="$option"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4698 main ()
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 eval "$as_acx_Woption=yes"
4707 else
4708 eval "$as_acx_Woption=no"
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4713 eval ac_res=\$$as_acx_Woption
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4715 $as_echo "$ac_res" >&6; }
4716 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
4717 c_warn="$c_warn${c_warn:+ }$option"
4719 done
4720 CFLAGS="$save_CFLAGS"
4722 WARN_PEDANTIC=
4723 if test "$GCC" = yes; then :
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long" >&5
4725 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long... " >&6; }
4726 if test "${acx_cv_prog_cc_pedantic__Wno_long_long+set}" = set; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 save_CFLAGS="$CFLAGS"
4730 CFLAGS="-pedantic -Wno-long-long"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4735 main ()
4739 return 0;
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 acx_cv_prog_cc_pedantic__Wno_long_long=yes
4744 else
4745 acx_cv_prog_cc_pedantic__Wno_long_long=no
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 CFLAGS="$save_CFLAGS"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long" >&5
4751 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long" >&6; }
4752 if test $acx_cv_prog_cc_pedantic__Wno_long_long = yes; then :
4753 WARN_PEDANTIC="$WARN_PEDANTIC${WARN_PEDANTIC:+ }-pedantic -Wno-long-long"
4759 # Only enable with --enable-werror-always until existing warnings are
4760 # corrected.
4761 WERROR=
4762 # Check whether --enable-werror-always was given.
4763 if test "${enable_werror_always+set}" = set; then :
4764 enableval=$enable_werror_always;
4765 else
4766 enable_werror_always=no
4769 if test $enable_werror_always = yes; then :
4770 WERROR="$WERROR${WERROR:+ }-Werror"
4775 # Dependency checking.
4776 rm -rf .tst 2>/dev/null
4777 mkdir .tst 2>/dev/null
4778 if test -d .tst; then
4779 am__leading_dot=.
4780 else
4781 am__leading_dot=_
4783 rmdir .tst 2>/dev/null
4785 DEPDIR="${am__leading_dot}deps"
4787 ac_config_commands="$ac_config_commands depdir"
4790 if test "$ENABLE_BUILD_WITH_CXX" = "no"; then
4791 depcc="$CC" am_compiler_list=
4793 am_depcomp=$ac_aux_dir/depcomp
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4795 $as_echo_n "checking dependency style of $depcc... " >&6; }
4796 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
4798 else
4799 if test -f "$am_depcomp"; then
4800 # We make a subdir and do the tests there. Otherwise we can end up
4801 # making bogus files that we don't know about and never remove. For
4802 # instance it was reported that on HP-UX the gcc test will end up
4803 # making a dummy file named `D' -- because `-MD' means `put the output
4804 # in D'.
4805 mkdir conftest.dir
4806 # Copy depcomp to subdir because otherwise we won't find it if we're
4807 # using a relative directory.
4808 cp "$am_depcomp" conftest.dir
4809 cd conftest.dir
4810 # We will build objects and dependencies in a subdirectory because
4811 # it helps to detect inapplicable dependency modes. For instance
4812 # both Tru64's cc and ICC support -MD to output dependencies as a
4813 # side effect of compilation, but ICC will put the dependencies in
4814 # the current directory while Tru64 will put them in the object
4815 # directory.
4816 mkdir sub
4818 am_cv_CC_dependencies_compiler_type=none
4819 if test "$am_compiler_list" = ""; then
4820 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4822 for depmode in $am_compiler_list; do
4823 if test $depmode = none; then break; fi
4825 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4826 # Setup a source with many dependencies, because some compilers
4827 # like to wrap large dependency lists on column 80 (with \), and
4828 # we should not choose a depcomp mode which is confused by this.
4830 # We need to recreate these files for each test, as the compiler may
4831 # overwrite some of them when testing with obscure command lines.
4832 # This happens at least with the AIX C compiler.
4833 : > sub/conftest.c
4834 for i in 1 2 3 4 5 6; do
4835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4837 # Solaris 8's {/usr,}/bin/sh.
4838 touch sub/conftst$i.h
4839 done
4840 echo "include sub/conftest.Po" > confmf
4842 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4843 # mode. It turns out that the SunPro C++ compiler does not properly
4844 # handle `-M -o', and we need to detect this.
4845 depcmd="depmode=$depmode \
4846 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4847 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4848 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4849 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4850 if env $depcmd > conftest.err 2>&1 &&
4851 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4852 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4853 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4854 # icc doesn't choke on unknown options, it will just issue warnings
4855 # or remarks (even with -Werror). So we grep stderr for any message
4856 # that says an option was ignored or not supported.
4857 # When given -MP, icc 7.0 and 7.1 complain thusly:
4858 # icc: Command line warning: ignoring option '-M'; no argument required
4859 # The diagnosis changed in icc 8.0:
4860 # icc: Command line remark: option '-MP' not supported
4861 if (grep 'ignoring option' conftest.err ||
4862 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4863 am_cv_CC_dependencies_compiler_type=$depmode
4864 $as_echo "$as_me:$LINENO: success" >&5
4865 break
4868 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4869 sed -e 's/^/| /' < conftest.err >&5
4870 done
4872 cd ..
4873 rm -rf conftest.dir
4874 else
4875 am_cv_CC_dependencies_compiler_type=none
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4881 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4882 then as_fn_error "no usable dependency style found" "$LINENO" 5
4883 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4887 else
4888 ac_ext=cpp
4889 ac_cpp='$CXXCPP $CPPFLAGS'
4890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897 int i;
4898 _ACEOF
4899 if ac_fn_cxx_try_compile "$LINENO"; then :
4901 else
4902 as_fn_error "C++ compiler missing or inoperational" "$LINENO" 5
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905 ac_ext=c
4906 ac_cpp='$CPP $CPPFLAGS'
4907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 depcc="$CXX" am_compiler_list=
4913 am_depcomp=$ac_aux_dir/depcomp
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4915 $as_echo_n "checking dependency style of $depcc... " >&6; }
4916 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 if test -f "$am_depcomp"; then
4920 # We make a subdir and do the tests there. Otherwise we can end up
4921 # making bogus files that we don't know about and never remove. For
4922 # instance it was reported that on HP-UX the gcc test will end up
4923 # making a dummy file named `D' -- because `-MD' means `put the output
4924 # in D'.
4925 mkdir conftest.dir
4926 # Copy depcomp to subdir because otherwise we won't find it if we're
4927 # using a relative directory.
4928 cp "$am_depcomp" conftest.dir
4929 cd conftest.dir
4930 # We will build objects and dependencies in a subdirectory because
4931 # it helps to detect inapplicable dependency modes. For instance
4932 # both Tru64's cc and ICC support -MD to output dependencies as a
4933 # side effect of compilation, but ICC will put the dependencies in
4934 # the current directory while Tru64 will put them in the object
4935 # directory.
4936 mkdir sub
4938 am_cv_CXX_dependencies_compiler_type=none
4939 if test "$am_compiler_list" = ""; then
4940 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4942 for depmode in $am_compiler_list; do
4943 if test $depmode = none; then break; fi
4945 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4946 # Setup a source with many dependencies, because some compilers
4947 # like to wrap large dependency lists on column 80 (with \), and
4948 # we should not choose a depcomp mode which is confused by this.
4950 # We need to recreate these files for each test, as the compiler may
4951 # overwrite some of them when testing with obscure command lines.
4952 # This happens at least with the AIX C compiler.
4953 : > sub/conftest.c
4954 for i in 1 2 3 4 5 6; do
4955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4957 # Solaris 8's {/usr,}/bin/sh.
4958 touch sub/conftst$i.h
4959 done
4960 echo "include sub/conftest.Po" > confmf
4962 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4963 # mode. It turns out that the SunPro C++ compiler does not properly
4964 # handle `-M -o', and we need to detect this.
4965 depcmd="depmode=$depmode \
4966 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4967 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4968 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4969 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4970 if env $depcmd > conftest.err 2>&1 &&
4971 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4972 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4973 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4974 # icc doesn't choke on unknown options, it will just issue warnings
4975 # or remarks (even with -Werror). So we grep stderr for any message
4976 # that says an option was ignored or not supported.
4977 # When given -MP, icc 7.0 and 7.1 complain thusly:
4978 # icc: Command line warning: ignoring option '-M'; no argument required
4979 # The diagnosis changed in icc 8.0:
4980 # icc: Command line remark: option '-MP' not supported
4981 if (grep 'ignoring option' conftest.err ||
4982 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4983 am_cv_CXX_dependencies_compiler_type=$depmode
4984 $as_echo "$as_me:$LINENO: success" >&5
4985 break
4988 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4989 sed -e 's/^/| /' < conftest.err >&5
4990 done
4992 cd ..
4993 rm -rf conftest.dir
4994 else
4995 am_cv_CXX_dependencies_compiler_type=none
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5000 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5001 if test x${am_cv_CXX_dependencies_compiler_type-none} = xnone
5002 then as_fn_error "no usable dependency style found" "$LINENO" 5
5003 else CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5009 # Checks for header files.
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5011 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5012 if test "${ac_cv_header_time+set}" = set; then :
5013 $as_echo_n "(cached) " >&6
5014 else
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <sys/types.h>
5018 #include <sys/time.h>
5019 #include <time.h>
5022 main ()
5024 if ((struct tm *) 0)
5025 return 0;
5027 return 0;
5029 _ACEOF
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 ac_cv_header_time=yes
5032 else
5033 ac_cv_header_time=no
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5038 $as_echo "$ac_cv_header_time" >&6; }
5039 if test $ac_cv_header_time = yes; then
5041 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
5046 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
5047 if test "${gcc_cv_header_string+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <string.h>
5053 #include <strings.h>
5055 main ()
5059 return 0;
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"; then :
5063 gcc_cv_header_string=yes
5064 else
5065 gcc_cv_header_string=no
5067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
5070 $as_echo "$gcc_cv_header_string" >&6; }
5071 if test $gcc_cv_header_string = yes; then
5073 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
5078 for ac_header in locale.h fcntl.h limits.h stddef.h \
5079 stdlib.h strings.h string.h sys/file.h unistd.h
5080 do :
5081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5083 eval as_val=\$$as_ac_Header
5084 if test "x$as_val" = x""yes; then :
5085 cat >>confdefs.h <<_ACEOF
5086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087 _ACEOF
5091 done
5094 # Checks for typedefs, structures, and compiler characteristics.
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5096 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5097 if test "${ac_cv_c_bigendian+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 ac_cv_c_bigendian=unknown
5101 # See if we're dealing with a universal compiler.
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 #ifndef __APPLE_CC__
5105 not a universal capable compiler
5106 #endif
5107 typedef int dummy;
5109 _ACEOF
5110 if ac_fn_c_try_compile "$LINENO"; then :
5112 # Check for potential -arch flags. It is not universal unless
5113 # there are at least two -arch flags with different values.
5114 ac_arch=
5115 ac_prev=
5116 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5117 if test -n "$ac_prev"; then
5118 case $ac_word in
5119 i?86 | x86_64 | ppc | ppc64)
5120 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5121 ac_arch=$ac_word
5122 else
5123 ac_cv_c_bigendian=universal
5124 break
5127 esac
5128 ac_prev=
5129 elif test "x$ac_word" = "x-arch"; then
5130 ac_prev=arch
5132 done
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135 if test $ac_cv_c_bigendian = unknown; then
5136 # See if sys/param.h defines the BYTE_ORDER macro.
5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138 /* end confdefs.h. */
5139 #include <sys/types.h>
5140 #include <sys/param.h>
5143 main ()
5145 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5146 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5147 && LITTLE_ENDIAN)
5148 bogus endian macros
5149 #endif
5152 return 0;
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"; then :
5156 # It does; now see whether it defined to BIG_ENDIAN or not.
5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5158 /* end confdefs.h. */
5159 #include <sys/types.h>
5160 #include <sys/param.h>
5163 main ()
5165 #if BYTE_ORDER != BIG_ENDIAN
5166 not big endian
5167 #endif
5170 return 0;
5172 _ACEOF
5173 if ac_fn_c_try_compile "$LINENO"; then :
5174 ac_cv_c_bigendian=yes
5175 else
5176 ac_cv_c_bigendian=no
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 if test $ac_cv_c_bigendian = unknown; then
5183 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* end confdefs.h. */
5186 #include <limits.h>
5189 main ()
5191 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5192 bogus endian macros
5193 #endif
5196 return 0;
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"; then :
5200 # It does; now see whether it defined to _BIG_ENDIAN or not.
5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 #include <limits.h>
5206 main ()
5208 #ifndef _BIG_ENDIAN
5209 not big endian
5210 #endif
5213 return 0;
5215 _ACEOF
5216 if ac_fn_c_try_compile "$LINENO"; then :
5217 ac_cv_c_bigendian=yes
5218 else
5219 ac_cv_c_bigendian=no
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 if test $ac_cv_c_bigendian = unknown; then
5226 # Compile a test program.
5227 if test "$cross_compiling" = yes; then :
5228 # Try to guess by grepping values from an object file.
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 short int ascii_mm[] =
5232 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5233 short int ascii_ii[] =
5234 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5235 int use_ascii (int i) {
5236 return ascii_mm[i] + ascii_ii[i];
5238 short int ebcdic_ii[] =
5239 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5240 short int ebcdic_mm[] =
5241 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5242 int use_ebcdic (int i) {
5243 return ebcdic_mm[i] + ebcdic_ii[i];
5245 extern int foo;
5248 main ()
5250 return use_ascii (foo) == use_ebcdic (foo);
5252 return 0;
5254 _ACEOF
5255 if ac_fn_c_try_compile "$LINENO"; then :
5256 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5257 ac_cv_c_bigendian=yes
5259 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5260 if test "$ac_cv_c_bigendian" = unknown; then
5261 ac_cv_c_bigendian=no
5262 else
5263 # finding both strings is unlikely to happen, but who knows?
5264 ac_cv_c_bigendian=unknown
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 $ac_includes_default
5274 main ()
5277 /* Are we little or big endian? From Harbison&Steele. */
5278 union
5280 long int l;
5281 char c[sizeof (long int)];
5282 } u;
5283 u.l = 1;
5284 return u.c[sizeof (long int) - 1] == 1;
5287 return 0;
5289 _ACEOF
5290 if ac_fn_c_try_run "$LINENO"; then :
5291 ac_cv_c_bigendian=no
5292 else
5293 ac_cv_c_bigendian=yes
5295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5296 conftest.$ac_objext conftest.beam conftest.$ac_ext
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5302 $as_echo "$ac_cv_c_bigendian" >&6; }
5303 case $ac_cv_c_bigendian in #(
5304 yes)
5305 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5306 ;; #(
5308 ;; #(
5309 universal)
5311 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5313 ;; #(
5315 as_fn_error "unknown endianness
5316 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5317 esac
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5320 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5321 if test "${ac_cv_c_const+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5328 main ()
5330 /* FIXME: Include the comments suggested by Paul. */
5331 #ifndef __cplusplus
5332 /* Ultrix mips cc rejects this. */
5333 typedef int charset[2];
5334 const charset cs;
5335 /* SunOS 4.1.1 cc rejects this. */
5336 char const *const *pcpcc;
5337 char **ppc;
5338 /* NEC SVR4.0.2 mips cc rejects this. */
5339 struct point {int x, y;};
5340 static struct point const zero = {0,0};
5341 /* AIX XL C 1.02.0.0 rejects this.
5342 It does not let you subtract one const X* pointer from another in
5343 an arm of an if-expression whose if-part is not a constant
5344 expression */
5345 const char *g = "string";
5346 pcpcc = &g + (g ? g-g : 0);
5347 /* HPUX 7.0 cc rejects these. */
5348 ++pcpcc;
5349 ppc = (char**) pcpcc;
5350 pcpcc = (char const *const *) ppc;
5351 { /* SCO 3.2v4 cc rejects this. */
5352 char *t;
5353 char const *s = 0 ? (char *) 0 : (char const *) 0;
5355 *t++ = 0;
5356 if (s) return 0;
5358 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5359 int x[] = {25, 17};
5360 const int *foo = &x[0];
5361 ++foo;
5363 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5364 typedef const int *iptr;
5365 iptr p = 0;
5366 ++p;
5368 { /* AIX XL C 1.02.0.0 rejects this saying
5369 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5370 struct s { int j; const int *ap[3]; };
5371 struct s *b; b->j = 5;
5373 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5374 const int foo = 10;
5375 if (!foo) return 0;
5377 return !cs[0] && !zero.x;
5378 #endif
5381 return 0;
5383 _ACEOF
5384 if ac_fn_c_try_compile "$LINENO"; then :
5385 ac_cv_c_const=yes
5386 else
5387 ac_cv_c_const=no
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5392 $as_echo "$ac_cv_c_const" >&6; }
5393 if test $ac_cv_c_const = no; then
5395 $as_echo "#define const /**/" >>confdefs.h
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5400 $as_echo_n "checking for inline... " >&6; }
5401 if test "${ac_cv_c_inline+set}" = set; then :
5402 $as_echo_n "(cached) " >&6
5403 else
5404 ac_cv_c_inline=no
5405 for ac_kw in inline __inline__ __inline; do
5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5407 /* end confdefs.h. */
5408 #ifndef __cplusplus
5409 typedef int foo_t;
5410 static $ac_kw foo_t static_foo () {return 0; }
5411 $ac_kw foo_t foo () {return 0; }
5412 #endif
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 ac_cv_c_inline=$ac_kw
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 test "$ac_cv_c_inline" != no && break
5420 done
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5424 $as_echo "$ac_cv_c_inline" >&6; }
5426 case $ac_cv_c_inline in
5427 inline | yes) ;;
5429 case $ac_cv_c_inline in
5430 no) ac_val=;;
5431 *) ac_val=$ac_cv_c_inline;;
5432 esac
5433 cat >>confdefs.h <<_ACEOF
5434 #ifndef __cplusplus
5435 #define inline $ac_val
5436 #endif
5437 _ACEOF
5439 esac
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for obstacks" >&5
5442 $as_echo_n "checking for obstacks... " >&6; }
5443 if test "${ac_cv_func_obstack+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 $ac_includes_default
5449 #include "obstack.h"
5451 main ()
5453 struct obstack mem;
5454 #define obstack_chunk_alloc malloc
5455 #define obstack_chunk_free free
5456 obstack_init (&mem);
5457 obstack_free (&mem, 0);
5459 return 0;
5461 _ACEOF
5462 if ac_fn_c_try_link "$LINENO"; then :
5463 ac_cv_func_obstack=yes
5464 else
5465 ac_cv_func_obstack=no
5467 rm -f core conftest.err conftest.$ac_objext \
5468 conftest$ac_exeext conftest.$ac_ext
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_obstack" >&5
5471 $as_echo "$ac_cv_func_obstack" >&6; }
5472 if test $ac_cv_func_obstack = yes; then
5474 $as_echo "#define HAVE_OBSTACK 1" >>confdefs.h
5476 else
5477 case " $LIBOBJS " in
5478 *" obstack.$ac_objext "* ) ;;
5479 *) LIBOBJS="$LIBOBJS obstack.$ac_objext"
5481 esac
5485 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5486 if test "x$ac_cv_type_off_t" = x""yes; then :
5488 else
5490 cat >>confdefs.h <<_ACEOF
5491 #define off_t long int
5492 _ACEOF
5496 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5497 if test "x$ac_cv_type_size_t" = x""yes; then :
5499 else
5501 cat >>confdefs.h <<_ACEOF
5502 #define size_t unsigned int
5503 _ACEOF
5507 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5508 if test "x$ac_cv_type_ssize_t" = x""yes; then :
5510 else
5512 cat >>confdefs.h <<_ACEOF
5513 #define ssize_t int
5514 _ACEOF
5519 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
5520 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
5522 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
5524 else
5525 for ac_type in 'unsigned int' 'unsigned long int' \
5526 'unsigned long long int'; do
5527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528 /* end confdefs.h. */
5529 $ac_includes_default
5531 main ()
5533 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5534 test_array [0] = 0
5537 return 0;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"; then :
5542 cat >>confdefs.h <<_ACEOF
5543 #define uintptr_t $ac_type
5544 _ACEOF
5546 ac_type=
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5549 test -z "$ac_type" && break
5550 done
5554 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
5555 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
5557 else
5559 cat >>confdefs.h <<_ACEOF
5560 #define ptrdiff_t int
5561 _ACEOF
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5566 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5567 if test "${ac_cv_struct_tm+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <sys/types.h>
5573 #include <time.h>
5576 main ()
5578 struct tm tm;
5579 int *p = &tm.tm_sec;
5580 return !p;
5582 return 0;
5584 _ACEOF
5585 if ac_fn_c_try_compile "$LINENO"; then :
5586 ac_cv_struct_tm=time.h
5587 else
5588 ac_cv_struct_tm=sys/time.h
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5593 $as_echo "$ac_cv_struct_tm" >&6; }
5594 if test $ac_cv_struct_tm = sys/time.h; then
5596 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5600 # The cast to long int works around a bug in the HP C Compiler
5601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5603 # This bug is HP SR number 8606223364.
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5605 $as_echo_n "checking size of int... " >&6; }
5606 if test "${ac_cv_sizeof_int+set}" = set; then :
5607 $as_echo_n "(cached) " >&6
5608 else
5609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5611 else
5612 if test "$ac_cv_type_int" = yes; then
5613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5615 { as_fn_set_status 77
5616 as_fn_error "cannot compute sizeof (int)
5617 See \`config.log' for more details." "$LINENO" 5; }; }
5618 else
5619 ac_cv_sizeof_int=0
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5625 $as_echo "$ac_cv_sizeof_int" >&6; }
5629 cat >>confdefs.h <<_ACEOF
5630 #define SIZEOF_INT $ac_cv_sizeof_int
5631 _ACEOF
5634 # The cast to long int works around a bug in the HP C Compiler
5635 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5636 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5637 # This bug is HP SR number 8606223364.
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5639 $as_echo_n "checking size of long... " >&6; }
5640 if test "${ac_cv_sizeof_long+set}" = set; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5645 else
5646 if test "$ac_cv_type_long" = yes; then
5647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5649 { as_fn_set_status 77
5650 as_fn_error "cannot compute sizeof (long)
5651 See \`config.log' for more details." "$LINENO" 5; }; }
5652 else
5653 ac_cv_sizeof_long=0
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5659 $as_echo "$ac_cv_sizeof_long" >&6; }
5663 cat >>confdefs.h <<_ACEOF
5664 #define SIZEOF_LONG $ac_cv_sizeof_long
5665 _ACEOF
5669 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
5670 do :
5671 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5672 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5673 eval as_val=\$$as_ac_var
5674 if test "x$as_val" = x""yes; then :
5675 cat >>confdefs.h <<_ACEOF
5676 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5677 _ACEOF
5680 done
5682 ac_fn_c_check_decl "$LINENO" "abort" "ac_cv_have_decl_abort" "$ac_includes_default"
5683 if test "x$ac_cv_have_decl_abort" = x""yes; then :
5684 ac_have_decl=1
5685 else
5686 ac_have_decl=0
5689 cat >>confdefs.h <<_ACEOF
5690 #define HAVE_DECL_ABORT $ac_have_decl
5691 _ACEOF
5692 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
5693 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
5694 ac_have_decl=1
5695 else
5696 ac_have_decl=0
5699 cat >>confdefs.h <<_ACEOF
5700 #define HAVE_DECL_ASPRINTF $ac_have_decl
5701 _ACEOF
5702 ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
5703 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
5704 ac_have_decl=1
5705 else
5706 ac_have_decl=0
5709 cat >>confdefs.h <<_ACEOF
5710 #define HAVE_DECL_BASENAME $ac_have_decl
5711 _ACEOF
5712 ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "$ac_includes_default"
5713 if test "x$ac_cv_have_decl_errno" = x""yes; then :
5714 ac_have_decl=1
5715 else
5716 ac_have_decl=0
5719 cat >>confdefs.h <<_ACEOF
5720 #define HAVE_DECL_ERRNO $ac_have_decl
5721 _ACEOF
5722 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
5723 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
5724 ac_have_decl=1
5725 else
5726 ac_have_decl=0
5729 cat >>confdefs.h <<_ACEOF
5730 #define HAVE_DECL_GETOPT $ac_have_decl
5731 _ACEOF
5732 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5733 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5734 ac_have_decl=1
5735 else
5736 ac_have_decl=0
5739 cat >>confdefs.h <<_ACEOF
5740 #define HAVE_DECL_VASPRINTF $ac_have_decl
5741 _ACEOF
5743 ac_fn_c_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default"
5744 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then :
5745 ac_have_decl=1
5746 else
5747 ac_have_decl=0
5750 cat >>confdefs.h <<_ACEOF
5751 #define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl
5752 _ACEOF
5753 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default"
5754 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then :
5755 ac_have_decl=1
5756 else
5757 ac_have_decl=0
5760 cat >>confdefs.h <<_ACEOF
5761 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
5762 _ACEOF
5763 ac_fn_c_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default"
5764 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then :
5765 ac_have_decl=1
5766 else
5767 ac_have_decl=0
5770 cat >>confdefs.h <<_ACEOF
5771 #define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl
5772 _ACEOF
5773 ac_fn_c_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default"
5774 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then :
5775 ac_have_decl=1
5776 else
5777 ac_have_decl=0
5780 cat >>confdefs.h <<_ACEOF
5781 #define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl
5782 _ACEOF
5783 ac_fn_c_check_decl "$LINENO" "fgetc_unlocked" "ac_cv_have_decl_fgetc_unlocked" "$ac_includes_default"
5784 if test "x$ac_cv_have_decl_fgetc_unlocked" = x""yes; then :
5785 ac_have_decl=1
5786 else
5787 ac_have_decl=0
5790 cat >>confdefs.h <<_ACEOF
5791 #define HAVE_DECL_FGETC_UNLOCKED $ac_have_decl
5792 _ACEOF
5793 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default"
5794 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then :
5795 ac_have_decl=1
5796 else
5797 ac_have_decl=0
5800 cat >>confdefs.h <<_ACEOF
5801 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
5802 _ACEOF
5803 ac_fn_c_check_decl "$LINENO" "fileno_unlocked" "ac_cv_have_decl_fileno_unlocked" "$ac_includes_default"
5804 if test "x$ac_cv_have_decl_fileno_unlocked" = x""yes; then :
5805 ac_have_decl=1
5806 else
5807 ac_have_decl=0
5810 cat >>confdefs.h <<_ACEOF
5811 #define HAVE_DECL_FILENO_UNLOCKED $ac_have_decl
5812 _ACEOF
5813 ac_fn_c_check_decl "$LINENO" "fprintf_unlocked" "ac_cv_have_decl_fprintf_unlocked" "$ac_includes_default"
5814 if test "x$ac_cv_have_decl_fprintf_unlocked" = x""yes; then :
5815 ac_have_decl=1
5816 else
5817 ac_have_decl=0
5820 cat >>confdefs.h <<_ACEOF
5821 #define HAVE_DECL_FPRINTF_UNLOCKED $ac_have_decl
5822 _ACEOF
5823 ac_fn_c_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default"
5824 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then :
5825 ac_have_decl=1
5826 else
5827 ac_have_decl=0
5830 cat >>confdefs.h <<_ACEOF
5831 #define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl
5832 _ACEOF
5833 ac_fn_c_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default"
5834 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then :
5835 ac_have_decl=1
5836 else
5837 ac_have_decl=0
5840 cat >>confdefs.h <<_ACEOF
5841 #define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl
5842 _ACEOF
5843 ac_fn_c_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default"
5844 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then :
5845 ac_have_decl=1
5846 else
5847 ac_have_decl=0
5850 cat >>confdefs.h <<_ACEOF
5851 #define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl
5852 _ACEOF
5853 ac_fn_c_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default"
5854 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then :
5855 ac_have_decl=1
5856 else
5857 ac_have_decl=0
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl
5862 _ACEOF
5863 ac_fn_c_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default"
5864 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then :
5865 ac_have_decl=1
5866 else
5867 ac_have_decl=0
5870 cat >>confdefs.h <<_ACEOF
5871 #define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl
5872 _ACEOF
5873 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
5874 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
5875 ac_have_decl=1
5876 else
5877 ac_have_decl=0
5880 cat >>confdefs.h <<_ACEOF
5881 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
5882 _ACEOF
5883 ac_fn_c_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default"
5884 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then :
5885 ac_have_decl=1
5886 else
5887 ac_have_decl=0
5890 cat >>confdefs.h <<_ACEOF
5891 #define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl
5892 _ACEOF
5893 ac_fn_c_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default"
5894 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then :
5895 ac_have_decl=1
5896 else
5897 ac_have_decl=0
5900 cat >>confdefs.h <<_ACEOF
5901 #define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl
5902 _ACEOF
5905 # Checks for library functions.
5906 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5907 # for constant arguments. Useless!
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5909 $as_echo_n "checking for working alloca.h... " >&6; }
5910 if test "${ac_cv_working_alloca_h+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5915 #include <alloca.h>
5917 main ()
5919 char *p = (char *) alloca (2 * sizeof (int));
5920 if (p) return 0;
5922 return 0;
5924 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then :
5926 ac_cv_working_alloca_h=yes
5927 else
5928 ac_cv_working_alloca_h=no
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5934 $as_echo "$ac_cv_working_alloca_h" >&6; }
5935 if test $ac_cv_working_alloca_h = yes; then
5937 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5942 $as_echo_n "checking for alloca... " >&6; }
5943 if test "${ac_cv_func_alloca_works+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h. */
5948 #ifdef __GNUC__
5949 # define alloca __builtin_alloca
5950 #else
5951 # ifdef _MSC_VER
5952 # include <malloc.h>
5953 # define alloca _alloca
5954 # else
5955 # ifdef HAVE_ALLOCA_H
5956 # include <alloca.h>
5957 # else
5958 # ifdef _AIX
5959 #pragma alloca
5960 # else
5961 # ifndef alloca /* predefined by HP cc +Olibcalls */
5962 char *alloca ();
5963 # endif
5964 # endif
5965 # endif
5966 # endif
5967 #endif
5970 main ()
5972 char *p = (char *) alloca (1);
5973 if (p) return 0;
5975 return 0;
5977 _ACEOF
5978 if ac_fn_c_try_link "$LINENO"; then :
5979 ac_cv_func_alloca_works=yes
5980 else
5981 ac_cv_func_alloca_works=no
5983 rm -f core conftest.err conftest.$ac_objext \
5984 conftest$ac_exeext conftest.$ac_ext
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5987 $as_echo "$ac_cv_func_alloca_works" >&6; }
5989 if test $ac_cv_func_alloca_works = yes; then
5991 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5993 else
5994 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5995 # that cause trouble. Some versions do not even contain alloca or
5996 # contain a buggy version. If you still want to use their alloca,
5997 # use ar to extract alloca.o from them instead of compiling alloca.c.
5999 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6001 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6005 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6006 if test "${ac_cv_os_cray+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 #if defined CRAY && ! defined CRAY2
6012 webecray
6013 #else
6014 wenotbecray
6015 #endif
6017 _ACEOF
6018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6019 $EGREP "webecray" >/dev/null 2>&1; then :
6020 ac_cv_os_cray=yes
6021 else
6022 ac_cv_os_cray=no
6024 rm -f conftest*
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6028 $as_echo "$ac_cv_os_cray" >&6; }
6029 if test $ac_cv_os_cray = yes; then
6030 for ac_func in _getb67 GETB67 getb67; do
6031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6033 eval as_val=\$$as_ac_var
6034 if test "x$as_val" = x""yes; then :
6036 cat >>confdefs.h <<_ACEOF
6037 #define CRAY_STACKSEG_END $ac_func
6038 _ACEOF
6040 break
6043 done
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6047 $as_echo_n "checking stack direction for C alloca... " >&6; }
6048 if test "${ac_cv_c_stack_direction+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6050 else
6051 if test "$cross_compiling" = yes; then :
6052 ac_cv_c_stack_direction=0
6053 else
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 $ac_includes_default
6058 find_stack_direction ()
6060 static char *addr = 0;
6061 auto char dummy;
6062 if (addr == 0)
6064 addr = &dummy;
6065 return find_stack_direction ();
6067 else
6068 return (&dummy > addr) ? 1 : -1;
6072 main ()
6074 return find_stack_direction () < 0;
6076 _ACEOF
6077 if ac_fn_c_try_run "$LINENO"; then :
6078 ac_cv_c_stack_direction=1
6079 else
6080 ac_cv_c_stack_direction=-1
6082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6083 conftest.$ac_objext conftest.beam conftest.$ac_ext
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6088 $as_echo "$ac_cv_c_stack_direction" >&6; }
6089 cat >>confdefs.h <<_ACEOF
6090 #define STACK_DIRECTION $ac_cv_c_stack_direction
6091 _ACEOF
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6097 $as_echo_n "checking for ANSI C header files... " >&6; }
6098 if test "${ac_cv_header_stdc+set}" = set; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #include <stdlib.h>
6104 #include <stdarg.h>
6105 #include <string.h>
6106 #include <float.h>
6109 main ()
6113 return 0;
6115 _ACEOF
6116 if ac_fn_c_try_compile "$LINENO"; then :
6117 ac_cv_header_stdc=yes
6118 else
6119 ac_cv_header_stdc=no
6121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 if test $ac_cv_header_stdc = yes; then
6124 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 #include <string.h>
6129 _ACEOF
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev/null 2>&1; then :
6133 else
6134 ac_cv_header_stdc=no
6136 rm -f conftest*
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 #include <stdlib.h>
6146 _ACEOF
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "free" >/dev/null 2>&1; then :
6150 else
6151 ac_cv_header_stdc=no
6153 rm -f conftest*
6157 if test $ac_cv_header_stdc = yes; then
6158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6159 if test "$cross_compiling" = yes; then :
6161 else
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6164 #include <ctype.h>
6165 #include <stdlib.h>
6166 #if ((' ' & 0x0FF) == 0x020)
6167 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6168 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6169 #else
6170 # define ISLOWER(c) \
6171 (('a' <= (c) && (c) <= 'i') \
6172 || ('j' <= (c) && (c) <= 'r') \
6173 || ('s' <= (c) && (c) <= 'z'))
6174 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6175 #endif
6177 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6179 main ()
6181 int i;
6182 for (i = 0; i < 256; i++)
6183 if (XOR (islower (i), ISLOWER (i))
6184 || toupper (i) != TOUPPER (i))
6185 return 2;
6186 return 0;
6188 _ACEOF
6189 if ac_fn_c_try_run "$LINENO"; then :
6191 else
6192 ac_cv_header_stdc=no
6194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6195 conftest.$ac_objext conftest.beam conftest.$ac_ext
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6201 $as_echo "$ac_cv_header_stdc" >&6; }
6202 if test $ac_cv_header_stdc = yes; then
6204 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6210 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6211 if test "${am_cv_langinfo_codeset+set}" = set; then :
6212 $as_echo_n "(cached) " >&6
6213 else
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215 /* end confdefs.h. */
6216 #include <langinfo.h>
6218 main ()
6220 char* cs = nl_langinfo(CODESET);
6222 return 0;
6224 _ACEOF
6225 if ac_fn_c_try_link "$LINENO"; then :
6226 am_cv_langinfo_codeset=yes
6227 else
6228 am_cv_langinfo_codeset=no
6230 rm -f core conftest.err conftest.$ac_objext \
6231 conftest$ac_exeext conftest.$ac_ext
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6235 $as_echo "$am_cv_langinfo_codeset" >&6; }
6236 if test $am_cv_langinfo_codeset = yes; then
6238 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6242 # If we haven't got the data from the intl directory,
6243 # assume NLS is disabled.
6244 USE_NLS=no
6245 LIBINTL=
6246 LIBINTL_DEP=
6247 INCINTL=
6248 XGETTEXT=
6249 GMSGFMT=
6250 POSUB=
6252 if test -f ../intl/config.intl; then
6253 . ../intl/config.intl
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6256 $as_echo_n "checking whether NLS is requested... " >&6; }
6257 if test x"$USE_NLS" != xyes; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 else
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262 $as_echo "yes" >&6; }
6264 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6268 $as_echo_n "checking for catalogs to be installed... " >&6; }
6269 # Look for .po and .gmo files in the source directory.
6270 CATALOGS=
6271 XLINGUAS=
6272 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6273 # If there aren't any .gmo files the shell will give us the
6274 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6275 # weeded out.
6276 case "$cat" in *\**)
6277 continue;;
6278 esac
6279 # The quadruple backslash is collapsed to a double backslash
6280 # by the backticks, then collapsed again by the double quotes,
6281 # leaving us with one backslash in the sed expression (right
6282 # before the dot that mustn't act as a wildcard).
6283 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6284 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6285 # The user is allowed to set LINGUAS to a list of languages to
6286 # install catalogs for. If it's empty that means "all of them."
6287 if test "x$LINGUAS" = x; then
6288 CATALOGS="$CATALOGS $cat"
6289 XLINGUAS="$XLINGUAS $lang"
6290 else
6291 case "$LINGUAS" in *$lang*)
6292 CATALOGS="$CATALOGS $cat"
6293 XLINGUAS="$XLINGUAS $lang"
6295 esac
6297 done
6298 LINGUAS="$XLINGUAS"
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6300 $as_echo "$LINGUAS" >&6; }
6303 DATADIRNAME=share
6305 INSTOBJEXT=.mo
6307 GENCAT=gencat
6309 CATOBJEXT=.gmo
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uchar" >&5
6314 $as_echo_n "checking for uchar... " >&6; }
6315 if test "${gcc_cv_type_uchar+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6321 #include <sys/types.h>
6324 main ()
6326 if ((uchar *)0) return 0;
6327 if (sizeof(uchar)) return 0;
6329 return 0;
6331 _ACEOF
6332 if ac_fn_c_try_compile "$LINENO"; then :
6333 ac_cv_type_uchar=yes
6334 else
6335 ac_cv_type_uchar=no
6337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_uchar" >&5
6340 $as_echo "$gcc_cv_type_uchar" >&6; }
6341 if test $ac_cv_type_uchar = yes; then
6343 $as_echo "#define HAVE_UCHAR 1" >>confdefs.h
6348 if test "X$prefix" = "XNONE"; then
6349 acl_final_prefix="$ac_default_prefix"
6350 else
6351 acl_final_prefix="$prefix"
6353 if test "X$exec_prefix" = "XNONE"; then
6354 acl_final_exec_prefix='${prefix}'
6355 else
6356 acl_final_exec_prefix="$exec_prefix"
6358 acl_save_prefix="$prefix"
6359 prefix="$acl_final_prefix"
6360 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6361 prefix="$acl_save_prefix"
6364 # Check whether --with-gnu-ld was given.
6365 if test "${with_gnu_ld+set}" = set; then :
6366 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6367 else
6368 with_gnu_ld=no
6371 # Prepare PATH_SEPARATOR.
6372 # The user is always right.
6373 if test "${PATH_SEPARATOR+set}" != set; then
6374 echo "#! /bin/sh" >conf$$.sh
6375 echo "exit 0" >>conf$$.sh
6376 chmod +x conf$$.sh
6377 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6378 PATH_SEPARATOR=';'
6379 else
6380 PATH_SEPARATOR=:
6382 rm -f conf$$.sh
6384 ac_prog=ld
6385 if test "$GCC" = yes; then
6386 # Check if gcc -print-prog-name=ld gives a path.
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6388 $as_echo_n "checking for ld used by GCC... " >&6; }
6389 case $host in
6390 *-*-mingw*)
6391 # gcc leaves a trailing carriage return which upsets mingw
6392 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6394 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6395 esac
6396 case $ac_prog in
6397 # Accept absolute paths.
6398 [\\/]* | [A-Za-z]:[\\/]*)
6399 re_direlt='/[^/][^/]*/\.\./'
6400 # Canonicalize the path of ld
6401 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6402 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6403 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6404 done
6405 test -z "$LD" && LD="$ac_prog"
6408 # If it fails, then pretend we aren't using GCC.
6409 ac_prog=ld
6412 # If it is relative, then search for the first ld in PATH.
6413 with_gnu_ld=unknown
6415 esac
6416 elif test "$with_gnu_ld" = yes; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6418 $as_echo_n "checking for GNU ld... " >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6421 $as_echo_n "checking for non-GNU ld... " >&6; }
6423 if test "${acl_cv_path_LD+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -z "$LD"; then
6427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6428 for ac_dir in $PATH; do
6429 test -z "$ac_dir" && ac_dir=.
6430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6431 acl_cv_path_LD="$ac_dir/$ac_prog"
6432 # Check to see if the program is GNU ld. I'd rather use --version,
6433 # but apparently some GNU ld's only accept -v.
6434 # Break only if it was the GNU/non-GNU ld that we prefer.
6435 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6436 test "$with_gnu_ld" != no && break
6437 else
6438 test "$with_gnu_ld" != yes && break
6441 done
6442 IFS="$ac_save_ifs"
6443 else
6444 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6448 LD="$acl_cv_path_LD"
6449 if test -n "$LD"; then
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6451 $as_echo "$LD" >&6; }
6452 else
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6456 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6458 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6459 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6463 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6464 acl_cv_prog_gnu_ld=yes
6465 else
6466 acl_cv_prog_gnu_ld=no
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6470 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6471 with_gnu_ld=$acl_cv_prog_gnu_ld
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6476 $as_echo_n "checking for shared library run path origin... " >&6; }
6477 if test "${acl_cv_rpath+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6481 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6482 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6483 . ./conftest.sh
6484 rm -f ./conftest.sh
6485 acl_cv_rpath=done
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6489 $as_echo "$acl_cv_rpath" >&6; }
6490 wl="$acl_cv_wl"
6491 libext="$acl_cv_libext"
6492 shlibext="$acl_cv_shlibext"
6493 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6494 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6495 hardcode_direct="$acl_cv_hardcode_direct"
6496 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6497 # Check whether --enable-rpath was given.
6498 if test "${enable_rpath+set}" = set; then :
6499 enableval=$enable_rpath; :
6500 else
6501 enable_rpath=yes
6511 use_additional=yes
6513 acl_save_prefix="$prefix"
6514 prefix="$acl_final_prefix"
6515 acl_save_exec_prefix="$exec_prefix"
6516 exec_prefix="$acl_final_exec_prefix"
6518 eval additional_includedir=\"$includedir\"
6519 eval additional_libdir=\"$libdir\"
6521 exec_prefix="$acl_save_exec_prefix"
6522 prefix="$acl_save_prefix"
6525 # Check whether --with-libiconv-prefix was given.
6526 if test "${with_libiconv_prefix+set}" = set; then :
6527 withval=$with_libiconv_prefix;
6528 if test "X$withval" = "Xno"; then
6529 use_additional=no
6530 else
6531 if test "X$withval" = "X"; then
6533 acl_save_prefix="$prefix"
6534 prefix="$acl_final_prefix"
6535 acl_save_exec_prefix="$exec_prefix"
6536 exec_prefix="$acl_final_exec_prefix"
6538 eval additional_includedir=\"$includedir\"
6539 eval additional_libdir=\"$libdir\"
6541 exec_prefix="$acl_save_exec_prefix"
6542 prefix="$acl_save_prefix"
6544 else
6545 additional_includedir="$withval/include"
6546 additional_libdir="$withval/lib"
6552 LIBICONV=
6553 LTLIBICONV=
6554 INCICONV=
6555 rpathdirs=
6556 ltrpathdirs=
6557 names_already_handled=
6558 names_next_round='iconv '
6559 while test -n "$names_next_round"; do
6560 names_this_round="$names_next_round"
6561 names_next_round=
6562 for name in $names_this_round; do
6563 already_handled=
6564 for n in $names_already_handled; do
6565 if test "$n" = "$name"; then
6566 already_handled=yes
6567 break
6569 done
6570 if test -z "$already_handled"; then
6571 names_already_handled="$names_already_handled $name"
6572 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6573 eval value=\"\$HAVE_LIB$uppername\"
6574 if test -n "$value"; then
6575 if test "$value" = yes; then
6576 eval value=\"\$LIB$uppername\"
6577 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6578 eval value=\"\$LTLIB$uppername\"
6579 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6580 else
6583 else
6584 found_dir=
6585 found_la=
6586 found_so=
6587 found_a=
6588 if test $use_additional = yes; then
6589 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6590 found_dir="$additional_libdir"
6591 found_so="$additional_libdir/lib$name.$shlibext"
6592 if test -f "$additional_libdir/lib$name.la"; then
6593 found_la="$additional_libdir/lib$name.la"
6595 else
6596 if test -f "$additional_libdir/lib$name.$libext"; then
6597 found_dir="$additional_libdir"
6598 found_a="$additional_libdir/lib$name.$libext"
6599 if test -f "$additional_libdir/lib$name.la"; then
6600 found_la="$additional_libdir/lib$name.la"
6605 if test "X$found_dir" = "X"; then
6606 for x in $LDFLAGS $LTLIBICONV; do
6608 acl_save_prefix="$prefix"
6609 prefix="$acl_final_prefix"
6610 acl_save_exec_prefix="$exec_prefix"
6611 exec_prefix="$acl_final_exec_prefix"
6612 eval x=\"$x\"
6613 exec_prefix="$acl_save_exec_prefix"
6614 prefix="$acl_save_prefix"
6616 case "$x" in
6617 -L*)
6618 dir=`echo "X$x" | sed -e 's/^X-L//'`
6619 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6620 found_dir="$dir"
6621 found_so="$dir/lib$name.$shlibext"
6622 if test -f "$dir/lib$name.la"; then
6623 found_la="$dir/lib$name.la"
6625 else
6626 if test -f "$dir/lib$name.$libext"; then
6627 found_dir="$dir"
6628 found_a="$dir/lib$name.$libext"
6629 if test -f "$dir/lib$name.la"; then
6630 found_la="$dir/lib$name.la"
6635 esac
6636 if test "X$found_dir" != "X"; then
6637 break
6639 done
6641 if test "X$found_dir" != "X"; then
6642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6643 if test "X$found_so" != "X"; then
6644 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6645 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6646 else
6647 haveit=
6648 for x in $ltrpathdirs; do
6649 if test "X$x" = "X$found_dir"; then
6650 haveit=yes
6651 break
6653 done
6654 if test -z "$haveit"; then
6655 ltrpathdirs="$ltrpathdirs $found_dir"
6657 if test "$hardcode_direct" = yes; then
6658 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6659 else
6660 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6661 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6662 haveit=
6663 for x in $rpathdirs; do
6664 if test "X$x" = "X$found_dir"; then
6665 haveit=yes
6666 break
6668 done
6669 if test -z "$haveit"; then
6670 rpathdirs="$rpathdirs $found_dir"
6672 else
6673 haveit=
6674 for x in $LDFLAGS $LIBICONV; do
6676 acl_save_prefix="$prefix"
6677 prefix="$acl_final_prefix"
6678 acl_save_exec_prefix="$exec_prefix"
6679 exec_prefix="$acl_final_exec_prefix"
6680 eval x=\"$x\"
6681 exec_prefix="$acl_save_exec_prefix"
6682 prefix="$acl_save_prefix"
6684 if test "X$x" = "X-L$found_dir"; then
6685 haveit=yes
6686 break
6688 done
6689 if test -z "$haveit"; then
6690 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6692 if test "$hardcode_minus_L" != no; then
6693 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6694 else
6695 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6700 else
6701 if test "X$found_a" != "X"; then
6702 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6703 else
6704 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6707 additional_includedir=
6708 case "$found_dir" in
6709 */lib | */lib/)
6710 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6711 additional_includedir="$basedir/include"
6713 esac
6714 if test "X$additional_includedir" != "X"; then
6715 if test "X$additional_includedir" != "X/usr/include"; then
6716 haveit=
6717 if test "X$additional_includedir" = "X/usr/local/include"; then
6718 if test -n "$GCC"; then
6719 case $host_os in
6720 linux*) haveit=yes;;
6721 esac
6724 if test -z "$haveit"; then
6725 for x in $CPPFLAGS $INCICONV; do
6727 acl_save_prefix="$prefix"
6728 prefix="$acl_final_prefix"
6729 acl_save_exec_prefix="$exec_prefix"
6730 exec_prefix="$acl_final_exec_prefix"
6731 eval x=\"$x\"
6732 exec_prefix="$acl_save_exec_prefix"
6733 prefix="$acl_save_prefix"
6735 if test "X$x" = "X-I$additional_includedir"; then
6736 haveit=yes
6737 break
6739 done
6740 if test -z "$haveit"; then
6741 if test -d "$additional_includedir"; then
6742 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6748 if test -n "$found_la"; then
6749 save_libdir="$libdir"
6750 case "$found_la" in
6751 */* | *\\*) . "$found_la" ;;
6752 *) . "./$found_la" ;;
6753 esac
6754 libdir="$save_libdir"
6755 for dep in $dependency_libs; do
6756 case "$dep" in
6757 -L*)
6758 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6759 if test "X$additional_libdir" != "X/usr/lib"; then
6760 haveit=
6761 if test "X$additional_libdir" = "X/usr/local/lib"; then
6762 if test -n "$GCC"; then
6763 case $host_os in
6764 linux*) haveit=yes;;
6765 esac
6768 if test -z "$haveit"; then
6769 haveit=
6770 for x in $LDFLAGS $LIBICONV; do
6772 acl_save_prefix="$prefix"
6773 prefix="$acl_final_prefix"
6774 acl_save_exec_prefix="$exec_prefix"
6775 exec_prefix="$acl_final_exec_prefix"
6776 eval x=\"$x\"
6777 exec_prefix="$acl_save_exec_prefix"
6778 prefix="$acl_save_prefix"
6780 if test "X$x" = "X-L$additional_libdir"; then
6781 haveit=yes
6782 break
6784 done
6785 if test -z "$haveit"; then
6786 if test -d "$additional_libdir"; then
6787 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6790 haveit=
6791 for x in $LDFLAGS $LTLIBICONV; do
6793 acl_save_prefix="$prefix"
6794 prefix="$acl_final_prefix"
6795 acl_save_exec_prefix="$exec_prefix"
6796 exec_prefix="$acl_final_exec_prefix"
6797 eval x=\"$x\"
6798 exec_prefix="$acl_save_exec_prefix"
6799 prefix="$acl_save_prefix"
6801 if test "X$x" = "X-L$additional_libdir"; then
6802 haveit=yes
6803 break
6805 done
6806 if test -z "$haveit"; then
6807 if test -d "$additional_libdir"; then
6808 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6814 -R*)
6815 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6816 if test "$enable_rpath" != no; then
6817 haveit=
6818 for x in $rpathdirs; do
6819 if test "X$x" = "X$dir"; then
6820 haveit=yes
6821 break
6823 done
6824 if test -z "$haveit"; then
6825 rpathdirs="$rpathdirs $dir"
6827 haveit=
6828 for x in $ltrpathdirs; do
6829 if test "X$x" = "X$dir"; then
6830 haveit=yes
6831 break
6833 done
6834 if test -z "$haveit"; then
6835 ltrpathdirs="$ltrpathdirs $dir"
6839 -l*)
6840 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6842 *.la)
6843 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6846 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6847 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6849 esac
6850 done
6852 else
6853 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6854 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6858 done
6859 done
6860 if test "X$rpathdirs" != "X"; then
6861 if test -n "$hardcode_libdir_separator"; then
6862 alldirs=
6863 for found_dir in $rpathdirs; do
6864 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6865 done
6866 acl_save_libdir="$libdir"
6867 libdir="$alldirs"
6868 eval flag=\"$hardcode_libdir_flag_spec\"
6869 libdir="$acl_save_libdir"
6870 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6871 else
6872 for found_dir in $rpathdirs; do
6873 acl_save_libdir="$libdir"
6874 libdir="$found_dir"
6875 eval flag=\"$hardcode_libdir_flag_spec\"
6876 libdir="$acl_save_libdir"
6877 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6878 done
6881 if test "X$ltrpathdirs" != "X"; then
6882 for found_dir in $ltrpathdirs; do
6883 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6884 done
6893 am_save_CPPFLAGS="$CPPFLAGS"
6895 for element in $INCICONV; do
6896 haveit=
6897 for x in $CPPFLAGS; do
6899 acl_save_prefix="$prefix"
6900 prefix="$acl_final_prefix"
6901 acl_save_exec_prefix="$exec_prefix"
6902 exec_prefix="$acl_final_exec_prefix"
6903 eval x=\"$x\"
6904 exec_prefix="$acl_save_exec_prefix"
6905 prefix="$acl_save_prefix"
6907 if test "X$x" = "X$element"; then
6908 haveit=yes
6909 break
6911 done
6912 if test -z "$haveit"; then
6913 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6915 done
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6919 $as_echo_n "checking for iconv... " >&6; }
6920 if test "${am_cv_func_iconv+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6924 am_cv_func_iconv="no, consider installing GNU libiconv"
6925 am_cv_lib_iconv=no
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #include <stdlib.h>
6929 #include <iconv.h>
6931 main ()
6933 iconv_t cd = iconv_open("","");
6934 iconv(cd,NULL,NULL,NULL,NULL);
6935 iconv_close(cd);
6937 return 0;
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"; then :
6941 am_cv_func_iconv=yes
6943 rm -f core conftest.err conftest.$ac_objext \
6944 conftest$ac_exeext conftest.$ac_ext
6945 if test "$am_cv_func_iconv" != yes; then
6946 am_save_LIBS="$LIBS"
6947 LIBS="$LIBS $LIBICONV"
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 #include <stdlib.h>
6951 #include <iconv.h>
6953 main ()
6955 iconv_t cd = iconv_open("","");
6956 iconv(cd,NULL,NULL,NULL,NULL);
6957 iconv_close(cd);
6959 return 0;
6961 _ACEOF
6962 if ac_fn_c_try_link "$LINENO"; then :
6963 am_cv_lib_iconv=yes
6964 am_cv_func_iconv=yes
6966 rm -f core conftest.err conftest.$ac_objext \
6967 conftest$ac_exeext conftest.$ac_ext
6968 LIBS="$am_save_LIBS"
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6973 $as_echo "$am_cv_func_iconv" >&6; }
6974 if test "$am_cv_func_iconv" = yes; then
6976 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6979 if test "$am_cv_lib_iconv" = yes; then
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6981 $as_echo_n "checking how to link with libiconv... " >&6; }
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6983 $as_echo "$LIBICONV" >&6; }
6984 else
6985 CPPFLAGS="$am_save_CPPFLAGS"
6986 LIBICONV=
6987 LTLIBICONV=
6992 if test "$am_cv_func_iconv" = yes; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6994 $as_echo_n "checking for iconv declaration... " >&6; }
6995 if test "${am_cv_proto_iconv+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7002 #include <stdlib.h>
7003 #include <iconv.h>
7004 extern
7005 #ifdef __cplusplus
7007 #endif
7008 #if defined(__STDC__) || defined(__cplusplus)
7009 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7010 #else
7011 size_t iconv();
7012 #endif
7015 main ()
7019 return 0;
7021 _ACEOF
7022 if ac_fn_c_try_compile "$LINENO"; then :
7023 am_cv_proto_iconv_arg1=""
7024 else
7025 am_cv_proto_iconv_arg1="const"
7027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 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);"
7031 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7033 }$am_cv_proto_iconv" >&5
7034 $as_echo "${ac_t:-
7035 }$am_cv_proto_iconv" >&6; }
7037 cat >>confdefs.h <<_ACEOF
7038 #define ICONV_CONST $am_cv_proto_iconv_arg1
7039 _ACEOF
7044 # More defines and substitutions.
7045 PACKAGE="$PACKAGE_TARNAME"
7047 cat >>confdefs.h <<_ACEOF
7048 #define PACKAGE "$PACKAGE"
7049 _ACEOF
7053 if test "x$enable_nls" != xno; then
7054 USED_CATALOGS='$(CATALOGS)'
7055 else
7056 USED_CATALOGS=
7060 # Check whether --enable-maintainer-mode was given.
7061 if test "${enable_maintainer_mode+set}" = set; then :
7062 enableval=$enable_maintainer_mode;
7063 else
7064 enable_maintainer_mode=no
7068 if test "x$enable_maintainer_mode" = xno; then
7069 MAINT='#'
7070 else
7071 MAINT=
7075 # Check whether --enable-checking was given.
7076 if test "${enable_checking+set}" = set; then :
7077 enableval=$enable_checking;
7078 else
7079 enable_checking=no
7083 if test $enable_checking != no ; then
7085 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
7090 case $target in
7091 alpha*-*-* | \
7092 arm*-*-*eabi* | \
7093 arm*-*-symbianelf* | \
7094 x86_64-*-* | \
7095 ia64-*-* | \
7096 hppa*64*-*-* | \
7097 i[34567]86-*-darwin* | \
7098 i[34567]86-*-solaris2.1[0-9]* | \
7099 i[34567]86-w64-mingw* | \
7100 mips*-*-* | \
7101 mmix-*-* | \
7102 powerpc*-*-* | \
7103 rs6000*-*-* | \
7104 s390*-*-* | \
7105 sparc*-*-* | \
7106 spu-*-* | \
7107 sh[123456789lbe]*-*-* | sh-*-*)
7108 need_64bit_hwint=yes ;;
7109 i[34567]86-*-linux*)
7110 if test "x$enable_targets" = xall; then
7111 need_64bit_hwint=yes
7112 else
7113 need_64bit_hwint=no
7117 need_64bit_hwint=no ;;
7118 esac
7120 case $need_64bit_hwint:$ac_cv_sizeof_long in
7121 *:8 | no:*) host_wide_int=long ;;
7122 *) host_wide_int='long long' ;;
7123 esac
7127 cat >>confdefs.h <<_ACEOF
7128 #define HOST_WIDE_INT $host_wide_int
7129 _ACEOF
7132 case $target in
7133 i?86-* | x86_64-*)
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7138 main ()
7140 asm ("pcmpestri %0, %%xmm0, %%xmm1" : : "i"(0))
7142 return 0;
7144 _ACEOF
7145 if ac_fn_c_try_compile "$LINENO"; then :
7147 $as_echo "#define HAVE_SSE4 1" >>confdefs.h
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 esac
7153 # Output.
7155 ac_config_headers="$ac_config_headers config.h:config.in"
7157 ac_config_files="$ac_config_files Makefile"
7159 cat >confcache <<\_ACEOF
7160 # This file is a shell script that caches the results of configure
7161 # tests run on this system so they can be shared between configure
7162 # scripts and configure runs, see configure's option --config-cache.
7163 # It is not useful on other systems. If it contains results you don't
7164 # want to keep, you may remove or edit it.
7166 # config.status only pays attention to the cache file if you give it
7167 # the --recheck option to rerun configure.
7169 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7170 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7171 # following values.
7173 _ACEOF
7175 # The following way of writing the cache mishandles newlines in values,
7176 # but we know of no workaround that is simple, portable, and efficient.
7177 # So, we kill variables containing newlines.
7178 # Ultrix sh set writes to stderr and can't be redirected directly,
7179 # and sets the high bit in the cache file unless we assign to the vars.
7181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7182 eval ac_val=\$$ac_var
7183 case $ac_val in #(
7184 *${as_nl}*)
7185 case $ac_var in #(
7186 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7188 esac
7189 case $ac_var in #(
7190 _ | IFS | as_nl) ;; #(
7191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7192 *) { eval $ac_var=; unset $ac_var;} ;;
7193 esac ;;
7194 esac
7195 done
7197 (set) 2>&1 |
7198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7199 *${as_nl}ac_space=\ *)
7200 # `set' does not quote correctly, so add quotes: double-quote
7201 # substitution turns \\\\ into \\, and sed turns \\ into \.
7202 sed -n \
7203 "s/'/'\\\\''/g;
7204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7205 ;; #(
7207 # `set' quotes correctly as required by POSIX, so do not add quotes.
7208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7210 esac |
7211 sort
7213 sed '
7214 /^ac_cv_env_/b end
7215 t clear
7216 :clear
7217 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7218 t end
7219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7220 :end' >>confcache
7221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7222 if test -w "$cache_file"; then
7223 test "x$cache_file" != "x/dev/null" &&
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7225 $as_echo "$as_me: updating cache $cache_file" >&6;}
7226 cat confcache >$cache_file
7227 else
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7229 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7232 rm -f confcache
7234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7235 # Let make expand exec_prefix.
7236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7238 DEFS=-DHAVE_CONFIG_H
7240 ac_libobjs=
7241 ac_ltlibobjs=
7242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7243 # 1. Remove the extension, and $U if already installed.
7244 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7245 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7246 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7247 # will be set to the directory where LIBOBJS objects are built.
7248 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7250 done
7251 LIBOBJS=$ac_libobjs
7253 LTLIBOBJS=$ac_ltlibobjs
7258 : ${CONFIG_STATUS=./config.status}
7259 ac_write_fail=0
7260 ac_clean_files_save=$ac_clean_files
7261 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7263 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7264 as_write_fail=0
7265 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7266 #! $SHELL
7267 # Generated by $as_me.
7268 # Run this file to recreate the current configuration.
7269 # Compiler output produced by configure, useful for debugging
7270 # configure, is in config.log if it exists.
7272 debug=false
7273 ac_cs_recheck=false
7274 ac_cs_silent=false
7276 SHELL=\${CONFIG_SHELL-$SHELL}
7277 export SHELL
7278 _ASEOF
7279 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7280 ## -------------------- ##
7281 ## M4sh Initialization. ##
7282 ## -------------------- ##
7284 # Be more Bourne compatible
7285 DUALCASE=1; export DUALCASE # for MKS sh
7286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7287 emulate sh
7288 NULLCMD=:
7289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7290 # is contrary to our usage. Disable this feature.
7291 alias -g '${1+"$@"}'='"$@"'
7292 setopt NO_GLOB_SUBST
7293 else
7294 case `(set -o) 2>/dev/null` in #(
7295 *posix*) :
7296 set -o posix ;; #(
7297 *) :
7299 esac
7303 as_nl='
7305 export as_nl
7306 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7307 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7308 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7309 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7310 # Prefer a ksh shell builtin over an external printf program on Solaris,
7311 # but without wasting forks for bash or zsh.
7312 if test -z "$BASH_VERSION$ZSH_VERSION" \
7313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7314 as_echo='print -r --'
7315 as_echo_n='print -rn --'
7316 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7317 as_echo='printf %s\n'
7318 as_echo_n='printf %s'
7319 else
7320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7322 as_echo_n='/usr/ucb/echo -n'
7323 else
7324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7325 as_echo_n_body='eval
7326 arg=$1;
7327 case $arg in #(
7328 *"$as_nl"*)
7329 expr "X$arg" : "X\\(.*\\)$as_nl";
7330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7331 esac;
7332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7334 export as_echo_n_body
7335 as_echo_n='sh -c $as_echo_n_body as_echo'
7337 export as_echo_body
7338 as_echo='sh -c $as_echo_body as_echo'
7341 # The user is always right.
7342 if test "${PATH_SEPARATOR+set}" != set; then
7343 PATH_SEPARATOR=:
7344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7346 PATH_SEPARATOR=';'
7351 # IFS
7352 # We need space, tab and new line, in precisely that order. Quoting is
7353 # there to prevent editors from complaining about space-tab.
7354 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7355 # splitting by setting IFS to empty value.)
7356 IFS=" "" $as_nl"
7358 # Find who we are. Look in the path if we contain no directory separator.
7359 case $0 in #((
7360 *[\\/]* ) as_myself=$0 ;;
7361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7367 done
7368 IFS=$as_save_IFS
7371 esac
7372 # We did not find ourselves, most probably we were run as `sh COMMAND'
7373 # in which case we are not to be found in the path.
7374 if test "x$as_myself" = x; then
7375 as_myself=$0
7377 if test ! -f "$as_myself"; then
7378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7379 exit 1
7382 # Unset variables that we do not need and which cause bugs (e.g. in
7383 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7384 # suppresses any "Segmentation fault" message there. '((' could
7385 # trigger a bug in pdksh 5.2.14.
7386 for as_var in BASH_ENV ENV MAIL MAILPATH
7387 do eval test x\${$as_var+set} = xset \
7388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7389 done
7390 PS1='$ '
7391 PS2='> '
7392 PS4='+ '
7394 # NLS nuisances.
7395 LC_ALL=C
7396 export LC_ALL
7397 LANGUAGE=C
7398 export LANGUAGE
7400 # CDPATH.
7401 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7404 # as_fn_error ERROR [LINENO LOG_FD]
7405 # ---------------------------------
7406 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7407 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7408 # script with status $?, using 1 if that was 0.
7409 as_fn_error ()
7411 as_status=$?; test $as_status -eq 0 && as_status=1
7412 if test "$3"; then
7413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7416 $as_echo "$as_me: error: $1" >&2
7417 as_fn_exit $as_status
7418 } # as_fn_error
7421 # as_fn_set_status STATUS
7422 # -----------------------
7423 # Set $? to STATUS, without forking.
7424 as_fn_set_status ()
7426 return $1
7427 } # as_fn_set_status
7429 # as_fn_exit STATUS
7430 # -----------------
7431 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7432 as_fn_exit ()
7434 set +e
7435 as_fn_set_status $1
7436 exit $1
7437 } # as_fn_exit
7439 # as_fn_unset VAR
7440 # ---------------
7441 # Portably unset VAR.
7442 as_fn_unset ()
7444 { eval $1=; unset $1;}
7446 as_unset=as_fn_unset
7447 # as_fn_append VAR VALUE
7448 # ----------------------
7449 # Append the text in VALUE to the end of the definition contained in VAR. Take
7450 # advantage of any shell optimizations that allow amortized linear growth over
7451 # repeated appends, instead of the typical quadratic growth present in naive
7452 # implementations.
7453 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7454 eval 'as_fn_append ()
7456 eval $1+=\$2
7458 else
7459 as_fn_append ()
7461 eval $1=\$$1\$2
7463 fi # as_fn_append
7465 # as_fn_arith ARG...
7466 # ------------------
7467 # Perform arithmetic evaluation on the ARGs, and store the result in the
7468 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7469 # must be portable across $(()) and expr.
7470 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7471 eval 'as_fn_arith ()
7473 as_val=$(( $* ))
7475 else
7476 as_fn_arith ()
7478 as_val=`expr "$@" || test $? -eq 1`
7480 fi # as_fn_arith
7483 if expr a : '\(a\)' >/dev/null 2>&1 &&
7484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7485 as_expr=expr
7486 else
7487 as_expr=false
7490 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7491 as_basename=basename
7492 else
7493 as_basename=false
7496 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7497 as_dirname=dirname
7498 else
7499 as_dirname=false
7502 as_me=`$as_basename -- "$0" ||
7503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7504 X"$0" : 'X\(//\)$' \| \
7505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7506 $as_echo X/"$0" |
7507 sed '/^.*\/\([^/][^/]*\)\/*$/{
7508 s//\1/
7511 /^X\/\(\/\/\)$/{
7512 s//\1/
7515 /^X\/\(\/\).*/{
7516 s//\1/
7519 s/.*/./; q'`
7521 # Avoid depending upon Character Ranges.
7522 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7523 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7524 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7525 as_cr_digits='0123456789'
7526 as_cr_alnum=$as_cr_Letters$as_cr_digits
7528 ECHO_C= ECHO_N= ECHO_T=
7529 case `echo -n x` in #(((((
7530 -n*)
7531 case `echo 'xy\c'` in
7532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7533 xy) ECHO_C='\c';;
7534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7535 ECHO_T=' ';;
7536 esac;;
7538 ECHO_N='-n';;
7539 esac
7541 rm -f conf$$ conf$$.exe conf$$.file
7542 if test -d conf$$.dir; then
7543 rm -f conf$$.dir/conf$$.file
7544 else
7545 rm -f conf$$.dir
7546 mkdir conf$$.dir 2>/dev/null
7548 if (echo >conf$$.file) 2>/dev/null; then
7549 if ln -s conf$$.file conf$$ 2>/dev/null; then
7550 as_ln_s='ln -s'
7551 # ... but there are two gotchas:
7552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7554 # In both cases, we have to default to `cp -p'.
7555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7556 as_ln_s='cp -p'
7557 elif ln conf$$.file conf$$ 2>/dev/null; then
7558 as_ln_s=ln
7559 else
7560 as_ln_s='cp -p'
7562 else
7563 as_ln_s='cp -p'
7565 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7566 rmdir conf$$.dir 2>/dev/null
7569 # as_fn_mkdir_p
7570 # -------------
7571 # Create "$as_dir" as a directory, including parents if necessary.
7572 as_fn_mkdir_p ()
7575 case $as_dir in #(
7576 -*) as_dir=./$as_dir;;
7577 esac
7578 test -d "$as_dir" || eval $as_mkdir_p || {
7579 as_dirs=
7580 while :; do
7581 case $as_dir in #(
7582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7583 *) as_qdir=$as_dir;;
7584 esac
7585 as_dirs="'$as_qdir' $as_dirs"
7586 as_dir=`$as_dirname -- "$as_dir" ||
7587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7588 X"$as_dir" : 'X\(//\)[^/]' \| \
7589 X"$as_dir" : 'X\(//\)$' \| \
7590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7591 $as_echo X"$as_dir" |
7592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7593 s//\1/
7596 /^X\(\/\/\)[^/].*/{
7597 s//\1/
7600 /^X\(\/\/\)$/{
7601 s//\1/
7604 /^X\(\/\).*/{
7605 s//\1/
7608 s/.*/./; q'`
7609 test -d "$as_dir" && break
7610 done
7611 test -z "$as_dirs" || eval "mkdir $as_dirs"
7612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7615 } # as_fn_mkdir_p
7616 if mkdir -p . 2>/dev/null; then
7617 as_mkdir_p='mkdir -p "$as_dir"'
7618 else
7619 test -d ./-p && rmdir ./-p
7620 as_mkdir_p=false
7623 if test -x / >/dev/null 2>&1; then
7624 as_test_x='test -x'
7625 else
7626 if ls -dL / >/dev/null 2>&1; then
7627 as_ls_L_option=L
7628 else
7629 as_ls_L_option=
7631 as_test_x='
7632 eval sh -c '\''
7633 if test -d "$1"; then
7634 test -d "$1/.";
7635 else
7636 case $1 in #(
7637 -*)set "./$1";;
7638 esac;
7639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7640 ???[sx]*):;;*)false;;esac;fi
7641 '\'' sh
7644 as_executable_p=$as_test_x
7646 # Sed expression to map a string onto a valid CPP name.
7647 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7649 # Sed expression to map a string onto a valid variable name.
7650 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7653 exec 6>&1
7654 ## ----------------------------------- ##
7655 ## Main body of $CONFIG_STATUS script. ##
7656 ## ----------------------------------- ##
7657 _ASEOF
7658 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7661 # Save the log message, to keep $0 and so on meaningful, and to
7662 # report actual input values of CONFIG_FILES etc. instead of their
7663 # values after options handling.
7664 ac_log="
7665 This file was extended by cpplib $as_me , which was
7666 generated by GNU Autoconf 2.64. Invocation command line was
7668 CONFIG_FILES = $CONFIG_FILES
7669 CONFIG_HEADERS = $CONFIG_HEADERS
7670 CONFIG_LINKS = $CONFIG_LINKS
7671 CONFIG_COMMANDS = $CONFIG_COMMANDS
7672 $ $0 $@
7674 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7677 _ACEOF
7679 case $ac_config_files in *"
7680 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7681 esac
7683 case $ac_config_headers in *"
7684 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7685 esac
7688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7689 # Files that config.status was made for.
7690 config_files="$ac_config_files"
7691 config_headers="$ac_config_headers"
7692 config_commands="$ac_config_commands"
7694 _ACEOF
7696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7697 ac_cs_usage="\
7698 \`$as_me' instantiates files and other configuration actions
7699 from templates according to the current configuration. Unless the files
7700 and actions are specified as TAGs, all are instantiated by default.
7702 Usage: $0 [OPTION]... [TAG]...
7704 -h, --help print this help, then exit
7705 -V, --version print version number and configuration settings, then exit
7706 -q, --quiet, --silent
7707 do not print progress messages
7708 -d, --debug don't remove temporary files
7709 --recheck update $as_me by reconfiguring in the same conditions
7710 --file=FILE[:TEMPLATE]
7711 instantiate the configuration file FILE
7712 --header=FILE[:TEMPLATE]
7713 instantiate the configuration header FILE
7715 Configuration files:
7716 $config_files
7718 Configuration headers:
7719 $config_headers
7721 Configuration commands:
7722 $config_commands
7724 Report bugs to <gcc-bugs@gcc.gnu.org>."
7726 _ACEOF
7727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7728 ac_cs_version="\\
7729 cpplib config.status
7730 configured by $0, generated by GNU Autoconf 2.64,
7731 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7733 Copyright (C) 2009 Free Software Foundation, Inc.
7734 This config.status script is free software; the Free Software Foundation
7735 gives unlimited permission to copy, distribute and modify it."
7737 ac_pwd='$ac_pwd'
7738 srcdir='$srcdir'
7739 INSTALL='$INSTALL'
7740 test -n "\$AWK" || AWK=awk
7741 _ACEOF
7743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7744 # The default lists apply if the user does not specify any file.
7745 ac_need_defaults=:
7746 while test $# != 0
7748 case $1 in
7749 --*=*)
7750 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7751 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7752 ac_shift=:
7755 ac_option=$1
7756 ac_optarg=$2
7757 ac_shift=shift
7759 esac
7761 case $ac_option in
7762 # Handling of the options.
7763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7764 ac_cs_recheck=: ;;
7765 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7766 $as_echo "$ac_cs_version"; exit ;;
7767 --debug | --debu | --deb | --de | --d | -d )
7768 debug=: ;;
7769 --file | --fil | --fi | --f )
7770 $ac_shift
7771 case $ac_optarg in
7772 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7773 esac
7774 as_fn_append CONFIG_FILES " '$ac_optarg'"
7775 ac_need_defaults=false;;
7776 --header | --heade | --head | --hea )
7777 $ac_shift
7778 case $ac_optarg in
7779 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7780 esac
7781 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7782 ac_need_defaults=false;;
7783 --he | --h)
7784 # Conflict between --help and --header
7785 as_fn_error "ambiguous option: \`$1'
7786 Try \`$0 --help' for more information.";;
7787 --help | --hel | -h )
7788 $as_echo "$ac_cs_usage"; exit ;;
7789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7790 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7791 ac_cs_silent=: ;;
7793 # This is an error.
7794 -*) as_fn_error "unrecognized option: \`$1'
7795 Try \`$0 --help' for more information." ;;
7797 *) as_fn_append ac_config_targets " $1"
7798 ac_need_defaults=false ;;
7800 esac
7801 shift
7802 done
7804 ac_configure_extra_args=
7806 if $ac_cs_silent; then
7807 exec 6>/dev/null
7808 ac_configure_extra_args="$ac_configure_extra_args --silent"
7811 _ACEOF
7812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7813 if \$ac_cs_recheck; then
7814 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7815 shift
7816 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7817 CONFIG_SHELL='$SHELL'
7818 export CONFIG_SHELL
7819 exec "\$@"
7822 _ACEOF
7823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7824 exec 5>>config.log
7826 echo
7827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7828 ## Running $as_me. ##
7829 _ASBOX
7830 $as_echo "$ac_log"
7831 } >&5
7833 _ACEOF
7834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7836 # INIT-COMMANDS
7838 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
7840 _ACEOF
7842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7844 # Handling of arguments.
7845 for ac_config_target in $ac_config_targets
7847 case $ac_config_target in
7848 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
7849 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
7850 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7852 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7853 esac
7854 done
7857 # If the user did not use the arguments to specify the items to instantiate,
7858 # then the envvar interface is used. Set only those that are not.
7859 # We use the long form for the default assignment because of an extremely
7860 # bizarre bug on SunOS 4.1.3.
7861 if $ac_need_defaults; then
7862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7867 # Have a temporary directory for convenience. Make it in the build tree
7868 # simply because there is no reason against having it here, and in addition,
7869 # creating and moving files from /tmp can sometimes cause problems.
7870 # Hook for its removal unless debugging.
7871 # Note that there is a small window in which the directory will not be cleaned:
7872 # after its creation but before its name has been assigned to `$tmp'.
7873 $debug ||
7875 tmp=
7876 trap 'exit_status=$?
7877 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7879 trap 'as_fn_exit 1' 1 2 13 15
7881 # Create a (secure) tmp directory for tmp files.
7884 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7885 test -n "$tmp" && test -d "$tmp"
7886 } ||
7888 tmp=./conf$$-$RANDOM
7889 (umask 077 && mkdir "$tmp")
7890 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7892 # Set up the scripts for CONFIG_FILES section.
7893 # No need to generate them if there are no CONFIG_FILES.
7894 # This happens for instance with `./config.status config.h'.
7895 if test -n "$CONFIG_FILES"; then
7898 ac_cr=`echo X | tr X '\015'`
7899 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7900 # But we know of no other shell where ac_cr would be empty at this
7901 # point, so we can use a bashism as a fallback.
7902 if test "x$ac_cr" = x; then
7903 eval ac_cr=\$\'\\r\'
7905 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7906 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7907 ac_cs_awk_cr='\r'
7908 else
7909 ac_cs_awk_cr=$ac_cr
7912 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7913 _ACEOF
7917 echo "cat >conf$$subs.awk <<_ACEOF" &&
7918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7919 echo "_ACEOF"
7920 } >conf$$subs.sh ||
7921 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7922 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7923 ac_delim='%!_!# '
7924 for ac_last_try in false false false false false :; do
7925 . ./conf$$subs.sh ||
7926 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7928 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7929 if test $ac_delim_n = $ac_delim_num; then
7930 break
7931 elif $ac_last_try; then
7932 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7933 else
7934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7936 done
7937 rm -f conf$$subs.sh
7939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7940 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7941 _ACEOF
7942 sed -n '
7944 s/^/S["/; s/!.*/"]=/
7947 s/^[^!]*!//
7948 :repl
7949 t repl
7950 s/'"$ac_delim"'$//
7951 t delim
7954 s/\(.\{148\}\).*/\1/
7955 t more1
7956 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7959 b repl
7960 :more1
7961 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7964 s/.\{148\}//
7965 t nl
7966 :delim
7968 s/\(.\{148\}\).*/\1/
7969 t more2
7970 s/["\\]/\\&/g; s/^/"/; s/$/"/
7973 :more2
7974 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7977 s/.\{148\}//
7978 t delim
7979 ' <conf$$subs.awk | sed '
7980 /^[^""]/{
7982 s/\n//
7984 ' >>$CONFIG_STATUS || ac_write_fail=1
7985 rm -f conf$$subs.awk
7986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7987 _ACAWK
7988 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7989 for (key in S) S_is_set[key] = 1
7990 FS = "\a"
7994 line = $ 0
7995 nfields = split(line, field, "@")
7996 substed = 0
7997 len = length(field[1])
7998 for (i = 2; i < nfields; i++) {
7999 key = field[i]
8000 keylen = length(key)
8001 if (S_is_set[key]) {
8002 value = S[key]
8003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8004 len += length(value) + length(field[++i])
8005 substed = 1
8006 } else
8007 len += 1 + keylen
8010 print line
8013 _ACAWK
8014 _ACEOF
8015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8016 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8017 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8018 else
8020 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8021 || as_fn_error "could not setup config files machinery" "$LINENO" 5
8022 _ACEOF
8024 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8025 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8026 # trailing colons and then remove the whole line if VPATH becomes empty
8027 # (actually we leave an empty line to preserve line numbers).
8028 if test "x$srcdir" = x.; then
8029 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8030 s/:*\$(srcdir):*/:/
8031 s/:*\${srcdir}:*/:/
8032 s/:*@srcdir@:*/:/
8033 s/^\([^=]*=[ ]*\):*/\1/
8034 s/:*$//
8035 s/^[^=]*=[ ]*$//
8039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8040 fi # test -n "$CONFIG_FILES"
8042 # Set up the scripts for CONFIG_HEADERS section.
8043 # No need to generate them if there are no CONFIG_HEADERS.
8044 # This happens for instance with `./config.status Makefile'.
8045 if test -n "$CONFIG_HEADERS"; then
8046 cat >"$tmp/defines.awk" <<\_ACAWK ||
8047 BEGIN {
8048 _ACEOF
8050 # Transform confdefs.h into an awk script `defines.awk', embedded as
8051 # here-document in config.status, that substitutes the proper values into
8052 # config.h.in to produce config.h.
8054 # Create a delimiter string that does not exist in confdefs.h, to ease
8055 # handling of long lines.
8056 ac_delim='%!_!# '
8057 for ac_last_try in false false :; do
8058 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8059 if test -z "$ac_t"; then
8060 break
8061 elif $ac_last_try; then
8062 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8063 else
8064 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8066 done
8068 # For the awk script, D is an array of macro values keyed by name,
8069 # likewise P contains macro parameters if any. Preserve backslash
8070 # newline sequences.
8072 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8073 sed -n '
8074 s/.\{148\}/&'"$ac_delim"'/g
8075 t rset
8076 :rset
8077 s/^[ ]*#[ ]*define[ ][ ]*/ /
8078 t def
8080 :def
8081 s/\\$//
8082 t bsnl
8083 s/["\\]/\\&/g
8084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8085 D["\1"]=" \3"/p
8086 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8088 :bsnl
8089 s/["\\]/\\&/g
8090 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8091 D["\1"]=" \3\\\\\\n"\\/p
8092 t cont
8093 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8094 t cont
8096 :cont
8098 s/.\{148\}/&'"$ac_delim"'/g
8099 t clear
8100 :clear
8101 s/\\$//
8102 t bsnlc
8103 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8105 :bsnlc
8106 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8107 b cont
8108 ' <confdefs.h | sed '
8109 s/'"$ac_delim"'/"\\\
8110 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8113 for (key in D) D_is_set[key] = 1
8114 FS = "\a"
8116 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8117 line = \$ 0
8118 split(line, arg, " ")
8119 if (arg[1] == "#") {
8120 defundef = arg[2]
8121 mac1 = arg[3]
8122 } else {
8123 defundef = substr(arg[1], 2)
8124 mac1 = arg[2]
8126 split(mac1, mac2, "(") #)
8127 macro = mac2[1]
8128 prefix = substr(line, 1, index(line, defundef) - 1)
8129 if (D_is_set[macro]) {
8130 # Preserve the white space surrounding the "#".
8131 print prefix "define", macro P[macro] D[macro]
8132 next
8133 } else {
8134 # Replace #undef with comments. This is necessary, for example,
8135 # in the case of _POSIX_SOURCE, which is predefined and required
8136 # on some systems where configure will not decide to define it.
8137 if (defundef == "undef") {
8138 print "/*", prefix defundef, macro, "*/"
8139 next
8143 { print }
8144 _ACAWK
8145 _ACEOF
8146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8147 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8148 fi # test -n "$CONFIG_HEADERS"
8151 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8152 shift
8153 for ac_tag
8155 case $ac_tag in
8156 :[FHLC]) ac_mode=$ac_tag; continue;;
8157 esac
8158 case $ac_mode$ac_tag in
8159 :[FHL]*:*);;
8160 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8161 :[FH]-) ac_tag=-:-;;
8162 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8163 esac
8164 ac_save_IFS=$IFS
8165 IFS=:
8166 set x $ac_tag
8167 IFS=$ac_save_IFS
8168 shift
8169 ac_file=$1
8170 shift
8172 case $ac_mode in
8173 :L) ac_source=$1;;
8174 :[FH])
8175 ac_file_inputs=
8176 for ac_f
8178 case $ac_f in
8179 -) ac_f="$tmp/stdin";;
8180 *) # Look for the file first in the build tree, then in the source tree
8181 # (if the path is not absolute). The absolute path cannot be DOS-style,
8182 # because $ac_f cannot contain `:'.
8183 test -f "$ac_f" ||
8184 case $ac_f in
8185 [\\/$]*) false;;
8186 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8187 esac ||
8188 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8189 esac
8190 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8191 as_fn_append ac_file_inputs " '$ac_f'"
8192 done
8194 # Let's still pretend it is `configure' which instantiates (i.e., don't
8195 # use $as_me), people would be surprised to read:
8196 # /* config.h. Generated by config.status. */
8197 configure_input='Generated from '`
8198 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8199 `' by configure.'
8200 if test x"$ac_file" != x-; then
8201 configure_input="$ac_file. $configure_input"
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8203 $as_echo "$as_me: creating $ac_file" >&6;}
8205 # Neutralize special characters interpreted by sed in replacement strings.
8206 case $configure_input in #(
8207 *\&* | *\|* | *\\* )
8208 ac_sed_conf_input=`$as_echo "$configure_input" |
8209 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8210 *) ac_sed_conf_input=$configure_input;;
8211 esac
8213 case $ac_tag in
8214 *:-:* | *:-) cat >"$tmp/stdin" \
8215 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8216 esac
8218 esac
8220 ac_dir=`$as_dirname -- "$ac_file" ||
8221 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8222 X"$ac_file" : 'X\(//\)[^/]' \| \
8223 X"$ac_file" : 'X\(//\)$' \| \
8224 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8225 $as_echo X"$ac_file" |
8226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8227 s//\1/
8230 /^X\(\/\/\)[^/].*/{
8231 s//\1/
8234 /^X\(\/\/\)$/{
8235 s//\1/
8238 /^X\(\/\).*/{
8239 s//\1/
8242 s/.*/./; q'`
8243 as_dir="$ac_dir"; as_fn_mkdir_p
8244 ac_builddir=.
8246 case "$ac_dir" in
8247 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8249 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8250 # A ".." for each directory in $ac_dir_suffix.
8251 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8252 case $ac_top_builddir_sub in
8253 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8254 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8255 esac ;;
8256 esac
8257 ac_abs_top_builddir=$ac_pwd
8258 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8259 # for backward compatibility:
8260 ac_top_builddir=$ac_top_build_prefix
8262 case $srcdir in
8263 .) # We are building in place.
8264 ac_srcdir=.
8265 ac_top_srcdir=$ac_top_builddir_sub
8266 ac_abs_top_srcdir=$ac_pwd ;;
8267 [\\/]* | ?:[\\/]* ) # Absolute name.
8268 ac_srcdir=$srcdir$ac_dir_suffix;
8269 ac_top_srcdir=$srcdir
8270 ac_abs_top_srcdir=$srcdir ;;
8271 *) # Relative name.
8272 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8273 ac_top_srcdir=$ac_top_build_prefix$srcdir
8274 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8275 esac
8276 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8279 case $ac_mode in
8282 # CONFIG_FILE
8285 case $INSTALL in
8286 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8287 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8288 esac
8289 _ACEOF
8291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8292 # If the template does not know about datarootdir, expand it.
8293 # FIXME: This hack should be removed a few years after 2.60.
8294 ac_datarootdir_hack=; ac_datarootdir_seen=
8295 ac_sed_dataroot='
8296 /datarootdir/ {
8300 /@datadir@/p
8301 /@docdir@/p
8302 /@infodir@/p
8303 /@localedir@/p
8304 /@mandir@/p'
8305 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8306 *datarootdir*) ac_datarootdir_seen=yes;;
8307 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8309 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8310 _ACEOF
8311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8312 ac_datarootdir_hack='
8313 s&@datadir@&$datadir&g
8314 s&@docdir@&$docdir&g
8315 s&@infodir@&$infodir&g
8316 s&@localedir@&$localedir&g
8317 s&@mandir@&$mandir&g
8318 s&\\\${datarootdir}&$datarootdir&g' ;;
8319 esac
8320 _ACEOF
8322 # Neutralize VPATH when `$srcdir' = `.'.
8323 # Shell code in configure.ac might set extrasub.
8324 # FIXME: do we really want to maintain this feature?
8325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8326 ac_sed_extra="$ac_vpsub
8327 $extrasub
8328 _ACEOF
8329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8332 s|@configure_input@|$ac_sed_conf_input|;t t
8333 s&@top_builddir@&$ac_top_builddir_sub&;t t
8334 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8335 s&@srcdir@&$ac_srcdir&;t t
8336 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8337 s&@top_srcdir@&$ac_top_srcdir&;t t
8338 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8339 s&@builddir@&$ac_builddir&;t t
8340 s&@abs_builddir@&$ac_abs_builddir&;t t
8341 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8342 s&@INSTALL@&$ac_INSTALL&;t t
8343 $ac_datarootdir_hack
8345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8346 || as_fn_error "could not create $ac_file" "$LINENO" 5
8348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8349 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8352 which seems to be undefined. Please make sure it is defined." >&5
8353 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8354 which seems to be undefined. Please make sure it is defined." >&2;}
8356 rm -f "$tmp/stdin"
8357 case $ac_file in
8358 -) cat "$tmp/out" && rm -f "$tmp/out";;
8359 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8360 esac \
8361 || as_fn_error "could not create $ac_file" "$LINENO" 5
8365 # CONFIG_HEADER
8367 if test x"$ac_file" != x-; then
8369 $as_echo "/* $configure_input */" \
8370 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8371 } >"$tmp/config.h" \
8372 || as_fn_error "could not create $ac_file" "$LINENO" 5
8373 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8375 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8376 else
8377 rm -f "$ac_file"
8378 mv "$tmp/config.h" "$ac_file" \
8379 || as_fn_error "could not create $ac_file" "$LINENO" 5
8381 else
8382 $as_echo "/* $configure_input */" \
8383 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8384 || as_fn_error "could not create -" "$LINENO" 5
8388 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8389 $as_echo "$as_me: executing $ac_file commands" >&6;}
8391 esac
8394 case $ac_file$ac_mode in
8395 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
8396 "config.h":H) echo timestamp > stamp-h1 ;;
8398 esac
8399 done # for ac_tag
8402 as_fn_exit 0
8403 _ACEOF
8404 ac_clean_files=$ac_clean_files_save
8406 test $ac_write_fail = 0 ||
8407 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8410 # configure is writing to config.log, and then calls config.status.
8411 # config.status does its own redirection, appending to config.log.
8412 # Unfortunately, on DOS this fails, as config.log is still kept open
8413 # by configure, so config.status won't be able to write to it; its
8414 # output is simply discarded. So we exec the FD to /dev/null,
8415 # effectively closing config.log, so it can be properly (re)opened and
8416 # appended to by config.status. When coming back to configure, we
8417 # need to make the FD available again.
8418 if test "$no_create" != yes; then
8419 ac_cs_success=:
8420 ac_config_status_args=
8421 test "$silent" = yes &&
8422 ac_config_status_args="$ac_config_status_args --quiet"
8423 exec 5>/dev/null
8424 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8425 exec 5>>config.log
8426 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8427 # would make configure fail if this is the last instruction.
8428 $ac_cs_success || as_fn_exit $?
8430 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8432 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}