Don't run tests checking xecutable stack when SELinux is enforcing.
[glibc.git] / posix / glob / configure
blob279c288edda0d176716ac61e2201b293ecea56c5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 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 # Zsh 3.x and 4.x performs 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 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="fnmatch.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
654 CFLAGS
655 LDFLAGS
656 CPPFLAGS
657 ac_ct_CC
658 EXEEXT
659 OBJEXT
661 RANLIB
663 GREP
664 EGREP
665 ALLOCA
666 LIBOBJS
667 LTLIBOBJS'
668 ac_subst_files=''
669 ac_precious_vars='build_alias
670 host_alias
671 target_alias
673 CFLAGS
674 LDFLAGS
675 LIBS
676 CPPFLAGS
677 CPP'
680 # Initialize some variables set by options.
681 ac_init_help=
682 ac_init_version=false
683 # The variables have the same names as the options, with
684 # dashes changed to underlines.
685 cache_file=/dev/null
686 exec_prefix=NONE
687 no_create=
688 no_recursion=
689 prefix=NONE
690 program_prefix=NONE
691 program_suffix=NONE
692 program_transform_name=s,x,x,
693 silent=
694 site=
695 srcdir=
696 verbose=
697 x_includes=NONE
698 x_libraries=NONE
700 # Installation directory options.
701 # These are left unexpanded so users can "make install exec_prefix=/foo"
702 # and all the variables that are supposed to be based on exec_prefix
703 # by default will actually change.
704 # Use braces instead of parens because sh, perl, etc. also accept them.
705 # (The list follows the same order as the GNU Coding Standards.)
706 bindir='${exec_prefix}/bin'
707 sbindir='${exec_prefix}/sbin'
708 libexecdir='${exec_prefix}/libexec'
709 datarootdir='${prefix}/share'
710 datadir='${datarootdir}'
711 sysconfdir='${prefix}/etc'
712 sharedstatedir='${prefix}/com'
713 localstatedir='${prefix}/var'
714 includedir='${prefix}/include'
715 oldincludedir='/usr/include'
716 docdir='${datarootdir}/doc/${PACKAGE}'
717 infodir='${datarootdir}/info'
718 htmldir='${docdir}'
719 dvidir='${docdir}'
720 pdfdir='${docdir}'
721 psdir='${docdir}'
722 libdir='${exec_prefix}/lib'
723 localedir='${datarootdir}/locale'
724 mandir='${datarootdir}/man'
726 ac_prev=
727 ac_dashdash=
728 for ac_option
730 # If the previous option needs an argument, assign it.
731 if test -n "$ac_prev"; then
732 eval $ac_prev=\$ac_option
733 ac_prev=
734 continue
737 case $ac_option in
738 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
739 *) ac_optarg=yes ;;
740 esac
742 # Accept the important Cygnus configure options, so we can diagnose typos.
744 case $ac_dashdash$ac_option in
746 ac_dashdash=yes ;;
748 -bindir | --bindir | --bindi | --bind | --bin | --bi)
749 ac_prev=bindir ;;
750 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
751 bindir=$ac_optarg ;;
753 -build | --build | --buil | --bui | --bu)
754 ac_prev=build_alias ;;
755 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
756 build_alias=$ac_optarg ;;
758 -cache-file | --cache-file | --cache-fil | --cache-fi \
759 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
760 ac_prev=cache_file ;;
761 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
762 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
763 cache_file=$ac_optarg ;;
765 --config-cache | -C)
766 cache_file=config.cache ;;
768 -datadir | --datadir | --datadi | --datad)
769 ac_prev=datadir ;;
770 -datadir=* | --datadir=* | --datadi=* | --datad=*)
771 datadir=$ac_optarg ;;
773 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
774 | --dataroo | --dataro | --datar)
775 ac_prev=datarootdir ;;
776 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
777 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
778 datarootdir=$ac_optarg ;;
780 -disable-* | --disable-*)
781 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
785 { (exit 1); exit 1; }; }
786 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
787 eval enable_$ac_feature=no ;;
789 -docdir | --docdir | --docdi | --doc | --do)
790 ac_prev=docdir ;;
791 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
792 docdir=$ac_optarg ;;
794 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
795 ac_prev=dvidir ;;
796 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
797 dvidir=$ac_optarg ;;
799 -enable-* | --enable-*)
800 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
804 { (exit 1); exit 1; }; }
805 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
806 eval enable_$ac_feature=\$ac_optarg ;;
808 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
809 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
810 | --exec | --exe | --ex)
811 ac_prev=exec_prefix ;;
812 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
813 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
814 | --exec=* | --exe=* | --ex=*)
815 exec_prefix=$ac_optarg ;;
817 -gas | --gas | --ga | --g)
818 # Obsolete; use --with-gas.
819 with_gas=yes ;;
821 -help | --help | --hel | --he | -h)
822 ac_init_help=long ;;
823 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
824 ac_init_help=recursive ;;
825 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
826 ac_init_help=short ;;
828 -host | --host | --hos | --ho)
829 ac_prev=host_alias ;;
830 -host=* | --host=* | --hos=* | --ho=*)
831 host_alias=$ac_optarg ;;
833 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
834 ac_prev=htmldir ;;
835 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
836 | --ht=*)
837 htmldir=$ac_optarg ;;
839 -includedir | --includedir | --includedi | --included | --include \
840 | --includ | --inclu | --incl | --inc)
841 ac_prev=includedir ;;
842 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
843 | --includ=* | --inclu=* | --incl=* | --inc=*)
844 includedir=$ac_optarg ;;
846 -infodir | --infodir | --infodi | --infod | --info | --inf)
847 ac_prev=infodir ;;
848 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
849 infodir=$ac_optarg ;;
851 -libdir | --libdir | --libdi | --libd)
852 ac_prev=libdir ;;
853 -libdir=* | --libdir=* | --libdi=* | --libd=*)
854 libdir=$ac_optarg ;;
856 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
857 | --libexe | --libex | --libe)
858 ac_prev=libexecdir ;;
859 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
860 | --libexe=* | --libex=* | --libe=*)
861 libexecdir=$ac_optarg ;;
863 -localedir | --localedir | --localedi | --localed | --locale)
864 ac_prev=localedir ;;
865 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
866 localedir=$ac_optarg ;;
868 -localstatedir | --localstatedir | --localstatedi | --localstated \
869 | --localstate | --localstat | --localsta | --localst | --locals)
870 ac_prev=localstatedir ;;
871 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
872 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
873 localstatedir=$ac_optarg ;;
875 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
876 ac_prev=mandir ;;
877 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
878 mandir=$ac_optarg ;;
880 -nfp | --nfp | --nf)
881 # Obsolete; use --without-fp.
882 with_fp=no ;;
884 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
885 | --no-cr | --no-c | -n)
886 no_create=yes ;;
888 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
889 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
890 no_recursion=yes ;;
892 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
893 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
894 | --oldin | --oldi | --old | --ol | --o)
895 ac_prev=oldincludedir ;;
896 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
897 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
898 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
899 oldincludedir=$ac_optarg ;;
901 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
902 ac_prev=prefix ;;
903 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
904 prefix=$ac_optarg ;;
906 -program-prefix | --program-prefix | --program-prefi | --program-pref \
907 | --program-pre | --program-pr | --program-p)
908 ac_prev=program_prefix ;;
909 -program-prefix=* | --program-prefix=* | --program-prefi=* \
910 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
911 program_prefix=$ac_optarg ;;
913 -program-suffix | --program-suffix | --program-suffi | --program-suff \
914 | --program-suf | --program-su | --program-s)
915 ac_prev=program_suffix ;;
916 -program-suffix=* | --program-suffix=* | --program-suffi=* \
917 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
918 program_suffix=$ac_optarg ;;
920 -program-transform-name | --program-transform-name \
921 | --program-transform-nam | --program-transform-na \
922 | --program-transform-n | --program-transform- \
923 | --program-transform | --program-transfor \
924 | --program-transfo | --program-transf \
925 | --program-trans | --program-tran \
926 | --progr-tra | --program-tr | --program-t)
927 ac_prev=program_transform_name ;;
928 -program-transform-name=* | --program-transform-name=* \
929 | --program-transform-nam=* | --program-transform-na=* \
930 | --program-transform-n=* | --program-transform-=* \
931 | --program-transform=* | --program-transfor=* \
932 | --program-transfo=* | --program-transf=* \
933 | --program-trans=* | --program-tran=* \
934 | --progr-tra=* | --program-tr=* | --program-t=*)
935 program_transform_name=$ac_optarg ;;
937 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
938 ac_prev=pdfdir ;;
939 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
940 pdfdir=$ac_optarg ;;
942 -psdir | --psdir | --psdi | --psd | --ps)
943 ac_prev=psdir ;;
944 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
945 psdir=$ac_optarg ;;
947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
948 | -silent | --silent | --silen | --sile | --sil)
949 silent=yes ;;
951 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
952 ac_prev=sbindir ;;
953 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
954 | --sbi=* | --sb=*)
955 sbindir=$ac_optarg ;;
957 -sharedstatedir | --sharedstatedir | --sharedstatedi \
958 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
959 | --sharedst | --shareds | --shared | --share | --shar \
960 | --sha | --sh)
961 ac_prev=sharedstatedir ;;
962 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
963 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
964 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
965 | --sha=* | --sh=*)
966 sharedstatedir=$ac_optarg ;;
968 -site | --site | --sit)
969 ac_prev=site ;;
970 -site=* | --site=* | --sit=*)
971 site=$ac_optarg ;;
973 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
974 ac_prev=srcdir ;;
975 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
976 srcdir=$ac_optarg ;;
978 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
979 | --syscon | --sysco | --sysc | --sys | --sy)
980 ac_prev=sysconfdir ;;
981 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
982 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
983 sysconfdir=$ac_optarg ;;
985 -target | --target | --targe | --targ | --tar | --ta | --t)
986 ac_prev=target_alias ;;
987 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
988 target_alias=$ac_optarg ;;
990 -v | -verbose | --verbose | --verbos | --verbo | --verb)
991 verbose=yes ;;
993 -version | --version | --versio | --versi | --vers | -V)
994 ac_init_version=: ;;
996 -with-* | --with-*)
997 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1000 { echo "$as_me: error: invalid package name: $ac_package" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1003 eval with_$ac_package=\$ac_optarg ;;
1005 -without-* | --without-*)
1006 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1009 { echo "$as_me: error: invalid package name: $ac_package" >&2
1010 { (exit 1); exit 1; }; }
1011 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1012 eval with_$ac_package=no ;;
1014 --x)
1015 # Obsolete; use --with-x.
1016 with_x=yes ;;
1018 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1019 | --x-incl | --x-inc | --x-in | --x-i)
1020 ac_prev=x_includes ;;
1021 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1022 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1023 x_includes=$ac_optarg ;;
1025 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1026 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1027 ac_prev=x_libraries ;;
1028 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1029 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1030 x_libraries=$ac_optarg ;;
1032 -*) { echo "$as_me: error: unrecognized option: $ac_option
1033 Try \`$0 --help' for more information." >&2
1034 { (exit 1); exit 1; }; }
1037 *=*)
1038 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1042 { (exit 1); exit 1; }; }
1043 eval $ac_envvar=\$ac_optarg
1044 export $ac_envvar ;;
1047 # FIXME: should be removed in autoconf 3.0.
1048 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1049 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1051 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1054 esac
1055 done
1057 if test -n "$ac_prev"; then
1058 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1059 { echo "$as_me: error: missing argument to $ac_option" >&2
1060 { (exit 1); exit 1; }; }
1063 # Be sure to have absolute directory names.
1064 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1065 datadir sysconfdir sharedstatedir localstatedir includedir \
1066 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1067 libdir localedir mandir
1069 eval ac_val=\$$ac_var
1070 case $ac_val in
1071 [\\/$]* | ?:[\\/]* ) continue;;
1072 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1073 esac
1074 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1075 { (exit 1); exit 1; }; }
1076 done
1078 # There might be people who depend on the old broken behavior: `$host'
1079 # used to hold the argument of --host etc.
1080 # FIXME: To remove some day.
1081 build=$build_alias
1082 host=$host_alias
1083 target=$target_alias
1085 # FIXME: To remove some day.
1086 if test "x$host_alias" != x; then
1087 if test "x$build_alias" = x; then
1088 cross_compiling=maybe
1089 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1090 If a cross compiler is detected then cross compile mode will be used." >&2
1091 elif test "x$build_alias" != "x$host_alias"; then
1092 cross_compiling=yes
1096 ac_tool_prefix=
1097 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1099 test "$silent" = yes && exec 6>/dev/null
1102 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1103 ac_ls_di=`ls -di .` &&
1104 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1105 { echo "$as_me: error: Working directory cannot be determined" >&2
1106 { (exit 1); exit 1; }; }
1107 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1108 { echo "$as_me: error: pwd does not report name of working directory" >&2
1109 { (exit 1); exit 1; }; }
1112 # Find the source files, if location was not specified.
1113 if test -z "$srcdir"; then
1114 ac_srcdir_defaulted=yes
1115 # Try the directory containing this script, then the parent directory.
1116 ac_confdir=`$as_dirname -- "$0" ||
1117 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1118 X"$0" : 'X\(//\)[^/]' \| \
1119 X"$0" : 'X\(//\)$' \| \
1120 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1121 echo X"$0" |
1122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1123 s//\1/
1126 /^X\(\/\/\)[^/].*/{
1127 s//\1/
1130 /^X\(\/\/\)$/{
1131 s//\1/
1134 /^X\(\/\).*/{
1135 s//\1/
1138 s/.*/./; q'`
1139 srcdir=$ac_confdir
1140 if test ! -r "$srcdir/$ac_unique_file"; then
1141 srcdir=..
1143 else
1144 ac_srcdir_defaulted=no
1146 if test ! -r "$srcdir/$ac_unique_file"; then
1147 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1148 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1149 { (exit 1); exit 1; }; }
1151 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1152 ac_abs_confdir=`(
1153 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1154 { (exit 1); exit 1; }; }
1155 pwd)`
1156 # When building in place, set srcdir=.
1157 if test "$ac_abs_confdir" = "$ac_pwd"; then
1158 srcdir=.
1160 # Remove unnecessary trailing slashes from srcdir.
1161 # Double slashes in file names in object file debugging info
1162 # mess up M-x gdb in Emacs.
1163 case $srcdir in
1164 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1165 esac
1166 for ac_var in $ac_precious_vars; do
1167 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1168 eval ac_env_${ac_var}_value=\$${ac_var}
1169 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1170 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1171 done
1174 # Report the --help message.
1176 if test "$ac_init_help" = "long"; then
1177 # Omit some internal or obsolete options to make the list less imposing.
1178 # This message is too long to be a string in the A/UX 3.1 sh.
1179 cat <<_ACEOF
1180 \`configure' configures this package to adapt to many kinds of systems.
1182 Usage: $0 [OPTION]... [VAR=VALUE]...
1184 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1185 VAR=VALUE. See below for descriptions of some of the useful variables.
1187 Defaults for the options are specified in brackets.
1189 Configuration:
1190 -h, --help display this help and exit
1191 --help=short display options specific to this package
1192 --help=recursive display the short help of all the included packages
1193 -V, --version display version information and exit
1194 -q, --quiet, --silent do not print \`checking...' messages
1195 --cache-file=FILE cache test results in FILE [disabled]
1196 -C, --config-cache alias for \`--cache-file=config.cache'
1197 -n, --no-create do not create output files
1198 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1200 Installation directories:
1201 --prefix=PREFIX install architecture-independent files in PREFIX
1202 [$ac_default_prefix]
1203 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1204 [PREFIX]
1206 By default, \`make install' will install all the files in
1207 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1208 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1209 for instance \`--prefix=\$HOME'.
1211 For better control, use the options below.
1213 Fine tuning of the installation directories:
1214 --bindir=DIR user executables [EPREFIX/bin]
1215 --sbindir=DIR system admin executables [EPREFIX/sbin]
1216 --libexecdir=DIR program executables [EPREFIX/libexec]
1217 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1218 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1219 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1220 --libdir=DIR object code libraries [EPREFIX/lib]
1221 --includedir=DIR C header files [PREFIX/include]
1222 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1223 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1224 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1225 --infodir=DIR info documentation [DATAROOTDIR/info]
1226 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1227 --mandir=DIR man documentation [DATAROOTDIR/man]
1228 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1229 --htmldir=DIR html documentation [DOCDIR]
1230 --dvidir=DIR dvi documentation [DOCDIR]
1231 --pdfdir=DIR pdf documentation [DOCDIR]
1232 --psdir=DIR ps documentation [DOCDIR]
1233 _ACEOF
1235 cat <<\_ACEOF
1236 _ACEOF
1239 if test -n "$ac_init_help"; then
1241 cat <<\_ACEOF
1243 Some influential environment variables:
1244 CC C compiler command
1245 CFLAGS C compiler flags
1246 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1247 nonstandard directory <lib dir>
1248 LIBS libraries to pass to the linker, e.g. -l<library>
1249 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1250 you have headers in a nonstandard directory <include dir>
1251 CPP C preprocessor
1253 Use these variables to override the choices made by `configure' or to help
1254 it to find libraries and programs with nonstandard names/locations.
1256 _ACEOF
1257 ac_status=$?
1260 if test "$ac_init_help" = "recursive"; then
1261 # If there are subdirs, report their specific --help.
1262 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1263 test -d "$ac_dir" || continue
1264 ac_builddir=.
1266 case "$ac_dir" in
1267 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1269 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1270 # A ".." for each directory in $ac_dir_suffix.
1271 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1272 case $ac_top_builddir_sub in
1273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1275 esac ;;
1276 esac
1277 ac_abs_top_builddir=$ac_pwd
1278 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1279 # for backward compatibility:
1280 ac_top_builddir=$ac_top_build_prefix
1282 case $srcdir in
1283 .) # We are building in place.
1284 ac_srcdir=.
1285 ac_top_srcdir=$ac_top_builddir_sub
1286 ac_abs_top_srcdir=$ac_pwd ;;
1287 [\\/]* | ?:[\\/]* ) # Absolute name.
1288 ac_srcdir=$srcdir$ac_dir_suffix;
1289 ac_top_srcdir=$srcdir
1290 ac_abs_top_srcdir=$srcdir ;;
1291 *) # Relative name.
1292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1293 ac_top_srcdir=$ac_top_build_prefix$srcdir
1294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1295 esac
1296 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1298 cd "$ac_dir" || { ac_status=$?; continue; }
1299 # Check for guested configure.
1300 if test -f "$ac_srcdir/configure.gnu"; then
1301 echo &&
1302 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1303 elif test -f "$ac_srcdir/configure"; then
1304 echo &&
1305 $SHELL "$ac_srcdir/configure" --help=recursive
1306 else
1307 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1308 fi || ac_status=$?
1309 cd "$ac_pwd" || { ac_status=$?; break; }
1310 done
1313 test -n "$ac_init_help" && exit $ac_status
1314 if $ac_init_version; then
1315 cat <<\_ACEOF
1316 configure
1317 generated by GNU Autoconf 2.61
1319 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1320 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1321 This configure script is free software; the Free Software Foundation
1322 gives unlimited permission to copy, distribute and modify it.
1323 _ACEOF
1324 exit
1326 cat >config.log <<_ACEOF
1327 This file contains any messages produced by compilers while
1328 running configure, to aid debugging if configure makes a mistake.
1330 It was created by $as_me, which was
1331 generated by GNU Autoconf 2.61. Invocation command line was
1333 $ $0 $@
1335 _ACEOF
1336 exec 5>>config.log
1338 cat <<_ASUNAME
1339 ## --------- ##
1340 ## Platform. ##
1341 ## --------- ##
1343 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1349 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1352 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1353 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1354 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1356 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1357 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1358 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1360 _ASUNAME
1362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 for as_dir in $PATH
1365 IFS=$as_save_IFS
1366 test -z "$as_dir" && as_dir=.
1367 echo "PATH: $as_dir"
1368 done
1369 IFS=$as_save_IFS
1371 } >&5
1373 cat >&5 <<_ACEOF
1376 ## ----------- ##
1377 ## Core tests. ##
1378 ## ----------- ##
1380 _ACEOF
1383 # Keep a trace of the command line.
1384 # Strip out --no-create and --no-recursion so they do not pile up.
1385 # Strip out --silent because we don't want to record it for future runs.
1386 # Also quote any args containing shell meta-characters.
1387 # Make two passes to allow for proper duplicate-argument suppression.
1388 ac_configure_args=
1389 ac_configure_args0=
1390 ac_configure_args1=
1391 ac_must_keep_next=false
1392 for ac_pass in 1 2
1394 for ac_arg
1396 case $ac_arg in
1397 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399 | -silent | --silent | --silen | --sile | --sil)
1400 continue ;;
1401 *\'*)
1402 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403 esac
1404 case $ac_pass in
1405 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1407 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408 if test $ac_must_keep_next = true; then
1409 ac_must_keep_next=false # Got value, back to normal.
1410 else
1411 case $ac_arg in
1412 *=* | --config-cache | -C | -disable-* | --disable-* \
1413 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415 | -with-* | --with-* | -without-* | --without-* | --x)
1416 case "$ac_configure_args0 " in
1417 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418 esac
1420 -* ) ac_must_keep_next=true ;;
1421 esac
1423 ac_configure_args="$ac_configure_args '$ac_arg'"
1425 esac
1426 done
1427 done
1428 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1429 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1431 # When interrupted or exit'd, cleanup temporary files, and complete
1432 # config.log. We remove comments because anyway the quotes in there
1433 # would cause problems or look ugly.
1434 # WARNING: Use '\'' to represent an apostrophe within the trap.
1435 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1436 trap 'exit_status=$?
1437 # Save into config.log some information that might help in debugging.
1439 echo
1441 cat <<\_ASBOX
1442 ## ---------------- ##
1443 ## Cache variables. ##
1444 ## ---------------- ##
1445 _ASBOX
1446 echo
1447 # The following way of writing the cache mishandles newlines in values,
1449 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1450 eval ac_val=\$$ac_var
1451 case $ac_val in #(
1452 *${as_nl}*)
1453 case $ac_var in #(
1454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1456 esac
1457 case $ac_var in #(
1458 _ | IFS | as_nl) ;; #(
1459 *) $as_unset $ac_var ;;
1460 esac ;;
1461 esac
1462 done
1463 (set) 2>&1 |
1464 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1465 *${as_nl}ac_space=\ *)
1466 sed -n \
1467 "s/'\''/'\''\\\\'\'''\''/g;
1468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1469 ;; #(
1471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1473 esac |
1474 sort
1476 echo
1478 cat <<\_ASBOX
1479 ## ----------------- ##
1480 ## Output variables. ##
1481 ## ----------------- ##
1482 _ASBOX
1483 echo
1484 for ac_var in $ac_subst_vars
1486 eval ac_val=\$$ac_var
1487 case $ac_val in
1488 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1489 esac
1490 echo "$ac_var='\''$ac_val'\''"
1491 done | sort
1492 echo
1494 if test -n "$ac_subst_files"; then
1495 cat <<\_ASBOX
1496 ## ------------------- ##
1497 ## File substitutions. ##
1498 ## ------------------- ##
1499 _ASBOX
1500 echo
1501 for ac_var in $ac_subst_files
1503 eval ac_val=\$$ac_var
1504 case $ac_val in
1505 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1506 esac
1507 echo "$ac_var='\''$ac_val'\''"
1508 done | sort
1509 echo
1512 if test -s confdefs.h; then
1513 cat <<\_ASBOX
1514 ## ----------- ##
1515 ## confdefs.h. ##
1516 ## ----------- ##
1517 _ASBOX
1518 echo
1519 cat confdefs.h
1520 echo
1522 test "$ac_signal" != 0 &&
1523 echo "$as_me: caught signal $ac_signal"
1524 echo "$as_me: exit $exit_status"
1525 } >&5
1526 rm -f core *.core core.conftest.* &&
1527 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1528 exit $exit_status
1530 for ac_signal in 1 2 13 15; do
1531 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1532 done
1533 ac_signal=0
1535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1536 rm -f -r conftest* confdefs.h
1538 # Predefined preprocessor variables.
1540 cat >>confdefs.h <<_ACEOF
1541 #define PACKAGE_NAME "$PACKAGE_NAME"
1542 _ACEOF
1545 cat >>confdefs.h <<_ACEOF
1546 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1547 _ACEOF
1550 cat >>confdefs.h <<_ACEOF
1551 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1552 _ACEOF
1555 cat >>confdefs.h <<_ACEOF
1556 #define PACKAGE_STRING "$PACKAGE_STRING"
1557 _ACEOF
1560 cat >>confdefs.h <<_ACEOF
1561 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1562 _ACEOF
1565 # Let the site file select an alternate cache file if it wants to.
1566 # Prefer explicitly selected file to automatically selected ones.
1567 if test -n "$CONFIG_SITE"; then
1568 set x "$CONFIG_SITE"
1569 elif test "x$prefix" != xNONE; then
1570 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1571 else
1572 set x "$ac_default_prefix/share/config.site" \
1573 "$ac_default_prefix/etc/config.site"
1575 shift
1576 for ac_site_file
1578 if test -r "$ac_site_file"; then
1579 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1580 echo "$as_me: loading site script $ac_site_file" >&6;}
1581 sed 's/^/| /' "$ac_site_file" >&5
1582 . "$ac_site_file"
1584 done
1586 if test -r "$cache_file"; then
1587 # Some versions of bash will fail to source /dev/null (special
1588 # files actually), so we avoid doing that.
1589 if test -f "$cache_file"; then
1590 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1591 echo "$as_me: loading cache $cache_file" >&6;}
1592 case $cache_file in
1593 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1594 *) . "./$cache_file";;
1595 esac
1597 else
1598 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1599 echo "$as_me: creating cache $cache_file" >&6;}
1600 >$cache_file
1603 # Check that the precious variables saved in the cache have kept the same
1604 # value.
1605 ac_cache_corrupted=false
1606 for ac_var in $ac_precious_vars; do
1607 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1608 eval ac_new_set=\$ac_env_${ac_var}_set
1609 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1610 eval ac_new_val=\$ac_env_${ac_var}_value
1611 case $ac_old_set,$ac_new_set in
1612 set,)
1613 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1614 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1615 ac_cache_corrupted=: ;;
1616 ,set)
1617 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1618 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1619 ac_cache_corrupted=: ;;
1620 ,);;
1622 if test "x$ac_old_val" != "x$ac_new_val"; then
1623 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1624 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1625 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1626 echo "$as_me: former value: $ac_old_val" >&2;}
1627 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1628 echo "$as_me: current value: $ac_new_val" >&2;}
1629 ac_cache_corrupted=:
1630 fi;;
1631 esac
1632 # Pass precious variables to config.status.
1633 if test "$ac_new_set" = set; then
1634 case $ac_new_val in
1635 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1636 *) ac_arg=$ac_var=$ac_new_val ;;
1637 esac
1638 case " $ac_configure_args " in
1639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1640 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1641 esac
1643 done
1644 if $ac_cache_corrupted; then
1645 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1646 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1647 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1648 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1649 { (exit 1); exit 1; }; }
1668 ac_ext=c
1669 ac_cpp='$CPP $CPPFLAGS'
1670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1674 ac_ext=c
1675 ac_cpp='$CPP $CPPFLAGS'
1676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1679 if test -n "$ac_tool_prefix"; then
1680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1684 if test "${ac_cv_prog_CC+set}" = set; then
1685 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 else
1687 if test -n "$CC"; then
1688 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 else
1690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1691 for as_dir in $PATH
1693 IFS=$as_save_IFS
1694 test -z "$as_dir" && as_dir=.
1695 for ac_exec_ext in '' $ac_executable_extensions; do
1696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 break 2
1701 done
1702 done
1703 IFS=$as_save_IFS
1707 CC=$ac_cv_prog_CC
1708 if test -n "$CC"; then
1709 { echo "$as_me:$LINENO: result: $CC" >&5
1710 echo "${ECHO_T}$CC" >&6; }
1711 else
1712 { echo "$as_me:$LINENO: result: no" >&5
1713 echo "${ECHO_T}no" >&6; }
1718 if test -z "$ac_cv_prog_CC"; then
1719 ac_ct_CC=$CC
1720 # Extract the first word of "gcc", so it can be a program name with args.
1721 set dummy gcc; ac_word=$2
1722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 if test -n "$ac_ct_CC"; then
1728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1729 else
1730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 for as_dir in $PATH
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1737 ac_cv_prog_ac_ct_CC="gcc"
1738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1739 break 2
1741 done
1742 done
1743 IFS=$as_save_IFS
1747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1748 if test -n "$ac_ct_CC"; then
1749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1750 echo "${ECHO_T}$ac_ct_CC" >&6; }
1751 else
1752 { echo "$as_me:$LINENO: result: no" >&5
1753 echo "${ECHO_T}no" >&6; }
1756 if test "x$ac_ct_CC" = x; then
1757 CC=""
1758 else
1759 case $cross_compiling:$ac_tool_warned in
1760 yes:)
1761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1762 whose name does not start with the host triplet. If you think this
1763 configuration is useful to you, please write to autoconf@gnu.org." >&5
1764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1765 whose name does not start with the host triplet. If you think this
1766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1767 ac_tool_warned=yes ;;
1768 esac
1769 CC=$ac_ct_CC
1771 else
1772 CC="$ac_cv_prog_CC"
1775 if test -z "$CC"; then
1776 if test -n "$ac_tool_prefix"; then
1777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1778 set dummy ${ac_tool_prefix}cc; ac_word=$2
1779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1781 if test "${ac_cv_prog_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1783 else
1784 if test -n "$CC"; then
1785 ac_cv_prog_CC="$CC" # Let the user override the test.
1786 else
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788 for as_dir in $PATH
1790 IFS=$as_save_IFS
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1794 ac_cv_prog_CC="${ac_tool_prefix}cc"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1796 break 2
1798 done
1799 done
1800 IFS=$as_save_IFS
1804 CC=$ac_cv_prog_CC
1805 if test -n "$CC"; then
1806 { echo "$as_me:$LINENO: result: $CC" >&5
1807 echo "${ECHO_T}$CC" >&6; }
1808 else
1809 { echo "$as_me:$LINENO: result: no" >&5
1810 echo "${ECHO_T}no" >&6; }
1816 if test -z "$CC"; then
1817 # Extract the first word of "cc", so it can be a program name with args.
1818 set dummy cc; ac_word=$2
1819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1821 if test "${ac_cv_prog_CC+set}" = set; then
1822 echo $ECHO_N "(cached) $ECHO_C" >&6
1823 else
1824 if test -n "$CC"; then
1825 ac_cv_prog_CC="$CC" # Let the user override the test.
1826 else
1827 ac_prog_rejected=no
1828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1829 for as_dir in $PATH
1831 IFS=$as_save_IFS
1832 test -z "$as_dir" && as_dir=.
1833 for ac_exec_ext in '' $ac_executable_extensions; do
1834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1836 ac_prog_rejected=yes
1837 continue
1839 ac_cv_prog_CC="cc"
1840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1841 break 2
1843 done
1844 done
1845 IFS=$as_save_IFS
1847 if test $ac_prog_rejected = yes; then
1848 # We found a bogon in the path, so make sure we never use it.
1849 set dummy $ac_cv_prog_CC
1850 shift
1851 if test $# != 0; then
1852 # We chose a different compiler from the bogus one.
1853 # However, it has the same basename, so the bogon will be chosen
1854 # first if we set CC to just the basename; use the full file name.
1855 shift
1856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1861 CC=$ac_cv_prog_CC
1862 if test -n "$CC"; then
1863 { echo "$as_me:$LINENO: result: $CC" >&5
1864 echo "${ECHO_T}$CC" >&6; }
1865 else
1866 { echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6; }
1872 if test -z "$CC"; then
1873 if test -n "$ac_tool_prefix"; then
1874 for ac_prog in cl.exe
1876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1880 if test "${ac_cv_prog_CC+set}" = set; then
1881 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 else
1883 if test -n "$CC"; then
1884 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 else
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1887 for as_dir in $PATH
1889 IFS=$as_save_IFS
1890 test -z "$as_dir" && as_dir=.
1891 for ac_exec_ext in '' $ac_executable_extensions; do
1892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1895 break 2
1897 done
1898 done
1899 IFS=$as_save_IFS
1903 CC=$ac_cv_prog_CC
1904 if test -n "$CC"; then
1905 { echo "$as_me:$LINENO: result: $CC" >&5
1906 echo "${ECHO_T}$CC" >&6; }
1907 else
1908 { echo "$as_me:$LINENO: result: no" >&5
1909 echo "${ECHO_T}no" >&6; }
1913 test -n "$CC" && break
1914 done
1916 if test -z "$CC"; then
1917 ac_ct_CC=$CC
1918 for ac_prog in cl.exe
1920 # Extract the first word of "$ac_prog", so it can be a program name with args.
1921 set dummy $ac_prog; ac_word=$2
1922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$ac_ct_CC"; then
1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 else
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 for as_dir in $PATH
1933 IFS=$as_save_IFS
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1937 ac_cv_prog_ac_ct_CC="$ac_prog"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 break 2
1941 done
1942 done
1943 IFS=$as_save_IFS
1947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1948 if test -n "$ac_ct_CC"; then
1949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1950 echo "${ECHO_T}$ac_ct_CC" >&6; }
1951 else
1952 { echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6; }
1957 test -n "$ac_ct_CC" && break
1958 done
1960 if test "x$ac_ct_CC" = x; then
1961 CC=""
1962 else
1963 case $cross_compiling:$ac_tool_warned in
1964 yes:)
1965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1966 whose name does not start with the host triplet. If you think this
1967 configuration is useful to you, please write to autoconf@gnu.org." >&5
1968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1969 whose name does not start with the host triplet. If you think this
1970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1971 ac_tool_warned=yes ;;
1972 esac
1973 CC=$ac_ct_CC
1980 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1981 See \`config.log' for more details." >&5
1982 echo "$as_me: error: no acceptable C compiler found in \$PATH
1983 See \`config.log' for more details." >&2;}
1984 { (exit 1); exit 1; }; }
1986 # Provide some information about the compiler.
1987 echo "$as_me:$LINENO: checking for C compiler version" >&5
1988 ac_compiler=`set X $ac_compile; echo $2`
1989 { (ac_try="$ac_compiler --version >&5"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1995 (eval "$ac_compiler --version >&5") 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
1999 { (ac_try="$ac_compiler -v >&5"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2005 (eval "$ac_compiler -v >&5") 2>&5
2006 ac_status=$?
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); }
2009 { (ac_try="$ac_compiler -V >&5"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2015 (eval "$ac_compiler -V >&5") 2>&5
2016 ac_status=$?
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }
2020 cat >conftest.$ac_ext <<_ACEOF
2021 /* confdefs.h. */
2022 _ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2028 main ()
2032 return 0;
2034 _ACEOF
2035 ac_clean_files_save=$ac_clean_files
2036 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2037 # Try to create an executable without -o first, disregard a.out.
2038 # It will help us diagnose broken compilers, and finding out an intuition
2039 # of exeext.
2040 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2041 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2042 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2044 # List of possible output files, starting from the most likely.
2045 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2046 # only as a last resort. b.out is created by i960 compilers.
2047 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2049 # The IRIX 6 linker writes into existing files which may not be
2050 # executable, retaining their permissions. Remove them first so a
2051 # subsequent execution test works.
2052 ac_rmfiles=
2053 for ac_file in $ac_files
2055 case $ac_file in
2056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2057 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2058 esac
2059 done
2060 rm -f $ac_rmfiles
2062 if { (ac_try="$ac_link_default"
2063 case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2068 (eval "$ac_link_default") 2>&5
2069 ac_status=$?
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; then
2072 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2073 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2074 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2075 # so that the user can short-circuit this test for compilers unknown to
2076 # Autoconf.
2077 for ac_file in $ac_files ''
2079 test -f "$ac_file" || continue
2080 case $ac_file in
2081 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2083 [ab].out )
2084 # We found the default executable, but exeext='' is most
2085 # certainly right.
2086 break;;
2087 *.* )
2088 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2089 then :; else
2090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2092 # We set ac_cv_exeext here because the later test for it is not
2093 # safe: cross compilers may not add the suffix if given an `-o'
2094 # argument, so we may need to know it at that point already.
2095 # Even if this section looks crufty: it has the advantage of
2096 # actually working.
2097 break;;
2099 break;;
2100 esac
2101 done
2102 test "$ac_cv_exeext" = no && ac_cv_exeext=
2104 else
2105 ac_file=''
2108 { echo "$as_me:$LINENO: result: $ac_file" >&5
2109 echo "${ECHO_T}$ac_file" >&6; }
2110 if test -z "$ac_file"; then
2111 echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2114 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2115 See \`config.log' for more details." >&5
2116 echo "$as_me: error: C compiler cannot create executables
2117 See \`config.log' for more details." >&2;}
2118 { (exit 77); exit 77; }; }
2121 ac_exeext=$ac_cv_exeext
2123 # Check that the compiler produces executables we can run. If not, either
2124 # the compiler is broken, or we cross compile.
2125 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2128 # If not cross compiling, check that we can run a simple program.
2129 if test "$cross_compiling" != yes; then
2130 if { ac_try='./$ac_file'
2131 { (case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134 esac
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_try") 2>&5
2137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }; }; then
2140 cross_compiling=no
2141 else
2142 if test "$cross_compiling" = maybe; then
2143 cross_compiling=yes
2144 else
2145 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2146 If you meant to cross compile, use \`--host'.
2147 See \`config.log' for more details." >&5
2148 echo "$as_me: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&2;}
2151 { (exit 1); exit 1; }; }
2155 { echo "$as_me:$LINENO: result: yes" >&5
2156 echo "${ECHO_T}yes" >&6; }
2158 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2159 ac_clean_files=$ac_clean_files_save
2160 # Check that the compiler produces executables we can run. If not, either
2161 # the compiler is broken, or we cross compile.
2162 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2163 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2164 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2165 echo "${ECHO_T}$cross_compiling" >&6; }
2167 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2168 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2169 if { (ac_try="$ac_link"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2175 (eval "$ac_link") 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2180 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2181 # work properly (i.e., refer to `conftest.exe'), while it won't with
2182 # `rm'.
2183 for ac_file in conftest.exe conftest conftest.*; do
2184 test -f "$ac_file" || continue
2185 case $ac_file in
2186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2187 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 break;;
2189 * ) break;;
2190 esac
2191 done
2192 else
2193 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2200 rm -f conftest$ac_cv_exeext
2201 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2202 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2204 rm -f conftest.$ac_ext
2205 EXEEXT=$ac_cv_exeext
2206 ac_exeext=$EXEEXT
2207 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2208 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2209 if test "${ac_cv_objext+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h. */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h. */
2220 main ()
2224 return 0;
2226 _ACEOF
2227 rm -f conftest.o conftest.obj
2228 if { (ac_try="$ac_compile"
2229 case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232 esac
2233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2234 (eval "$ac_compile") 2>&5
2235 ac_status=$?
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; then
2238 for ac_file in conftest.o conftest.obj conftest.*; do
2239 test -f "$ac_file" || continue;
2240 case $ac_file in
2241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2243 break;;
2244 esac
2245 done
2246 else
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2250 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251 See \`config.log' for more details." >&5
2252 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253 See \`config.log' for more details." >&2;}
2254 { (exit 1); exit 1; }; }
2257 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2259 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260 echo "${ECHO_T}$ac_cv_objext" >&6; }
2261 OBJEXT=$ac_cv_objext
2262 ac_objext=$OBJEXT
2263 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2264 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2265 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h. */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2276 main ()
2278 #ifndef __GNUC__
2279 choke me
2280 #endif
2283 return 0;
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (ac_try="$ac_compile"
2288 case "(($ac_try" in
2289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2290 *) ac_try_echo=$ac_try;;
2291 esac
2292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2293 (eval "$ac_compile") 2>conftest.er1
2294 ac_status=$?
2295 grep -v '^ *+' conftest.er1 >conftest.err
2296 rm -f conftest.er1
2297 cat conftest.err >&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); } && {
2300 test -z "$ac_c_werror_flag" ||
2301 test ! -s conftest.err
2302 } && test -s conftest.$ac_objext; then
2303 ac_compiler_gnu=yes
2304 else
2305 echo "$as_me: failed program was:" >&5
2306 sed 's/^/| /' conftest.$ac_ext >&5
2308 ac_compiler_gnu=no
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2315 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2316 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2317 GCC=`test $ac_compiler_gnu = yes && echo yes`
2318 ac_test_CFLAGS=${CFLAGS+set}
2319 ac_save_CFLAGS=$CFLAGS
2320 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_cc_g+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 ac_save_c_werror_flag=$ac_c_werror_flag
2326 ac_c_werror_flag=yes
2327 ac_cv_prog_cc_g=no
2328 CFLAGS="-g"
2329 cat >conftest.$ac_ext <<_ACEOF
2330 /* confdefs.h. */
2331 _ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2337 main ()
2341 return 0;
2343 _ACEOF
2344 rm -f conftest.$ac_objext
2345 if { (ac_try="$ac_compile"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compile") 2>conftest.er1
2352 ac_status=$?
2353 grep -v '^ *+' conftest.er1 >conftest.err
2354 rm -f conftest.er1
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } && {
2358 test -z "$ac_c_werror_flag" ||
2359 test ! -s conftest.err
2360 } && test -s conftest.$ac_objext; then
2361 ac_cv_prog_cc_g=yes
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2366 CFLAGS=""
2367 cat >conftest.$ac_ext <<_ACEOF
2368 /* confdefs.h. */
2369 _ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2375 main ()
2379 return 0;
2381 _ACEOF
2382 rm -f conftest.$ac_objext
2383 if { (ac_try="$ac_compile"
2384 case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compile") 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } && {
2396 test -z "$ac_c_werror_flag" ||
2397 test ! -s conftest.err
2398 } && test -s conftest.$ac_objext; then
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2404 ac_c_werror_flag=$ac_save_c_werror_flag
2405 CFLAGS="-g"
2406 cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h. */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2414 main ()
2418 return 0;
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (ac_try="$ac_compile"
2423 case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426 esac
2427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2428 (eval "$ac_compile") 2>conftest.er1
2429 ac_status=$?
2430 grep -v '^ *+' conftest.er1 >conftest.err
2431 rm -f conftest.er1
2432 cat conftest.err >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } && {
2435 test -z "$ac_c_werror_flag" ||
2436 test ! -s conftest.err
2437 } && test -s conftest.$ac_objext; then
2438 ac_cv_prog_cc_g=yes
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 ac_c_werror_flag=$ac_save_c_werror_flag
2455 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2456 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2457 if test "$ac_test_CFLAGS" = set; then
2458 CFLAGS=$ac_save_CFLAGS
2459 elif test $ac_cv_prog_cc_g = yes; then
2460 if test "$GCC" = yes; then
2461 CFLAGS="-g -O2"
2462 else
2463 CFLAGS="-g"
2465 else
2466 if test "$GCC" = yes; then
2467 CFLAGS="-O2"
2468 else
2469 CFLAGS=
2472 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2473 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_cc_c89+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 ac_cv_prog_cc_c89=no
2478 ac_save_CC=$CC
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h. */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h. */
2485 #include <stdarg.h>
2486 #include <stdio.h>
2487 #include <sys/types.h>
2488 #include <sys/stat.h>
2489 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2490 struct buf { int x; };
2491 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2492 static char *e (p, i)
2493 char **p;
2494 int i;
2496 return p[i];
2498 static char *f (char * (*g) (char **, int), char **p, ...)
2500 char *s;
2501 va_list v;
2502 va_start (v,p);
2503 s = g (p, va_arg (v,int));
2504 va_end (v);
2505 return s;
2508 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2509 function prototypes and stuff, but not '\xHH' hex character constants.
2510 These don't provoke an error unfortunately, instead are silently treated
2511 as 'x'. The following induces an error, until -std is added to get
2512 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2513 array size at least. It's necessary to write '\x00'==0 to get something
2514 that's true only with -std. */
2515 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2517 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2518 inside strings and character constants. */
2519 #define FOO(x) 'x'
2520 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2522 int test (int i, double x);
2523 struct s1 {int (*f) (int a);};
2524 struct s2 {int (*f) (double a);};
2525 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2526 int argc;
2527 char **argv;
2529 main ()
2531 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2533 return 0;
2535 _ACEOF
2536 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2537 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2539 CC="$ac_save_CC $ac_arg"
2540 rm -f conftest.$ac_objext
2541 if { (ac_try="$ac_compile"
2542 case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compile") 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } && {
2554 test -z "$ac_c_werror_flag" ||
2555 test ! -s conftest.err
2556 } && test -s conftest.$ac_objext; then
2557 ac_cv_prog_cc_c89=$ac_arg
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2565 rm -f core conftest.err conftest.$ac_objext
2566 test "x$ac_cv_prog_cc_c89" != "xno" && break
2567 done
2568 rm -f conftest.$ac_ext
2569 CC=$ac_save_CC
2572 # AC_CACHE_VAL
2573 case "x$ac_cv_prog_cc_c89" in
2575 { echo "$as_me:$LINENO: result: none needed" >&5
2576 echo "${ECHO_T}none needed" >&6; } ;;
2577 xno)
2578 { echo "$as_me:$LINENO: result: unsupported" >&5
2579 echo "${ECHO_T}unsupported" >&6; } ;;
2581 CC="$CC $ac_cv_prog_cc_c89"
2582 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2583 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2584 esac
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2593 # Extract the first word of "ar", so it can be a program name with args.
2594 set dummy ar; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_AR+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599 else
2600 if test -n "$AR"; then
2601 ac_cv_prog_AR="$AR" # Let the user override the test.
2602 else
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604 for as_dir in $PATH
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_AR="ar"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2614 done
2615 done
2616 IFS=$as_save_IFS
2618 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
2621 AR=$ac_cv_prog_AR
2622 if test -n "$AR"; then
2623 { echo "$as_me:$LINENO: result: $AR" >&5
2624 echo "${ECHO_T}$AR" >&6; }
2625 else
2626 { echo "$as_me:$LINENO: result: no" >&5
2627 echo "${ECHO_T}no" >&6; }
2631 if test -n "$ac_tool_prefix"; then
2632 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2633 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_RANLIB+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 if test -n "$RANLIB"; then
2640 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 break 2
2653 done
2654 done
2655 IFS=$as_save_IFS
2659 RANLIB=$ac_cv_prog_RANLIB
2660 if test -n "$RANLIB"; then
2661 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2662 echo "${ECHO_T}$RANLIB" >&6; }
2663 else
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2670 if test -z "$ac_cv_prog_RANLIB"; then
2671 ac_ct_RANLIB=$RANLIB
2672 # Extract the first word of "ranlib", so it can be a program name with args.
2673 set dummy ranlib; ac_word=$2
2674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679 if test -n "$ac_ct_RANLIB"; then
2680 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_ac_ct_RANLIB="ranlib"
2690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2693 done
2694 done
2695 IFS=$as_save_IFS
2699 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2700 if test -n "$ac_ct_RANLIB"; then
2701 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2702 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2703 else
2704 { echo "$as_me:$LINENO: result: no" >&5
2705 echo "${ECHO_T}no" >&6; }
2708 if test "x$ac_ct_RANLIB" = x; then
2709 RANLIB=":"
2710 else
2711 case $cross_compiling:$ac_tool_warned in
2712 yes:)
2713 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2714 whose name does not start with the host triplet. If you think this
2715 configuration is useful to you, please write to autoconf@gnu.org." >&5
2716 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2719 ac_tool_warned=yes ;;
2720 esac
2721 RANLIB=$ac_ct_RANLIB
2723 else
2724 RANLIB="$ac_cv_prog_RANLIB"
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2733 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2734 # On Suns, sometimes $CPP names a directory.
2735 if test -n "$CPP" && test -d "$CPP"; then
2736 CPP=
2738 if test -z "$CPP"; then
2739 if test "${ac_cv_prog_CPP+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 # Double quotes because CPP needs to be expanded
2743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2745 ac_preproc_ok=false
2746 for ac_c_preproc_warn_flag in '' yes
2748 # Use a header file that comes with gcc, so configuring glibc
2749 # with a fresh cross-compiler works.
2750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2751 # <limits.h> exists even on freestanding compilers.
2752 # On the NeXT, cc -E runs the code through the compiler's parser,
2753 # not just through cpp. "Syntax error" is here to catch this case.
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2760 #ifdef __STDC__
2761 # include <limits.h>
2762 #else
2763 # include <assert.h>
2764 #endif
2765 Syntax error
2766 _ACEOF
2767 if { (ac_try="$ac_cpp conftest.$ac_ext"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } >/dev/null && {
2780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 }; then
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 # Broken: fails on valid input.
2789 continue
2792 rm -f conftest.err conftest.$ac_ext
2794 # OK, works on sane cases. Now check whether nonexistent headers
2795 # can be detected and how.
2796 cat >conftest.$ac_ext <<_ACEOF
2797 /* confdefs.h. */
2798 _ACEOF
2799 cat confdefs.h >>conftest.$ac_ext
2800 cat >>conftest.$ac_ext <<_ACEOF
2801 /* end confdefs.h. */
2802 #include <ac_nonexistent.h>
2803 _ACEOF
2804 if { (ac_try="$ac_cpp conftest.$ac_ext"
2805 case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2811 ac_status=$?
2812 grep -v '^ *+' conftest.er1 >conftest.err
2813 rm -f conftest.er1
2814 cat conftest.err >&5
2815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816 (exit $ac_status); } >/dev/null && {
2817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2818 test ! -s conftest.err
2819 }; then
2820 # Broken: success on invalid input.
2821 continue
2822 else
2823 echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2826 # Passes both tests.
2827 ac_preproc_ok=:
2828 break
2831 rm -f conftest.err conftest.$ac_ext
2833 done
2834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2835 rm -f conftest.err conftest.$ac_ext
2836 if $ac_preproc_ok; then
2837 break
2840 done
2841 ac_cv_prog_CPP=$CPP
2844 CPP=$ac_cv_prog_CPP
2845 else
2846 ac_cv_prog_CPP=$CPP
2848 { echo "$as_me:$LINENO: result: $CPP" >&5
2849 echo "${ECHO_T}$CPP" >&6; }
2850 ac_preproc_ok=false
2851 for ac_c_preproc_warn_flag in '' yes
2853 # Use a header file that comes with gcc, so configuring glibc
2854 # with a fresh cross-compiler works.
2855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2856 # <limits.h> exists even on freestanding compilers.
2857 # On the NeXT, cc -E runs the code through the compiler's parser,
2858 # not just through cpp. "Syntax error" is here to catch this case.
2859 cat >conftest.$ac_ext <<_ACEOF
2860 /* confdefs.h. */
2861 _ACEOF
2862 cat confdefs.h >>conftest.$ac_ext
2863 cat >>conftest.$ac_ext <<_ACEOF
2864 /* end confdefs.h. */
2865 #ifdef __STDC__
2866 # include <limits.h>
2867 #else
2868 # include <assert.h>
2869 #endif
2870 Syntax error
2871 _ACEOF
2872 if { (ac_try="$ac_cpp conftest.$ac_ext"
2873 case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2879 ac_status=$?
2880 grep -v '^ *+' conftest.er1 >conftest.err
2881 rm -f conftest.er1
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } >/dev/null && {
2885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2886 test ! -s conftest.err
2887 }; then
2889 else
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Broken: fails on valid input.
2894 continue
2897 rm -f conftest.err conftest.$ac_ext
2899 # OK, works on sane cases. Now check whether nonexistent headers
2900 # can be detected and how.
2901 cat >conftest.$ac_ext <<_ACEOF
2902 /* confdefs.h. */
2903 _ACEOF
2904 cat confdefs.h >>conftest.$ac_ext
2905 cat >>conftest.$ac_ext <<_ACEOF
2906 /* end confdefs.h. */
2907 #include <ac_nonexistent.h>
2908 _ACEOF
2909 if { (ac_try="$ac_cpp conftest.$ac_ext"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2916 ac_status=$?
2917 grep -v '^ *+' conftest.er1 >conftest.err
2918 rm -f conftest.er1
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } >/dev/null && {
2922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2923 test ! -s conftest.err
2924 }; then
2925 # Broken: success on invalid input.
2926 continue
2927 else
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Passes both tests.
2932 ac_preproc_ok=:
2933 break
2936 rm -f conftest.err conftest.$ac_ext
2938 done
2939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2940 rm -f conftest.err conftest.$ac_ext
2941 if $ac_preproc_ok; then
2943 else
2944 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2945 See \`config.log' for more details." >&5
2946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2947 See \`config.log' for more details." >&2;}
2948 { (exit 1); exit 1; }; }
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2960 if test "${ac_cv_path_GREP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963 # Extract the first word of "grep ggrep" to use in msg output
2964 if test -z "$GREP"; then
2965 set dummy grep ggrep; ac_prog_name=$2
2966 if test "${ac_cv_path_GREP+set}" = set; then
2967 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969 ac_path_GREP_found=false
2970 # Loop through the user's path and test for each of PROGNAME-LIST
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_prog in grep ggrep; do
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2980 # Check for GNU ac_path_GREP and select it if it is found.
2981 # Check for GNU $ac_path_GREP
2982 case `"$ac_path_GREP" --version 2>&1` in
2983 *GNU*)
2984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2986 ac_count=0
2987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2988 while :
2990 cat "conftest.in" "conftest.in" >"conftest.tmp"
2991 mv "conftest.tmp" "conftest.in"
2992 cp "conftest.in" "conftest.nl"
2993 echo 'GREP' >> "conftest.nl"
2994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2996 ac_count=`expr $ac_count + 1`
2997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2998 # Best one so far, save it but keep looking for a better one
2999 ac_cv_path_GREP="$ac_path_GREP"
3000 ac_path_GREP_max=$ac_count
3002 # 10*(2^10) chars as input seems more than enough
3003 test $ac_count -gt 10 && break
3004 done
3005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3006 esac
3009 $ac_path_GREP_found && break 3
3010 done
3011 done
3013 done
3014 IFS=$as_save_IFS
3019 GREP="$ac_cv_path_GREP"
3020 if test -z "$GREP"; then
3021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3023 { (exit 1); exit 1; }; }
3026 else
3027 ac_cv_path_GREP=$GREP
3032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3034 GREP="$ac_cv_path_GREP"
3037 { echo "$as_me:$LINENO: checking for egrep" >&5
3038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3039 if test "${ac_cv_path_EGREP+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 else
3042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3043 then ac_cv_path_EGREP="$GREP -E"
3044 else
3045 # Extract the first word of "egrep" to use in msg output
3046 if test -z "$EGREP"; then
3047 set dummy egrep; ac_prog_name=$2
3048 if test "${ac_cv_path_EGREP+set}" = set; then
3049 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 else
3051 ac_path_EGREP_found=false
3052 # Loop through the user's path and test for each of PROGNAME-LIST
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
3058 for ac_prog in egrep; do
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3062 # Check for GNU ac_path_EGREP and select it if it is found.
3063 # Check for GNU $ac_path_EGREP
3064 case `"$ac_path_EGREP" --version 2>&1` in
3065 *GNU*)
3066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3068 ac_count=0
3069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3070 while :
3072 cat "conftest.in" "conftest.in" >"conftest.tmp"
3073 mv "conftest.tmp" "conftest.in"
3074 cp "conftest.in" "conftest.nl"
3075 echo 'EGREP' >> "conftest.nl"
3076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3078 ac_count=`expr $ac_count + 1`
3079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3080 # Best one so far, save it but keep looking for a better one
3081 ac_cv_path_EGREP="$ac_path_EGREP"
3082 ac_path_EGREP_max=$ac_count
3084 # 10*(2^10) chars as input seems more than enough
3085 test $ac_count -gt 10 && break
3086 done
3087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3088 esac
3091 $ac_path_EGREP_found && break 3
3092 done
3093 done
3095 done
3096 IFS=$as_save_IFS
3101 EGREP="$ac_cv_path_EGREP"
3102 if test -z "$EGREP"; then
3103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3105 { (exit 1); exit 1; }; }
3108 else
3109 ac_cv_path_EGREP=$EGREP
3115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3117 EGREP="$ac_cv_path_EGREP"
3121 { echo "$as_me:$LINENO: checking for AIX" >&5
3122 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3123 cat >conftest.$ac_ext <<_ACEOF
3124 /* confdefs.h. */
3125 _ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #ifdef _AIX
3131 #endif
3133 _ACEOF
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 $EGREP "yes" >/dev/null 2>&1; then
3136 { echo "$as_me:$LINENO: result: yes" >&5
3137 echo "${ECHO_T}yes" >&6; }
3138 cat >>confdefs.h <<\_ACEOF
3139 #define _ALL_SOURCE 1
3140 _ACEOF
3142 else
3143 { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3146 rm -f conftest*
3149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3151 if test "${ac_cv_header_stdc+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h. */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h. */
3160 #include <stdlib.h>
3161 #include <stdarg.h>
3162 #include <string.h>
3163 #include <float.h>
3166 main ()
3170 return 0;
3172 _ACEOF
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3175 case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_compile") 2>conftest.er1
3181 ac_status=$?
3182 grep -v '^ *+' conftest.er1 >conftest.err
3183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } && {
3187 test -z "$ac_c_werror_flag" ||
3188 test ! -s conftest.err
3189 } && test -s conftest.$ac_objext; then
3190 ac_cv_header_stdc=yes
3191 else
3192 echo "$as_me: failed program was:" >&5
3193 sed 's/^/| /' conftest.$ac_ext >&5
3195 ac_cv_header_stdc=no
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 if test $ac_cv_header_stdc = yes; then
3201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3202 cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h. */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3208 #include <string.h>
3210 _ACEOF
3211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3212 $EGREP "memchr" >/dev/null 2>&1; then
3214 else
3215 ac_cv_header_stdc=no
3217 rm -f conftest*
3221 if test $ac_cv_header_stdc = yes; then
3222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3229 #include <stdlib.h>
3231 _ACEOF
3232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3233 $EGREP "free" >/dev/null 2>&1; then
3235 else
3236 ac_cv_header_stdc=no
3238 rm -f conftest*
3242 if test $ac_cv_header_stdc = yes; then
3243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3244 if test "$cross_compiling" = yes; then
3246 else
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3253 #include <ctype.h>
3254 #include <stdlib.h>
3255 #if ((' ' & 0x0FF) == 0x020)
3256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3258 #else
3259 # define ISLOWER(c) \
3260 (('a' <= (c) && (c) <= 'i') \
3261 || ('j' <= (c) && (c) <= 'r') \
3262 || ('s' <= (c) && (c) <= 'z'))
3263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3264 #endif
3266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3268 main ()
3270 int i;
3271 for (i = 0; i < 256; i++)
3272 if (XOR (islower (i), ISLOWER (i))
3273 || toupper (i) != TOUPPER (i))
3274 return 2;
3275 return 0;
3277 _ACEOF
3278 rm -f conftest$ac_exeext
3279 if { (ac_try="$ac_link"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_link") 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3289 { (case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_try") 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }; }; then
3299 else
3300 echo "$as_me: program exited with status $ac_status" >&5
3301 echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3304 ( exit $ac_status )
3305 ac_cv_header_stdc=no
3307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3315 if test $ac_cv_header_stdc = yes; then
3317 cat >>confdefs.h <<\_ACEOF
3318 #define STDC_HEADERS 1
3319 _ACEOF
3323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3334 inttypes.h stdint.h unistd.h
3336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 cat >conftest.$ac_ext <<_ACEOF
3343 /* confdefs.h. */
3344 _ACEOF
3345 cat confdefs.h >>conftest.$ac_ext
3346 cat >>conftest.$ac_ext <<_ACEOF
3347 /* end confdefs.h. */
3348 $ac_includes_default
3350 #include <$ac_header>
3351 _ACEOF
3352 rm -f conftest.$ac_objext
3353 if { (ac_try="$ac_compile"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_compile") 2>conftest.er1
3360 ac_status=$?
3361 grep -v '^ *+' conftest.er1 >conftest.err
3362 rm -f conftest.er1
3363 cat conftest.err >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } && {
3366 test -z "$ac_c_werror_flag" ||
3367 test ! -s conftest.err
3368 } && test -s conftest.$ac_objext; then
3369 eval "$as_ac_Header=yes"
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3374 eval "$as_ac_Header=no"
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 ac_res=`eval echo '${'$as_ac_Header'}'`
3380 { echo "$as_me:$LINENO: result: $ac_res" >&5
3381 echo "${ECHO_T}$ac_res" >&6; }
3382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3383 cat >>confdefs.h <<_ACEOF
3384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3385 _ACEOF
3389 done
3392 if test "${ac_cv_header_minix_config_h+set}" = set; then
3393 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3394 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3395 if test "${ac_cv_header_minix_config_h+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3399 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3400 else
3401 # Is the header compilable?
3402 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3403 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3404 cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h. */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h. */
3410 $ac_includes_default
3411 #include <minix/config.h>
3412 _ACEOF
3413 rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_compile") 2>conftest.er1
3421 ac_status=$?
3422 grep -v '^ *+' conftest.er1 >conftest.err
3423 rm -f conftest.er1
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } && {
3427 test -z "$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 } && test -s conftest.$ac_objext; then
3430 ac_header_compiler=yes
3431 else
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 ac_header_compiler=no
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3440 echo "${ECHO_T}$ac_header_compiler" >&6; }
3442 # Is the header present?
3443 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3444 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <minix/config.h>
3452 _ACEOF
3453 if { (ac_try="$ac_cpp conftest.$ac_ext"
3454 case "(($ac_try" in
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3457 esac
3458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3460 ac_status=$?
3461 grep -v '^ *+' conftest.er1 >conftest.err
3462 rm -f conftest.er1
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } >/dev/null && {
3466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 }; then
3469 ac_header_preproc=yes
3470 else
3471 echo "$as_me: failed program was:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3474 ac_header_preproc=no
3477 rm -f conftest.err conftest.$ac_ext
3478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3479 echo "${ECHO_T}$ac_header_preproc" >&6; }
3481 # So? What about this header?
3482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3483 yes:no: )
3484 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3485 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3486 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3487 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3488 ac_header_preproc=yes
3490 no:yes:* )
3491 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3492 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3493 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3494 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3495 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3496 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3497 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3498 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3499 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3500 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3501 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3502 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3505 esac
3506 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3507 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3508 if test "${ac_cv_header_minix_config_h+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 ac_cv_header_minix_config_h=$ac_header_preproc
3513 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3514 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3517 if test $ac_cv_header_minix_config_h = yes; then
3518 MINIX=yes
3519 else
3520 MINIX=
3524 if test "$MINIX" = yes; then
3526 cat >>confdefs.h <<\_ACEOF
3527 #define _POSIX_SOURCE 1
3528 _ACEOF
3531 cat >>confdefs.h <<\_ACEOF
3532 #define _POSIX_1_SOURCE 2
3533 _ACEOF
3536 cat >>confdefs.h <<\_ACEOF
3537 #define _MINIX 1
3538 _ACEOF
3542 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3543 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3544 if test "${ac_cv_search_strerror+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3546 else
3547 ac_func_search_save_LIBS=$LIBS
3548 cat >conftest.$ac_ext <<_ACEOF
3549 /* confdefs.h. */
3550 _ACEOF
3551 cat confdefs.h >>conftest.$ac_ext
3552 cat >>conftest.$ac_ext <<_ACEOF
3553 /* end confdefs.h. */
3555 /* Override any GCC internal prototype to avoid an error.
3556 Use char because int might match the return type of a GCC
3557 builtin and then its argument prototype would still apply. */
3558 #ifdef __cplusplus
3559 extern "C"
3560 #endif
3561 char strerror ();
3563 main ()
3565 return strerror ();
3567 return 0;
3569 _ACEOF
3570 for ac_lib in '' cposix; do
3571 if test -z "$ac_lib"; then
3572 ac_res="none required"
3573 else
3574 ac_res=-l$ac_lib
3575 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3577 rm -f conftest.$ac_objext conftest$ac_exeext
3578 if { (ac_try="$ac_link"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_link") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest$ac_exeext &&
3594 $as_test_x conftest$ac_exeext; then
3595 ac_cv_search_strerror=$ac_res
3596 else
3597 echo "$as_me: failed program was:" >&5
3598 sed 's/^/| /' conftest.$ac_ext >&5
3603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3604 conftest$ac_exeext
3605 if test "${ac_cv_search_strerror+set}" = set; then
3606 break
3608 done
3609 if test "${ac_cv_search_strerror+set}" = set; then
3611 else
3612 ac_cv_search_strerror=no
3614 rm conftest.$ac_ext
3615 LIBS=$ac_func_search_save_LIBS
3617 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3618 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3619 ac_res=$ac_cv_search_strerror
3620 if test "$ac_res" != no; then
3621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3625 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3626 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3627 if test "${ac_cv_c_const+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 cat >conftest.$ac_ext <<_ACEOF
3631 /* confdefs.h. */
3632 _ACEOF
3633 cat confdefs.h >>conftest.$ac_ext
3634 cat >>conftest.$ac_ext <<_ACEOF
3635 /* end confdefs.h. */
3638 main ()
3640 /* FIXME: Include the comments suggested by Paul. */
3641 #ifndef __cplusplus
3642 /* Ultrix mips cc rejects this. */
3643 typedef int charset[2];
3644 const charset cs;
3645 /* SunOS 4.1.1 cc rejects this. */
3646 char const *const *pcpcc;
3647 char **ppc;
3648 /* NEC SVR4.0.2 mips cc rejects this. */
3649 struct point {int x, y;};
3650 static struct point const zero = {0,0};
3651 /* AIX XL C 1.02.0.0 rejects this.
3652 It does not let you subtract one const X* pointer from another in
3653 an arm of an if-expression whose if-part is not a constant
3654 expression */
3655 const char *g = "string";
3656 pcpcc = &g + (g ? g-g : 0);
3657 /* HPUX 7.0 cc rejects these. */
3658 ++pcpcc;
3659 ppc = (char**) pcpcc;
3660 pcpcc = (char const *const *) ppc;
3661 { /* SCO 3.2v4 cc rejects this. */
3662 char *t;
3663 char const *s = 0 ? (char *) 0 : (char const *) 0;
3665 *t++ = 0;
3666 if (s) return 0;
3668 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3669 int x[] = {25, 17};
3670 const int *foo = &x[0];
3671 ++foo;
3673 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3674 typedef const int *iptr;
3675 iptr p = 0;
3676 ++p;
3678 { /* AIX XL C 1.02.0.0 rejects this saying
3679 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3680 struct s { int j; const int *ap[3]; };
3681 struct s *b; b->j = 5;
3683 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3684 const int foo = 10;
3685 if (!foo) return 0;
3687 return !cs[0] && !zero.x;
3688 #endif
3691 return 0;
3693 _ACEOF
3694 rm -f conftest.$ac_objext
3695 if { (ac_try="$ac_compile"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3701 (eval "$ac_compile") 2>conftest.er1
3702 ac_status=$?
3703 grep -v '^ *+' conftest.er1 >conftest.err
3704 rm -f conftest.er1
3705 cat conftest.err >&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } && {
3708 test -z "$ac_c_werror_flag" ||
3709 test ! -s conftest.err
3710 } && test -s conftest.$ac_objext; then
3711 ac_cv_c_const=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 ac_cv_c_const=no
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3722 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3723 if test $ac_cv_c_const = no; then
3725 cat >>confdefs.h <<\_ACEOF
3726 #define const
3727 _ACEOF
3731 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3732 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3733 if test "${ac_cv_header_stdc+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736 cat >conftest.$ac_ext <<_ACEOF
3737 /* confdefs.h. */
3738 _ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 #include <stdlib.h>
3743 #include <stdarg.h>
3744 #include <string.h>
3745 #include <float.h>
3748 main ()
3752 return 0;
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (ac_try="$ac_compile"
3757 case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3762 (eval "$ac_compile") 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } && {
3769 test -z "$ac_c_werror_flag" ||
3770 test ! -s conftest.err
3771 } && test -s conftest.$ac_objext; then
3772 ac_cv_header_stdc=yes
3773 else
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 ac_cv_header_stdc=no
3780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3782 if test $ac_cv_header_stdc = yes; then
3783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #include <string.h>
3792 _ACEOF
3793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3794 $EGREP "memchr" >/dev/null 2>&1; then
3796 else
3797 ac_cv_header_stdc=no
3799 rm -f conftest*
3803 if test $ac_cv_header_stdc = yes; then
3804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3805 cat >conftest.$ac_ext <<_ACEOF
3806 /* confdefs.h. */
3807 _ACEOF
3808 cat confdefs.h >>conftest.$ac_ext
3809 cat >>conftest.$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3811 #include <stdlib.h>
3813 _ACEOF
3814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3815 $EGREP "free" >/dev/null 2>&1; then
3817 else
3818 ac_cv_header_stdc=no
3820 rm -f conftest*
3824 if test $ac_cv_header_stdc = yes; then
3825 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3826 if test "$cross_compiling" = yes; then
3828 else
3829 cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h. */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3835 #include <ctype.h>
3836 #include <stdlib.h>
3837 #if ((' ' & 0x0FF) == 0x020)
3838 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3839 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3840 #else
3841 # define ISLOWER(c) \
3842 (('a' <= (c) && (c) <= 'i') \
3843 || ('j' <= (c) && (c) <= 'r') \
3844 || ('s' <= (c) && (c) <= 'z'))
3845 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3846 #endif
3848 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3850 main ()
3852 int i;
3853 for (i = 0; i < 256; i++)
3854 if (XOR (islower (i), ISLOWER (i))
3855 || toupper (i) != TOUPPER (i))
3856 return 2;
3857 return 0;
3859 _ACEOF
3860 rm -f conftest$ac_exeext
3861 if { (ac_try="$ac_link"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_link") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3871 { (case "(($ac_try" in
3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873 *) ac_try_echo=$ac_try;;
3874 esac
3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3876 (eval "$ac_try") 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }; }; then
3881 else
3882 echo "$as_me: program exited with status $ac_status" >&5
3883 echo "$as_me: failed program was:" >&5
3884 sed 's/^/| /' conftest.$ac_ext >&5
3886 ( exit $ac_status )
3887 ac_cv_header_stdc=no
3889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3895 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3896 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3897 if test $ac_cv_header_stdc = yes; then
3899 cat >>confdefs.h <<\_ACEOF
3900 #define STDC_HEADERS 1
3901 _ACEOF
3908 for ac_header in memory.h unistd.h string.h
3910 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_res=`eval echo '${'$as_ac_Header'}'`
3918 { echo "$as_me:$LINENO: result: $ac_res" >&5
3919 echo "${ECHO_T}$ac_res" >&6; }
3920 else
3921 # Is the header compilable?
3922 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3923 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3924 cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h. */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3930 $ac_includes_default
3931 #include <$ac_header>
3932 _ACEOF
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3941 ac_status=$?
3942 grep -v '^ *+' conftest.er1 >conftest.err
3943 rm -f conftest.er1
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3950 ac_header_compiler=yes
3951 else
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 ac_header_compiler=no
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3960 echo "${ECHO_T}$ac_header_compiler" >&6; }
3962 # Is the header present?
3963 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3964 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3965 cat >conftest.$ac_ext <<_ACEOF
3966 /* confdefs.h. */
3967 _ACEOF
3968 cat confdefs.h >>conftest.$ac_ext
3969 cat >>conftest.$ac_ext <<_ACEOF
3970 /* end confdefs.h. */
3971 #include <$ac_header>
3972 _ACEOF
3973 if { (ac_try="$ac_cpp conftest.$ac_ext"
3974 case "(($ac_try" in
3975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3976 *) ac_try_echo=$ac_try;;
3977 esac
3978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3980 ac_status=$?
3981 grep -v '^ *+' conftest.er1 >conftest.err
3982 rm -f conftest.er1
3983 cat conftest.err >&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } >/dev/null && {
3986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3987 test ! -s conftest.err
3988 }; then
3989 ac_header_preproc=yes
3990 else
3991 echo "$as_me: failed program was:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 ac_header_preproc=no
3997 rm -f conftest.err conftest.$ac_ext
3998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3999 echo "${ECHO_T}$ac_header_preproc" >&6; }
4001 # So? What about this header?
4002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4003 yes:no: )
4004 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4008 ac_header_preproc=yes
4010 no:yes:* )
4011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4015 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4017 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4018 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4021 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4025 esac
4026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031 eval "$as_ac_Header=\$ac_header_preproc"
4033 ac_res=`eval echo '${'$as_ac_Header'}'`
4034 { echo "$as_me:$LINENO: result: $ac_res" >&5
4035 echo "${ECHO_T}$ac_res" >&6; }
4038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4039 cat >>confdefs.h <<_ACEOF
4040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4041 _ACEOF
4045 done
4052 ac_header_dirent=no
4053 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4054 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4055 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4056 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060 cat >conftest.$ac_ext <<_ACEOF
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066 #include <sys/types.h>
4067 #include <$ac_hdr>
4070 main ()
4072 if ((DIR *) 0)
4073 return 0;
4075 return 0;
4077 _ACEOF
4078 rm -f conftest.$ac_objext
4079 if { (ac_try="$ac_compile"
4080 case "(($ac_try" in
4081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4082 *) ac_try_echo=$ac_try;;
4083 esac
4084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4085 (eval "$ac_compile") 2>conftest.er1
4086 ac_status=$?
4087 grep -v '^ *+' conftest.er1 >conftest.err
4088 rm -f conftest.er1
4089 cat conftest.err >&5
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); } && {
4092 test -z "$ac_c_werror_flag" ||
4093 test ! -s conftest.err
4094 } && test -s conftest.$ac_objext; then
4095 eval "$as_ac_Header=yes"
4096 else
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 eval "$as_ac_Header=no"
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 ac_res=`eval echo '${'$as_ac_Header'}'`
4106 { echo "$as_me:$LINENO: result: $ac_res" >&5
4107 echo "${ECHO_T}$ac_res" >&6; }
4108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4109 cat >>confdefs.h <<_ACEOF
4110 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4111 _ACEOF
4113 ac_header_dirent=$ac_hdr; break
4116 done
4117 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4118 if test $ac_header_dirent = dirent.h; then
4119 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4121 if test "${ac_cv_search_opendir+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 ac_func_search_save_LIBS=$LIBS
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4132 /* Override any GCC internal prototype to avoid an error.
4133 Use char because int might match the return type of a GCC
4134 builtin and then its argument prototype would still apply. */
4135 #ifdef __cplusplus
4136 extern "C"
4137 #endif
4138 char opendir ();
4140 main ()
4142 return opendir ();
4144 return 0;
4146 _ACEOF
4147 for ac_lib in '' dir; do
4148 if test -z "$ac_lib"; then
4149 ac_res="none required"
4150 else
4151 ac_res=-l$ac_lib
4152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4154 rm -f conftest.$ac_objext conftest$ac_exeext
4155 if { (ac_try="$ac_link"
4156 case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159 esac
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_link") 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && {
4168 test -z "$ac_c_werror_flag" ||
4169 test ! -s conftest.err
4170 } && test -s conftest$ac_exeext &&
4171 $as_test_x conftest$ac_exeext; then
4172 ac_cv_search_opendir=$ac_res
4173 else
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4181 conftest$ac_exeext
4182 if test "${ac_cv_search_opendir+set}" = set; then
4183 break
4185 done
4186 if test "${ac_cv_search_opendir+set}" = set; then
4188 else
4189 ac_cv_search_opendir=no
4191 rm conftest.$ac_ext
4192 LIBS=$ac_func_search_save_LIBS
4194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4196 ac_res=$ac_cv_search_opendir
4197 if test "$ac_res" != no; then
4198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4202 else
4203 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4205 if test "${ac_cv_search_opendir+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 ac_func_search_save_LIBS=$LIBS
4209 cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h. */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4216 /* Override any GCC internal prototype to avoid an error.
4217 Use char because int might match the return type of a GCC
4218 builtin and then its argument prototype would still apply. */
4219 #ifdef __cplusplus
4220 extern "C"
4221 #endif
4222 char opendir ();
4224 main ()
4226 return opendir ();
4228 return 0;
4230 _ACEOF
4231 for ac_lib in '' x; do
4232 if test -z "$ac_lib"; then
4233 ac_res="none required"
4234 else
4235 ac_res=-l$ac_lib
4236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4238 rm -f conftest.$ac_objext conftest$ac_exeext
4239 if { (ac_try="$ac_link"
4240 case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4243 esac
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_link") 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } && {
4252 test -z "$ac_c_werror_flag" ||
4253 test ! -s conftest.err
4254 } && test -s conftest$ac_exeext &&
4255 $as_test_x conftest$ac_exeext; then
4256 ac_cv_search_opendir=$ac_res
4257 else
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4265 conftest$ac_exeext
4266 if test "${ac_cv_search_opendir+set}" = set; then
4267 break
4269 done
4270 if test "${ac_cv_search_opendir+set}" = set; then
4272 else
4273 ac_cv_search_opendir=no
4275 rm conftest.$ac_ext
4276 LIBS=$ac_func_search_save_LIBS
4278 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4279 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4280 ac_res=$ac_cv_search_opendir
4281 if test "$ac_res" != no; then
4282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4288 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
4289 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
4290 if test "${ac_cv_func_closedir_void+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 if test "$cross_compiling" = yes; then
4294 ac_cv_func_closedir_void=yes
4295 else
4296 cat >conftest.$ac_ext <<_ACEOF
4297 /* confdefs.h. */
4298 _ACEOF
4299 cat confdefs.h >>conftest.$ac_ext
4300 cat >>conftest.$ac_ext <<_ACEOF
4301 /* end confdefs.h. */
4302 $ac_includes_default
4303 #include <$ac_header_dirent>
4304 #ifndef __cplusplus
4305 int closedir ();
4306 #endif
4309 main ()
4311 return closedir (opendir (".")) != 0;
4313 return 0;
4315 _ACEOF
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4318 case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4333 ac_status=$?
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_func_closedir_void=no
4337 else
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ( exit $ac_status )
4343 ac_cv_func_closedir_void=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
4351 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
4352 if test $ac_cv_func_closedir_void = yes; then
4354 cat >>confdefs.h <<\_ACEOF
4355 #define CLOSEDIR_VOID 1
4356 _ACEOF
4360 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4361 # for constant arguments. Useless!
4362 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
4363 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
4364 if test "${ac_cv_working_alloca_h+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 cat >conftest.$ac_ext <<_ACEOF
4368 /* confdefs.h. */
4369 _ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 #include <alloca.h>
4375 main ()
4377 char *p = (char *) alloca (2 * sizeof (int));
4378 if (p) return 0;
4380 return 0;
4382 _ACEOF
4383 rm -f conftest.$ac_objext conftest$ac_exeext
4384 if { (ac_try="$ac_link"
4385 case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388 esac
4389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4390 (eval "$ac_link") 2>conftest.er1
4391 ac_status=$?
4392 grep -v '^ *+' conftest.er1 >conftest.err
4393 rm -f conftest.er1
4394 cat conftest.err >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } && {
4397 test -z "$ac_c_werror_flag" ||
4398 test ! -s conftest.err
4399 } && test -s conftest$ac_exeext &&
4400 $as_test_x conftest$ac_exeext; then
4401 ac_cv_working_alloca_h=yes
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 ac_cv_working_alloca_h=no
4409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4410 conftest$ac_exeext conftest.$ac_ext
4412 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4413 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
4414 if test $ac_cv_working_alloca_h = yes; then
4416 cat >>confdefs.h <<\_ACEOF
4417 #define HAVE_ALLOCA_H 1
4418 _ACEOF
4422 { echo "$as_me:$LINENO: checking for alloca" >&5
4423 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
4424 if test "${ac_cv_func_alloca_works+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #ifdef __GNUC__
4434 # define alloca __builtin_alloca
4435 #else
4436 # ifdef _MSC_VER
4437 # include <malloc.h>
4438 # define alloca _alloca
4439 # else
4440 # ifdef HAVE_ALLOCA_H
4441 # include <alloca.h>
4442 # else
4443 # ifdef _AIX
4444 #pragma alloca
4445 # else
4446 # ifndef alloca /* predefined by HP cc +Olibcalls */
4447 char *alloca ();
4448 # endif
4449 # endif
4450 # endif
4451 # endif
4452 #endif
4455 main ()
4457 char *p = (char *) alloca (1);
4458 if (p) return 0;
4460 return 0;
4462 _ACEOF
4463 rm -f conftest.$ac_objext conftest$ac_exeext
4464 if { (ac_try="$ac_link"
4465 case "(($ac_try" in
4466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4467 *) ac_try_echo=$ac_try;;
4468 esac
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_link") 2>conftest.er1
4471 ac_status=$?
4472 grep -v '^ *+' conftest.er1 >conftest.err
4473 rm -f conftest.er1
4474 cat conftest.err >&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } && {
4477 test -z "$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4479 } && test -s conftest$ac_exeext &&
4480 $as_test_x conftest$ac_exeext; then
4481 ac_cv_func_alloca_works=yes
4482 else
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_cv_func_alloca_works=no
4489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4490 conftest$ac_exeext conftest.$ac_ext
4492 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4493 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
4495 if test $ac_cv_func_alloca_works = yes; then
4497 cat >>confdefs.h <<\_ACEOF
4498 #define HAVE_ALLOCA 1
4499 _ACEOF
4501 else
4502 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4503 # that cause trouble. Some versions do not even contain alloca or
4504 # contain a buggy version. If you still want to use their alloca,
4505 # use ar to extract alloca.o from them instead of compiling alloca.c.
4507 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4509 cat >>confdefs.h <<\_ACEOF
4510 #define C_ALLOCA 1
4511 _ACEOF
4514 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4515 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
4516 if test "${ac_cv_os_cray+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519 cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h. */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h. */
4525 #if defined CRAY && ! defined CRAY2
4526 webecray
4527 #else
4528 wenotbecray
4529 #endif
4531 _ACEOF
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 $EGREP "webecray" >/dev/null 2>&1; then
4534 ac_cv_os_cray=yes
4535 else
4536 ac_cv_os_cray=no
4538 rm -f conftest*
4541 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4542 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
4543 if test $ac_cv_os_cray = yes; then
4544 for ac_func in _getb67 GETB67 getb67; do
4545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4546 { echo "$as_me:$LINENO: checking for $ac_func" >&5
4547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
4548 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4559 #define $ac_func innocuous_$ac_func
4561 /* System header to define __stub macros and hopefully few prototypes,
4562 which can conflict with char $ac_func (); below.
4563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4564 <limits.h> exists even on freestanding compilers. */
4566 #ifdef __STDC__
4567 # include <limits.h>
4568 #else
4569 # include <assert.h>
4570 #endif
4572 #undef $ac_func
4574 /* Override any GCC internal prototype to avoid an error.
4575 Use char because int might match the return type of a GCC
4576 builtin and then its argument prototype would still apply. */
4577 #ifdef __cplusplus
4578 extern "C"
4579 #endif
4580 char $ac_func ();
4581 /* The GNU C library defines this for functions which it implements
4582 to always fail with ENOSYS. Some functions are actually named
4583 something starting with __ and the normal name is an alias. */
4584 #if defined __stub_$ac_func || defined __stub___$ac_func
4585 choke me
4586 #endif
4589 main ()
4591 return $ac_func ();
4593 return 0;
4595 _ACEOF
4596 rm -f conftest.$ac_objext conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4598 case "(($ac_try" in
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4601 esac
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>conftest.er1
4604 ac_status=$?
4605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } && {
4610 test -z "$ac_c_werror_flag" ||
4611 test ! -s conftest.err
4612 } && test -s conftest$ac_exeext &&
4613 $as_test_x conftest$ac_exeext; then
4614 eval "$as_ac_var=yes"
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 eval "$as_ac_var=no"
4622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4623 conftest$ac_exeext conftest.$ac_ext
4625 ac_res=`eval echo '${'$as_ac_var'}'`
4626 { echo "$as_me:$LINENO: result: $ac_res" >&5
4627 echo "${ECHO_T}$ac_res" >&6; }
4628 if test `eval echo '${'$as_ac_var'}'` = yes; then
4630 cat >>confdefs.h <<_ACEOF
4631 #define CRAY_STACKSEG_END $ac_func
4632 _ACEOF
4634 break
4637 done
4640 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4641 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
4642 if test "${ac_cv_c_stack_direction+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645 if test "$cross_compiling" = yes; then
4646 ac_cv_c_stack_direction=0
4647 else
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 $ac_includes_default
4656 find_stack_direction ()
4658 static char *addr = 0;
4659 auto char dummy;
4660 if (addr == 0)
4662 addr = &dummy;
4663 return find_stack_direction ();
4665 else
4666 return (&dummy > addr) ? 1 : -1;
4670 main ()
4672 return find_stack_direction () < 0;
4674 _ACEOF
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_link") 2>&5
4683 ac_status=$?
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686 { (case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_try") 2>&5
4692 ac_status=$?
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4695 ac_cv_c_stack_direction=1
4696 else
4697 echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ( exit $ac_status )
4702 ac_cv_c_stack_direction=-1
4704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4709 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4710 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
4712 cat >>confdefs.h <<_ACEOF
4713 #define STACK_DIRECTION $ac_cv_c_stack_direction
4714 _ACEOF
4719 { echo "$as_me:$LINENO: checking for working strcoll" >&5
4720 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
4721 if test "${ac_cv_func_strcoll_works+set}" = set; then
4722 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 else
4724 if test "$cross_compiling" = yes; then
4725 ac_cv_func_strcoll_works=no
4726 else
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h. */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4733 $ac_includes_default
4735 main ()
4737 return (strcoll ("abc", "def") >= 0 ||
4738 strcoll ("ABC", "DEF") >= 0 ||
4739 strcoll ("123", "456") >= 0)
4741 return 0;
4743 _ACEOF
4744 rm -f conftest$ac_exeext
4745 if { (ac_try="$ac_link"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_link") 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4755 { (case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_try") 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_func_strcoll_works=yes
4765 else
4766 echo "$as_me: program exited with status $ac_status" >&5
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4770 ( exit $ac_status )
4771 ac_cv_func_strcoll_works=no
4773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4779 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
4780 if test $ac_cv_func_strcoll_works = yes; then
4782 cat >>confdefs.h <<\_ACEOF
4783 #define HAVE_STRCOLL 1
4784 _ACEOF
4788 ac_config_files="$ac_config_files Makefile"
4790 cat >confcache <<\_ACEOF
4791 # This file is a shell script that caches the results of configure
4792 # tests run on this system so they can be shared between configure
4793 # scripts and configure runs, see configure's option --config-cache.
4794 # It is not useful on other systems. If it contains results you don't
4795 # want to keep, you may remove or edit it.
4797 # config.status only pays attention to the cache file if you give it
4798 # the --recheck option to rerun configure.
4800 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4801 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4802 # following values.
4804 _ACEOF
4806 # The following way of writing the cache mishandles newlines in values,
4807 # but we know of no workaround that is simple, portable, and efficient.
4808 # So, we kill variables containing newlines.
4809 # Ultrix sh set writes to stderr and can't be redirected directly,
4810 # and sets the high bit in the cache file unless we assign to the vars.
4812 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4813 eval ac_val=\$$ac_var
4814 case $ac_val in #(
4815 *${as_nl}*)
4816 case $ac_var in #(
4817 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
4818 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
4819 esac
4820 case $ac_var in #(
4821 _ | IFS | as_nl) ;; #(
4822 *) $as_unset $ac_var ;;
4823 esac ;;
4824 esac
4825 done
4827 (set) 2>&1 |
4828 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4829 *${as_nl}ac_space=\ *)
4830 # `set' does not quote correctly, so add quotes (double-quote
4831 # substitution turns \\\\ into \\, and sed turns \\ into \).
4832 sed -n \
4833 "s/'/'\\\\''/g;
4834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4835 ;; #(
4837 # `set' quotes correctly as required by POSIX, so do not add quotes.
4838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4840 esac |
4841 sort
4843 sed '
4844 /^ac_cv_env_/b end
4845 t clear
4846 :clear
4847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4848 t end
4849 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4850 :end' >>confcache
4851 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4852 if test -w "$cache_file"; then
4853 test "x$cache_file" != "x/dev/null" &&
4854 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
4855 echo "$as_me: updating cache $cache_file" >&6;}
4856 cat confcache >$cache_file
4857 else
4858 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
4859 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4862 rm -f confcache
4864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4865 # Let make expand exec_prefix.
4866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4868 # Transform confdefs.h into DEFS.
4869 # Protect against shell expansion while executing Makefile rules.
4870 # Protect against Makefile macro expansion.
4872 # If the first sed substitution is executed (which looks for macros that
4873 # take arguments), then branch to the quote section. Otherwise,
4874 # look for a macro that doesn't take arguments.
4875 ac_script='
4876 t clear
4877 :clear
4878 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4879 t quote
4880 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4881 t quote
4882 b any
4883 :quote
4884 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4885 s/\[/\\&/g
4886 s/\]/\\&/g
4887 s/\$/$$/g
4889 :any
4892 s/^\n//
4893 s/\n/ /g
4897 DEFS=`sed -n "$ac_script" confdefs.h`
4900 ac_libobjs=
4901 ac_ltlibobjs=
4902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4903 # 1. Remove the extension, and $U if already installed.
4904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4905 ac_i=`echo "$ac_i" | sed "$ac_script"`
4906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4907 # will be set to the directory where LIBOBJS objects are built.
4908 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4909 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
4910 done
4911 LIBOBJS=$ac_libobjs
4913 LTLIBOBJS=$ac_ltlibobjs
4917 : ${CONFIG_STATUS=./config.status}
4918 ac_clean_files_save=$ac_clean_files
4919 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4920 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4921 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4922 cat >$CONFIG_STATUS <<_ACEOF
4923 #! $SHELL
4924 # Generated by $as_me.
4925 # Run this file to recreate the current configuration.
4926 # Compiler output produced by configure, useful for debugging
4927 # configure, is in config.log if it exists.
4929 debug=false
4930 ac_cs_recheck=false
4931 ac_cs_silent=false
4932 SHELL=\${CONFIG_SHELL-$SHELL}
4933 _ACEOF
4935 cat >>$CONFIG_STATUS <<\_ACEOF
4936 ## --------------------- ##
4937 ## M4sh Initialization. ##
4938 ## --------------------- ##
4940 # Be more Bourne compatible
4941 DUALCASE=1; export DUALCASE # for MKS sh
4942 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4943 emulate sh
4944 NULLCMD=:
4945 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4946 # is contrary to our usage. Disable this feature.
4947 alias -g '${1+"$@"}'='"$@"'
4948 setopt NO_GLOB_SUBST
4949 else
4950 case `(set -o) 2>/dev/null` in
4951 *posix*) set -o posix ;;
4952 esac
4959 # PATH needs CR
4960 # Avoid depending upon Character Ranges.
4961 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4962 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4963 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4964 as_cr_digits='0123456789'
4965 as_cr_alnum=$as_cr_Letters$as_cr_digits
4967 # The user is always right.
4968 if test "${PATH_SEPARATOR+set}" != set; then
4969 echo "#! /bin/sh" >conf$$.sh
4970 echo "exit 0" >>conf$$.sh
4971 chmod +x conf$$.sh
4972 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4973 PATH_SEPARATOR=';'
4974 else
4975 PATH_SEPARATOR=:
4977 rm -f conf$$.sh
4980 # Support unset when possible.
4981 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4982 as_unset=unset
4983 else
4984 as_unset=false
4988 # IFS
4989 # We need space, tab and new line, in precisely that order. Quoting is
4990 # there to prevent editors from complaining about space-tab.
4991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4992 # splitting by setting IFS to empty value.)
4993 as_nl='
4995 IFS=" "" $as_nl"
4997 # Find who we are. Look in the path if we contain no directory separator.
4998 case $0 in
4999 *[\\/]* ) as_myself=$0 ;;
5000 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5006 done
5007 IFS=$as_save_IFS
5010 esac
5011 # We did not find ourselves, most probably we were run as `sh COMMAND'
5012 # in which case we are not to be found in the path.
5013 if test "x$as_myself" = x; then
5014 as_myself=$0
5016 if test ! -f "$as_myself"; then
5017 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5018 { (exit 1); exit 1; }
5021 # Work around bugs in pre-3.0 UWIN ksh.
5022 for as_var in ENV MAIL MAILPATH
5023 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5024 done
5025 PS1='$ '
5026 PS2='> '
5027 PS4='+ '
5029 # NLS nuisances.
5030 for as_var in \
5031 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5032 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5033 LC_TELEPHONE LC_TIME
5035 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5036 eval $as_var=C; export $as_var
5037 else
5038 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5040 done
5042 # Required to use basename.
5043 if expr a : '\(a\)' >/dev/null 2>&1 &&
5044 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5045 as_expr=expr
5046 else
5047 as_expr=false
5050 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5051 as_basename=basename
5052 else
5053 as_basename=false
5057 # Name of the executable.
5058 as_me=`$as_basename -- "$0" ||
5059 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5060 X"$0" : 'X\(//\)$' \| \
5061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5062 echo X/"$0" |
5063 sed '/^.*\/\([^/][^/]*\)\/*$/{
5064 s//\1/
5067 /^X\/\(\/\/\)$/{
5068 s//\1/
5071 /^X\/\(\/\).*/{
5072 s//\1/
5075 s/.*/./; q'`
5077 # CDPATH.
5078 $as_unset CDPATH
5082 as_lineno_1=$LINENO
5083 as_lineno_2=$LINENO
5084 test "x$as_lineno_1" != "x$as_lineno_2" &&
5085 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5087 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5088 # uniformly replaced by the line number. The first 'sed' inserts a
5089 # line-number line after each line using $LINENO; the second 'sed'
5090 # does the real work. The second script uses 'N' to pair each
5091 # line-number line with the line containing $LINENO, and appends
5092 # trailing '-' during substitution so that $LINENO is not a special
5093 # case at line end.
5094 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5095 # scripts with optimization help from Paolo Bonzini. Blame Lee
5096 # E. McMahon (1931-1989) for sed's syntax. :-)
5097 sed -n '
5099 /[$]LINENO/=
5100 ' <$as_myself |
5101 sed '
5102 s/[$]LINENO.*/&-/
5103 t lineno
5105 :lineno
5107 :loop
5108 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5109 t loop
5110 s/-\n.*//
5111 ' >$as_me.lineno &&
5112 chmod +x "$as_me.lineno" ||
5113 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5114 { (exit 1); exit 1; }; }
5116 # Don't try to exec as it changes $[0], causing all sort of problems
5117 # (the dirname of $[0] is not the place where we might find the
5118 # original and so on. Autoconf is especially sensitive to this).
5119 . "./$as_me.lineno"
5120 # Exit status is that of the last command.
5121 exit
5125 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5126 as_dirname=dirname
5127 else
5128 as_dirname=false
5131 ECHO_C= ECHO_N= ECHO_T=
5132 case `echo -n x` in
5133 -n*)
5134 case `echo 'x\c'` in
5135 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5136 *) ECHO_C='\c';;
5137 esac;;
5139 ECHO_N='-n';;
5140 esac
5142 if expr a : '\(a\)' >/dev/null 2>&1 &&
5143 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5144 as_expr=expr
5145 else
5146 as_expr=false
5149 rm -f conf$$ conf$$.exe conf$$.file
5150 if test -d conf$$.dir; then
5151 rm -f conf$$.dir/conf$$.file
5152 else
5153 rm -f conf$$.dir
5154 mkdir conf$$.dir
5156 echo >conf$$.file
5157 if ln -s conf$$.file conf$$ 2>/dev/null; then
5158 as_ln_s='ln -s'
5159 # ... but there are two gotchas:
5160 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5161 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5162 # In both cases, we have to default to `cp -p'.
5163 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5164 as_ln_s='cp -p'
5165 elif ln conf$$.file conf$$ 2>/dev/null; then
5166 as_ln_s=ln
5167 else
5168 as_ln_s='cp -p'
5170 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5171 rmdir conf$$.dir 2>/dev/null
5173 if mkdir -p . 2>/dev/null; then
5174 as_mkdir_p=:
5175 else
5176 test -d ./-p && rmdir ./-p
5177 as_mkdir_p=false
5180 if test -x / >/dev/null 2>&1; then
5181 as_test_x='test -x'
5182 else
5183 if ls -dL / >/dev/null 2>&1; then
5184 as_ls_L_option=L
5185 else
5186 as_ls_L_option=
5188 as_test_x='
5189 eval sh -c '\''
5190 if test -d "$1"; then
5191 test -d "$1/.";
5192 else
5193 case $1 in
5194 -*)set "./$1";;
5195 esac;
5196 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5197 ???[sx]*):;;*)false;;esac;fi
5198 '\'' sh
5201 as_executable_p=$as_test_x
5203 # Sed expression to map a string onto a valid CPP name.
5204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5206 # Sed expression to map a string onto a valid variable name.
5207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5210 exec 6>&1
5212 # Save the log message, to keep $[0] and so on meaningful, and to
5213 # report actual input values of CONFIG_FILES etc. instead of their
5214 # values after options handling.
5215 ac_log="
5216 This file was extended by $as_me, which was
5217 generated by GNU Autoconf 2.61. Invocation command line was
5219 CONFIG_FILES = $CONFIG_FILES
5220 CONFIG_HEADERS = $CONFIG_HEADERS
5221 CONFIG_LINKS = $CONFIG_LINKS
5222 CONFIG_COMMANDS = $CONFIG_COMMANDS
5223 $ $0 $@
5225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5228 _ACEOF
5230 cat >>$CONFIG_STATUS <<_ACEOF
5231 # Files that config.status was made for.
5232 config_files="$ac_config_files"
5234 _ACEOF
5236 cat >>$CONFIG_STATUS <<\_ACEOF
5237 ac_cs_usage="\
5238 \`$as_me' instantiates files from templates according to the
5239 current configuration.
5241 Usage: $0 [OPTIONS] [FILE]...
5243 -h, --help print this help, then exit
5244 -V, --version print version number and configuration settings, then exit
5245 -q, --quiet do not print progress messages
5246 -d, --debug don't remove temporary files
5247 --recheck update $as_me by reconfiguring in the same conditions
5248 --file=FILE[:TEMPLATE]
5249 instantiate the configuration file FILE
5251 Configuration files:
5252 $config_files
5254 Report bugs to <bug-autoconf@gnu.org>."
5256 _ACEOF
5257 cat >>$CONFIG_STATUS <<_ACEOF
5258 ac_cs_version="\\
5259 config.status
5260 configured by $0, generated by GNU Autoconf 2.61,
5261 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5263 Copyright (C) 2006 Free Software Foundation, Inc.
5264 This config.status script is free software; the Free Software Foundation
5265 gives unlimited permission to copy, distribute and modify it."
5267 ac_pwd='$ac_pwd'
5268 srcdir='$srcdir'
5269 _ACEOF
5271 cat >>$CONFIG_STATUS <<\_ACEOF
5272 # If no file are specified by the user, then we need to provide default
5273 # value. By we need to know if files were specified by the user.
5274 ac_need_defaults=:
5275 while test $# != 0
5277 case $1 in
5278 --*=*)
5279 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5280 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5281 ac_shift=:
5284 ac_option=$1
5285 ac_optarg=$2
5286 ac_shift=shift
5288 esac
5290 case $ac_option in
5291 # Handling of the options.
5292 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5293 ac_cs_recheck=: ;;
5294 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5295 echo "$ac_cs_version"; exit ;;
5296 --debug | --debu | --deb | --de | --d | -d )
5297 debug=: ;;
5298 --file | --fil | --fi | --f )
5299 $ac_shift
5300 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5301 ac_need_defaults=false;;
5302 --he | --h | --help | --hel | -h )
5303 echo "$ac_cs_usage"; exit ;;
5304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5305 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5306 ac_cs_silent=: ;;
5308 # This is an error.
5309 -*) { echo "$as_me: error: unrecognized option: $1
5310 Try \`$0 --help' for more information." >&2
5311 { (exit 1); exit 1; }; } ;;
5313 *) ac_config_targets="$ac_config_targets $1"
5314 ac_need_defaults=false ;;
5316 esac
5317 shift
5318 done
5320 ac_configure_extra_args=
5322 if $ac_cs_silent; then
5323 exec 6>/dev/null
5324 ac_configure_extra_args="$ac_configure_extra_args --silent"
5327 _ACEOF
5328 cat >>$CONFIG_STATUS <<_ACEOF
5329 if \$ac_cs_recheck; then
5330 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5331 CONFIG_SHELL=$SHELL
5332 export CONFIG_SHELL
5333 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5336 _ACEOF
5337 cat >>$CONFIG_STATUS <<\_ACEOF
5338 exec 5>>config.log
5340 echo
5341 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5342 ## Running $as_me. ##
5343 _ASBOX
5344 echo "$ac_log"
5345 } >&5
5347 _ACEOF
5348 cat >>$CONFIG_STATUS <<_ACEOF
5349 _ACEOF
5351 cat >>$CONFIG_STATUS <<\_ACEOF
5353 # Handling of arguments.
5354 for ac_config_target in $ac_config_targets
5356 case $ac_config_target in
5357 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5359 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5360 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5361 { (exit 1); exit 1; }; };;
5362 esac
5363 done
5366 # If the user did not use the arguments to specify the items to instantiate,
5367 # then the envvar interface is used. Set only those that are not.
5368 # We use the long form for the default assignment because of an extremely
5369 # bizarre bug on SunOS 4.1.3.
5370 if $ac_need_defaults; then
5371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5374 # Have a temporary directory for convenience. Make it in the build tree
5375 # simply because there is no reason against having it here, and in addition,
5376 # creating and moving files from /tmp can sometimes cause problems.
5377 # Hook for its removal unless debugging.
5378 # Note that there is a small window in which the directory will not be cleaned:
5379 # after its creation but before its name has been assigned to `$tmp'.
5380 $debug ||
5382 tmp=
5383 trap 'exit_status=$?
5384 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5386 trap '{ (exit 1); exit 1; }' 1 2 13 15
5388 # Create a (secure) tmp directory for tmp files.
5391 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5392 test -n "$tmp" && test -d "$tmp"
5393 } ||
5395 tmp=./conf$$-$RANDOM
5396 (umask 077 && mkdir "$tmp")
5397 } ||
5399 echo "$me: cannot create a temporary directory in ." >&2
5400 { (exit 1); exit 1; }
5404 # Set up the sed scripts for CONFIG_FILES section.
5407 # No need to generate the scripts if there are no CONFIG_FILES.
5408 # This happens for instance when ./config.status config.h
5409 if test -n "$CONFIG_FILES"; then
5411 _ACEOF
5415 ac_delim='%!_!# '
5416 for ac_last_try in false false false false false :; do
5417 cat >conf$$subs.sed <<_ACEOF
5418 SHELL!$SHELL$ac_delim
5419 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
5420 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
5421 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
5422 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
5423 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
5424 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
5425 exec_prefix!$exec_prefix$ac_delim
5426 prefix!$prefix$ac_delim
5427 program_transform_name!$program_transform_name$ac_delim
5428 bindir!$bindir$ac_delim
5429 sbindir!$sbindir$ac_delim
5430 libexecdir!$libexecdir$ac_delim
5431 datarootdir!$datarootdir$ac_delim
5432 datadir!$datadir$ac_delim
5433 sysconfdir!$sysconfdir$ac_delim
5434 sharedstatedir!$sharedstatedir$ac_delim
5435 localstatedir!$localstatedir$ac_delim
5436 includedir!$includedir$ac_delim
5437 oldincludedir!$oldincludedir$ac_delim
5438 docdir!$docdir$ac_delim
5439 infodir!$infodir$ac_delim
5440 htmldir!$htmldir$ac_delim
5441 dvidir!$dvidir$ac_delim
5442 pdfdir!$pdfdir$ac_delim
5443 psdir!$psdir$ac_delim
5444 libdir!$libdir$ac_delim
5445 localedir!$localedir$ac_delim
5446 mandir!$mandir$ac_delim
5447 DEFS!$DEFS$ac_delim
5448 ECHO_C!$ECHO_C$ac_delim
5449 ECHO_N!$ECHO_N$ac_delim
5450 ECHO_T!$ECHO_T$ac_delim
5451 LIBS!$LIBS$ac_delim
5452 build_alias!$build_alias$ac_delim
5453 host_alias!$host_alias$ac_delim
5454 target_alias!$target_alias$ac_delim
5455 CC!$CC$ac_delim
5456 CFLAGS!$CFLAGS$ac_delim
5457 LDFLAGS!$LDFLAGS$ac_delim
5458 CPPFLAGS!$CPPFLAGS$ac_delim
5459 ac_ct_CC!$ac_ct_CC$ac_delim
5460 EXEEXT!$EXEEXT$ac_delim
5461 OBJEXT!$OBJEXT$ac_delim
5462 AR!$AR$ac_delim
5463 RANLIB!$RANLIB$ac_delim
5464 CPP!$CPP$ac_delim
5465 GREP!$GREP$ac_delim
5466 EGREP!$EGREP$ac_delim
5467 ALLOCA!$ALLOCA$ac_delim
5468 LIBOBJS!$LIBOBJS$ac_delim
5469 LTLIBOBJS!$LTLIBOBJS$ac_delim
5470 _ACEOF
5472 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
5473 break
5474 elif $ac_last_try; then
5475 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
5476 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
5477 { (exit 1); exit 1; }; }
5478 else
5479 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5481 done
5483 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
5484 if test -n "$ac_eof"; then
5485 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
5486 ac_eof=`expr $ac_eof + 1`
5489 cat >>$CONFIG_STATUS <<_ACEOF
5490 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
5491 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
5492 _ACEOF
5493 sed '
5494 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
5495 s/^/s,@/; s/!/@,|#_!!_#|/
5498 s/'"$ac_delim"'$/,g/; t
5499 s/$/\\/; p
5500 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
5501 ' >>$CONFIG_STATUS <conf$$subs.sed
5502 rm -f conf$$subs.sed
5503 cat >>$CONFIG_STATUS <<_ACEOF
5504 :end
5505 s/|#_!!_#|//g
5506 CEOF$ac_eof
5507 _ACEOF
5510 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5511 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5512 # trailing colons and then remove the whole line if VPATH becomes empty
5513 # (actually we leave an empty line to preserve line numbers).
5514 if test "x$srcdir" = x.; then
5515 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5516 s/:*\$(srcdir):*/:/
5517 s/:*\${srcdir}:*/:/
5518 s/:*@srcdir@:*/:/
5519 s/^\([^=]*=[ ]*\):*/\1/
5520 s/:*$//
5521 s/^[^=]*=[ ]*$//
5525 cat >>$CONFIG_STATUS <<\_ACEOF
5526 fi # test -n "$CONFIG_FILES"
5529 for ac_tag in :F $CONFIG_FILES
5531 case $ac_tag in
5532 :[FHLC]) ac_mode=$ac_tag; continue;;
5533 esac
5534 case $ac_mode$ac_tag in
5535 :[FHL]*:*);;
5536 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
5537 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
5538 { (exit 1); exit 1; }; };;
5539 :[FH]-) ac_tag=-:-;;
5540 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5541 esac
5542 ac_save_IFS=$IFS
5543 IFS=:
5544 set x $ac_tag
5545 IFS=$ac_save_IFS
5546 shift
5547 ac_file=$1
5548 shift
5550 case $ac_mode in
5551 :L) ac_source=$1;;
5552 :[FH])
5553 ac_file_inputs=
5554 for ac_f
5556 case $ac_f in
5557 -) ac_f="$tmp/stdin";;
5558 *) # Look for the file first in the build tree, then in the source tree
5559 # (if the path is not absolute). The absolute path cannot be DOS-style,
5560 # because $ac_f cannot contain `:'.
5561 test -f "$ac_f" ||
5562 case $ac_f in
5563 [\\/$]*) false;;
5564 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5565 esac ||
5566 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
5567 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
5568 { (exit 1); exit 1; }; };;
5569 esac
5570 ac_file_inputs="$ac_file_inputs $ac_f"
5571 done
5573 # Let's still pretend it is `configure' which instantiates (i.e., don't
5574 # use $as_me), people would be surprised to read:
5575 # /* config.h. Generated by config.status. */
5576 configure_input="Generated from "`IFS=:
5577 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
5578 if test x"$ac_file" != x-; then
5579 configure_input="$ac_file. $configure_input"
5580 { echo "$as_me:$LINENO: creating $ac_file" >&5
5581 echo "$as_me: creating $ac_file" >&6;}
5584 case $ac_tag in
5585 *:-:* | *:-) cat >"$tmp/stdin";;
5586 esac
5588 esac
5590 ac_dir=`$as_dirname -- "$ac_file" ||
5591 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5592 X"$ac_file" : 'X\(//\)[^/]' \| \
5593 X"$ac_file" : 'X\(//\)$' \| \
5594 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5595 echo X"$ac_file" |
5596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5597 s//\1/
5600 /^X\(\/\/\)[^/].*/{
5601 s//\1/
5604 /^X\(\/\/\)$/{
5605 s//\1/
5608 /^X\(\/\).*/{
5609 s//\1/
5612 s/.*/./; q'`
5613 { as_dir="$ac_dir"
5614 case $as_dir in #(
5615 -*) as_dir=./$as_dir;;
5616 esac
5617 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
5618 as_dirs=
5619 while :; do
5620 case $as_dir in #(
5621 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
5622 *) as_qdir=$as_dir;;
5623 esac
5624 as_dirs="'$as_qdir' $as_dirs"
5625 as_dir=`$as_dirname -- "$as_dir" ||
5626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5627 X"$as_dir" : 'X\(//\)[^/]' \| \
5628 X"$as_dir" : 'X\(//\)$' \| \
5629 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5630 echo X"$as_dir" |
5631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5632 s//\1/
5635 /^X\(\/\/\)[^/].*/{
5636 s//\1/
5639 /^X\(\/\/\)$/{
5640 s//\1/
5643 /^X\(\/\).*/{
5644 s//\1/
5647 s/.*/./; q'`
5648 test -d "$as_dir" && break
5649 done
5650 test -z "$as_dirs" || eval "mkdir $as_dirs"
5651 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
5652 echo "$as_me: error: cannot create directory $as_dir" >&2;}
5653 { (exit 1); exit 1; }; }; }
5654 ac_builddir=.
5656 case "$ac_dir" in
5657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5660 # A ".." for each directory in $ac_dir_suffix.
5661 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
5662 case $ac_top_builddir_sub in
5663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5665 esac ;;
5666 esac
5667 ac_abs_top_builddir=$ac_pwd
5668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5669 # for backward compatibility:
5670 ac_top_builddir=$ac_top_build_prefix
5672 case $srcdir in
5673 .) # We are building in place.
5674 ac_srcdir=.
5675 ac_top_srcdir=$ac_top_builddir_sub
5676 ac_abs_top_srcdir=$ac_pwd ;;
5677 [\\/]* | ?:[\\/]* ) # Absolute name.
5678 ac_srcdir=$srcdir$ac_dir_suffix;
5679 ac_top_srcdir=$srcdir
5680 ac_abs_top_srcdir=$srcdir ;;
5681 *) # Relative name.
5682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5683 ac_top_srcdir=$ac_top_build_prefix$srcdir
5684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5685 esac
5686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5689 case $ac_mode in
5692 # CONFIG_FILE
5695 _ACEOF
5697 cat >>$CONFIG_STATUS <<\_ACEOF
5698 # If the template does not know about datarootdir, expand it.
5699 # FIXME: This hack should be removed a few years after 2.60.
5700 ac_datarootdir_hack=; ac_datarootdir_seen=
5702 case `sed -n '/datarootdir/ {
5706 /@datadir@/p
5707 /@docdir@/p
5708 /@infodir@/p
5709 /@localedir@/p
5710 /@mandir@/p
5711 ' $ac_file_inputs` in
5712 *datarootdir*) ac_datarootdir_seen=yes;;
5713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5714 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5715 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5716 _ACEOF
5717 cat >>$CONFIG_STATUS <<_ACEOF
5718 ac_datarootdir_hack='
5719 s&@datadir@&$datadir&g
5720 s&@docdir@&$docdir&g
5721 s&@infodir@&$infodir&g
5722 s&@localedir@&$localedir&g
5723 s&@mandir@&$mandir&g
5724 s&\\\${datarootdir}&$datarootdir&g' ;;
5725 esac
5726 _ACEOF
5728 # Neutralize VPATH when `$srcdir' = `.'.
5729 # Shell code in configure.ac might set extrasub.
5730 # FIXME: do we really want to maintain this feature?
5731 cat >>$CONFIG_STATUS <<_ACEOF
5732 sed "$ac_vpsub
5733 $extrasub
5734 _ACEOF
5735 cat >>$CONFIG_STATUS <<\_ACEOF
5737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5738 s&@configure_input@&$configure_input&;t t
5739 s&@top_builddir@&$ac_top_builddir_sub&;t t
5740 s&@srcdir@&$ac_srcdir&;t t
5741 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5742 s&@top_srcdir@&$ac_top_srcdir&;t t
5743 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5744 s&@builddir@&$ac_builddir&;t t
5745 s&@abs_builddir@&$ac_abs_builddir&;t t
5746 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5747 $ac_datarootdir_hack
5748 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
5750 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5751 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5752 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5753 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5754 which seems to be undefined. Please make sure it is defined." >&5
5755 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5756 which seems to be undefined. Please make sure it is defined." >&2;}
5758 rm -f "$tmp/stdin"
5759 case $ac_file in
5760 -) cat "$tmp/out"; rm -f "$tmp/out";;
5761 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
5762 esac
5767 esac
5769 done # for ac_tag
5772 { (exit 0); exit 0; }
5773 _ACEOF
5774 chmod +x $CONFIG_STATUS
5775 ac_clean_files=$ac_clean_files_save
5778 # configure is writing to config.log, and then calls config.status.
5779 # config.status does its own redirection, appending to config.log.
5780 # Unfortunately, on DOS this fails, as config.log is still kept open
5781 # by configure, so config.status won't be able to write to it; its
5782 # output is simply discarded. So we exec the FD to /dev/null,
5783 # effectively closing config.log, so it can be properly (re)opened and
5784 # appended to by config.status. When coming back to configure, we
5785 # need to make the FD available again.
5786 if test "$no_create" != yes; then
5787 ac_cs_success=:
5788 ac_config_status_args=
5789 test "$silent" = yes &&
5790 ac_config_status_args="$ac_config_status_args --quiet"
5791 exec 5>/dev/null
5792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5793 exec 5>>config.log
5794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5795 # would make configure fail if this is the last instruction.
5796 $ac_cs_success || { (exit 1); exit 1; }