allow extrn symbols to be defined by the unit itself (part II)
[xorcyst.git] / configure
blob9891a40350c8382e2bbbb27c1ad0b91476b75e20
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="parser.y"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 LN_S
641 LEXLIB
642 LEX_OUTPUT_ROOT
644 YFLAGS
645 YACC
646 EGREP
647 GREP
649 am__fastdepCC_FALSE
650 am__fastdepCC_TRUE
651 CCDEPMODE
652 AMDEPBACKSLASH
653 AMDEP_FALSE
654 AMDEP_TRUE
655 am__quote
656 am__include
657 DEPDIR
658 OBJEXT
659 EXEEXT
660 ac_ct_CC
661 CPPFLAGS
662 LDFLAGS
663 CFLAGS
665 am__untar
666 am__tar
667 AMTAR
668 am__leading_dot
669 SET_MAKE
671 mkdir_p
672 MKDIR_P
673 INSTALL_STRIP_PROGRAM
674 STRIP
675 install_sh
676 MAKEINFO
677 AUTOHEADER
678 AUTOMAKE
679 AUTOCONF
680 ACLOCAL
681 VERSION
682 PACKAGE
683 CYGPATH_W
684 am__isrc
685 INSTALL_DATA
686 INSTALL_SCRIPT
687 INSTALL_PROGRAM
688 target_alias
689 host_alias
690 build_alias
691 LIBS
692 ECHO_T
693 ECHO_N
694 ECHO_C
695 DEFS
696 mandir
697 localedir
698 libdir
699 psdir
700 pdfdir
701 dvidir
702 htmldir
703 infodir
704 docdir
705 oldincludedir
706 includedir
707 localstatedir
708 sharedstatedir
709 sysconfdir
710 datadir
711 datarootdir
712 libexecdir
713 sbindir
714 bindir
715 program_transform_name
716 prefix
717 exec_prefix
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_dependency_tracking
730 ac_precious_vars='build_alias
731 host_alias
732 target_alias
734 CFLAGS
735 LDFLAGS
736 LIBS
737 CPPFLAGS
739 YACC
740 YFLAGS'
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 ac_unrecognized_opts=
747 ac_unrecognized_sep=
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
791 ac_prev=
792 ac_dashdash=
793 for ac_option
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
811 ac_dashdash=yes ;;
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
830 --config-cache | -C)
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
850 { (exit 1); exit 1; }; }
851 ac_useropt_orig=$ac_useropt
852 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
853 case $ac_user_opts in
855 "enable_$ac_useropt"
856 "*) ;;
857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
858 ac_unrecognized_sep=', ';;
859 esac
860 eval enable_$ac_useropt=no ;;
862 -docdir | --docdir | --docdi | --doc | --do)
863 ac_prev=docdir ;;
864 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 docdir=$ac_optarg ;;
867 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 ac_prev=dvidir ;;
869 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 dvidir=$ac_optarg ;;
872 -enable-* | --enable-*)
873 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
874 # Reject names that are not valid shell variable names.
875 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
876 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
877 { (exit 1); exit 1; }; }
878 ac_useropt_orig=$ac_useropt
879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
882 "enable_$ac_useropt"
883 "*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
887 eval enable_$ac_useropt=\$ac_optarg ;;
889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891 | --exec | --exe | --ex)
892 ac_prev=exec_prefix ;;
893 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895 | --exec=* | --exe=* | --ex=*)
896 exec_prefix=$ac_optarg ;;
898 -gas | --gas | --ga | --g)
899 # Obsolete; use --with-gas.
900 with_gas=yes ;;
902 -help | --help | --hel | --he | -h)
903 ac_init_help=long ;;
904 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905 ac_init_help=recursive ;;
906 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907 ac_init_help=short ;;
909 -host | --host | --hos | --ho)
910 ac_prev=host_alias ;;
911 -host=* | --host=* | --hos=* | --ho=*)
912 host_alias=$ac_optarg ;;
914 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915 ac_prev=htmldir ;;
916 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917 | --ht=*)
918 htmldir=$ac_optarg ;;
920 -includedir | --includedir | --includedi | --included | --include \
921 | --includ | --inclu | --incl | --inc)
922 ac_prev=includedir ;;
923 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924 | --includ=* | --inclu=* | --incl=* | --inc=*)
925 includedir=$ac_optarg ;;
927 -infodir | --infodir | --infodi | --infod | --info | --inf)
928 ac_prev=infodir ;;
929 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930 infodir=$ac_optarg ;;
932 -libdir | --libdir | --libdi | --libd)
933 ac_prev=libdir ;;
934 -libdir=* | --libdir=* | --libdi=* | --libd=*)
935 libdir=$ac_optarg ;;
937 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938 | --libexe | --libex | --libe)
939 ac_prev=libexecdir ;;
940 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941 | --libexe=* | --libex=* | --libe=*)
942 libexecdir=$ac_optarg ;;
944 -localedir | --localedir | --localedi | --localed | --locale)
945 ac_prev=localedir ;;
946 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947 localedir=$ac_optarg ;;
949 -localstatedir | --localstatedir | --localstatedi | --localstated \
950 | --localstate | --localstat | --localsta | --localst | --locals)
951 ac_prev=localstatedir ;;
952 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954 localstatedir=$ac_optarg ;;
956 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957 ac_prev=mandir ;;
958 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959 mandir=$ac_optarg ;;
961 -nfp | --nfp | --nf)
962 # Obsolete; use --without-fp.
963 with_fp=no ;;
965 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966 | --no-cr | --no-c | -n)
967 no_create=yes ;;
969 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971 no_recursion=yes ;;
973 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975 | --oldin | --oldi | --old | --ol | --o)
976 ac_prev=oldincludedir ;;
977 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980 oldincludedir=$ac_optarg ;;
982 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983 ac_prev=prefix ;;
984 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985 prefix=$ac_optarg ;;
987 -program-prefix | --program-prefix | --program-prefi | --program-pref \
988 | --program-pre | --program-pr | --program-p)
989 ac_prev=program_prefix ;;
990 -program-prefix=* | --program-prefix=* | --program-prefi=* \
991 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992 program_prefix=$ac_optarg ;;
994 -program-suffix | --program-suffix | --program-suffi | --program-suff \
995 | --program-suf | --program-su | --program-s)
996 ac_prev=program_suffix ;;
997 -program-suffix=* | --program-suffix=* | --program-suffi=* \
998 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999 program_suffix=$ac_optarg ;;
1001 -program-transform-name | --program-transform-name \
1002 | --program-transform-nam | --program-transform-na \
1003 | --program-transform-n | --program-transform- \
1004 | --program-transform | --program-transfor \
1005 | --program-transfo | --program-transf \
1006 | --program-trans | --program-tran \
1007 | --progr-tra | --program-tr | --program-t)
1008 ac_prev=program_transform_name ;;
1009 -program-transform-name=* | --program-transform-name=* \
1010 | --program-transform-nam=* | --program-transform-na=* \
1011 | --program-transform-n=* | --program-transform-=* \
1012 | --program-transform=* | --program-transfor=* \
1013 | --program-transfo=* | --program-transf=* \
1014 | --program-trans=* | --program-tran=* \
1015 | --progr-tra=* | --program-tr=* | --program-t=*)
1016 program_transform_name=$ac_optarg ;;
1018 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019 ac_prev=pdfdir ;;
1020 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021 pdfdir=$ac_optarg ;;
1023 -psdir | --psdir | --psdi | --psd | --ps)
1024 ac_prev=psdir ;;
1025 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026 psdir=$ac_optarg ;;
1028 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029 | -silent | --silent | --silen | --sile | --sil)
1030 silent=yes ;;
1032 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033 ac_prev=sbindir ;;
1034 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035 | --sbi=* | --sb=*)
1036 sbindir=$ac_optarg ;;
1038 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040 | --sharedst | --shareds | --shared | --share | --shar \
1041 | --sha | --sh)
1042 ac_prev=sharedstatedir ;;
1043 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046 | --sha=* | --sh=*)
1047 sharedstatedir=$ac_optarg ;;
1049 -site | --site | --sit)
1050 ac_prev=site ;;
1051 -site=* | --site=* | --sit=*)
1052 site=$ac_optarg ;;
1054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055 ac_prev=srcdir ;;
1056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057 srcdir=$ac_optarg ;;
1059 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060 | --syscon | --sysco | --sysc | --sys | --sy)
1061 ac_prev=sysconfdir ;;
1062 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064 sysconfdir=$ac_optarg ;;
1066 -target | --target | --targe | --targ | --tar | --ta | --t)
1067 ac_prev=target_alias ;;
1068 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069 target_alias=$ac_optarg ;;
1071 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 verbose=yes ;;
1074 -version | --version | --versio | --versi | --vers | -V)
1075 ac_init_version=: ;;
1077 -with-* | --with-*)
1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1087 "with_$ac_useropt"
1088 "*) ;;
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1091 esac
1092 eval with_$ac_useropt=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=no ;;
1111 --x)
1112 # Obsolete; use --with-x.
1113 with_x=yes ;;
1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1116 | --x-incl | --x-inc | --x-in | --x-i)
1117 ac_prev=x_includes ;;
1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1120 x_includes=$ac_optarg ;;
1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1124 ac_prev=x_libraries ;;
1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1127 x_libraries=$ac_optarg ;;
1129 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1130 Try \`$0 --help' for more information." >&2
1131 { (exit 1); exit 1; }; }
1134 *=*)
1135 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1138 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1139 { (exit 1); exit 1; }; }
1140 eval $ac_envvar=\$ac_optarg
1141 export $ac_envvar ;;
1144 # FIXME: should be removed in autoconf 3.0.
1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1148 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1151 esac
1152 done
1154 if test -n "$ac_prev"; then
1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1156 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1157 { (exit 1); exit 1; }; }
1160 if test -n "$ac_unrecognized_opts"; then
1161 case $enable_option_checking in
1162 no) ;;
1163 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1164 { (exit 1); exit 1; }; } ;;
1165 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 esac
1169 # Check all directory arguments for consistency.
1170 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1171 datadir sysconfdir sharedstatedir localstatedir includedir \
1172 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1173 libdir localedir mandir
1175 eval ac_val=\$$ac_var
1176 # Remove trailing slashes.
1177 case $ac_val in
1178 */ )
1179 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1180 eval $ac_var=\$ac_val;;
1181 esac
1182 # Be sure to have absolute directory names.
1183 case $ac_val in
1184 [\\/$]* | ?:[\\/]* ) continue;;
1185 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186 esac
1187 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1188 { (exit 1); exit 1; }; }
1189 done
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1194 build=$build_alias
1195 host=$host_alias
1196 target=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x; then
1200 if test "x$build_alias" = x; then
1201 cross_compiling=maybe
1202 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used." >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1205 cross_compiling=yes
1209 ac_tool_prefix=
1210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212 test "$silent" = yes && exec 6>/dev/null
1215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di=`ls -di .` &&
1217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1218 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1219 { (exit 1); exit 1; }; }
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1222 { (exit 1); exit 1; }; }
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1236 s//\1/
1239 /^X\(\/\/\)[^/].*/{
1240 s//\1/
1243 /^X\(\/\/\)$/{
1244 s//\1/
1247 /^X\(\/\).*/{
1248 s//\1/
1251 s/.*/./; q'`
1252 srcdir=$ac_confdir
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 srcdir=..
1256 else
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1262 { (exit 1); exit 1; }; }
1264 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 ac_abs_confdir=`(
1266 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1267 { (exit 1); exit 1; }; }
1268 pwd)`
1269 # When building in place, set srcdir=.
1270 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 srcdir=.
1273 # Remove unnecessary trailing slashes from srcdir.
1274 # Double slashes in file names in object file debugging info
1275 # mess up M-x gdb in Emacs.
1276 case $srcdir in
1277 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278 esac
1279 for ac_var in $ac_precious_vars; do
1280 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_env_${ac_var}_value=\$${ac_var}
1282 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 done
1287 # Report the --help message.
1289 if test "$ac_init_help" = "long"; then
1290 # Omit some internal or obsolete options to make the list less imposing.
1291 # This message is too long to be a string in the A/UX 3.1 sh.
1292 cat <<_ACEOF
1293 \`configure' configures this package to adapt to many kinds of systems.
1295 Usage: $0 [OPTION]... [VAR=VALUE]...
1297 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1298 VAR=VALUE. See below for descriptions of some of the useful variables.
1300 Defaults for the options are specified in brackets.
1302 Configuration:
1303 -h, --help display this help and exit
1304 --help=short display options specific to this package
1305 --help=recursive display the short help of all the included packages
1306 -V, --version display version information and exit
1307 -q, --quiet, --silent do not print \`checking...' messages
1308 --cache-file=FILE cache test results in FILE [disabled]
1309 -C, --config-cache alias for \`--cache-file=config.cache'
1310 -n, --no-create do not create output files
1311 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1313 Installation directories:
1314 --prefix=PREFIX install architecture-independent files in PREFIX
1315 [$ac_default_prefix]
1316 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 [PREFIX]
1319 By default, \`make install' will install all the files in
1320 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1321 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1322 for instance \`--prefix=\$HOME'.
1324 For better control, use the options below.
1326 Fine tuning of the installation directories:
1327 --bindir=DIR user executables [EPREFIX/bin]
1328 --sbindir=DIR system admin executables [EPREFIX/sbin]
1329 --libexecdir=DIR program executables [EPREFIX/libexec]
1330 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1331 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1332 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1333 --libdir=DIR object code libraries [EPREFIX/lib]
1334 --includedir=DIR C header files [PREFIX/include]
1335 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1336 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1337 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1338 --infodir=DIR info documentation [DATAROOTDIR/info]
1339 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1340 --mandir=DIR man documentation [DATAROOTDIR/man]
1341 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1342 --htmldir=DIR html documentation [DOCDIR]
1343 --dvidir=DIR dvi documentation [DOCDIR]
1344 --pdfdir=DIR pdf documentation [DOCDIR]
1345 --psdir=DIR ps documentation [DOCDIR]
1346 _ACEOF
1348 cat <<\_ACEOF
1350 Program names:
1351 --program-prefix=PREFIX prepend PREFIX to installed program names
1352 --program-suffix=SUFFIX append SUFFIX to installed program names
1353 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354 _ACEOF
1357 if test -n "$ac_init_help"; then
1359 cat <<\_ACEOF
1361 Optional Features:
1362 --disable-option-checking ignore unrecognized --enable/--with options
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1365 --disable-dependency-tracking speeds up one-time build
1366 --enable-dependency-tracking do not reject slow dependency extractors
1368 Some influential environment variables:
1369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
1373 LIBS libraries to pass to the linker, e.g. -l<library>
1374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
1376 CPP C preprocessor
1377 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1378 the first program found out of: `bison -y', `byacc', `yacc'.
1379 YFLAGS The list of arguments that will be passed by default to $YACC.
1380 This script will default YFLAGS to the empty string to avoid a
1381 default value of `-d' given by some make applications.
1383 Use these variables to override the choices made by `configure' or to help
1384 it to find libraries and programs with nonstandard names/locations.
1386 _ACEOF
1387 ac_status=$?
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" ||
1394 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1395 continue
1396 ac_builddir=.
1398 case "$ac_dir" in
1399 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1401 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1402 # A ".." for each directory in $ac_dir_suffix.
1403 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1404 case $ac_top_builddir_sub in
1405 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 esac ;;
1408 esac
1409 ac_abs_top_builddir=$ac_pwd
1410 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1411 # for backward compatibility:
1412 ac_top_builddir=$ac_top_build_prefix
1414 case $srcdir in
1415 .) # We are building in place.
1416 ac_srcdir=.
1417 ac_top_srcdir=$ac_top_builddir_sub
1418 ac_abs_top_srcdir=$ac_pwd ;;
1419 [\\/]* | ?:[\\/]* ) # Absolute name.
1420 ac_srcdir=$srcdir$ac_dir_suffix;
1421 ac_top_srcdir=$srcdir
1422 ac_abs_top_srcdir=$srcdir ;;
1423 *) # Relative name.
1424 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1425 ac_top_srcdir=$ac_top_build_prefix$srcdir
1426 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1427 esac
1428 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1430 cd "$ac_dir" || { ac_status=$?; continue; }
1431 # Check for guested configure.
1432 if test -f "$ac_srcdir/configure.gnu"; then
1433 echo &&
1434 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1435 elif test -f "$ac_srcdir/configure"; then
1436 echo &&
1437 $SHELL "$ac_srcdir/configure" --help=recursive
1438 else
1439 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 fi || ac_status=$?
1441 cd "$ac_pwd" || { ac_status=$?; break; }
1442 done
1445 test -n "$ac_init_help" && exit $ac_status
1446 if $ac_init_version; then
1447 cat <<\_ACEOF
1448 configure
1449 generated by GNU Autoconf 2.63
1451 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1452 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1453 This configure script is free software; the Free Software Foundation
1454 gives unlimited permission to copy, distribute and modify it.
1455 _ACEOF
1456 exit
1458 cat >config.log <<_ACEOF
1459 This file contains any messages produced by compilers while
1460 running configure, to aid debugging if configure makes a mistake.
1462 It was created by $as_me, which was
1463 generated by GNU Autoconf 2.63. Invocation command line was
1465 $ $0 $@
1467 _ACEOF
1468 exec 5>>config.log
1470 cat <<_ASUNAME
1471 ## --------- ##
1472 ## Platform. ##
1473 ## --------- ##
1475 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1476 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1477 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1478 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1479 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1481 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1482 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1484 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1485 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1486 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1487 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1488 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1489 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1490 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1492 _ASUNAME
1494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1495 for as_dir in $PATH
1497 IFS=$as_save_IFS
1498 test -z "$as_dir" && as_dir=.
1499 $as_echo "PATH: $as_dir"
1500 done
1501 IFS=$as_save_IFS
1503 } >&5
1505 cat >&5 <<_ACEOF
1508 ## ----------- ##
1509 ## Core tests. ##
1510 ## ----------- ##
1512 _ACEOF
1515 # Keep a trace of the command line.
1516 # Strip out --no-create and --no-recursion so they do not pile up.
1517 # Strip out --silent because we don't want to record it for future runs.
1518 # Also quote any args containing shell meta-characters.
1519 # Make two passes to allow for proper duplicate-argument suppression.
1520 ac_configure_args=
1521 ac_configure_args0=
1522 ac_configure_args1=
1523 ac_must_keep_next=false
1524 for ac_pass in 1 2
1526 for ac_arg
1528 case $ac_arg in
1529 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 continue ;;
1533 *\'*)
1534 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 esac
1536 case $ac_pass in
1537 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1539 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1540 if test $ac_must_keep_next = true; then
1541 ac_must_keep_next=false # Got value, back to normal.
1542 else
1543 case $ac_arg in
1544 *=* | --config-cache | -C | -disable-* | --disable-* \
1545 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1546 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1547 | -with-* | --with-* | -without-* | --without-* | --x)
1548 case "$ac_configure_args0 " in
1549 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 esac
1552 -* ) ac_must_keep_next=true ;;
1553 esac
1555 ac_configure_args="$ac_configure_args '$ac_arg'"
1557 esac
1558 done
1559 done
1560 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1561 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1563 # When interrupted or exit'd, cleanup temporary files, and complete
1564 # config.log. We remove comments because anyway the quotes in there
1565 # would cause problems or look ugly.
1566 # WARNING: Use '\'' to represent an apostrophe within the trap.
1567 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1568 trap 'exit_status=$?
1569 # Save into config.log some information that might help in debugging.
1571 echo
1573 cat <<\_ASBOX
1574 ## ---------------- ##
1575 ## Cache variables. ##
1576 ## ---------------- ##
1577 _ASBOX
1578 echo
1579 # The following way of writing the cache mishandles newlines in values,
1581 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1582 eval ac_val=\$$ac_var
1583 case $ac_val in #(
1584 *${as_nl}*)
1585 case $ac_var in #(
1586 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1588 esac
1589 case $ac_var in #(
1590 _ | IFS | as_nl) ;; #(
1591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1592 *) $as_unset $ac_var ;;
1593 esac ;;
1594 esac
1595 done
1596 (set) 2>&1 |
1597 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1598 *${as_nl}ac_space=\ *)
1599 sed -n \
1600 "s/'\''/'\''\\\\'\'''\''/g;
1601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1602 ;; #(
1604 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 esac |
1607 sort
1609 echo
1611 cat <<\_ASBOX
1612 ## ----------------- ##
1613 ## Output variables. ##
1614 ## ----------------- ##
1615 _ASBOX
1616 echo
1617 for ac_var in $ac_subst_vars
1619 eval ac_val=\$$ac_var
1620 case $ac_val in
1621 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1622 esac
1623 $as_echo "$ac_var='\''$ac_val'\''"
1624 done | sort
1625 echo
1627 if test -n "$ac_subst_files"; then
1628 cat <<\_ASBOX
1629 ## ------------------- ##
1630 ## File substitutions. ##
1631 ## ------------------- ##
1632 _ASBOX
1633 echo
1634 for ac_var in $ac_subst_files
1636 eval ac_val=\$$ac_var
1637 case $ac_val in
1638 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1639 esac
1640 $as_echo "$ac_var='\''$ac_val'\''"
1641 done | sort
1642 echo
1645 if test -s confdefs.h; then
1646 cat <<\_ASBOX
1647 ## ----------- ##
1648 ## confdefs.h. ##
1649 ## ----------- ##
1650 _ASBOX
1651 echo
1652 cat confdefs.h
1653 echo
1655 test "$ac_signal" != 0 &&
1656 $as_echo "$as_me: caught signal $ac_signal"
1657 $as_echo "$as_me: exit $exit_status"
1658 } >&5
1659 rm -f core *.core core.conftest.* &&
1660 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1661 exit $exit_status
1663 for ac_signal in 1 2 13 15; do
1664 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1665 done
1666 ac_signal=0
1668 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1669 rm -f -r conftest* confdefs.h
1671 # Predefined preprocessor variables.
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_NAME "$PACKAGE_NAME"
1675 _ACEOF
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1680 _ACEOF
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1685 _ACEOF
1688 cat >>confdefs.h <<_ACEOF
1689 #define PACKAGE_STRING "$PACKAGE_STRING"
1690 _ACEOF
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1695 _ACEOF
1698 # Let the site file select an alternate cache file if it wants to.
1699 # Prefer an explicitly selected file to automatically selected ones.
1700 ac_site_file1=NONE
1701 ac_site_file2=NONE
1702 if test -n "$CONFIG_SITE"; then
1703 ac_site_file1=$CONFIG_SITE
1704 elif test "x$prefix" != xNONE; then
1705 ac_site_file1=$prefix/share/config.site
1706 ac_site_file2=$prefix/etc/config.site
1707 else
1708 ac_site_file1=$ac_default_prefix/share/config.site
1709 ac_site_file2=$ac_default_prefix/etc/config.site
1711 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1713 test "x$ac_site_file" = xNONE && continue
1714 if test -r "$ac_site_file"; then
1715 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1718 . "$ac_site_file"
1720 done
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 $as_echo "$as_me: loading cache $cache_file" >&6;}
1728 case $cache_file in
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1731 esac
1733 else
1734 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 $as_echo "$as_me: creating cache $cache_file" >&6;}
1736 >$cache_file
1739 # Check that the precious variables saved in the cache have kept the same
1740 # value.
1741 ac_cache_corrupted=false
1742 for ac_var in $ac_precious_vars; do
1743 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1744 eval ac_new_set=\$ac_env_${ac_var}_set
1745 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1746 eval ac_new_val=\$ac_env_${ac_var}_value
1747 case $ac_old_set,$ac_new_set in
1748 set,)
1749 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1751 ac_cache_corrupted=: ;;
1752 ,set)
1753 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1754 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,);;
1758 if test "x$ac_old_val" != "x$ac_new_val"; then
1759 # differences in whitespace do not lead to failure.
1760 ac_old_val_w=`echo x $ac_old_val`
1761 ac_new_val_w=`echo x $ac_new_val`
1762 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1763 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 ac_cache_corrupted=:
1766 else
1767 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1768 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1769 eval $ac_var=\$ac_old_val
1771 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1772 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1773 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1774 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1775 fi;;
1776 esac
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1779 case $ac_new_val in
1780 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1782 esac
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1786 esac
1788 done
1789 if $ac_cache_corrupted; then
1790 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1792 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1793 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1794 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1795 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1796 { (exit 1); exit 1; }; }
1815 ac_ext=c
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers config.h"
1825 am__api_version='1.10'
1827 ac_aux_dir=
1828 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1829 if test -f "$ac_dir/install-sh"; then
1830 ac_aux_dir=$ac_dir
1831 ac_install_sh="$ac_aux_dir/install-sh -c"
1832 break
1833 elif test -f "$ac_dir/install.sh"; then
1834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install.sh -c"
1836 break
1837 elif test -f "$ac_dir/shtool"; then
1838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/shtool install -c"
1840 break
1842 done
1843 if test -z "$ac_aux_dir"; then
1844 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1845 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1846 { (exit 1); exit 1; }; }
1849 # These three variables are undocumented and unsupported,
1850 # and are intended to be withdrawn in a future Autoconf release.
1851 # They can cause serious problems if a builder's source tree is in a directory
1852 # whose full name contains unusual characters.
1853 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1854 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1855 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1858 # Find a good install program. We prefer a C program (faster),
1859 # so one script is as good as another. But avoid the broken or
1860 # incompatible versions:
1861 # SysV /etc/install, /usr/sbin/install
1862 # SunOS /usr/etc/install
1863 # IRIX /sbin/install
1864 # AIX /bin/install
1865 # AmigaOS /C/install, which installs bootblocks on floppy discs
1866 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1867 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1868 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1869 # OS/2's system install, which has a completely different semantic
1870 # ./install, which can be erroneously created by make from ./install.sh.
1871 # Reject install programs that cannot install multiple files.
1872 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1873 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1874 if test -z "$INSTALL"; then
1875 if test "${ac_cv_path_install+set}" = set; then
1876 $as_echo_n "(cached) " >&6
1877 else
1878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1879 for as_dir in $PATH
1881 IFS=$as_save_IFS
1882 test -z "$as_dir" && as_dir=.
1883 # Account for people who put trailing slashes in PATH elements.
1884 case $as_dir/ in
1885 ./ | .// | /cC/* | \
1886 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1887 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1888 /usr/ucb/* ) ;;
1890 # OSF1 and SCO ODT 3.0 have their own names for install.
1891 # Don't use installbsd from OSF since it installs stuff as root
1892 # by default.
1893 for ac_prog in ginstall scoinst install; do
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1896 if test $ac_prog = install &&
1897 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1898 # AIX install. It has an incompatible calling convention.
1900 elif test $ac_prog = install &&
1901 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1902 # program-specific install script used by HP pwplus--don't use.
1904 else
1905 rm -rf conftest.one conftest.two conftest.dir
1906 echo one > conftest.one
1907 echo two > conftest.two
1908 mkdir conftest.dir
1909 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1910 test -s conftest.one && test -s conftest.two &&
1911 test -s conftest.dir/conftest.one &&
1912 test -s conftest.dir/conftest.two
1913 then
1914 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1915 break 3
1919 done
1920 done
1922 esac
1924 done
1925 IFS=$as_save_IFS
1927 rm -rf conftest.one conftest.two conftest.dir
1930 if test "${ac_cv_path_install+set}" = set; then
1931 INSTALL=$ac_cv_path_install
1932 else
1933 # As a last resort, use the slow shell script. Don't cache a
1934 # value for INSTALL within a source directory, because that will
1935 # break other packages using the cache if that directory is
1936 # removed, or if the value is a relative name.
1937 INSTALL=$ac_install_sh
1940 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
1941 $as_echo "$INSTALL" >&6; }
1943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1944 # It thinks the first close brace ends the variable substitution.
1945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1949 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1951 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1952 $as_echo_n "checking whether build environment is sane... " >&6; }
1953 # Just in case
1954 sleep 1
1955 echo timestamp > conftest.file
1956 # Do `set' in a subshell so we don't clobber the current shell's
1957 # arguments. Must try -L first in case configure is actually a
1958 # symlink; some systems play weird games with the mod time of symlinks
1959 # (eg FreeBSD returns the mod time of the symlink's containing
1960 # directory).
1961 if (
1962 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1963 if test "$*" = "X"; then
1964 # -L didn't work.
1965 set X `ls -t $srcdir/configure conftest.file`
1967 rm -f conftest.file
1968 if test "$*" != "X $srcdir/configure conftest.file" \
1969 && test "$*" != "X conftest.file $srcdir/configure"; then
1971 # If neither matched, then we have a broken ls. This can happen
1972 # if, for instance, CONFIG_SHELL is bash and it inherits a
1973 # broken ls alias from the environment. This has actually
1974 # happened. Such a system could not be considered "sane".
1975 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1976 alias in your environment" >&5
1977 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1978 alias in your environment" >&2;}
1979 { (exit 1); exit 1; }; }
1982 test "$2" = conftest.file
1984 then
1985 # Ok.
1987 else
1988 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1989 Check your system clock" >&5
1990 $as_echo "$as_me: error: newly created file is older than distributed files!
1991 Check your system clock" >&2;}
1992 { (exit 1); exit 1; }; }
1994 { $as_echo "$as_me:$LINENO: result: yes" >&5
1995 $as_echo "yes" >&6; }
1996 test "$program_prefix" != NONE &&
1997 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1998 # Use a double $ so make ignores it.
1999 test "$program_suffix" != NONE &&
2000 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2001 # Double any \ or $.
2002 # By default was `s,x,x', remove it if useless.
2003 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2004 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2006 # expand $ac_aux_dir to an absolute path
2007 am_aux_dir=`cd $ac_aux_dir && pwd`
2009 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2010 # Use eval to expand $SHELL
2011 if eval "$MISSING --run true"; then
2012 am_missing_run="$MISSING --run "
2013 else
2014 am_missing_run=
2015 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2016 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2019 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2020 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2021 if test -z "$MKDIR_P"; then
2022 if test "${ac_cv_path_mkdir+set}" = set; then
2023 $as_echo_n "(cached) " >&6
2024 else
2025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2028 IFS=$as_save_IFS
2029 test -z "$as_dir" && as_dir=.
2030 for ac_prog in mkdir gmkdir; do
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2033 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2034 'mkdir (GNU coreutils) '* | \
2035 'mkdir (coreutils) '* | \
2036 'mkdir (fileutils) '4.1*)
2037 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2038 break 3;;
2039 esac
2040 done
2041 done
2042 done
2043 IFS=$as_save_IFS
2047 if test "${ac_cv_path_mkdir+set}" = set; then
2048 MKDIR_P="$ac_cv_path_mkdir -p"
2049 else
2050 # As a last resort, use the slow shell script. Don't cache a
2051 # value for MKDIR_P within a source directory, because that will
2052 # break other packages using the cache if that directory is
2053 # removed, or if the value is a relative name.
2054 test -d ./--version && rmdir ./--version
2055 MKDIR_P="$ac_install_sh -d"
2058 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2059 $as_echo "$MKDIR_P" >&6; }
2061 mkdir_p="$MKDIR_P"
2062 case $mkdir_p in
2063 [\\/$]* | ?:[\\/]*) ;;
2064 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2065 esac
2067 for ac_prog in gawk mawk nawk awk
2069 # Extract the first word of "$ac_prog", so it can be a program name with args.
2070 set dummy $ac_prog; ac_word=$2
2071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 $as_echo_n "checking for $ac_word... " >&6; }
2073 if test "${ac_cv_prog_AWK+set}" = set; then
2074 $as_echo_n "(cached) " >&6
2075 else
2076 if test -n "$AWK"; then
2077 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2078 else
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080 for as_dir in $PATH
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_AWK="$ac_prog"
2087 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2090 done
2091 done
2092 IFS=$as_save_IFS
2096 AWK=$ac_cv_prog_AWK
2097 if test -n "$AWK"; then
2098 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2099 $as_echo "$AWK" >&6; }
2100 else
2101 { $as_echo "$as_me:$LINENO: result: no" >&5
2102 $as_echo "no" >&6; }
2106 test -n "$AWK" && break
2107 done
2109 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2110 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2111 set x ${MAKE-make}
2112 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2113 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2114 $as_echo_n "(cached) " >&6
2115 else
2116 cat >conftest.make <<\_ACEOF
2117 SHELL = /bin/sh
2118 all:
2119 @echo '@@@%%%=$(MAKE)=@@@%%%'
2120 _ACEOF
2121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2122 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2123 *@@@%%%=?*=@@@%%%*)
2124 eval ac_cv_prog_make_${ac_make}_set=yes;;
2126 eval ac_cv_prog_make_${ac_make}_set=no;;
2127 esac
2128 rm -f conftest.make
2130 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2131 { $as_echo "$as_me:$LINENO: result: yes" >&5
2132 $as_echo "yes" >&6; }
2133 SET_MAKE=
2134 else
2135 { $as_echo "$as_me:$LINENO: result: no" >&5
2136 $as_echo "no" >&6; }
2137 SET_MAKE="MAKE=${MAKE-make}"
2140 rm -rf .tst 2>/dev/null
2141 mkdir .tst 2>/dev/null
2142 if test -d .tst; then
2143 am__leading_dot=.
2144 else
2145 am__leading_dot=_
2147 rmdir .tst 2>/dev/null
2149 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2150 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2151 # is not polluted with repeated "-I."
2152 am__isrc=' -I$(srcdir)'
2153 # test to see if srcdir already configured
2154 if test -f $srcdir/config.status; then
2155 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2156 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2157 { (exit 1); exit 1; }; }
2161 # test whether we have cygpath
2162 if test -z "$CYGPATH_W"; then
2163 if (cygpath --version) >/dev/null 2>/dev/null; then
2164 CYGPATH_W='cygpath -w'
2165 else
2166 CYGPATH_W=echo
2171 # Define the identity of the package.
2172 PACKAGE=xorcyst
2173 VERSION=1.5.2
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE "$PACKAGE"
2178 _ACEOF
2181 cat >>confdefs.h <<_ACEOF
2182 #define VERSION "$VERSION"
2183 _ACEOF
2185 # Some tools Automake needs.
2187 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2190 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2193 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2196 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2199 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2201 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2203 # Installed binaries are usually stripped using `strip' when the user
2204 # run `make install-strip'. However `strip' might not be the right
2205 # tool to use in cross-compilation environments, therefore Automake
2206 # will honor the `STRIP' environment variable to overrule this program.
2207 if test "$cross_compiling" != no; then
2208 if test -n "$ac_tool_prefix"; then
2209 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2210 set dummy ${ac_tool_prefix}strip; ac_word=$2
2211 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2212 $as_echo_n "checking for $ac_word... " >&6; }
2213 if test "${ac_cv_prog_STRIP+set}" = set; then
2214 $as_echo_n "(cached) " >&6
2215 else
2216 if test -n "$STRIP"; then
2217 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2218 else
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2222 IFS=$as_save_IFS
2223 test -z "$as_dir" && as_dir=.
2224 for ac_exec_ext in '' $ac_executable_extensions; do
2225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2226 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2227 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2232 IFS=$as_save_IFS
2236 STRIP=$ac_cv_prog_STRIP
2237 if test -n "$STRIP"; then
2238 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2239 $as_echo "$STRIP" >&6; }
2240 else
2241 { $as_echo "$as_me:$LINENO: result: no" >&5
2242 $as_echo "no" >&6; }
2247 if test -z "$ac_cv_prog_STRIP"; then
2248 ac_ct_STRIP=$STRIP
2249 # Extract the first word of "strip", so it can be a program name with args.
2250 set dummy strip; ac_word=$2
2251 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2252 $as_echo_n "checking for $ac_word... " >&6; }
2253 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2254 $as_echo_n "(cached) " >&6
2255 else
2256 if test -n "$ac_ct_STRIP"; then
2257 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2258 else
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260 for as_dir in $PATH
2262 IFS=$as_save_IFS
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_prog_ac_ct_STRIP="strip"
2267 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2270 done
2271 done
2272 IFS=$as_save_IFS
2276 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2277 if test -n "$ac_ct_STRIP"; then
2278 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2279 $as_echo "$ac_ct_STRIP" >&6; }
2280 else
2281 { $as_echo "$as_me:$LINENO: result: no" >&5
2282 $as_echo "no" >&6; }
2285 if test "x$ac_ct_STRIP" = x; then
2286 STRIP=":"
2287 else
2288 case $cross_compiling:$ac_tool_warned in
2289 yes:)
2290 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2292 ac_tool_warned=yes ;;
2293 esac
2294 STRIP=$ac_ct_STRIP
2296 else
2297 STRIP="$ac_cv_prog_STRIP"
2301 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2303 # We need awk for the "check" target. The system "awk" is bad on
2304 # some platforms.
2305 # Always define AMTAR for backward compatibility.
2307 AMTAR=${AMTAR-"${am_missing_run}tar"}
2309 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2316 DEPDIR="${am__leading_dot}deps"
2318 ac_config_commands="$ac_config_commands depfiles"
2321 am_make=${MAKE-make}
2322 cat > confinc << 'END'
2323 am__doit:
2324 @echo done
2325 .PHONY: am__doit
2327 # If we don't find an include directive, just comment out the code.
2328 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2329 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2330 am__include="#"
2331 am__quote=
2332 _am_result=none
2333 # First try GNU make style include.
2334 echo "include confinc" > confmf
2335 # We grep out `Entering directory' and `Leaving directory'
2336 # messages which can occur if `w' ends up in MAKEFLAGS.
2337 # In particular we don't look at `^make:' because GNU make might
2338 # be invoked under some other name (usually "gmake"), in which
2339 # case it prints its new name instead of `make'.
2340 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2341 am__include=include
2342 am__quote=
2343 _am_result=GNU
2345 # Now try BSD make style include.
2346 if test "$am__include" = "#"; then
2347 echo '.include "confinc"' > confmf
2348 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2349 am__include=.include
2350 am__quote="\""
2351 _am_result=BSD
2356 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2357 $as_echo "$_am_result" >&6; }
2358 rm -f confinc confmf
2360 # Check whether --enable-dependency-tracking was given.
2361 if test "${enable_dependency_tracking+set}" = set; then
2362 enableval=$enable_dependency_tracking;
2365 if test "x$enable_dependency_tracking" != xno; then
2366 am_depcomp="$ac_aux_dir/depcomp"
2367 AMDEPBACKSLASH='\'
2369 if test "x$enable_dependency_tracking" != xno; then
2370 AMDEP_TRUE=
2371 AMDEP_FALSE='#'
2372 else
2373 AMDEP_TRUE='#'
2374 AMDEP_FALSE=
2378 ac_ext=c
2379 ac_cpp='$CPP $CPPFLAGS'
2380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2383 if test -n "$ac_tool_prefix"; then
2384 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2385 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2387 $as_echo_n "checking for $ac_word... " >&6; }
2388 if test "${ac_cv_prog_CC+set}" = set; then
2389 $as_echo_n "(cached) " >&6
2390 else
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 else
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 for as_dir in $PATH
2397 IFS=$as_save_IFS
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2402 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 break 2
2405 done
2406 done
2407 IFS=$as_save_IFS
2411 CC=$ac_cv_prog_CC
2412 if test -n "$CC"; then
2413 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2414 $as_echo "$CC" >&6; }
2415 else
2416 { $as_echo "$as_me:$LINENO: result: no" >&5
2417 $as_echo "no" >&6; }
2422 if test -z "$ac_cv_prog_CC"; then
2423 ac_ct_CC=$CC
2424 # Extract the first word of "gcc", so it can be a program name with args.
2425 set dummy gcc; ac_word=$2
2426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2427 $as_echo_n "checking for $ac_word... " >&6; }
2428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2429 $as_echo_n "(cached) " >&6
2430 else
2431 if test -n "$ac_ct_CC"; then
2432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2433 else
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435 for as_dir in $PATH
2437 IFS=$as_save_IFS
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 ac_cv_prog_ac_ct_CC="gcc"
2442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2443 break 2
2445 done
2446 done
2447 IFS=$as_save_IFS
2451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2452 if test -n "$ac_ct_CC"; then
2453 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2454 $as_echo "$ac_ct_CC" >&6; }
2455 else
2456 { $as_echo "$as_me:$LINENO: result: no" >&5
2457 $as_echo "no" >&6; }
2460 if test "x$ac_ct_CC" = x; then
2461 CC=""
2462 else
2463 case $cross_compiling:$ac_tool_warned in
2464 yes:)
2465 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2467 ac_tool_warned=yes ;;
2468 esac
2469 CC=$ac_ct_CC
2471 else
2472 CC="$ac_cv_prog_CC"
2475 if test -z "$CC"; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}cc; ac_word=$2
2479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 $as_echo_n "checking for $ac_word... " >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then
2482 $as_echo_n "(cached) " >&6
2483 else
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 for as_dir in $PATH
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}cc"
2495 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2498 done
2499 done
2500 IFS=$as_save_IFS
2504 CC=$ac_cv_prog_CC
2505 if test -n "$CC"; then
2506 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2507 $as_echo "$CC" >&6; }
2508 else
2509 { $as_echo "$as_me:$LINENO: result: no" >&5
2510 $as_echo "no" >&6; }
2516 if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518 set dummy cc; ac_word=$2
2519 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 $as_echo_n "checking for $ac_word... " >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 $as_echo_n "(cached) " >&6
2523 else
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 else
2527 ac_prog_rejected=no
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2531 IFS=$as_save_IFS
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2537 continue
2539 ac_cv_prog_CC="cc"
2540 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2543 done
2544 done
2545 IFS=$as_save_IFS
2547 if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2550 shift
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2555 shift
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2561 CC=$ac_cv_prog_CC
2562 if test -n "$CC"; then
2563 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2564 $as_echo "$CC" >&6; }
2565 else
2566 { $as_echo "$as_me:$LINENO: result: no" >&5
2567 $as_echo "no" >&6; }
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 for ac_prog in cl.exe
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 $as_echo_n "checking for $ac_word... " >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 $as_echo_n "(cached) " >&6
2582 else
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2585 else
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 break 2
2597 done
2598 done
2599 IFS=$as_save_IFS
2603 CC=$ac_cv_prog_CC
2604 if test -n "$CC"; then
2605 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2606 $as_echo "$CC" >&6; }
2607 else
2608 { $as_echo "$as_me:$LINENO: result: no" >&5
2609 $as_echo "no" >&6; }
2613 test -n "$CC" && break
2614 done
2616 if test -z "$CC"; then
2617 ac_ct_CC=$CC
2618 for ac_prog in cl.exe
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 $as_echo_n "checking for $ac_word... " >&6; }
2624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625 $as_echo_n "(cached) " >&6
2626 else
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629 else
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_ac_ct_CC="$ac_prog"
2638 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
2641 done
2642 done
2643 IFS=$as_save_IFS
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 $as_echo "$ac_ct_CC" >&6; }
2651 else
2652 { $as_echo "$as_me:$LINENO: result: no" >&5
2653 $as_echo "no" >&6; }
2657 test -n "$ac_ct_CC" && break
2658 done
2660 if test "x$ac_ct_CC" = x; then
2661 CC=""
2662 else
2663 case $cross_compiling:$ac_tool_warned in
2664 yes:)
2665 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2667 ac_tool_warned=yes ;;
2668 esac
2669 CC=$ac_ct_CC
2676 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2679 See \`config.log' for more details." >&5
2680 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }; }
2684 # Provide some information about the compiler.
2685 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2686 set X $ac_compile
2687 ac_compiler=$2
2688 { (ac_try="$ac_compiler --version >&5"
2689 case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692 esac
2693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2694 $as_echo "$ac_try_echo") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
2696 ac_status=$?
2697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -v >&5"
2700 case "(($ac_try" in
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2703 esac
2704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2705 $as_echo "$ac_try_echo") >&5
2706 (eval "$ac_compiler -v >&5") 2>&5
2707 ac_status=$?
2708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -V >&5"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2716 $as_echo "$ac_try_echo") >&5
2717 (eval "$ac_compiler -V >&5") 2>&5
2718 ac_status=$?
2719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2722 cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2730 main ()
2734 return 0;
2736 _ACEOF
2737 ac_clean_files_save=$ac_clean_files
2738 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2739 # Try to create an executable without -o first, disregard a.out.
2740 # It will help us diagnose broken compilers, and finding out an intuition
2741 # of exeext.
2742 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2743 $as_echo_n "checking for C compiler default output file name... " >&6; }
2744 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2746 # The possible output files:
2747 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2749 ac_rmfiles=
2750 for ac_file in $ac_files
2752 case $ac_file in
2753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2755 esac
2756 done
2757 rm -f $ac_rmfiles
2759 if { (ac_try="$ac_link_default"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2765 $as_echo "$ac_try_echo") >&5
2766 (eval "$ac_link_default") 2>&5
2767 ac_status=$?
2768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; then
2770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2771 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2773 # so that the user can short-circuit this test for compilers unknown to
2774 # Autoconf.
2775 for ac_file in $ac_files ''
2777 test -f "$ac_file" || continue
2778 case $ac_file in
2779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2781 [ab].out )
2782 # We found the default executable, but exeext='' is most
2783 # certainly right.
2784 break;;
2785 *.* )
2786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2787 then :; else
2788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2790 # We set ac_cv_exeext here because the later test for it is not
2791 # safe: cross compilers may not add the suffix if given an `-o'
2792 # argument, so we may need to know it at that point already.
2793 # Even if this section looks crufty: it has the advantage of
2794 # actually working.
2795 break;;
2797 break;;
2798 esac
2799 done
2800 test "$ac_cv_exeext" = no && ac_cv_exeext=
2802 else
2803 ac_file=''
2806 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2807 $as_echo "$ac_file" >&6; }
2808 if test -z "$ac_file"; then
2809 $as_echo "$as_me: failed program was:" >&5
2810 sed 's/^/| /' conftest.$ac_ext >&5
2812 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2815 See \`config.log' for more details." >&5
2816 $as_echo "$as_me: error: C compiler cannot create executables
2817 See \`config.log' for more details." >&2;}
2818 { (exit 77); exit 77; }; }; }
2821 ac_exeext=$ac_cv_exeext
2823 # Check that the compiler produces executables we can run. If not, either
2824 # the compiler is broken, or we cross compile.
2825 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2826 $as_echo_n "checking whether the C compiler works... " >&6; }
2827 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2828 # If not cross compiling, check that we can run a simple program.
2829 if test "$cross_compiling" != yes; then
2830 if { ac_try='./$ac_file'
2831 { (case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834 esac
2835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2836 $as_echo "$ac_try_echo") >&5
2837 (eval "$ac_try") 2>&5
2838 ac_status=$?
2839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; }; then
2841 cross_compiling=no
2842 else
2843 if test "$cross_compiling" = maybe; then
2844 cross_compiling=yes
2845 else
2846 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2848 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2849 If you meant to cross compile, use \`--host'.
2850 See \`config.log' for more details." >&5
2851 $as_echo "$as_me: error: cannot run C compiled programs.
2852 If you meant to cross compile, use \`--host'.
2853 See \`config.log' for more details." >&2;}
2854 { (exit 1); exit 1; }; }; }
2858 { $as_echo "$as_me:$LINENO: result: yes" >&5
2859 $as_echo "yes" >&6; }
2861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2862 ac_clean_files=$ac_clean_files_save
2863 # Check that the compiler produces executables we can run. If not, either
2864 # the compiler is broken, or we cross compile.
2865 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2866 $as_echo_n "checking whether we are cross compiling... " >&6; }
2867 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2868 $as_echo "$cross_compiling" >&6; }
2870 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2871 $as_echo_n "checking for suffix of executables... " >&6; }
2872 if { (ac_try="$ac_link"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2878 $as_echo "$ac_try_echo") >&5
2879 (eval "$ac_link") 2>&5
2880 ac_status=$?
2881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; then
2883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2885 # work properly (i.e., refer to `conftest.exe'), while it won't with
2886 # `rm'.
2887 for ac_file in conftest.exe conftest conftest.*; do
2888 test -f "$ac_file" || continue
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2892 break;;
2893 * ) break;;
2894 esac
2895 done
2896 else
2897 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2899 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2900 See \`config.log' for more details." >&5
2901 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&2;}
2903 { (exit 1); exit 1; }; }; }
2906 rm -f conftest$ac_cv_exeext
2907 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2908 $as_echo "$ac_cv_exeext" >&6; }
2910 rm -f conftest.$ac_ext
2911 EXEEXT=$ac_cv_exeext
2912 ac_exeext=$EXEEXT
2913 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2914 $as_echo_n "checking for suffix of object files... " >&6; }
2915 if test "${ac_cv_objext+set}" = set; then
2916 $as_echo_n "(cached) " >&6
2917 else
2918 cat >conftest.$ac_ext <<_ACEOF
2919 /* confdefs.h. */
2920 _ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2926 main ()
2930 return 0;
2932 _ACEOF
2933 rm -f conftest.o conftest.obj
2934 if { (ac_try="$ac_compile"
2935 case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938 esac
2939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940 $as_echo "$ac_try_echo") >&5
2941 (eval "$ac_compile") 2>&5
2942 ac_status=$?
2943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
2947 case $ac_file in
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2950 break;;
2951 esac
2952 done
2953 else
2954 $as_echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2959 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&5
2961 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2969 $as_echo "$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2971 ac_objext=$OBJEXT
2972 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 $as_echo_n "(cached) " >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h. */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2985 main ()
2987 #ifndef __GNUC__
2988 choke me
2989 #endif
2992 return 0;
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3002 $as_echo "$ac_try_echo") >&5
3003 (eval "$ac_compile") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } && {
3010 test -z "$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 } && test -s conftest.$ac_objext; then
3013 ac_compiler_gnu=yes
3014 else
3015 $as_echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 ac_compiler_gnu=no
3021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3025 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3027 if test $ac_compiler_gnu = yes; then
3028 GCC=yes
3029 else
3030 GCC=
3032 ac_test_CFLAGS=${CFLAGS+set}
3033 ac_save_CFLAGS=$CFLAGS
3034 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3036 if test "${ac_cv_prog_cc_g+set}" = set; then
3037 $as_echo_n "(cached) " >&6
3038 else
3039 ac_save_c_werror_flag=$ac_c_werror_flag
3040 ac_c_werror_flag=yes
3041 ac_cv_prog_cc_g=no
3042 CFLAGS="-g"
3043 cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h. */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3051 main ()
3055 return 0;
3057 _ACEOF
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3065 $as_echo "$ac_try_echo") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3067 ac_status=$?
3068 grep -v '^ *+' conftest.er1 >conftest.err
3069 rm -f conftest.er1
3070 cat conftest.err >&5
3071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.$ac_objext; then
3076 ac_cv_prog_cc_g=yes
3077 else
3078 $as_echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3081 CFLAGS=""
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3090 main ()
3094 return 0;
3096 _ACEOF
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3104 $as_echo "$ac_try_echo") >&5
3105 (eval "$ac_compile") 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } && {
3112 test -z "$ac_c_werror_flag" ||
3113 test ! -s conftest.err
3114 } && test -s conftest.$ac_objext; then
3116 else
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3120 ac_c_werror_flag=$ac_save_c_werror_flag
3121 CFLAGS="-g"
3122 cat >conftest.$ac_ext <<_ACEOF
3123 /* confdefs.h. */
3124 _ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3130 main ()
3134 return 0;
3136 _ACEOF
3137 rm -f conftest.$ac_objext
3138 if { (ac_try="$ac_compile"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3155 ac_cv_prog_cc_g=yes
3156 else
3157 $as_echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_c_werror_flag=$ac_save_c_werror_flag
3172 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3173 $as_echo "$ac_cv_prog_cc_g" >&6; }
3174 if test "$ac_test_CFLAGS" = set; then
3175 CFLAGS=$ac_save_CFLAGS
3176 elif test $ac_cv_prog_cc_g = yes; then
3177 if test "$GCC" = yes; then
3178 CFLAGS="-g -O2"
3179 else
3180 CFLAGS="-g"
3182 else
3183 if test "$GCC" = yes; then
3184 CFLAGS="-O2"
3185 else
3186 CFLAGS=
3189 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3190 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3191 if test "${ac_cv_prog_cc_c89+set}" = set; then
3192 $as_echo_n "(cached) " >&6
3193 else
3194 ac_cv_prog_cc_c89=no
3195 ac_save_CC=$CC
3196 cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h. */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3202 #include <stdarg.h>
3203 #include <stdio.h>
3204 #include <sys/types.h>
3205 #include <sys/stat.h>
3206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3207 struct buf { int x; };
3208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3209 static char *e (p, i)
3210 char **p;
3211 int i;
3213 return p[i];
3215 static char *f (char * (*g) (char **, int), char **p, ...)
3217 char *s;
3218 va_list v;
3219 va_start (v,p);
3220 s = g (p, va_arg (v,int));
3221 va_end (v);
3222 return s;
3225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3226 function prototypes and stuff, but not '\xHH' hex character constants.
3227 These don't provoke an error unfortunately, instead are silently treated
3228 as 'x'. The following induces an error, until -std is added to get
3229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3230 array size at least. It's necessary to write '\x00'==0 to get something
3231 that's true only with -std. */
3232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3234 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3235 inside strings and character constants. */
3236 #define FOO(x) 'x'
3237 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3239 int test (int i, double x);
3240 struct s1 {int (*f) (int a);};
3241 struct s2 {int (*f) (double a);};
3242 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3243 int argc;
3244 char **argv;
3246 main ()
3248 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3250 return 0;
3252 _ACEOF
3253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3256 CC="$ac_save_CC $ac_arg"
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3259 case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_c_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_cv_prog_cc_c89=$ac_arg
3276 else
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3283 rm -f core conftest.err conftest.$ac_objext
3284 test "x$ac_cv_prog_cc_c89" != "xno" && break
3285 done
3286 rm -f conftest.$ac_ext
3287 CC=$ac_save_CC
3290 # AC_CACHE_VAL
3291 case "x$ac_cv_prog_cc_c89" in
3293 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3294 $as_echo "none needed" >&6; } ;;
3295 xno)
3296 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3297 $as_echo "unsupported" >&6; } ;;
3299 CC="$CC $ac_cv_prog_cc_c89"
3300 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3301 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3302 esac
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311 depcc="$CC" am_compiler_list=
3313 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3314 $as_echo_n "checking dependency style of $depcc... " >&6; }
3315 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3319 # We make a subdir and do the tests there. Otherwise we can end up
3320 # making bogus files that we don't know about and never remove. For
3321 # instance it was reported that on HP-UX the gcc test will end up
3322 # making a dummy file named `D' -- because `-MD' means `put the output
3323 # in D'.
3324 mkdir conftest.dir
3325 # Copy depcomp to subdir because otherwise we won't find it if we're
3326 # using a relative directory.
3327 cp "$am_depcomp" conftest.dir
3328 cd conftest.dir
3329 # We will build objects and dependencies in a subdirectory because
3330 # it helps to detect inapplicable dependency modes. For instance
3331 # both Tru64's cc and ICC support -MD to output dependencies as a
3332 # side effect of compilation, but ICC will put the dependencies in
3333 # the current directory while Tru64 will put them in the object
3334 # directory.
3335 mkdir sub
3337 am_cv_CC_dependencies_compiler_type=none
3338 if test "$am_compiler_list" = ""; then
3339 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3341 for depmode in $am_compiler_list; do
3342 # Setup a source with many dependencies, because some compilers
3343 # like to wrap large dependency lists on column 80 (with \), and
3344 # we should not choose a depcomp mode which is confused by this.
3346 # We need to recreate these files for each test, as the compiler may
3347 # overwrite some of them when testing with obscure command lines.
3348 # This happens at least with the AIX C compiler.
3349 : > sub/conftest.c
3350 for i in 1 2 3 4 5 6; do
3351 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3352 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3353 # Solaris 8's {/usr,}/bin/sh.
3354 touch sub/conftst$i.h
3355 done
3356 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3358 case $depmode in
3359 nosideeffect)
3360 # after this tag, mechanisms are not by side-effect, so they'll
3361 # only be used when explicitly requested
3362 if test "x$enable_dependency_tracking" = xyes; then
3363 continue
3364 else
3365 break
3368 none) break ;;
3369 esac
3370 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3371 # mode. It turns out that the SunPro C++ compiler does not properly
3372 # handle `-M -o', and we need to detect this.
3373 if depmode=$depmode \
3374 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3375 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3376 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3377 >/dev/null 2>conftest.err &&
3378 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3379 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3380 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3381 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3382 # icc doesn't choke on unknown options, it will just issue warnings
3383 # or remarks (even with -Werror). So we grep stderr for any message
3384 # that says an option was ignored or not supported.
3385 # When given -MP, icc 7.0 and 7.1 complain thusly:
3386 # icc: Command line warning: ignoring option '-M'; no argument required
3387 # The diagnosis changed in icc 8.0:
3388 # icc: Command line remark: option '-MP' not supported
3389 if (grep 'ignoring option' conftest.err ||
3390 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3391 am_cv_CC_dependencies_compiler_type=$depmode
3392 break
3395 done
3397 cd ..
3398 rm -rf conftest.dir
3399 else
3400 am_cv_CC_dependencies_compiler_type=none
3404 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3405 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3406 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3409 test "x$enable_dependency_tracking" != xno \
3410 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3411 am__fastdepCC_TRUE=
3412 am__fastdepCC_FALSE='#'
3413 else
3414 am__fastdepCC_TRUE='#'
3415 am__fastdepCC_FALSE=
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3426 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3427 # On Suns, sometimes $CPP names a directory.
3428 if test -n "$CPP" && test -d "$CPP"; then
3429 CPP=
3431 if test -z "$CPP"; then
3432 if test "${ac_cv_prog_CPP+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3434 else
3435 # Double quotes because CPP needs to be expanded
3436 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3438 ac_preproc_ok=false
3439 for ac_c_preproc_warn_flag in '' yes
3441 # Use a header file that comes with gcc, so configuring glibc
3442 # with a fresh cross-compiler works.
3443 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3444 # <limits.h> exists even on freestanding compilers.
3445 # On the NeXT, cc -E runs the code through the compiler's parser,
3446 # not just through cpp. "Syntax error" is here to catch this case.
3447 cat >conftest.$ac_ext <<_ACEOF
3448 /* confdefs.h. */
3449 _ACEOF
3450 cat confdefs.h >>conftest.$ac_ext
3451 cat >>conftest.$ac_ext <<_ACEOF
3452 /* end confdefs.h. */
3453 #ifdef __STDC__
3454 # include <limits.h>
3455 #else
3456 # include <assert.h>
3457 #endif
3458 Syntax error
3459 _ACEOF
3460 if { (ac_try="$ac_cpp conftest.$ac_ext"
3461 case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } >/dev/null && {
3474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3475 test ! -s conftest.err
3476 }; then
3478 else
3479 $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 # Broken: fails on valid input.
3483 continue
3486 rm -f conftest.err conftest.$ac_ext
3488 # OK, works on sane cases. Now check whether nonexistent headers
3489 # can be detected and how.
3490 cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h. */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h. */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3504 $as_echo "$ac_try_echo") >&5
3505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } >/dev/null && {
3512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 }; then
3515 # Broken: success on invalid input.
3516 continue
3517 else
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3521 # Passes both tests.
3522 ac_preproc_ok=:
3523 break
3526 rm -f conftest.err conftest.$ac_ext
3528 done
3529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530 rm -f conftest.err conftest.$ac_ext
3531 if $ac_preproc_ok; then
3532 break
3535 done
3536 ac_cv_prog_CPP=$CPP
3539 CPP=$ac_cv_prog_CPP
3540 else
3541 ac_cv_prog_CPP=$CPP
3543 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3544 $as_echo "$CPP" >&6; }
3545 ac_preproc_ok=false
3546 for ac_c_preproc_warn_flag in '' yes
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 #ifdef __STDC__
3561 # include <limits.h>
3562 #else
3563 # include <assert.h>
3564 #endif
3565 Syntax error
3566 _ACEOF
3567 if { (ac_try="$ac_cpp conftest.$ac_ext"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3573 $as_echo "$ac_try_echo") >&5
3574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575 ac_status=$?
3576 grep -v '^ *+' conftest.er1 >conftest.err
3577 rm -f conftest.er1
3578 cat conftest.err >&5
3579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); } >/dev/null && {
3581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582 test ! -s conftest.err
3583 }; then
3585 else
3586 $as_echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3589 # Broken: fails on valid input.
3590 continue
3593 rm -f conftest.err conftest.$ac_ext
3595 # OK, works on sane cases. Now check whether nonexistent headers
3596 # can be detected and how.
3597 cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h. */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 case "(($ac_try" in
3607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608 *) ac_try_echo=$ac_try;;
3609 esac
3610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3611 $as_echo "$ac_try_echo") >&5
3612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } >/dev/null && {
3619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 }; then
3622 # Broken: success on invalid input.
3623 continue
3624 else
3625 $as_echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3628 # Passes both tests.
3629 ac_preproc_ok=:
3630 break
3633 rm -f conftest.err conftest.$ac_ext
3635 done
3636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3637 rm -f conftest.err conftest.$ac_ext
3638 if $ac_preproc_ok; then
3640 else
3641 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3643 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644 See \`config.log' for more details." >&5
3645 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646 See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }; }
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3659 if test "${ac_cv_path_GREP+set}" = set; then
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if test -z "$GREP"; then
3663 ac_path_GREP_found=false
3664 # Loop through the user's path and test for each of PROGNAME-LIST
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3668 IFS=$as_save_IFS
3669 test -z "$as_dir" && as_dir=.
3670 for ac_prog in grep ggrep; do
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3673 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3674 # Check for GNU ac_path_GREP and select it if it is found.
3675 # Check for GNU $ac_path_GREP
3676 case `"$ac_path_GREP" --version 2>&1` in
3677 *GNU*)
3678 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3680 ac_count=0
3681 $as_echo_n 0123456789 >"conftest.in"
3682 while :
3684 cat "conftest.in" "conftest.in" >"conftest.tmp"
3685 mv "conftest.tmp" "conftest.in"
3686 cp "conftest.in" "conftest.nl"
3687 $as_echo 'GREP' >> "conftest.nl"
3688 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3689 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3690 ac_count=`expr $ac_count + 1`
3691 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3692 # Best one so far, save it but keep looking for a better one
3693 ac_cv_path_GREP="$ac_path_GREP"
3694 ac_path_GREP_max=$ac_count
3696 # 10*(2^10) chars as input seems more than enough
3697 test $ac_count -gt 10 && break
3698 done
3699 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3700 esac
3702 $ac_path_GREP_found && break 3
3703 done
3704 done
3705 done
3706 IFS=$as_save_IFS
3707 if test -z "$ac_cv_path_GREP"; then
3708 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3712 else
3713 ac_cv_path_GREP=$GREP
3717 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3718 $as_echo "$ac_cv_path_GREP" >&6; }
3719 GREP="$ac_cv_path_GREP"
3722 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3723 $as_echo_n "checking for egrep... " >&6; }
3724 if test "${ac_cv_path_EGREP+set}" = set; then
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3728 then ac_cv_path_EGREP="$GREP -E"
3729 else
3730 if test -z "$EGREP"; then
3731 ac_path_EGREP_found=false
3732 # Loop through the user's path and test for each of PROGNAME-LIST
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3734 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3736 IFS=$as_save_IFS
3737 test -z "$as_dir" && as_dir=.
3738 for ac_prog in egrep; do
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3741 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3742 # Check for GNU ac_path_EGREP and select it if it is found.
3743 # Check for GNU $ac_path_EGREP
3744 case `"$ac_path_EGREP" --version 2>&1` in
3745 *GNU*)
3746 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3748 ac_count=0
3749 $as_echo_n 0123456789 >"conftest.in"
3750 while :
3752 cat "conftest.in" "conftest.in" >"conftest.tmp"
3753 mv "conftest.tmp" "conftest.in"
3754 cp "conftest.in" "conftest.nl"
3755 $as_echo 'EGREP' >> "conftest.nl"
3756 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3757 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3758 ac_count=`expr $ac_count + 1`
3759 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3760 # Best one so far, save it but keep looking for a better one
3761 ac_cv_path_EGREP="$ac_path_EGREP"
3762 ac_path_EGREP_max=$ac_count
3764 # 10*(2^10) chars as input seems more than enough
3765 test $ac_count -gt 10 && break
3766 done
3767 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3768 esac
3770 $ac_path_EGREP_found && break 3
3771 done
3772 done
3773 done
3774 IFS=$as_save_IFS
3775 if test -z "$ac_cv_path_EGREP"; then
3776 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3777 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3778 { (exit 1); exit 1; }; }
3780 else
3781 ac_cv_path_EGREP=$EGREP
3786 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3787 $as_echo "$ac_cv_path_EGREP" >&6; }
3788 EGREP="$ac_cv_path_EGREP"
3791 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3792 $as_echo_n "checking for ANSI C header files... " >&6; }
3793 if test "${ac_cv_header_stdc+set}" = set; then
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <stdlib.h>
3803 #include <stdarg.h>
3804 #include <string.h>
3805 #include <float.h>
3808 main ()
3812 return 0;
3814 _ACEOF
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3822 $as_echo "$ac_try_echo") >&5
3823 (eval "$ac_compile") 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } && {
3830 test -z "$ac_c_werror_flag" ||
3831 test ! -s conftest.err
3832 } && test -s conftest.$ac_objext; then
3833 ac_cv_header_stdc=yes
3834 else
3835 $as_echo "$as_me: failed program was:" >&5
3836 sed 's/^/| /' conftest.$ac_ext >&5
3838 ac_cv_header_stdc=no
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3843 if test $ac_cv_header_stdc = yes; then
3844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
3850 /* end confdefs.h. */
3851 #include <string.h>
3853 _ACEOF
3854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3855 $EGREP "memchr" >/dev/null 2>&1; then
3857 else
3858 ac_cv_header_stdc=no
3860 rm -f conftest*
3864 if test $ac_cv_header_stdc = yes; then
3865 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
3867 /* confdefs.h. */
3868 _ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3872 #include <stdlib.h>
3874 _ACEOF
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "free" >/dev/null 2>&1; then
3878 else
3879 ac_cv_header_stdc=no
3881 rm -f conftest*
3885 if test $ac_cv_header_stdc = yes; then
3886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3887 if test "$cross_compiling" = yes; then
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 #include <ctype.h>
3897 #include <stdlib.h>
3898 #if ((' ' & 0x0FF) == 0x020)
3899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3901 #else
3902 # define ISLOWER(c) \
3903 (('a' <= (c) && (c) <= 'i') \
3904 || ('j' <= (c) && (c) <= 'r') \
3905 || ('s' <= (c) && (c) <= 'z'))
3906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3907 #endif
3909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911 main ()
3913 int i;
3914 for (i = 0; i < 256; i++)
3915 if (XOR (islower (i), ISLOWER (i))
3916 || toupper (i) != TOUPPER (i))
3917 return 2;
3918 return 0;
3920 _ACEOF
3921 rm -f conftest$ac_exeext
3922 if { (ac_try="$ac_link"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929 (eval "$ac_link") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3933 { (case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936 esac
3937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3938 $as_echo "$ac_try_echo") >&5
3939 (eval "$ac_try") 2>&5
3940 ac_status=$?
3941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942 (exit $ac_status); }; }; then
3944 else
3945 $as_echo "$as_me: program exited with status $ac_status" >&5
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ( exit $ac_status )
3950 ac_cv_header_stdc=no
3952 rm -rf conftest.dSYM
3953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960 $as_echo "$ac_cv_header_stdc" >&6; }
3961 if test $ac_cv_header_stdc = yes; then
3963 cat >>confdefs.h <<\_ACEOF
3964 #define STDC_HEADERS 1
3965 _ACEOF
3969 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3979 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980 inttypes.h stdint.h unistd.h
3982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3984 $as_echo_n "checking for $ac_header... " >&6; }
3985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986 $as_echo_n "(cached) " >&6
3987 else
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3994 $ac_includes_default
3996 #include <$ac_header>
3997 _ACEOF
3998 rm -f conftest.$ac_objext
3999 if { (ac_try="$ac_compile"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4005 $as_echo "$ac_try_echo") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } && {
4013 test -z "$ac_c_werror_flag" ||
4014 test ! -s conftest.err
4015 } && test -s conftest.$ac_objext; then
4016 eval "$as_ac_Header=yes"
4017 else
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 eval "$as_ac_Header=no"
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_res=`eval 'as_val=${'$as_ac_Header'}
4027 $as_echo "$as_val"'`
4028 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4029 $as_echo "$ac_res" >&6; }
4030 as_val=`eval 'as_val=${'$as_ac_Header'}
4031 $as_echo "$as_val"'`
4032 if test "x$as_val" = x""yes; then
4033 cat >>confdefs.h <<_ACEOF
4034 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4035 _ACEOF
4039 done
4042 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
4043 $as_echo_n "checking for size_t... " >&6; }
4044 if test "${ac_cv_type_size_t+set}" = set; then
4045 $as_echo_n "(cached) " >&6
4046 else
4047 ac_cv_type_size_t=no
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h. */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h. */
4054 $ac_includes_default
4056 main ()
4058 if (sizeof (size_t))
4059 return 0;
4061 return 0;
4063 _ACEOF
4064 rm -f conftest.$ac_objext
4065 if { (ac_try="$ac_compile"
4066 case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069 esac
4070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4071 $as_echo "$ac_try_echo") >&5
4072 (eval "$ac_compile") 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } && {
4079 test -z "$ac_c_werror_flag" ||
4080 test ! -s conftest.err
4081 } && test -s conftest.$ac_objext; then
4082 cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h. */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4088 $ac_includes_default
4090 main ()
4092 if (sizeof ((size_t)))
4093 return 0;
4095 return 0;
4097 _ACEOF
4098 rm -f conftest.$ac_objext
4099 if { (ac_try="$ac_compile"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4105 $as_echo "$ac_try_echo") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4107 ac_status=$?
4108 grep -v '^ *+' conftest.er1 >conftest.err
4109 rm -f conftest.er1
4110 cat conftest.err >&5
4111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } && {
4113 test -z "$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4115 } && test -s conftest.$ac_objext; then
4117 else
4118 $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 ac_cv_type_size_t=yes
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 else
4126 $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4135 $as_echo "$ac_cv_type_size_t" >&6; }
4136 if test "x$ac_cv_type_size_t" = x""yes; then
4138 else
4140 cat >>confdefs.h <<_ACEOF
4141 #define size_t unsigned int
4142 _ACEOF
4146 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4147 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4148 if test "${ac_cv_c_const+set}" = set; then
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4159 main ()
4161 /* FIXME: Include the comments suggested by Paul. */
4162 #ifndef __cplusplus
4163 /* Ultrix mips cc rejects this. */
4164 typedef int charset[2];
4165 const charset cs;
4166 /* SunOS 4.1.1 cc rejects this. */
4167 char const *const *pcpcc;
4168 char **ppc;
4169 /* NEC SVR4.0.2 mips cc rejects this. */
4170 struct point {int x, y;};
4171 static struct point const zero = {0,0};
4172 /* AIX XL C 1.02.0.0 rejects this.
4173 It does not let you subtract one const X* pointer from another in
4174 an arm of an if-expression whose if-part is not a constant
4175 expression */
4176 const char *g = "string";
4177 pcpcc = &g + (g ? g-g : 0);
4178 /* HPUX 7.0 cc rejects these. */
4179 ++pcpcc;
4180 ppc = (char**) pcpcc;
4181 pcpcc = (char const *const *) ppc;
4182 { /* SCO 3.2v4 cc rejects this. */
4183 char *t;
4184 char const *s = 0 ? (char *) 0 : (char const *) 0;
4186 *t++ = 0;
4187 if (s) return 0;
4189 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4190 int x[] = {25, 17};
4191 const int *foo = &x[0];
4192 ++foo;
4194 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4195 typedef const int *iptr;
4196 iptr p = 0;
4197 ++p;
4199 { /* AIX XL C 1.02.0.0 rejects this saying
4200 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4201 struct s { int j; const int *ap[3]; };
4202 struct s *b; b->j = 5;
4204 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4205 const int foo = 10;
4206 if (!foo) return 0;
4208 return !cs[0] && !zero.x;
4209 #endif
4212 return 0;
4214 _ACEOF
4215 rm -f conftest.$ac_objext
4216 if { (ac_try="$ac_compile"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4222 $as_echo "$ac_try_echo") >&5
4223 (eval "$ac_compile") 2>conftest.er1
4224 ac_status=$?
4225 grep -v '^ *+' conftest.er1 >conftest.err
4226 rm -f conftest.er1
4227 cat conftest.err >&5
4228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); } && {
4230 test -z "$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4232 } && test -s conftest.$ac_objext; then
4233 ac_cv_c_const=yes
4234 else
4235 $as_echo "$as_me: failed program was:" >&5
4236 sed 's/^/| /' conftest.$ac_ext >&5
4238 ac_cv_c_const=no
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4244 $as_echo "$ac_cv_c_const" >&6; }
4245 if test $ac_cv_c_const = no; then
4247 cat >>confdefs.h <<\_ACEOF
4248 #define const /**/
4249 _ACEOF
4254 for ac_prog in gawk mawk nawk awk
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257 set dummy $ac_prog; ac_word=$2
4258 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4259 $as_echo_n "checking for $ac_word... " >&6; }
4260 if test "${ac_cv_prog_AWK+set}" = set; then
4261 $as_echo_n "(cached) " >&6
4262 else
4263 if test -n "$AWK"; then
4264 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4265 else
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 for as_dir in $PATH
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273 ac_cv_prog_AWK="$ac_prog"
4274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 break 2
4277 done
4278 done
4279 IFS=$as_save_IFS
4283 AWK=$ac_cv_prog_AWK
4284 if test -n "$AWK"; then
4285 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4286 $as_echo "$AWK" >&6; }
4287 else
4288 { $as_echo "$as_me:$LINENO: result: no" >&5
4289 $as_echo "no" >&6; }
4293 test -n "$AWK" && break
4294 done
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301 if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if test "${ac_cv_prog_CC+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC="$CC" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321 break 2
4323 done
4324 done
4325 IFS=$as_save_IFS
4329 CC=$ac_cv_prog_CC
4330 if test -n "$CC"; then
4331 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4332 $as_echo "$CC" >&6; }
4333 else
4334 { $as_echo "$as_me:$LINENO: result: no" >&5
4335 $as_echo "no" >&6; }
4340 if test -z "$ac_cv_prog_CC"; then
4341 ac_ct_CC=$CC
4342 # Extract the first word of "gcc", so it can be a program name with args.
4343 set dummy gcc; ac_word=$2
4344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4347 $as_echo_n "(cached) " >&6
4348 else
4349 if test -n "$ac_ct_CC"; then
4350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4355 IFS=$as_save_IFS
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CC="gcc"
4360 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 break 2
4363 done
4364 done
4365 IFS=$as_save_IFS
4369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370 if test -n "$ac_ct_CC"; then
4371 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4372 $as_echo "$ac_ct_CC" >&6; }
4373 else
4374 { $as_echo "$as_me:$LINENO: result: no" >&5
4375 $as_echo "no" >&6; }
4378 if test "x$ac_ct_CC" = x; then
4379 CC=""
4380 else
4381 case $cross_compiling:$ac_tool_warned in
4382 yes:)
4383 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385 ac_tool_warned=yes ;;
4386 esac
4387 CC=$ac_ct_CC
4389 else
4390 CC="$ac_cv_prog_CC"
4393 if test -z "$CC"; then
4394 if test -n "$ac_tool_prefix"; then
4395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4396 set dummy ${ac_tool_prefix}cc; ac_word=$2
4397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CC+set}" = set; then
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CC"; then
4403 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CC="${ac_tool_prefix}cc"
4413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4422 CC=$ac_cv_prog_CC
4423 if test -n "$CC"; then
4424 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4425 $as_echo "$CC" >&6; }
4426 else
4427 { $as_echo "$as_me:$LINENO: result: no" >&5
4428 $as_echo "no" >&6; }
4434 if test -z "$CC"; then
4435 # Extract the first word of "cc", so it can be a program name with args.
4436 set dummy cc; ac_word=$2
4437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 $as_echo_n "checking for $ac_word... " >&6; }
4439 if test "${ac_cv_prog_CC+set}" = set; then
4440 $as_echo_n "(cached) " >&6
4441 else
4442 if test -n "$CC"; then
4443 ac_cv_prog_CC="$CC" # Let the user override the test.
4444 else
4445 ac_prog_rejected=no
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4454 ac_prog_rejected=yes
4455 continue
4457 ac_cv_prog_CC="cc"
4458 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4465 if test $ac_prog_rejected = yes; then
4466 # We found a bogon in the path, so make sure we never use it.
4467 set dummy $ac_cv_prog_CC
4468 shift
4469 if test $# != 0; then
4470 # We chose a different compiler from the bogus one.
4471 # However, it has the same basename, so the bogon will be chosen
4472 # first if we set CC to just the basename; use the full file name.
4473 shift
4474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4479 CC=$ac_cv_prog_CC
4480 if test -n "$CC"; then
4481 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4482 $as_echo "$CC" >&6; }
4483 else
4484 { $as_echo "$as_me:$LINENO: result: no" >&5
4485 $as_echo "no" >&6; }
4490 if test -z "$CC"; then
4491 if test -n "$ac_tool_prefix"; then
4492 for ac_prog in cl.exe
4494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4496 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if test "${ac_cv_prog_CC+set}" = set; then
4499 $as_echo_n "(cached) " >&6
4500 else
4501 if test -n "$CC"; then
4502 ac_cv_prog_CC="$CC" # Let the user override the test.
4503 else
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4515 done
4516 done
4517 IFS=$as_save_IFS
4521 CC=$ac_cv_prog_CC
4522 if test -n "$CC"; then
4523 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4524 $as_echo "$CC" >&6; }
4525 else
4526 { $as_echo "$as_me:$LINENO: result: no" >&5
4527 $as_echo "no" >&6; }
4531 test -n "$CC" && break
4532 done
4534 if test -z "$CC"; then
4535 ac_ct_CC=$CC
4536 for ac_prog in cl.exe
4538 # Extract the first word of "$ac_prog", so it can be a program name with args.
4539 set dummy $ac_prog; ac_word=$2
4540 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 $as_echo_n "checking for $ac_word... " >&6; }
4542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4543 $as_echo_n "(cached) " >&6
4544 else
4545 if test -n "$ac_ct_CC"; then
4546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4547 else
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_exec_ext in '' $ac_executable_extensions; do
4554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555 ac_cv_prog_ac_ct_CC="$ac_prog"
4556 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4557 break 2
4559 done
4560 done
4561 IFS=$as_save_IFS
4565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4566 if test -n "$ac_ct_CC"; then
4567 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4568 $as_echo "$ac_ct_CC" >&6; }
4569 else
4570 { $as_echo "$as_me:$LINENO: result: no" >&5
4571 $as_echo "no" >&6; }
4575 test -n "$ac_ct_CC" && break
4576 done
4578 if test "x$ac_ct_CC" = x; then
4579 CC=""
4580 else
4581 case $cross_compiling:$ac_tool_warned in
4582 yes:)
4583 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4585 ac_tool_warned=yes ;;
4586 esac
4587 CC=$ac_ct_CC
4594 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4596 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4597 See \`config.log' for more details." >&5
4598 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4599 See \`config.log' for more details." >&2;}
4600 { (exit 1); exit 1; }; }; }
4602 # Provide some information about the compiler.
4603 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4604 set X $ac_compile
4605 ac_compiler=$2
4606 { (ac_try="$ac_compiler --version >&5"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4612 $as_echo "$ac_try_echo") >&5
4613 (eval "$ac_compiler --version >&5") 2>&5
4614 ac_status=$?
4615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }
4617 { (ac_try="$ac_compiler -v >&5"
4618 case "(($ac_try" in
4619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4621 esac
4622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4623 $as_echo "$ac_try_echo") >&5
4624 (eval "$ac_compiler -v >&5") 2>&5
4625 ac_status=$?
4626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }
4628 { (ac_try="$ac_compiler -V >&5"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_compiler -V >&5") 2>&5
4636 ac_status=$?
4637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }
4640 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4641 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4642 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4643 $as_echo_n "(cached) " >&6
4644 else
4645 cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4653 main ()
4655 #ifndef __GNUC__
4656 choke me
4657 #endif
4660 return 0;
4662 _ACEOF
4663 rm -f conftest.$ac_objext
4664 if { (ac_try="$ac_compile"
4665 case "(($ac_try" in
4666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4667 *) ac_try_echo=$ac_try;;
4668 esac
4669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4670 $as_echo "$ac_try_echo") >&5
4671 (eval "$ac_compile") 2>conftest.er1
4672 ac_status=$?
4673 grep -v '^ *+' conftest.er1 >conftest.err
4674 rm -f conftest.er1
4675 cat conftest.err >&5
4676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677 (exit $ac_status); } && {
4678 test -z "$ac_c_werror_flag" ||
4679 test ! -s conftest.err
4680 } && test -s conftest.$ac_objext; then
4681 ac_compiler_gnu=yes
4682 else
4683 $as_echo "$as_me: failed program was:" >&5
4684 sed 's/^/| /' conftest.$ac_ext >&5
4686 ac_compiler_gnu=no
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4693 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4694 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4695 if test $ac_compiler_gnu = yes; then
4696 GCC=yes
4697 else
4698 GCC=
4700 ac_test_CFLAGS=${CFLAGS+set}
4701 ac_save_CFLAGS=$CFLAGS
4702 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4703 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4704 if test "${ac_cv_prog_cc_g+set}" = set; then
4705 $as_echo_n "(cached) " >&6
4706 else
4707 ac_save_c_werror_flag=$ac_c_werror_flag
4708 ac_c_werror_flag=yes
4709 ac_cv_prog_cc_g=no
4710 CFLAGS="-g"
4711 cat >conftest.$ac_ext <<_ACEOF
4712 /* confdefs.h. */
4713 _ACEOF
4714 cat confdefs.h >>conftest.$ac_ext
4715 cat >>conftest.$ac_ext <<_ACEOF
4716 /* end confdefs.h. */
4719 main ()
4723 return 0;
4725 _ACEOF
4726 rm -f conftest.$ac_objext
4727 if { (ac_try="$ac_compile"
4728 case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731 esac
4732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733 $as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
4744 ac_cv_prog_cc_g=yes
4745 else
4746 $as_echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 CFLAGS=""
4750 cat >conftest.$ac_ext <<_ACEOF
4751 /* confdefs.h. */
4752 _ACEOF
4753 cat confdefs.h >>conftest.$ac_ext
4754 cat >>conftest.$ac_ext <<_ACEOF
4755 /* end confdefs.h. */
4758 main ()
4762 return 0;
4764 _ACEOF
4765 rm -f conftest.$ac_objext
4766 if { (ac_try="$ac_compile"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_compile") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } && {
4780 test -z "$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 } && test -s conftest.$ac_objext; then
4784 else
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4789 CFLAGS="-g"
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4798 main ()
4802 return 0;
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (ac_try="$ac_compile"
4807 case "(($ac_try" in
4808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4809 *) ac_try_echo=$ac_try;;
4810 esac
4811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4812 $as_echo "$ac_try_echo") >&5
4813 (eval "$ac_compile") 2>conftest.er1
4814 ac_status=$?
4815 grep -v '^ *+' conftest.er1 >conftest.err
4816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } && {
4820 test -z "$ac_c_werror_flag" ||
4821 test ! -s conftest.err
4822 } && test -s conftest.$ac_objext; then
4823 ac_cv_prog_cc_g=yes
4824 else
4825 $as_echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4838 ac_c_werror_flag=$ac_save_c_werror_flag
4840 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4841 $as_echo "$ac_cv_prog_cc_g" >&6; }
4842 if test "$ac_test_CFLAGS" = set; then
4843 CFLAGS=$ac_save_CFLAGS
4844 elif test $ac_cv_prog_cc_g = yes; then
4845 if test "$GCC" = yes; then
4846 CFLAGS="-g -O2"
4847 else
4848 CFLAGS="-g"
4850 else
4851 if test "$GCC" = yes; then
4852 CFLAGS="-O2"
4853 else
4854 CFLAGS=
4857 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4858 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4859 if test "${ac_cv_prog_cc_c89+set}" = set; then
4860 $as_echo_n "(cached) " >&6
4861 else
4862 ac_cv_prog_cc_c89=no
4863 ac_save_CC=$CC
4864 cat >conftest.$ac_ext <<_ACEOF
4865 /* confdefs.h. */
4866 _ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <stdarg.h>
4871 #include <stdio.h>
4872 #include <sys/types.h>
4873 #include <sys/stat.h>
4874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4875 struct buf { int x; };
4876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4877 static char *e (p, i)
4878 char **p;
4879 int i;
4881 return p[i];
4883 static char *f (char * (*g) (char **, int), char **p, ...)
4885 char *s;
4886 va_list v;
4887 va_start (v,p);
4888 s = g (p, va_arg (v,int));
4889 va_end (v);
4890 return s;
4893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4894 function prototypes and stuff, but not '\xHH' hex character constants.
4895 These don't provoke an error unfortunately, instead are silently treated
4896 as 'x'. The following induces an error, until -std is added to get
4897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4898 array size at least. It's necessary to write '\x00'==0 to get something
4899 that's true only with -std. */
4900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4903 inside strings and character constants. */
4904 #define FOO(x) 'x'
4905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4907 int test (int i, double x);
4908 struct s1 {int (*f) (int a);};
4909 struct s2 {int (*f) (double a);};
4910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4911 int argc;
4912 char **argv;
4914 main ()
4916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4918 return 0;
4920 _ACEOF
4921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4924 CC="$ac_save_CC $ac_arg"
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4927 case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930 esac
4931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4932 $as_echo "$ac_try_echo") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4934 ac_status=$?
4935 grep -v '^ *+' conftest.er1 >conftest.err
4936 rm -f conftest.er1
4937 cat conftest.err >&5
4938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.$ac_objext; then
4943 ac_cv_prog_cc_c89=$ac_arg
4944 else
4945 $as_echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4951 rm -f core conftest.err conftest.$ac_objext
4952 test "x$ac_cv_prog_cc_c89" != "xno" && break
4953 done
4954 rm -f conftest.$ac_ext
4955 CC=$ac_save_CC
4958 # AC_CACHE_VAL
4959 case "x$ac_cv_prog_cc_c89" in
4961 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4962 $as_echo "none needed" >&6; } ;;
4963 xno)
4964 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4965 $as_echo "unsupported" >&6; } ;;
4967 CC="$CC $ac_cv_prog_cc_c89"
4968 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4969 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4970 esac
4973 ac_ext=c
4974 ac_cpp='$CPP $CPPFLAGS'
4975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979 depcc="$CC" am_compiler_list=
4981 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4982 $as_echo_n "checking dependency style of $depcc... " >&6; }
4983 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4987 # We make a subdir and do the tests there. Otherwise we can end up
4988 # making bogus files that we don't know about and never remove. For
4989 # instance it was reported that on HP-UX the gcc test will end up
4990 # making a dummy file named `D' -- because `-MD' means `put the output
4991 # in D'.
4992 mkdir conftest.dir
4993 # Copy depcomp to subdir because otherwise we won't find it if we're
4994 # using a relative directory.
4995 cp "$am_depcomp" conftest.dir
4996 cd conftest.dir
4997 # We will build objects and dependencies in a subdirectory because
4998 # it helps to detect inapplicable dependency modes. For instance
4999 # both Tru64's cc and ICC support -MD to output dependencies as a
5000 # side effect of compilation, but ICC will put the dependencies in
5001 # the current directory while Tru64 will put them in the object
5002 # directory.
5003 mkdir sub
5005 am_cv_CC_dependencies_compiler_type=none
5006 if test "$am_compiler_list" = ""; then
5007 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5009 for depmode in $am_compiler_list; do
5010 # Setup a source with many dependencies, because some compilers
5011 # like to wrap large dependency lists on column 80 (with \), and
5012 # we should not choose a depcomp mode which is confused by this.
5014 # We need to recreate these files for each test, as the compiler may
5015 # overwrite some of them when testing with obscure command lines.
5016 # This happens at least with the AIX C compiler.
5017 : > sub/conftest.c
5018 for i in 1 2 3 4 5 6; do
5019 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5020 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5021 # Solaris 8's {/usr,}/bin/sh.
5022 touch sub/conftst$i.h
5023 done
5024 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5026 case $depmode in
5027 nosideeffect)
5028 # after this tag, mechanisms are not by side-effect, so they'll
5029 # only be used when explicitly requested
5030 if test "x$enable_dependency_tracking" = xyes; then
5031 continue
5032 else
5033 break
5036 none) break ;;
5037 esac
5038 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5039 # mode. It turns out that the SunPro C++ compiler does not properly
5040 # handle `-M -o', and we need to detect this.
5041 if depmode=$depmode \
5042 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5043 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5044 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5045 >/dev/null 2>conftest.err &&
5046 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5047 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5048 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5049 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5050 # icc doesn't choke on unknown options, it will just issue warnings
5051 # or remarks (even with -Werror). So we grep stderr for any message
5052 # that says an option was ignored or not supported.
5053 # When given -MP, icc 7.0 and 7.1 complain thusly:
5054 # icc: Command line warning: ignoring option '-M'; no argument required
5055 # The diagnosis changed in icc 8.0:
5056 # icc: Command line remark: option '-MP' not supported
5057 if (grep 'ignoring option' conftest.err ||
5058 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5059 am_cv_CC_dependencies_compiler_type=$depmode
5060 break
5063 done
5065 cd ..
5066 rm -rf conftest.dir
5067 else
5068 am_cv_CC_dependencies_compiler_type=none
5072 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5073 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5077 test "x$enable_dependency_tracking" != xno \
5078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5079 am__fastdepCC_TRUE=
5080 am__fastdepCC_FALSE='#'
5081 else
5082 am__fastdepCC_TRUE='#'
5083 am__fastdepCC_FALSE=
5087 for ac_prog in 'bison -y' byacc
5089 # Extract the first word of "$ac_prog", so it can be a program name with args.
5090 set dummy $ac_prog; ac_word=$2
5091 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if test "${ac_cv_prog_YACC+set}" = set; then
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -n "$YACC"; then
5097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5098 else
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH
5102 IFS=$as_save_IFS
5103 test -z "$as_dir" && as_dir=.
5104 for ac_exec_ext in '' $ac_executable_extensions; do
5105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5106 ac_cv_prog_YACC="$ac_prog"
5107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5108 break 2
5110 done
5111 done
5112 IFS=$as_save_IFS
5116 YACC=$ac_cv_prog_YACC
5117 if test -n "$YACC"; then
5118 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
5119 $as_echo "$YACC" >&6; }
5120 else
5121 { $as_echo "$as_me:$LINENO: result: no" >&5
5122 $as_echo "no" >&6; }
5126 test -n "$YACC" && break
5127 done
5128 test -n "$YACC" || YACC="yacc"
5130 for ac_prog in flex lex
5132 # Extract the first word of "$ac_prog", so it can be a program name with args.
5133 set dummy $ac_prog; ac_word=$2
5134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135 $as_echo_n "checking for $ac_word... " >&6; }
5136 if test "${ac_cv_prog_LEX+set}" = set; then
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -n "$LEX"; then
5140 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5141 else
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_exec_ext in '' $ac_executable_extensions; do
5148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5149 ac_cv_prog_LEX="$ac_prog"
5150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151 break 2
5153 done
5154 done
5155 IFS=$as_save_IFS
5159 LEX=$ac_cv_prog_LEX
5160 if test -n "$LEX"; then
5161 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
5162 $as_echo "$LEX" >&6; }
5163 else
5164 { $as_echo "$as_me:$LINENO: result: no" >&5
5165 $as_echo "no" >&6; }
5169 test -n "$LEX" && break
5170 done
5171 test -n "$LEX" || LEX=":"
5173 if test "x$LEX" != "x:"; then
5174 cat >conftest.l <<_ACEOF
5176 a { ECHO; }
5177 b { REJECT; }
5178 c { yymore (); }
5179 d { yyless (1); }
5180 e { yyless (input () != 0); }
5181 f { unput (yytext[0]); }
5182 . { BEGIN INITIAL; }
5184 #ifdef YYTEXT_POINTER
5185 extern char *yytext;
5186 #endif
5188 main (void)
5190 return ! yylex () + ! yywrap ();
5192 _ACEOF
5193 { (ac_try="$LEX conftest.l"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5199 $as_echo "$ac_try_echo") >&5
5200 (eval "$LEX conftest.l") 2>&5
5201 ac_status=$?
5202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }
5204 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
5205 $as_echo_n "checking lex output file root... " >&6; }
5206 if test "${ac_cv_prog_lex_root+set}" = set; then
5207 $as_echo_n "(cached) " >&6
5208 else
5210 if test -f lex.yy.c; then
5211 ac_cv_prog_lex_root=lex.yy
5212 elif test -f lexyy.c; then
5213 ac_cv_prog_lex_root=lexyy
5214 else
5215 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5216 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5217 { (exit 1); exit 1; }; }
5220 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5221 $as_echo "$ac_cv_prog_lex_root" >&6; }
5222 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5224 if test -z "${LEXLIB+set}"; then
5225 { $as_echo "$as_me:$LINENO: checking lex library" >&5
5226 $as_echo_n "checking lex library... " >&6; }
5227 if test "${ac_cv_lib_lex+set}" = set; then
5228 $as_echo_n "(cached) " >&6
5229 else
5231 ac_save_LIBS=$LIBS
5232 ac_cv_lib_lex='none needed'
5233 for ac_lib in '' -lfl -ll; do
5234 LIBS="$ac_lib $ac_save_LIBS"
5235 cat >conftest.$ac_ext <<_ACEOF
5236 `cat $LEX_OUTPUT_ROOT.c`
5237 _ACEOF
5238 rm -f conftest.$ac_objext conftest$ac_exeext
5239 if { (ac_try="$ac_link"
5240 case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243 esac
5244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5245 $as_echo "$ac_try_echo") >&5
5246 (eval "$ac_link") 2>conftest.er1
5247 ac_status=$?
5248 grep -v '^ *+' conftest.er1 >conftest.err
5249 rm -f conftest.er1
5250 cat conftest.err >&5
5251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252 (exit $ac_status); } && {
5253 test -z "$ac_c_werror_flag" ||
5254 test ! -s conftest.err
5255 } && test -s conftest$ac_exeext && {
5256 test "$cross_compiling" = yes ||
5257 $as_test_x conftest$ac_exeext
5258 }; then
5259 ac_cv_lib_lex=$ac_lib
5260 else
5261 $as_echo "$as_me: failed program was:" >&5
5262 sed 's/^/| /' conftest.$ac_ext >&5
5267 rm -rf conftest.dSYM
5268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5269 conftest$ac_exeext conftest.$ac_ext
5270 test "$ac_cv_lib_lex" != 'none needed' && break
5271 done
5272 LIBS=$ac_save_LIBS
5275 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
5276 $as_echo "$ac_cv_lib_lex" >&6; }
5277 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5281 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5282 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5283 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5284 $as_echo_n "(cached) " >&6
5285 else
5286 # POSIX says lex can declare yytext either as a pointer or an array; the
5287 # default is implementation-dependent. Figure out which it is, since
5288 # not all implementations provide the %pointer and %array declarations.
5289 ac_cv_prog_lex_yytext_pointer=no
5290 ac_save_LIBS=$LIBS
5291 LIBS="$LEXLIB $ac_save_LIBS"
5292 cat >conftest.$ac_ext <<_ACEOF
5293 #define YYTEXT_POINTER 1
5294 `cat $LEX_OUTPUT_ROOT.c`
5295 _ACEOF
5296 rm -f conftest.$ac_objext conftest$ac_exeext
5297 if { (ac_try="$ac_link"
5298 case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301 esac
5302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5303 $as_echo "$ac_try_echo") >&5
5304 (eval "$ac_link") 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } && {
5311 test -z "$ac_c_werror_flag" ||
5312 test ! -s conftest.err
5313 } && test -s conftest$ac_exeext && {
5314 test "$cross_compiling" = yes ||
5315 $as_test_x conftest$ac_exeext
5316 }; then
5317 ac_cv_prog_lex_yytext_pointer=yes
5318 else
5319 $as_echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5325 rm -rf conftest.dSYM
5326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5327 conftest$ac_exeext conftest.$ac_ext
5328 LIBS=$ac_save_LIBS
5331 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5332 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5333 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5335 cat >>confdefs.h <<\_ACEOF
5336 #define YYTEXT_POINTER 1
5337 _ACEOF
5340 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5343 if test "$LEX" = :; then
5344 LEX=${am_missing_run}flex
5346 # Find a good install program. We prefer a C program (faster),
5347 # so one script is as good as another. But avoid the broken or
5348 # incompatible versions:
5349 # SysV /etc/install, /usr/sbin/install
5350 # SunOS /usr/etc/install
5351 # IRIX /sbin/install
5352 # AIX /bin/install
5353 # AmigaOS /C/install, which installs bootblocks on floppy discs
5354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5357 # OS/2's system install, which has a completely different semantic
5358 # ./install, which can be erroneously created by make from ./install.sh.
5359 # Reject install programs that cannot install multiple files.
5360 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5361 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5362 if test -z "$INSTALL"; then
5363 if test "${ac_cv_path_install+set}" = set; then
5364 $as_echo_n "(cached) " >&6
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 # Account for people who put trailing slashes in PATH elements.
5372 case $as_dir/ in
5373 ./ | .// | /cC/* | \
5374 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5375 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5376 /usr/ucb/* ) ;;
5378 # OSF1 and SCO ODT 3.0 have their own names for install.
5379 # Don't use installbsd from OSF since it installs stuff as root
5380 # by default.
5381 for ac_prog in ginstall scoinst install; do
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5384 if test $ac_prog = install &&
5385 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5386 # AIX install. It has an incompatible calling convention.
5388 elif test $ac_prog = install &&
5389 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5390 # program-specific install script used by HP pwplus--don't use.
5392 else
5393 rm -rf conftest.one conftest.two conftest.dir
5394 echo one > conftest.one
5395 echo two > conftest.two
5396 mkdir conftest.dir
5397 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5398 test -s conftest.one && test -s conftest.two &&
5399 test -s conftest.dir/conftest.one &&
5400 test -s conftest.dir/conftest.two
5401 then
5402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5403 break 3
5407 done
5408 done
5410 esac
5412 done
5413 IFS=$as_save_IFS
5415 rm -rf conftest.one conftest.two conftest.dir
5418 if test "${ac_cv_path_install+set}" = set; then
5419 INSTALL=$ac_cv_path_install
5420 else
5421 # As a last resort, use the slow shell script. Don't cache a
5422 # value for INSTALL within a source directory, because that will
5423 # break other packages using the cache if that directory is
5424 # removed, or if the value is a relative name.
5425 INSTALL=$ac_install_sh
5428 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5429 $as_echo "$INSTALL" >&6; }
5431 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5432 # It thinks the first close brace ends the variable substitution.
5433 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5435 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5437 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5439 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5440 $as_echo_n "checking whether ln -s works... " >&6; }
5441 LN_S=$as_ln_s
5442 if test "$LN_S" = "ln -s"; then
5443 { $as_echo "$as_me:$LINENO: result: yes" >&5
5444 $as_echo "yes" >&6; }
5445 else
5446 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5447 $as_echo "no, using $LN_S" >&6; }
5452 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5453 $as_echo_n "checking for ANSI C header files... " >&6; }
5454 if test "${ac_cv_header_stdc+set}" = set; then
5455 $as_echo_n "(cached) " >&6
5456 else
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <stdlib.h>
5464 #include <stdarg.h>
5465 #include <string.h>
5466 #include <float.h>
5469 main ()
5473 return 0;
5475 _ACEOF
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5478 case "(($ac_try" in
5479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5480 *) ac_try_echo=$ac_try;;
5481 esac
5482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5483 $as_echo "$ac_try_echo") >&5
5484 (eval "$ac_compile") 2>conftest.er1
5485 ac_status=$?
5486 grep -v '^ *+' conftest.er1 >conftest.err
5487 rm -f conftest.er1
5488 cat conftest.err >&5
5489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); } && {
5491 test -z "$ac_c_werror_flag" ||
5492 test ! -s conftest.err
5493 } && test -s conftest.$ac_objext; then
5494 ac_cv_header_stdc=yes
5495 else
5496 $as_echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 ac_cv_header_stdc=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 if test $ac_cv_header_stdc = yes; then
5505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5506 cat >conftest.$ac_ext <<_ACEOF
5507 /* confdefs.h. */
5508 _ACEOF
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 #include <string.h>
5514 _ACEOF
5515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5516 $EGREP "memchr" >/dev/null 2>&1; then
5518 else
5519 ac_cv_header_stdc=no
5521 rm -f conftest*
5525 if test $ac_cv_header_stdc = yes; then
5526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5527 cat >conftest.$ac_ext <<_ACEOF
5528 /* confdefs.h. */
5529 _ACEOF
5530 cat confdefs.h >>conftest.$ac_ext
5531 cat >>conftest.$ac_ext <<_ACEOF
5532 /* end confdefs.h. */
5533 #include <stdlib.h>
5535 _ACEOF
5536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5537 $EGREP "free" >/dev/null 2>&1; then
5539 else
5540 ac_cv_header_stdc=no
5542 rm -f conftest*
5546 if test $ac_cv_header_stdc = yes; then
5547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5548 if test "$cross_compiling" = yes; then
5550 else
5551 cat >conftest.$ac_ext <<_ACEOF
5552 /* confdefs.h. */
5553 _ACEOF
5554 cat confdefs.h >>conftest.$ac_ext
5555 cat >>conftest.$ac_ext <<_ACEOF
5556 /* end confdefs.h. */
5557 #include <ctype.h>
5558 #include <stdlib.h>
5559 #if ((' ' & 0x0FF) == 0x020)
5560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5562 #else
5563 # define ISLOWER(c) \
5564 (('a' <= (c) && (c) <= 'i') \
5565 || ('j' <= (c) && (c) <= 'r') \
5566 || ('s' <= (c) && (c) <= 'z'))
5567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5568 #endif
5570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5572 main ()
5574 int i;
5575 for (i = 0; i < 256; i++)
5576 if (XOR (islower (i), ISLOWER (i))
5577 || toupper (i) != TOUPPER (i))
5578 return 2;
5579 return 0;
5581 _ACEOF
5582 rm -f conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5584 case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587 esac
5588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5589 $as_echo "$ac_try_echo") >&5
5590 (eval "$ac_link") 2>&5
5591 ac_status=$?
5592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5594 { (case "(($ac_try" in
5595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5596 *) ac_try_echo=$ac_try;;
5597 esac
5598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5599 $as_echo "$ac_try_echo") >&5
5600 (eval "$ac_try") 2>&5
5601 ac_status=$?
5602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5605 else
5606 $as_echo "$as_me: program exited with status $ac_status" >&5
5607 $as_echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5610 ( exit $ac_status )
5611 ac_cv_header_stdc=no
5613 rm -rf conftest.dSYM
5614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5621 $as_echo "$ac_cv_header_stdc" >&6; }
5622 if test $ac_cv_header_stdc = yes; then
5624 cat >>confdefs.h <<\_ACEOF
5625 #define STDC_HEADERS 1
5626 _ACEOF
5631 for ac_header in stddef.h
5633 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5635 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 $as_echo_n "checking for $ac_header... " >&6; }
5637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5638 $as_echo_n "(cached) " >&6
5640 ac_res=`eval 'as_val=${'$as_ac_Header'}
5641 $as_echo "$as_val"'`
5642 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5643 $as_echo "$ac_res" >&6; }
5644 else
5645 # Is the header compilable?
5646 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5647 $as_echo_n "checking $ac_header usability... " >&6; }
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 $ac_includes_default
5655 #include <$ac_header>
5656 _ACEOF
5657 rm -f conftest.$ac_objext
5658 if { (ac_try="$ac_compile"
5659 case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662 esac
5663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5664 $as_echo "$ac_try_echo") >&5
5665 (eval "$ac_compile") 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } && {
5672 test -z "$ac_c_werror_flag" ||
5673 test ! -s conftest.err
5674 } && test -s conftest.$ac_objext; then
5675 ac_header_compiler=yes
5676 else
5677 $as_echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5680 ac_header_compiler=no
5683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5685 $as_echo "$ac_header_compiler" >&6; }
5687 # Is the header present?
5688 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5689 $as_echo_n "checking $ac_header presence... " >&6; }
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <$ac_header>
5697 _ACEOF
5698 if { (ac_try="$ac_cpp conftest.$ac_ext"
5699 case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702 esac
5703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5704 $as_echo "$ac_try_echo") >&5
5705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } >/dev/null && {
5712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5713 test ! -s conftest.err
5714 }; then
5715 ac_header_preproc=yes
5716 else
5717 $as_echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_header_preproc=no
5723 rm -f conftest.err conftest.$ac_ext
5724 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5725 $as_echo "$ac_header_preproc" >&6; }
5727 # So? What about this header?
5728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5729 yes:no: )
5730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5731 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5733 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5734 ac_header_preproc=yes
5736 no:yes:* )
5737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5738 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5740 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5742 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5744 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5745 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5746 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5748 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5751 esac
5752 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5753 $as_echo_n "checking for $ac_header... " >&6; }
5754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5755 $as_echo_n "(cached) " >&6
5756 else
5757 eval "$as_ac_Header=\$ac_header_preproc"
5759 ac_res=`eval 'as_val=${'$as_ac_Header'}
5760 $as_echo "$as_val"'`
5761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5762 $as_echo "$ac_res" >&6; }
5765 as_val=`eval 'as_val=${'$as_ac_Header'}
5766 $as_echo "$as_val"'`
5767 if test "x$as_val" = x""yes; then
5768 cat >>confdefs.h <<_ACEOF
5769 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5770 _ACEOF
5774 done
5779 for ac_func in vprintf
5781 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5782 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5783 $as_echo_n "checking for $ac_func... " >&6; }
5784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5795 #define $ac_func innocuous_$ac_func
5797 /* System header to define __stub macros and hopefully few prototypes,
5798 which can conflict with char $ac_func (); below.
5799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5800 <limits.h> exists even on freestanding compilers. */
5802 #ifdef __STDC__
5803 # include <limits.h>
5804 #else
5805 # include <assert.h>
5806 #endif
5808 #undef $ac_func
5810 /* Override any GCC internal prototype to avoid an error.
5811 Use char because int might match the return type of a GCC
5812 builtin and then its argument prototype would still apply. */
5813 #ifdef __cplusplus
5814 extern "C"
5815 #endif
5816 char $ac_func ();
5817 /* The GNU C library defines this for functions which it implements
5818 to always fail with ENOSYS. Some functions are actually named
5819 something starting with __ and the normal name is an alias. */
5820 #if defined __stub_$ac_func || defined __stub___$ac_func
5821 choke me
5822 #endif
5825 main ()
5827 return $ac_func ();
5829 return 0;
5831 _ACEOF
5832 rm -f conftest.$ac_objext conftest$ac_exeext
5833 if { (ac_try="$ac_link"
5834 case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837 esac
5838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5839 $as_echo "$ac_try_echo") >&5
5840 (eval "$ac_link") 2>conftest.er1
5841 ac_status=$?
5842 grep -v '^ *+' conftest.er1 >conftest.err
5843 rm -f conftest.er1
5844 cat conftest.err >&5
5845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest$ac_exeext && {
5850 test "$cross_compiling" = yes ||
5851 $as_test_x conftest$ac_exeext
5852 }; then
5853 eval "$as_ac_var=yes"
5854 else
5855 $as_echo "$as_me: failed program was:" >&5
5856 sed 's/^/| /' conftest.$ac_ext >&5
5858 eval "$as_ac_var=no"
5861 rm -rf conftest.dSYM
5862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5863 conftest$ac_exeext conftest.$ac_ext
5865 ac_res=`eval 'as_val=${'$as_ac_var'}
5866 $as_echo "$as_val"'`
5867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5868 $as_echo "$ac_res" >&6; }
5869 as_val=`eval 'as_val=${'$as_ac_var'}
5870 $as_echo "$as_val"'`
5871 if test "x$as_val" = x""yes; then
5872 cat >>confdefs.h <<_ACEOF
5873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5874 _ACEOF
5876 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
5877 $as_echo_n "checking for _doprnt... " >&6; }
5878 if test "${ac_cv_func__doprnt+set}" = set; then
5879 $as_echo_n "(cached) " >&6
5880 else
5881 cat >conftest.$ac_ext <<_ACEOF
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5889 #define _doprnt innocuous__doprnt
5891 /* System header to define __stub macros and hopefully few prototypes,
5892 which can conflict with char _doprnt (); below.
5893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5894 <limits.h> exists even on freestanding compilers. */
5896 #ifdef __STDC__
5897 # include <limits.h>
5898 #else
5899 # include <assert.h>
5900 #endif
5902 #undef _doprnt
5904 /* Override any GCC internal prototype to avoid an error.
5905 Use char because int might match the return type of a GCC
5906 builtin and then its argument prototype would still apply. */
5907 #ifdef __cplusplus
5908 extern "C"
5909 #endif
5910 char _doprnt ();
5911 /* The GNU C library defines this for functions which it implements
5912 to always fail with ENOSYS. Some functions are actually named
5913 something starting with __ and the normal name is an alias. */
5914 #if defined __stub__doprnt || defined __stub____doprnt
5915 choke me
5916 #endif
5919 main ()
5921 return _doprnt ();
5923 return 0;
5925 _ACEOF
5926 rm -f conftest.$ac_objext conftest$ac_exeext
5927 if { (ac_try="$ac_link"
5928 case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931 esac
5932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5933 $as_echo "$ac_try_echo") >&5
5934 (eval "$ac_link") 2>conftest.er1
5935 ac_status=$?
5936 grep -v '^ *+' conftest.er1 >conftest.err
5937 rm -f conftest.er1
5938 cat conftest.err >&5
5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); } && {
5941 test -z "$ac_c_werror_flag" ||
5942 test ! -s conftest.err
5943 } && test -s conftest$ac_exeext && {
5944 test "$cross_compiling" = yes ||
5945 $as_test_x conftest$ac_exeext
5946 }; then
5947 ac_cv_func__doprnt=yes
5948 else
5949 $as_echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5952 ac_cv_func__doprnt=no
5955 rm -rf conftest.dSYM
5956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5957 conftest$ac_exeext conftest.$ac_ext
5959 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5960 $as_echo "$ac_cv_func__doprnt" >&6; }
5961 if test "x$ac_cv_func__doprnt" = x""yes; then
5963 cat >>confdefs.h <<\_ACEOF
5964 #define HAVE_DOPRNT 1
5965 _ACEOF
5970 done
5974 for ac_header in stdlib.h
5976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5979 $as_echo_n "checking for $ac_header... " >&6; }
5980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5981 $as_echo_n "(cached) " >&6
5983 ac_res=`eval 'as_val=${'$as_ac_Header'}
5984 $as_echo "$as_val"'`
5985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5986 $as_echo "$ac_res" >&6; }
5987 else
5988 # Is the header compilable?
5989 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5990 $as_echo_n "checking $ac_header usability... " >&6; }
5991 cat >conftest.$ac_ext <<_ACEOF
5992 /* confdefs.h. */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5998 #include <$ac_header>
5999 _ACEOF
6000 rm -f conftest.$ac_objext
6001 if { (ac_try="$ac_compile"
6002 case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6007 $as_echo "$ac_try_echo") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6009 ac_status=$?
6010 grep -v '^ *+' conftest.er1 >conftest.err
6011 rm -f conftest.er1
6012 cat conftest.err >&5
6013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018 ac_header_compiler=yes
6019 else
6020 $as_echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 ac_header_compiler=no
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6028 $as_echo "$ac_header_compiler" >&6; }
6030 # Is the header present?
6031 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6032 $as_echo_n "checking $ac_header presence... " >&6; }
6033 cat >conftest.$ac_ext <<_ACEOF
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6039 #include <$ac_header>
6040 _ACEOF
6041 if { (ac_try="$ac_cpp conftest.$ac_ext"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6047 $as_echo "$ac_try_echo") >&5
6048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } >/dev/null && {
6055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 }; then
6058 ac_header_preproc=yes
6059 else
6060 $as_echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6063 ac_header_preproc=no
6066 rm -f conftest.err conftest.$ac_ext
6067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6068 $as_echo "$ac_header_preproc" >&6; }
6070 # So? What about this header?
6071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6072 yes:no: )
6073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6074 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6076 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6077 ac_header_preproc=yes
6079 no:yes:* )
6080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6081 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6083 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6085 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6087 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6089 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6091 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6094 esac
6095 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6096 $as_echo_n "checking for $ac_header... " >&6; }
6097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6098 $as_echo_n "(cached) " >&6
6099 else
6100 eval "$as_ac_Header=\$ac_header_preproc"
6102 ac_res=`eval 'as_val=${'$as_ac_Header'}
6103 $as_echo "$as_val"'`
6104 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6105 $as_echo "$ac_res" >&6; }
6108 as_val=`eval 'as_val=${'$as_ac_Header'}
6109 $as_echo "$as_val"'`
6110 if test "x$as_val" = x""yes; then
6111 cat >>confdefs.h <<_ACEOF
6112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113 _ACEOF
6117 done
6119 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
6120 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6121 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test "$cross_compiling" = yes; then
6125 ac_cv_func_malloc_0_nonnull=no
6126 else
6127 cat >conftest.$ac_ext <<_ACEOF
6128 /* confdefs.h. */
6129 _ACEOF
6130 cat confdefs.h >>conftest.$ac_ext
6131 cat >>conftest.$ac_ext <<_ACEOF
6132 /* end confdefs.h. */
6133 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6134 # include <stdlib.h>
6135 #else
6136 char *malloc ();
6137 #endif
6140 main ()
6142 return ! malloc (0);
6144 return 0;
6146 _ACEOF
6147 rm -f conftest$ac_exeext
6148 if { (ac_try="$ac_link"
6149 case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6152 esac
6153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6154 $as_echo "$ac_try_echo") >&5
6155 (eval "$ac_link") 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159 { (case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162 esac
6163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6164 $as_echo "$ac_try_echo") >&5
6165 (eval "$ac_try") 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); }; }; then
6169 ac_cv_func_malloc_0_nonnull=yes
6170 else
6171 $as_echo "$as_me: program exited with status $ac_status" >&5
6172 $as_echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 ( exit $ac_status )
6176 ac_cv_func_malloc_0_nonnull=no
6178 rm -rf conftest.dSYM
6179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
6185 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6186 if test $ac_cv_func_malloc_0_nonnull = yes; then
6188 cat >>confdefs.h <<\_ACEOF
6189 #define HAVE_MALLOC 1
6190 _ACEOF
6192 else
6193 cat >>confdefs.h <<\_ACEOF
6194 #define HAVE_MALLOC 0
6195 _ACEOF
6197 case " $LIBOBJS " in
6198 *" malloc.$ac_objext "* ) ;;
6199 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6201 esac
6204 cat >>confdefs.h <<\_ACEOF
6205 #define malloc rpl_malloc
6206 _ACEOF
6213 for ac_header in stdlib.h
6215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6218 $as_echo_n "checking for $ac_header... " >&6; }
6219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6220 $as_echo_n "(cached) " >&6
6222 ac_res=`eval 'as_val=${'$as_ac_Header'}
6223 $as_echo "$as_val"'`
6224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6225 $as_echo "$ac_res" >&6; }
6226 else
6227 # Is the header compilable?
6228 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6229 $as_echo_n "checking $ac_header usability... " >&6; }
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 $ac_includes_default
6237 #include <$ac_header>
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (ac_try="$ac_compile"
6241 case "(($ac_try" in
6242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243 *) ac_try_echo=$ac_try;;
6244 esac
6245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6246 $as_echo "$ac_try_echo") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } && {
6254 test -z "$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6256 } && test -s conftest.$ac_objext; then
6257 ac_header_compiler=yes
6258 else
6259 $as_echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_header_compiler=no
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6266 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6267 $as_echo "$ac_header_compiler" >&6; }
6269 # Is the header present?
6270 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6271 $as_echo_n "checking $ac_header presence... " >&6; }
6272 cat >conftest.$ac_ext <<_ACEOF
6273 /* confdefs.h. */
6274 _ACEOF
6275 cat confdefs.h >>conftest.$ac_ext
6276 cat >>conftest.$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <$ac_header>
6279 _ACEOF
6280 if { (ac_try="$ac_cpp conftest.$ac_ext"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6286 $as_echo "$ac_try_echo") >&5
6287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null && {
6294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6295 test ! -s conftest.err
6296 }; then
6297 ac_header_preproc=yes
6298 else
6299 $as_echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 ac_header_preproc=no
6305 rm -f conftest.err conftest.$ac_ext
6306 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6307 $as_echo "$ac_header_preproc" >&6; }
6309 # So? What about this header?
6310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6311 yes:no: )
6312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6313 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6316 ac_header_preproc=yes
6318 no:yes:* )
6319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6320 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6322 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6324 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6326 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6328 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6330 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6333 esac
6334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6335 $as_echo_n "checking for $ac_header... " >&6; }
6336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6337 $as_echo_n "(cached) " >&6
6338 else
6339 eval "$as_ac_Header=\$ac_header_preproc"
6341 ac_res=`eval 'as_val=${'$as_ac_Header'}
6342 $as_echo "$as_val"'`
6343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6344 $as_echo "$ac_res" >&6; }
6347 as_val=`eval 'as_val=${'$as_ac_Header'}
6348 $as_echo "$as_val"'`
6349 if test "x$as_val" = x""yes; then
6350 cat >>confdefs.h <<_ACEOF
6351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352 _ACEOF
6356 done
6358 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
6359 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6360 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test "$cross_compiling" = yes; then
6364 ac_cv_func_realloc_0_nonnull=no
6365 else
6366 cat >conftest.$ac_ext <<_ACEOF
6367 /* confdefs.h. */
6368 _ACEOF
6369 cat confdefs.h >>conftest.$ac_ext
6370 cat >>conftest.$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6373 # include <stdlib.h>
6374 #else
6375 char *realloc ();
6376 #endif
6379 main ()
6381 return ! realloc (0, 0);
6383 return 0;
6385 _ACEOF
6386 rm -f conftest$ac_exeext
6387 if { (ac_try="$ac_link"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6393 $as_echo "$ac_try_echo") >&5
6394 (eval "$ac_link") 2>&5
6395 ac_status=$?
6396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6398 { (case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_try") 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_func_realloc_0_nonnull=yes
6409 else
6410 $as_echo "$as_me: program exited with status $ac_status" >&5
6411 $as_echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6414 ( exit $ac_status )
6415 ac_cv_func_realloc_0_nonnull=no
6417 rm -rf conftest.dSYM
6418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
6424 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6425 if test $ac_cv_func_realloc_0_nonnull = yes; then
6427 cat >>confdefs.h <<\_ACEOF
6428 #define HAVE_REALLOC 1
6429 _ACEOF
6431 else
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_REALLOC 0
6434 _ACEOF
6436 case " $LIBOBJS " in
6437 *" realloc.$ac_objext "* ) ;;
6438 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6440 esac
6443 cat >>confdefs.h <<\_ACEOF
6444 #define realloc rpl_realloc
6445 _ACEOF
6452 for ac_func in strtol
6454 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6455 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6456 $as_echo_n "checking for $ac_func... " >&6; }
6457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6458 $as_echo_n "(cached) " >&6
6459 else
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6468 #define $ac_func innocuous_$ac_func
6470 /* System header to define __stub macros and hopefully few prototypes,
6471 which can conflict with char $ac_func (); below.
6472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6473 <limits.h> exists even on freestanding compilers. */
6475 #ifdef __STDC__
6476 # include <limits.h>
6477 #else
6478 # include <assert.h>
6479 #endif
6481 #undef $ac_func
6483 /* Override any GCC internal prototype to avoid an error.
6484 Use char because int might match the return type of a GCC
6485 builtin and then its argument prototype would still apply. */
6486 #ifdef __cplusplus
6487 extern "C"
6488 #endif
6489 char $ac_func ();
6490 /* The GNU C library defines this for functions which it implements
6491 to always fail with ENOSYS. Some functions are actually named
6492 something starting with __ and the normal name is an alias. */
6493 #if defined __stub_$ac_func || defined __stub___$ac_func
6494 choke me
6495 #endif
6498 main ()
6500 return $ac_func ();
6502 return 0;
6504 _ACEOF
6505 rm -f conftest.$ac_objext conftest$ac_exeext
6506 if { (ac_try="$ac_link"
6507 case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6512 $as_echo "$ac_try_echo") >&5
6513 (eval "$ac_link") 2>conftest.er1
6514 ac_status=$?
6515 grep -v '^ *+' conftest.er1 >conftest.err
6516 rm -f conftest.er1
6517 cat conftest.err >&5
6518 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest$ac_exeext && {
6523 test "$cross_compiling" = yes ||
6524 $as_test_x conftest$ac_exeext
6525 }; then
6526 eval "$as_ac_var=yes"
6527 else
6528 $as_echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 eval "$as_ac_var=no"
6534 rm -rf conftest.dSYM
6535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6536 conftest$ac_exeext conftest.$ac_ext
6538 ac_res=`eval 'as_val=${'$as_ac_var'}
6539 $as_echo "$as_val"'`
6540 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6541 $as_echo "$ac_res" >&6; }
6542 as_val=`eval 'as_val=${'$as_ac_var'}
6543 $as_echo "$as_val"'`
6544 if test "x$as_val" = x""yes; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6547 _ACEOF
6550 done
6553 for ac_func in strchr
6555 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6556 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6557 $as_echo_n "checking for $ac_func... " >&6; }
6558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6559 $as_echo_n "(cached) " >&6
6560 else
6561 cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h. */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h. */
6567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6569 #define $ac_func innocuous_$ac_func
6571 /* System header to define __stub macros and hopefully few prototypes,
6572 which can conflict with char $ac_func (); below.
6573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6574 <limits.h> exists even on freestanding compilers. */
6576 #ifdef __STDC__
6577 # include <limits.h>
6578 #else
6579 # include <assert.h>
6580 #endif
6582 #undef $ac_func
6584 /* Override any GCC internal prototype to avoid an error.
6585 Use char because int might match the return type of a GCC
6586 builtin and then its argument prototype would still apply. */
6587 #ifdef __cplusplus
6588 extern "C"
6589 #endif
6590 char $ac_func ();
6591 /* The GNU C library defines this for functions which it implements
6592 to always fail with ENOSYS. Some functions are actually named
6593 something starting with __ and the normal name is an alias. */
6594 #if defined __stub_$ac_func || defined __stub___$ac_func
6595 choke me
6596 #endif
6599 main ()
6601 return $ac_func ();
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext conftest$ac_exeext
6607 if { (ac_try="$ac_link"
6608 case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6613 $as_echo "$ac_try_echo") >&5
6614 (eval "$ac_link") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest$ac_exeext && {
6624 test "$cross_compiling" = yes ||
6625 $as_test_x conftest$ac_exeext
6626 }; then
6627 eval "$as_ac_var=yes"
6628 else
6629 $as_echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 eval "$as_ac_var=no"
6635 rm -rf conftest.dSYM
6636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6637 conftest$ac_exeext conftest.$ac_ext
6639 ac_res=`eval 'as_val=${'$as_ac_var'}
6640 $as_echo "$as_val"'`
6641 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6642 $as_echo "$ac_res" >&6; }
6643 as_val=`eval 'as_val=${'$as_ac_var'}
6644 $as_echo "$as_val"'`
6645 if test "x$as_val" = x""yes; then
6646 cat >>confdefs.h <<_ACEOF
6647 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6648 _ACEOF
6651 done
6654 for ac_func in strrchr
6656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6657 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6658 $as_echo_n "checking for $ac_func... " >&6; }
6659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6660 $as_echo_n "(cached) " >&6
6661 else
6662 cat >conftest.$ac_ext <<_ACEOF
6663 /* confdefs.h. */
6664 _ACEOF
6665 cat confdefs.h >>conftest.$ac_ext
6666 cat >>conftest.$ac_ext <<_ACEOF
6667 /* end confdefs.h. */
6668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6670 #define $ac_func innocuous_$ac_func
6672 /* System header to define __stub macros and hopefully few prototypes,
6673 which can conflict with char $ac_func (); below.
6674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6675 <limits.h> exists even on freestanding compilers. */
6677 #ifdef __STDC__
6678 # include <limits.h>
6679 #else
6680 # include <assert.h>
6681 #endif
6683 #undef $ac_func
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char $ac_func ();
6692 /* The GNU C library defines this for functions which it implements
6693 to always fail with ENOSYS. Some functions are actually named
6694 something starting with __ and the normal name is an alias. */
6695 #if defined __stub_$ac_func || defined __stub___$ac_func
6696 choke me
6697 #endif
6700 main ()
6702 return $ac_func ();
6704 return 0;
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6712 esac
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_link") 2>conftest.er1
6716 ac_status=$?
6717 grep -v '^ *+' conftest.er1 >conftest.err
6718 rm -f conftest.er1
6719 cat conftest.err >&5
6720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && {
6722 test -z "$ac_c_werror_flag" ||
6723 test ! -s conftest.err
6724 } && test -s conftest$ac_exeext && {
6725 test "$cross_compiling" = yes ||
6726 $as_test_x conftest$ac_exeext
6727 }; then
6728 eval "$as_ac_var=yes"
6729 else
6730 $as_echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6733 eval "$as_ac_var=no"
6736 rm -rf conftest.dSYM
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738 conftest$ac_exeext conftest.$ac_ext
6740 ac_res=`eval 'as_val=${'$as_ac_var'}
6741 $as_echo "$as_val"'`
6742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6743 $as_echo "$ac_res" >&6; }
6744 as_val=`eval 'as_val=${'$as_ac_var'}
6745 $as_echo "$as_val"'`
6746 if test "x$as_val" = x""yes; then
6747 cat >>confdefs.h <<_ACEOF
6748 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6749 _ACEOF
6752 done
6755 ac_config_files="$ac_config_files Makefile"
6757 cat >confcache <<\_ACEOF
6758 # This file is a shell script that caches the results of configure
6759 # tests run on this system so they can be shared between configure
6760 # scripts and configure runs, see configure's option --config-cache.
6761 # It is not useful on other systems. If it contains results you don't
6762 # want to keep, you may remove or edit it.
6764 # config.status only pays attention to the cache file if you give it
6765 # the --recheck option to rerun configure.
6767 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6768 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6769 # following values.
6771 _ACEOF
6773 # The following way of writing the cache mishandles newlines in values,
6774 # but we know of no workaround that is simple, portable, and efficient.
6775 # So, we kill variables containing newlines.
6776 # Ultrix sh set writes to stderr and can't be redirected directly,
6777 # and sets the high bit in the cache file unless we assign to the vars.
6779 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6780 eval ac_val=\$$ac_var
6781 case $ac_val in #(
6782 *${as_nl}*)
6783 case $ac_var in #(
6784 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
6785 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6786 esac
6787 case $ac_var in #(
6788 _ | IFS | as_nl) ;; #(
6789 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6790 *) $as_unset $ac_var ;;
6791 esac ;;
6792 esac
6793 done
6795 (set) 2>&1 |
6796 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6797 *${as_nl}ac_space=\ *)
6798 # `set' does not quote correctly, so add quotes (double-quote
6799 # substitution turns \\\\ into \\, and sed turns \\ into \).
6800 sed -n \
6801 "s/'/'\\\\''/g;
6802 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6803 ;; #(
6805 # `set' quotes correctly as required by POSIX, so do not add quotes.
6806 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6808 esac |
6809 sort
6811 sed '
6812 /^ac_cv_env_/b end
6813 t clear
6814 :clear
6815 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6816 t end
6817 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6818 :end' >>confcache
6819 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6820 if test -w "$cache_file"; then
6821 test "x$cache_file" != "x/dev/null" &&
6822 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
6823 $as_echo "$as_me: updating cache $cache_file" >&6;}
6824 cat confcache >$cache_file
6825 else
6826 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6827 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6830 rm -f confcache
6832 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6833 # Let make expand exec_prefix.
6834 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6836 DEFS=-DHAVE_CONFIG_H
6838 ac_libobjs=
6839 ac_ltlibobjs=
6840 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6841 # 1. Remove the extension, and $U if already installed.
6842 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6843 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6844 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6845 # will be set to the directory where LIBOBJS objects are built.
6846 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6847 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
6848 done
6849 LIBOBJS=$ac_libobjs
6851 LTLIBOBJS=$ac_ltlibobjs
6854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6855 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
6856 Usually this means the macro was only invoked conditionally." >&5
6857 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
6858 Usually this means the macro was only invoked conditionally." >&2;}
6859 { (exit 1); exit 1; }; }
6861 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6862 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6863 Usually this means the macro was only invoked conditionally." >&5
6864 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6865 Usually this means the macro was only invoked conditionally." >&2;}
6866 { (exit 1); exit 1; }; }
6868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6869 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
6870 Usually this means the macro was only invoked conditionally." >&5
6871 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
6872 Usually this means the macro was only invoked conditionally." >&2;}
6873 { (exit 1); exit 1; }; }
6876 : ${CONFIG_STATUS=./config.status}
6877 ac_write_fail=0
6878 ac_clean_files_save=$ac_clean_files
6879 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6880 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6881 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6882 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6883 #! $SHELL
6884 # Generated by $as_me.
6885 # Run this file to recreate the current configuration.
6886 # Compiler output produced by configure, useful for debugging
6887 # configure, is in config.log if it exists.
6889 debug=false
6890 ac_cs_recheck=false
6891 ac_cs_silent=false
6892 SHELL=\${CONFIG_SHELL-$SHELL}
6893 _ACEOF
6895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6896 ## --------------------- ##
6897 ## M4sh Initialization. ##
6898 ## --------------------- ##
6900 # Be more Bourne compatible
6901 DUALCASE=1; export DUALCASE # for MKS sh
6902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6903 emulate sh
6904 NULLCMD=:
6905 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6906 # is contrary to our usage. Disable this feature.
6907 alias -g '${1+"$@"}'='"$@"'
6908 setopt NO_GLOB_SUBST
6909 else
6910 case `(set -o) 2>/dev/null` in
6911 *posix*) set -o posix ;;
6912 esac
6919 # PATH needs CR
6920 # Avoid depending upon Character Ranges.
6921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6924 as_cr_digits='0123456789'
6925 as_cr_alnum=$as_cr_Letters$as_cr_digits
6927 as_nl='
6929 export as_nl
6930 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6931 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6932 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6933 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6934 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6935 as_echo='printf %s\n'
6936 as_echo_n='printf %s'
6937 else
6938 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6939 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6940 as_echo_n='/usr/ucb/echo -n'
6941 else
6942 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6943 as_echo_n_body='eval
6944 arg=$1;
6945 case $arg in
6946 *"$as_nl"*)
6947 expr "X$arg" : "X\\(.*\\)$as_nl";
6948 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6949 esac;
6950 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6952 export as_echo_n_body
6953 as_echo_n='sh -c $as_echo_n_body as_echo'
6955 export as_echo_body
6956 as_echo='sh -c $as_echo_body as_echo'
6959 # The user is always right.
6960 if test "${PATH_SEPARATOR+set}" != set; then
6961 PATH_SEPARATOR=:
6962 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6963 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6964 PATH_SEPARATOR=';'
6968 # Support unset when possible.
6969 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6970 as_unset=unset
6971 else
6972 as_unset=false
6976 # IFS
6977 # We need space, tab and new line, in precisely that order. Quoting is
6978 # there to prevent editors from complaining about space-tab.
6979 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6980 # splitting by setting IFS to empty value.)
6981 IFS=" "" $as_nl"
6983 # Find who we are. Look in the path if we contain no directory separator.
6984 case $0 in
6985 *[\\/]* ) as_myself=$0 ;;
6986 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6992 done
6993 IFS=$as_save_IFS
6996 esac
6997 # We did not find ourselves, most probably we were run as `sh COMMAND'
6998 # in which case we are not to be found in the path.
6999 if test "x$as_myself" = x; then
7000 as_myself=$0
7002 if test ! -f "$as_myself"; then
7003 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7004 { (exit 1); exit 1; }
7007 # Work around bugs in pre-3.0 UWIN ksh.
7008 for as_var in ENV MAIL MAILPATH
7009 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7010 done
7011 PS1='$ '
7012 PS2='> '
7013 PS4='+ '
7015 # NLS nuisances.
7016 LC_ALL=C
7017 export LC_ALL
7018 LANGUAGE=C
7019 export LANGUAGE
7021 # Required to use basename.
7022 if expr a : '\(a\)' >/dev/null 2>&1 &&
7023 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7024 as_expr=expr
7025 else
7026 as_expr=false
7029 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7030 as_basename=basename
7031 else
7032 as_basename=false
7036 # Name of the executable.
7037 as_me=`$as_basename -- "$0" ||
7038 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7039 X"$0" : 'X\(//\)$' \| \
7040 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7041 $as_echo X/"$0" |
7042 sed '/^.*\/\([^/][^/]*\)\/*$/{
7043 s//\1/
7046 /^X\/\(\/\/\)$/{
7047 s//\1/
7050 /^X\/\(\/\).*/{
7051 s//\1/
7054 s/.*/./; q'`
7056 # CDPATH.
7057 $as_unset CDPATH
7061 as_lineno_1=$LINENO
7062 as_lineno_2=$LINENO
7063 test "x$as_lineno_1" != "x$as_lineno_2" &&
7064 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7066 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7067 # uniformly replaced by the line number. The first 'sed' inserts a
7068 # line-number line after each line using $LINENO; the second 'sed'
7069 # does the real work. The second script uses 'N' to pair each
7070 # line-number line with the line containing $LINENO, and appends
7071 # trailing '-' during substitution so that $LINENO is not a special
7072 # case at line end.
7073 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7074 # scripts with optimization help from Paolo Bonzini. Blame Lee
7075 # E. McMahon (1931-1989) for sed's syntax. :-)
7076 sed -n '
7078 /[$]LINENO/=
7079 ' <$as_myself |
7080 sed '
7081 s/[$]LINENO.*/&-/
7082 t lineno
7084 :lineno
7086 :loop
7087 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7088 t loop
7089 s/-\n.*//
7090 ' >$as_me.lineno &&
7091 chmod +x "$as_me.lineno" ||
7092 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7093 { (exit 1); exit 1; }; }
7095 # Don't try to exec as it changes $[0], causing all sort of problems
7096 # (the dirname of $[0] is not the place where we might find the
7097 # original and so on. Autoconf is especially sensitive to this).
7098 . "./$as_me.lineno"
7099 # Exit status is that of the last command.
7100 exit
7104 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7105 as_dirname=dirname
7106 else
7107 as_dirname=false
7110 ECHO_C= ECHO_N= ECHO_T=
7111 case `echo -n x` in
7112 -n*)
7113 case `echo 'x\c'` in
7114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7115 *) ECHO_C='\c';;
7116 esac;;
7118 ECHO_N='-n';;
7119 esac
7120 if expr a : '\(a\)' >/dev/null 2>&1 &&
7121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7122 as_expr=expr
7123 else
7124 as_expr=false
7127 rm -f conf$$ conf$$.exe conf$$.file
7128 if test -d conf$$.dir; then
7129 rm -f conf$$.dir/conf$$.file
7130 else
7131 rm -f conf$$.dir
7132 mkdir conf$$.dir 2>/dev/null
7134 if (echo >conf$$.file) 2>/dev/null; then
7135 if ln -s conf$$.file conf$$ 2>/dev/null; then
7136 as_ln_s='ln -s'
7137 # ... but there are two gotchas:
7138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7140 # In both cases, we have to default to `cp -p'.
7141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7142 as_ln_s='cp -p'
7143 elif ln conf$$.file conf$$ 2>/dev/null; then
7144 as_ln_s=ln
7145 else
7146 as_ln_s='cp -p'
7148 else
7149 as_ln_s='cp -p'
7151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7152 rmdir conf$$.dir 2>/dev/null
7154 if mkdir -p . 2>/dev/null; then
7155 as_mkdir_p=:
7156 else
7157 test -d ./-p && rmdir ./-p
7158 as_mkdir_p=false
7161 if test -x / >/dev/null 2>&1; then
7162 as_test_x='test -x'
7163 else
7164 if ls -dL / >/dev/null 2>&1; then
7165 as_ls_L_option=L
7166 else
7167 as_ls_L_option=
7169 as_test_x='
7170 eval sh -c '\''
7171 if test -d "$1"; then
7172 test -d "$1/.";
7173 else
7174 case $1 in
7175 -*)set "./$1";;
7176 esac;
7177 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7178 ???[sx]*):;;*)false;;esac;fi
7179 '\'' sh
7182 as_executable_p=$as_test_x
7184 # Sed expression to map a string onto a valid CPP name.
7185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7187 # Sed expression to map a string onto a valid variable name.
7188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7191 exec 6>&1
7193 # Save the log message, to keep $[0] and so on meaningful, and to
7194 # report actual input values of CONFIG_FILES etc. instead of their
7195 # values after options handling.
7196 ac_log="
7197 This file was extended by $as_me, which was
7198 generated by GNU Autoconf 2.63. Invocation command line was
7200 CONFIG_FILES = $CONFIG_FILES
7201 CONFIG_HEADERS = $CONFIG_HEADERS
7202 CONFIG_LINKS = $CONFIG_LINKS
7203 CONFIG_COMMANDS = $CONFIG_COMMANDS
7204 $ $0 $@
7206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7209 _ACEOF
7211 case $ac_config_files in *"
7212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7213 esac
7215 case $ac_config_headers in *"
7216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7217 esac
7220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7221 # Files that config.status was made for.
7222 config_files="$ac_config_files"
7223 config_headers="$ac_config_headers"
7224 config_commands="$ac_config_commands"
7226 _ACEOF
7228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7229 ac_cs_usage="\
7230 \`$as_me' instantiates files from templates according to the
7231 current configuration.
7233 Usage: $0 [OPTION]... [FILE]...
7235 -h, --help print this help, then exit
7236 -V, --version print version number and configuration settings, then exit
7237 -q, --quiet, --silent
7238 do not print progress messages
7239 -d, --debug don't remove temporary files
7240 --recheck update $as_me by reconfiguring in the same conditions
7241 --file=FILE[:TEMPLATE]
7242 instantiate the configuration file FILE
7243 --header=FILE[:TEMPLATE]
7244 instantiate the configuration header FILE
7246 Configuration files:
7247 $config_files
7249 Configuration headers:
7250 $config_headers
7252 Configuration commands:
7253 $config_commands
7255 Report bugs to <bug-autoconf@gnu.org>."
7257 _ACEOF
7258 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7259 ac_cs_version="\\
7260 config.status
7261 configured by $0, generated by GNU Autoconf 2.63,
7262 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7264 Copyright (C) 2008 Free Software Foundation, Inc.
7265 This config.status script is free software; the Free Software Foundation
7266 gives unlimited permission to copy, distribute and modify it."
7268 ac_pwd='$ac_pwd'
7269 srcdir='$srcdir'
7270 INSTALL='$INSTALL'
7271 MKDIR_P='$MKDIR_P'
7272 AWK='$AWK'
7273 test -n "\$AWK" || AWK=awk
7274 _ACEOF
7276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7277 # The default lists apply if the user does not specify any file.
7278 ac_need_defaults=:
7279 while test $# != 0
7281 case $1 in
7282 --*=*)
7283 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7284 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7285 ac_shift=:
7288 ac_option=$1
7289 ac_optarg=$2
7290 ac_shift=shift
7292 esac
7294 case $ac_option in
7295 # Handling of the options.
7296 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7297 ac_cs_recheck=: ;;
7298 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7299 $as_echo "$ac_cs_version"; exit ;;
7300 --debug | --debu | --deb | --de | --d | -d )
7301 debug=: ;;
7302 --file | --fil | --fi | --f )
7303 $ac_shift
7304 case $ac_optarg in
7305 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7306 esac
7307 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
7308 ac_need_defaults=false;;
7309 --header | --heade | --head | --hea )
7310 $ac_shift
7311 case $ac_optarg in
7312 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7313 esac
7314 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
7315 ac_need_defaults=false;;
7316 --he | --h)
7317 # Conflict between --help and --header
7318 { $as_echo "$as_me: error: ambiguous option: $1
7319 Try \`$0 --help' for more information." >&2
7320 { (exit 1); exit 1; }; };;
7321 --help | --hel | -h )
7322 $as_echo "$ac_cs_usage"; exit ;;
7323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7324 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7325 ac_cs_silent=: ;;
7327 # This is an error.
7328 -*) { $as_echo "$as_me: error: unrecognized option: $1
7329 Try \`$0 --help' for more information." >&2
7330 { (exit 1); exit 1; }; } ;;
7332 *) ac_config_targets="$ac_config_targets $1"
7333 ac_need_defaults=false ;;
7335 esac
7336 shift
7337 done
7339 ac_configure_extra_args=
7341 if $ac_cs_silent; then
7342 exec 6>/dev/null
7343 ac_configure_extra_args="$ac_configure_extra_args --silent"
7346 _ACEOF
7347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7348 if \$ac_cs_recheck; then
7349 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7350 shift
7351 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7352 CONFIG_SHELL='$SHELL'
7353 export CONFIG_SHELL
7354 exec "\$@"
7357 _ACEOF
7358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7359 exec 5>>config.log
7361 echo
7362 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7363 ## Running $as_me. ##
7364 _ASBOX
7365 $as_echo "$ac_log"
7366 } >&5
7368 _ACEOF
7369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7371 # INIT-COMMANDS
7373 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7375 _ACEOF
7377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7379 # Handling of arguments.
7380 for ac_config_target in $ac_config_targets
7382 case $ac_config_target in
7383 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7384 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7385 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7387 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7388 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7389 { (exit 1); exit 1; }; };;
7390 esac
7391 done
7394 # If the user did not use the arguments to specify the items to instantiate,
7395 # then the envvar interface is used. Set only those that are not.
7396 # We use the long form for the default assignment because of an extremely
7397 # bizarre bug on SunOS 4.1.3.
7398 if $ac_need_defaults; then
7399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7404 # Have a temporary directory for convenience. Make it in the build tree
7405 # simply because there is no reason against having it here, and in addition,
7406 # creating and moving files from /tmp can sometimes cause problems.
7407 # Hook for its removal unless debugging.
7408 # Note that there is a small window in which the directory will not be cleaned:
7409 # after its creation but before its name has been assigned to `$tmp'.
7410 $debug ||
7412 tmp=
7413 trap 'exit_status=$?
7414 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7416 trap '{ (exit 1); exit 1; }' 1 2 13 15
7418 # Create a (secure) tmp directory for tmp files.
7421 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7422 test -n "$tmp" && test -d "$tmp"
7423 } ||
7425 tmp=./conf$$-$RANDOM
7426 (umask 077 && mkdir "$tmp")
7427 } ||
7429 $as_echo "$as_me: cannot create a temporary directory in ." >&2
7430 { (exit 1); exit 1; }
7433 # Set up the scripts for CONFIG_FILES section.
7434 # No need to generate them if there are no CONFIG_FILES.
7435 # This happens for instance with `./config.status config.h'.
7436 if test -n "$CONFIG_FILES"; then
7439 ac_cr=' '
7440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7442 ac_cs_awk_cr='\\r'
7443 else
7444 ac_cs_awk_cr=$ac_cr
7447 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7448 _ACEOF
7452 echo "cat >conf$$subs.awk <<_ACEOF" &&
7453 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7454 echo "_ACEOF"
7455 } >conf$$subs.sh ||
7456 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7457 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7458 { (exit 1); exit 1; }; }
7459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7460 ac_delim='%!_!# '
7461 for ac_last_try in false false false false false :; do
7462 . ./conf$$subs.sh ||
7463 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7464 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7465 { (exit 1); exit 1; }; }
7467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7468 if test $ac_delim_n = $ac_delim_num; then
7469 break
7470 elif $ac_last_try; then
7471 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
7472 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
7473 { (exit 1); exit 1; }; }
7474 else
7475 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7477 done
7478 rm -f conf$$subs.sh
7480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7481 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7482 _ACEOF
7483 sed -n '
7485 s/^/S["/; s/!.*/"]=/
7488 s/^[^!]*!//
7489 :repl
7490 t repl
7491 s/'"$ac_delim"'$//
7492 t delim
7495 s/\(.\{148\}\).*/\1/
7496 t more1
7497 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7500 b repl
7501 :more1
7502 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7505 s/.\{148\}//
7506 t nl
7507 :delim
7509 s/\(.\{148\}\).*/\1/
7510 t more2
7511 s/["\\]/\\&/g; s/^/"/; s/$/"/
7514 :more2
7515 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7518 s/.\{148\}//
7519 t delim
7520 ' <conf$$subs.awk | sed '
7521 /^[^""]/{
7523 s/\n//
7525 ' >>$CONFIG_STATUS || ac_write_fail=1
7526 rm -f conf$$subs.awk
7527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7528 _ACAWK
7529 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7530 for (key in S) S_is_set[key] = 1
7531 FS = "\a"
7535 line = $ 0
7536 nfields = split(line, field, "@")
7537 substed = 0
7538 len = length(field[1])
7539 for (i = 2; i < nfields; i++) {
7540 key = field[i]
7541 keylen = length(key)
7542 if (S_is_set[key]) {
7543 value = S[key]
7544 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7545 len += length(value) + length(field[++i])
7546 substed = 1
7547 } else
7548 len += 1 + keylen
7551 print line
7554 _ACAWK
7555 _ACEOF
7556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7557 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7558 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7559 else
7561 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7562 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
7563 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
7564 { (exit 1); exit 1; }; }
7565 _ACEOF
7567 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7568 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7569 # trailing colons and then remove the whole line if VPATH becomes empty
7570 # (actually we leave an empty line to preserve line numbers).
7571 if test "x$srcdir" = x.; then
7572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7573 s/:*\$(srcdir):*/:/
7574 s/:*\${srcdir}:*/:/
7575 s/:*@srcdir@:*/:/
7576 s/^\([^=]*=[ ]*\):*/\1/
7577 s/:*$//
7578 s/^[^=]*=[ ]*$//
7582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7583 fi # test -n "$CONFIG_FILES"
7585 # Set up the scripts for CONFIG_HEADERS section.
7586 # No need to generate them if there are no CONFIG_HEADERS.
7587 # This happens for instance with `./config.status Makefile'.
7588 if test -n "$CONFIG_HEADERS"; then
7589 cat >"$tmp/defines.awk" <<\_ACAWK ||
7590 BEGIN {
7591 _ACEOF
7593 # Transform confdefs.h into an awk script `defines.awk', embedded as
7594 # here-document in config.status, that substitutes the proper values into
7595 # config.h.in to produce config.h.
7597 # Create a delimiter string that does not exist in confdefs.h, to ease
7598 # handling of long lines.
7599 ac_delim='%!_!# '
7600 for ac_last_try in false false :; do
7601 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7602 if test -z "$ac_t"; then
7603 break
7604 elif $ac_last_try; then
7605 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
7606 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
7607 { (exit 1); exit 1; }; }
7608 else
7609 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7611 done
7613 # For the awk script, D is an array of macro values keyed by name,
7614 # likewise P contains macro parameters if any. Preserve backslash
7615 # newline sequences.
7617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7618 sed -n '
7619 s/.\{148\}/&'"$ac_delim"'/g
7620 t rset
7621 :rset
7622 s/^[ ]*#[ ]*define[ ][ ]*/ /
7623 t def
7625 :def
7626 s/\\$//
7627 t bsnl
7628 s/["\\]/\\&/g
7629 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7630 D["\1"]=" \3"/p
7631 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7633 :bsnl
7634 s/["\\]/\\&/g
7635 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7636 D["\1"]=" \3\\\\\\n"\\/p
7637 t cont
7638 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7639 t cont
7641 :cont
7643 s/.\{148\}/&'"$ac_delim"'/g
7644 t clear
7645 :clear
7646 s/\\$//
7647 t bsnlc
7648 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7650 :bsnlc
7651 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7652 b cont
7653 ' <confdefs.h | sed '
7654 s/'"$ac_delim"'/"\\\
7655 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7658 for (key in D) D_is_set[key] = 1
7659 FS = "\a"
7661 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7662 line = \$ 0
7663 split(line, arg, " ")
7664 if (arg[1] == "#") {
7665 defundef = arg[2]
7666 mac1 = arg[3]
7667 } else {
7668 defundef = substr(arg[1], 2)
7669 mac1 = arg[2]
7671 split(mac1, mac2, "(") #)
7672 macro = mac2[1]
7673 prefix = substr(line, 1, index(line, defundef) - 1)
7674 if (D_is_set[macro]) {
7675 # Preserve the white space surrounding the "#".
7676 print prefix "define", macro P[macro] D[macro]
7677 next
7678 } else {
7679 # Replace #undef with comments. This is necessary, for example,
7680 # in the case of _POSIX_SOURCE, which is predefined and required
7681 # on some systems where configure will not decide to define it.
7682 if (defundef == "undef") {
7683 print "/*", prefix defundef, macro, "*/"
7684 next
7688 { print }
7689 _ACAWK
7690 _ACEOF
7691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7692 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
7693 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
7694 { (exit 1); exit 1; }; }
7695 fi # test -n "$CONFIG_HEADERS"
7698 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7699 shift
7700 for ac_tag
7702 case $ac_tag in
7703 :[FHLC]) ac_mode=$ac_tag; continue;;
7704 esac
7705 case $ac_mode$ac_tag in
7706 :[FHL]*:*);;
7707 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
7708 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
7709 { (exit 1); exit 1; }; };;
7710 :[FH]-) ac_tag=-:-;;
7711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7712 esac
7713 ac_save_IFS=$IFS
7714 IFS=:
7715 set x $ac_tag
7716 IFS=$ac_save_IFS
7717 shift
7718 ac_file=$1
7719 shift
7721 case $ac_mode in
7722 :L) ac_source=$1;;
7723 :[FH])
7724 ac_file_inputs=
7725 for ac_f
7727 case $ac_f in
7728 -) ac_f="$tmp/stdin";;
7729 *) # Look for the file first in the build tree, then in the source tree
7730 # (if the path is not absolute). The absolute path cannot be DOS-style,
7731 # because $ac_f cannot contain `:'.
7732 test -f "$ac_f" ||
7733 case $ac_f in
7734 [\\/$]*) false;;
7735 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7736 esac ||
7737 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
7738 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
7739 { (exit 1); exit 1; }; };;
7740 esac
7741 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7742 ac_file_inputs="$ac_file_inputs '$ac_f'"
7743 done
7745 # Let's still pretend it is `configure' which instantiates (i.e., don't
7746 # use $as_me), people would be surprised to read:
7747 # /* config.h. Generated by config.status. */
7748 configure_input='Generated from '`
7749 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7750 `' by configure.'
7751 if test x"$ac_file" != x-; then
7752 configure_input="$ac_file. $configure_input"
7753 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
7754 $as_echo "$as_me: creating $ac_file" >&6;}
7756 # Neutralize special characters interpreted by sed in replacement strings.
7757 case $configure_input in #(
7758 *\&* | *\|* | *\\* )
7759 ac_sed_conf_input=`$as_echo "$configure_input" |
7760 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7761 *) ac_sed_conf_input=$configure_input;;
7762 esac
7764 case $ac_tag in
7765 *:-:* | *:-) cat >"$tmp/stdin" \
7766 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7767 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7768 { (exit 1); exit 1; }; } ;;
7769 esac
7771 esac
7773 ac_dir=`$as_dirname -- "$ac_file" ||
7774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7775 X"$ac_file" : 'X\(//\)[^/]' \| \
7776 X"$ac_file" : 'X\(//\)$' \| \
7777 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7778 $as_echo X"$ac_file" |
7779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7780 s//\1/
7783 /^X\(\/\/\)[^/].*/{
7784 s//\1/
7787 /^X\(\/\/\)$/{
7788 s//\1/
7791 /^X\(\/\).*/{
7792 s//\1/
7795 s/.*/./; q'`
7796 { as_dir="$ac_dir"
7797 case $as_dir in #(
7798 -*) as_dir=./$as_dir;;
7799 esac
7800 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7801 as_dirs=
7802 while :; do
7803 case $as_dir in #(
7804 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7805 *) as_qdir=$as_dir;;
7806 esac
7807 as_dirs="'$as_qdir' $as_dirs"
7808 as_dir=`$as_dirname -- "$as_dir" ||
7809 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7810 X"$as_dir" : 'X\(//\)[^/]' \| \
7811 X"$as_dir" : 'X\(//\)$' \| \
7812 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7813 $as_echo X"$as_dir" |
7814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7815 s//\1/
7818 /^X\(\/\/\)[^/].*/{
7819 s//\1/
7822 /^X\(\/\/\)$/{
7823 s//\1/
7826 /^X\(\/\).*/{
7827 s//\1/
7830 s/.*/./; q'`
7831 test -d "$as_dir" && break
7832 done
7833 test -z "$as_dirs" || eval "mkdir $as_dirs"
7834 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7835 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7836 { (exit 1); exit 1; }; }; }
7837 ac_builddir=.
7839 case "$ac_dir" in
7840 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7843 # A ".." for each directory in $ac_dir_suffix.
7844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7845 case $ac_top_builddir_sub in
7846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7848 esac ;;
7849 esac
7850 ac_abs_top_builddir=$ac_pwd
7851 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7852 # for backward compatibility:
7853 ac_top_builddir=$ac_top_build_prefix
7855 case $srcdir in
7856 .) # We are building in place.
7857 ac_srcdir=.
7858 ac_top_srcdir=$ac_top_builddir_sub
7859 ac_abs_top_srcdir=$ac_pwd ;;
7860 [\\/]* | ?:[\\/]* ) # Absolute name.
7861 ac_srcdir=$srcdir$ac_dir_suffix;
7862 ac_top_srcdir=$srcdir
7863 ac_abs_top_srcdir=$srcdir ;;
7864 *) # Relative name.
7865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7866 ac_top_srcdir=$ac_top_build_prefix$srcdir
7867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7868 esac
7869 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7872 case $ac_mode in
7875 # CONFIG_FILE
7878 case $INSTALL in
7879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7881 esac
7882 ac_MKDIR_P=$MKDIR_P
7883 case $MKDIR_P in
7884 [\\/$]* | ?:[\\/]* ) ;;
7885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7886 esac
7887 _ACEOF
7889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7890 # If the template does not know about datarootdir, expand it.
7891 # FIXME: This hack should be removed a few years after 2.60.
7892 ac_datarootdir_hack=; ac_datarootdir_seen=
7894 ac_sed_dataroot='
7895 /datarootdir/ {
7899 /@datadir@/p
7900 /@docdir@/p
7901 /@infodir@/p
7902 /@localedir@/p
7903 /@mandir@/p
7905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7906 *datarootdir*) ac_datarootdir_seen=yes;;
7907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7908 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7910 _ACEOF
7911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7912 ac_datarootdir_hack='
7913 s&@datadir@&$datadir&g
7914 s&@docdir@&$docdir&g
7915 s&@infodir@&$infodir&g
7916 s&@localedir@&$localedir&g
7917 s&@mandir@&$mandir&g
7918 s&\\\${datarootdir}&$datarootdir&g' ;;
7919 esac
7920 _ACEOF
7922 # Neutralize VPATH when `$srcdir' = `.'.
7923 # Shell code in configure.ac might set extrasub.
7924 # FIXME: do we really want to maintain this feature?
7925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7926 ac_sed_extra="$ac_vpsub
7927 $extrasub
7928 _ACEOF
7929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7932 s|@configure_input@|$ac_sed_conf_input|;t t
7933 s&@top_builddir@&$ac_top_builddir_sub&;t t
7934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7935 s&@srcdir@&$ac_srcdir&;t t
7936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7937 s&@top_srcdir@&$ac_top_srcdir&;t t
7938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7939 s&@builddir@&$ac_builddir&;t t
7940 s&@abs_builddir@&$ac_abs_builddir&;t t
7941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7942 s&@INSTALL@&$ac_INSTALL&;t t
7943 s&@MKDIR_P@&$ac_MKDIR_P&;t t
7944 $ac_datarootdir_hack
7946 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7947 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7948 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7949 { (exit 1); exit 1; }; }
7951 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7952 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7953 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7954 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7955 which seems to be undefined. Please make sure it is defined." >&5
7956 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7957 which seems to be undefined. Please make sure it is defined." >&2;}
7959 rm -f "$tmp/stdin"
7960 case $ac_file in
7961 -) cat "$tmp/out" && rm -f "$tmp/out";;
7962 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7963 esac \
7964 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7965 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7966 { (exit 1); exit 1; }; }
7970 # CONFIG_HEADER
7972 if test x"$ac_file" != x-; then
7974 $as_echo "/* $configure_input */" \
7975 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7976 } >"$tmp/config.h" \
7977 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7979 { (exit 1); exit 1; }; }
7980 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7981 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7982 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7983 else
7984 rm -f "$ac_file"
7985 mv "$tmp/config.h" "$ac_file" \
7986 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
7987 $as_echo "$as_me: error: could not create $ac_file" >&2;}
7988 { (exit 1); exit 1; }; }
7990 else
7991 $as_echo "/* $configure_input */" \
7992 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7993 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
7994 $as_echo "$as_me: error: could not create -" >&2;}
7995 { (exit 1); exit 1; }; }
7997 # Compute "$ac_file"'s index in $config_headers.
7998 _am_arg="$ac_file"
7999 _am_stamp_count=1
8000 for _am_header in $config_headers :; do
8001 case $_am_header in
8002 $_am_arg | $_am_arg:* )
8003 break ;;
8005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8006 esac
8007 done
8008 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8009 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8010 X"$_am_arg" : 'X\(//\)[^/]' \| \
8011 X"$_am_arg" : 'X\(//\)$' \| \
8012 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8013 $as_echo X"$_am_arg" |
8014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8015 s//\1/
8018 /^X\(\/\/\)[^/].*/{
8019 s//\1/
8022 /^X\(\/\/\)$/{
8023 s//\1/
8026 /^X\(\/\).*/{
8027 s//\1/
8030 s/.*/./; q'`/stamp-h$_am_stamp_count
8033 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
8034 $as_echo "$as_me: executing $ac_file commands" >&6;}
8036 esac
8039 case $ac_file$ac_mode in
8040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8041 # Strip MF so we end up with the name of the file.
8042 mf=`echo "$mf" | sed -e 's/:.*$//'`
8043 # Check whether this is an Automake generated Makefile or not.
8044 # We used to match only the files named `Makefile.in', but
8045 # some people rename them; so instead we look at the file content.
8046 # Grep'ing the first line is not enough: some people post-process
8047 # each Makefile.in and add a new line on top of each file to say so.
8048 # Grep'ing the whole file is not good either: AIX grep has a line
8049 # limit of 2048, but all sed's we know have understand at least 4000.
8050 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8051 dirpart=`$as_dirname -- "$mf" ||
8052 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8053 X"$mf" : 'X\(//\)[^/]' \| \
8054 X"$mf" : 'X\(//\)$' \| \
8055 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8056 $as_echo X"$mf" |
8057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8058 s//\1/
8061 /^X\(\/\/\)[^/].*/{
8062 s//\1/
8065 /^X\(\/\/\)$/{
8066 s//\1/
8069 /^X\(\/\).*/{
8070 s//\1/
8073 s/.*/./; q'`
8074 else
8075 continue
8077 # Extract the definition of DEPDIR, am__include, and am__quote
8078 # from the Makefile without running `make'.
8079 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8080 test -z "$DEPDIR" && continue
8081 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8082 test -z "am__include" && continue
8083 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8084 # When using ansi2knr, U may be empty or an underscore; expand it
8085 U=`sed -n 's/^U = //p' < "$mf"`
8086 # Find all dependency output files, they are included files with
8087 # $(DEPDIR) in their names. We invoke sed twice because it is the
8088 # simplest approach to changing $(DEPDIR) to its actual value in the
8089 # expansion.
8090 for file in `sed -n "
8091 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8092 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8093 # Make sure the directory exists.
8094 test -f "$dirpart/$file" && continue
8095 fdir=`$as_dirname -- "$file" ||
8096 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8097 X"$file" : 'X\(//\)[^/]' \| \
8098 X"$file" : 'X\(//\)$' \| \
8099 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8100 $as_echo X"$file" |
8101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8102 s//\1/
8105 /^X\(\/\/\)[^/].*/{
8106 s//\1/
8109 /^X\(\/\/\)$/{
8110 s//\1/
8113 /^X\(\/\).*/{
8114 s//\1/
8117 s/.*/./; q'`
8118 { as_dir=$dirpart/$fdir
8119 case $as_dir in #(
8120 -*) as_dir=./$as_dir;;
8121 esac
8122 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8123 as_dirs=
8124 while :; do
8125 case $as_dir in #(
8126 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8127 *) as_qdir=$as_dir;;
8128 esac
8129 as_dirs="'$as_qdir' $as_dirs"
8130 as_dir=`$as_dirname -- "$as_dir" ||
8131 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8132 X"$as_dir" : 'X\(//\)[^/]' \| \
8133 X"$as_dir" : 'X\(//\)$' \| \
8134 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8135 $as_echo X"$as_dir" |
8136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8137 s//\1/
8140 /^X\(\/\/\)[^/].*/{
8141 s//\1/
8144 /^X\(\/\/\)$/{
8145 s//\1/
8148 /^X\(\/\).*/{
8149 s//\1/
8152 s/.*/./; q'`
8153 test -d "$as_dir" && break
8154 done
8155 test -z "$as_dirs" || eval "mkdir $as_dirs"
8156 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8157 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
8158 { (exit 1); exit 1; }; }; }
8159 # echo "creating $dirpart/$file"
8160 echo '# dummy' > "$dirpart/$file"
8161 done
8162 done
8165 esac
8166 done # for ac_tag
8169 { (exit 0); exit 0; }
8170 _ACEOF
8171 chmod +x $CONFIG_STATUS
8172 ac_clean_files=$ac_clean_files_save
8174 test $ac_write_fail = 0 ||
8175 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
8176 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
8177 { (exit 1); exit 1; }; }
8180 # configure is writing to config.log, and then calls config.status.
8181 # config.status does its own redirection, appending to config.log.
8182 # Unfortunately, on DOS this fails, as config.log is still kept open
8183 # by configure, so config.status won't be able to write to it; its
8184 # output is simply discarded. So we exec the FD to /dev/null,
8185 # effectively closing config.log, so it can be properly (re)opened and
8186 # appended to by config.status. When coming back to configure, we
8187 # need to make the FD available again.
8188 if test "$no_create" != yes; then
8189 ac_cs_success=:
8190 ac_config_status_args=
8191 test "$silent" = yes &&
8192 ac_config_status_args="$ac_config_status_args --quiet"
8193 exec 5>/dev/null
8194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8195 exec 5>>config.log
8196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8197 # would make configure fail if this is the last instruction.
8198 $ac_cs_success || { (exit 1); exit 1; }
8200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8201 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8202 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}