2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43 echo "#! /bin/sh" >conf$$.sh
44 echo "exit 0" >>conf$$.sh
46 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
63 # We need space, tab and new line, in precisely that order. Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
71 # Find who we are. Look in the path if we contain no directory separator.
73 *[\\/]* ) as_myself=$0 ;;
74 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 test -z "$as_dir" && as_dir=.
79 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
90 if test ! -f "$as_myself"; then
91 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
105 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110 eval $as_var=C; export $as_var
112 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134 X"$0" : 'X\(//\)$' \| \
135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 sed '/^.*\/\([^/][^/]*\)\/*$/{
155 if test "x$CONFIG_SHELL" = x; then
156 if (eval ":") 2>/dev/null; then
162 if test $as_have_required = yes && (eval ":
172 as_func_ret_success () {
175 as_func_ret_failure () {
180 if as_func_success; then
184 echo as_func_success failed.
187 if as_func_failure; then
189 echo as_func_failure succeeded.
192 if as_func_ret_success; then
196 echo as_func_ret_success failed.
199 if as_func_ret_failure; then
201 echo as_func_ret_failure succeeded.
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208 echo positional parameters were not saved.
211 test \$exitcode = 0) || { (exit 1); exit 1; }
216 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226 test -z "$as_dir" && as_dir=.
229 for as_base in sh bash ksh sh5; do
230 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
237 for as_shell in $as_candidate_shells $SHELL; do
238 # Try only shells that exist, to save several forks.
239 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in
250 *posix*) set -o posix ;;
259 CONFIG_SHELL=$as_shell
261 if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266 # is contrary to our usage. Disable this feature.
267 alias -g '${1+"$@"}'='"$@"'
270 case `(set -o) 2>/dev/null` in
271 *posix*) set -o posix ;;
287 as_func_ret_success () {
290 as_func_ret_failure () {
295 if as_func_success; then
299 echo as_func_success failed.
302 if as_func_failure; then
304 echo as_func_failure succeeded.
307 if as_func_ret_success; then
311 echo as_func_ret_success failed.
314 if as_func_ret_failure; then
316 echo as_func_ret_failure succeeded.
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
323 echo positional parameters were not saved.
326 test $exitcode = 0) || { (exit 1); exit 1; }
331 test "x$as_lineno_1" != "x$as_lineno_2" &&
332 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
343 if test "x$CONFIG_SHELL" != x; then
344 for as_var in BASH_ENV ENV
345 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 if test $as_have_required = no; then
353 echo This script requires a shell more modern than all the
354 echo shells that I found on your system. Please install a
355 echo modern shell, or manually run the script under such a
356 echo shell if you do have one.
357 { (exit 1); exit 1; }
367 (eval "as_func_return () {
376 as_func_ret_success () {
379 as_func_ret_failure () {
384 if as_func_success; then
388 echo as_func_success failed.
391 if as_func_failure; then
393 echo as_func_failure succeeded.
396 if as_func_ret_success; then
400 echo as_func_ret_success failed.
403 if as_func_ret_failure; then
405 echo as_func_ret_failure succeeded.
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412 echo positional parameters were not saved.
415 test \$exitcode = 0") || {
416 echo No shell found that supports shell functions.
417 echo Please tell autoconf@gnu.org about your system,
418 echo including any error possibly output before this
426 test "x$as_lineno_1" != "x$as_lineno_2" &&
427 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430 # uniformly replaced by the line number. The first 'sed' inserts a
431 # line-number line after each line using $LINENO; the second 'sed'
432 # does the real work. The second script uses 'N' to pair each
433 # line-number line with the line containing $LINENO, and appends
434 # trailing '-' during substitution so that $LINENO is not a special
436 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437 # scripts with optimization help from Paolo Bonzini. Blame Lee
438 # E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456 { (exit 1); exit 1; }; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
473 ECHO_C= ECHO_N= ECHO_T=
477 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485 test "X`expr 00001 : '.*\(...\)'`" = X001; then
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493 rm -f conf$$.dir/conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 # ... but there are two gotchas:
502 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504 # In both cases, we have to default to `cp -p'.
505 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 elif ln conf$$.file conf$$ 2>/dev/null; then
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
515 if mkdir -p . 2>/dev/null; then
518 test -d ./-p && rmdir ./-p
522 if test -x / >/dev/null 2>&1; then
525 if ls -dL / >/dev/null 2>&1; then
532 if test -d "$1"; then
538 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539 ???[sx]*):;;*)false;;esac;fi
543 as_executable_p=$as_test_x
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 exec 7<&0 </dev/null 6>&1
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
563 ac_default_prefix=/usr/local
565 ac_config_libobj_dir=.
571 SHELL=${CONFIG_SHELL-/bin/sh}
573 # Identity of this package.
580 ac_unique_file="rlm_example.c"
581 # Factoring default headers for most tests.
582 ac_includes_default="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
626 program_transform_name
670 ac_precious_vars='build_alias
681 # Initialize some variables set by options.
683 ac_init_version=false
684 # The variables have the same names as the options, with
685 # dashes changed to underlines.
693 program_transform_name=s,x,x,
701 # Installation directory options.
702 # These are left unexpanded so users can "make install exec_prefix=/foo"
703 # and all the variables that are supposed to be based on exec_prefix
704 # by default will actually change.
705 # Use braces instead of parens because sh, perl, etc. also accept them.
706 # (The list follows the same order as the GNU Coding Standards.)
707 bindir='${exec_prefix}/bin'
708 sbindir='${exec_prefix}/sbin'
709 libexecdir='${exec_prefix}/libexec'
710 datarootdir='${prefix}/share'
711 datadir='${datarootdir}'
712 sysconfdir='${prefix}/etc'
713 sharedstatedir='${prefix}/com'
714 localstatedir='${prefix}/var'
715 includedir='${prefix}/include'
716 oldincludedir='/usr/include'
717 docdir='${datarootdir}/doc/${PACKAGE}'
718 infodir='${datarootdir}/info'
723 libdir='${exec_prefix}/lib'
724 localedir='${datarootdir}/locale'
725 mandir='${datarootdir}/man'
731 # If the previous option needs an argument, assign it.
732 if test -n "$ac_prev"; then
733 eval $ac_prev=\$ac_option
739 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
743 # Accept the important Cygnus configure options, so we can diagnose typos.
745 case $ac_dashdash$ac_option in
749 -bindir | --bindir | --bindi | --bind | --bin | --bi)
751 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
754 -build | --build | --buil | --bui | --bu)
755 ac_prev=build_alias ;;
756 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
757 build_alias=$ac_optarg ;;
759 -cache-file | --cache-file | --cache-fil | --cache-fi \
760 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
761 ac_prev=cache_file ;;
762 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
763 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
764 cache_file=$ac_optarg ;;
767 cache_file=config.cache ;;
769 -datadir | --datadir | --datadi | --datad)
771 -datadir=* | --datadir=* | --datadi=* | --datad=*)
772 datadir=$ac_optarg ;;
774 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
775 | --dataroo | --dataro | --datar)
776 ac_prev=datarootdir ;;
777 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
778 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
779 datarootdir=$ac_optarg ;;
781 -disable-* | --disable-*)
782 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
786 { (exit 1); exit 1; }; }
787 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
788 eval enable_$ac_feature=no ;;
790 -docdir | --docdir | --docdi | --doc | --do)
792 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
795 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
797 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
800 -enable-* | --enable-*)
801 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
802 # Reject names that are not valid shell variable names.
803 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
805 { (exit 1); exit 1; }; }
806 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
807 eval enable_$ac_feature=\$ac_optarg ;;
809 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
810 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
811 | --exec | --exe | --ex)
812 ac_prev=exec_prefix ;;
813 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
814 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
815 | --exec=* | --exe=* | --ex=*)
816 exec_prefix=$ac_optarg ;;
818 -gas | --gas | --ga | --g)
819 # Obsolete; use --with-gas.
822 -help | --help | --hel | --he | -h)
824 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
825 ac_init_help=recursive ;;
826 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
827 ac_init_help=short ;;
829 -host | --host | --hos | --ho)
830 ac_prev=host_alias ;;
831 -host=* | --host=* | --hos=* | --ho=*)
832 host_alias=$ac_optarg ;;
834 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
836 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
838 htmldir=$ac_optarg ;;
840 -includedir | --includedir | --includedi | --included | --include \
841 | --includ | --inclu | --incl | --inc)
842 ac_prev=includedir ;;
843 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
844 | --includ=* | --inclu=* | --incl=* | --inc=*)
845 includedir=$ac_optarg ;;
847 -infodir | --infodir | --infodi | --infod | --info | --inf)
849 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
850 infodir=$ac_optarg ;;
852 -libdir | --libdir | --libdi | --libd)
854 -libdir=* | --libdir=* | --libdi=* | --libd=*)
857 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
858 | --libexe | --libex | --libe)
859 ac_prev=libexecdir ;;
860 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
861 | --libexe=* | --libex=* | --libe=*)
862 libexecdir=$ac_optarg ;;
864 -localedir | --localedir | --localedi | --localed | --locale)
866 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
867 localedir=$ac_optarg ;;
869 -localstatedir | --localstatedir | --localstatedi | --localstated \
870 | --localstate | --localstat | --localsta | --localst | --locals)
871 ac_prev=localstatedir ;;
872 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
873 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
874 localstatedir=$ac_optarg ;;
876 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
878 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
882 # Obsolete; use --without-fp.
885 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
886 | --no-cr | --no-c | -n)
889 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
890 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
893 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
894 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
895 | --oldin | --oldi | --old | --ol | --o)
896 ac_prev=oldincludedir ;;
897 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
898 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
899 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
900 oldincludedir=$ac_optarg ;;
902 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
904 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
907 -program-prefix | --program-prefix | --program-prefi | --program-pref \
908 | --program-pre | --program-pr | --program-p)
909 ac_prev=program_prefix ;;
910 -program-prefix=* | --program-prefix=* | --program-prefi=* \
911 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
912 program_prefix=$ac_optarg ;;
914 -program-suffix | --program-suffix | --program-suffi | --program-suff \
915 | --program-suf | --program-su | --program-s)
916 ac_prev=program_suffix ;;
917 -program-suffix=* | --program-suffix=* | --program-suffi=* \
918 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
919 program_suffix=$ac_optarg ;;
921 -program-transform-name | --program-transform-name \
922 | --program-transform-nam | --program-transform-na \
923 | --program-transform-n | --program-transform- \
924 | --program-transform | --program-transfor \
925 | --program-transfo | --program-transf \
926 | --program-trans | --program-tran \
927 | --progr-tra | --program-tr | --program-t)
928 ac_prev=program_transform_name ;;
929 -program-transform-name=* | --program-transform-name=* \
930 | --program-transform-nam=* | --program-transform-na=* \
931 | --program-transform-n=* | --program-transform-=* \
932 | --program-transform=* | --program-transfor=* \
933 | --program-transfo=* | --program-transf=* \
934 | --program-trans=* | --program-tran=* \
935 | --progr-tra=* | --program-tr=* | --program-t=*)
936 program_transform_name=$ac_optarg ;;
938 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
940 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
943 -psdir | --psdir | --psdi | --psd | --ps)
945 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
948 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
949 | -silent | --silent | --silen | --sile | --sil)
952 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
954 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
956 sbindir=$ac_optarg ;;
958 -sharedstatedir | --sharedstatedir | --sharedstatedi \
959 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
960 | --sharedst | --shareds | --shared | --share | --shar \
962 ac_prev=sharedstatedir ;;
963 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
964 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
965 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
967 sharedstatedir=$ac_optarg ;;
969 -site | --site | --sit)
971 -site=* | --site=* | --sit=*)
974 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
976 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
979 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
980 | --syscon | --sysco | --sysc | --sys | --sy)
981 ac_prev=sysconfdir ;;
982 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
983 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
984 sysconfdir=$ac_optarg ;;
986 -target | --target | --targe | --targ | --tar | --ta | --t)
987 ac_prev=target_alias ;;
988 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
989 target_alias=$ac_optarg ;;
991 -v | -verbose | --verbose | --verbos | --verbo | --verb)
994 -version | --version | --versio | --versi | --vers | -V)
998 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid package name: $ac_package" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1004 eval with_$ac_package=\$ac_optarg ;;
1006 -without-* | --without-*)
1007 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010 { echo "$as_me: error: invalid package name: $ac_package" >&2
1011 { (exit 1); exit 1; }; }
1012 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1013 eval with_$ac_package=no ;;
1016 # Obsolete; use --with-x.
1019 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1020 | --x-incl | --x-inc | --x-in | --x-i)
1021 ac_prev=x_includes ;;
1022 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1023 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1024 x_includes=$ac_optarg ;;
1026 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1027 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1028 ac_prev=x_libraries ;;
1029 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1030 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1031 x_libraries=$ac_optarg ;;
1033 -*) { echo "$as_me: error: unrecognized option: $ac_option
1034 Try \`$0 --help' for more information." >&2
1035 { (exit 1); exit 1; }; }
1039 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1043 { (exit 1); exit 1; }; }
1044 eval $ac_envvar=\$ac_optarg
1045 export $ac_envvar ;;
1048 # FIXME: should be removed in autoconf 3.0.
1049 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1050 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1052 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1058 if test -n "$ac_prev"; then
1059 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1060 { echo "$as_me: error: missing argument to $ac_option" >&2
1061 { (exit 1); exit 1; }; }
1064 # Be sure to have absolute directory names.
1065 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1066 datadir sysconfdir sharedstatedir localstatedir includedir \
1067 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1068 libdir localedir mandir
1070 eval ac_val=\$$ac_var
1072 [\\/$]* | ?:[\\/]* ) continue;;
1073 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1075 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1076 { (exit 1); exit 1; }; }
1079 # There might be people who depend on the old broken behavior: `$host'
1080 # used to hold the argument of --host etc.
1081 # FIXME: To remove some day.
1084 target=$target_alias
1086 # FIXME: To remove some day.
1087 if test "x$host_alias" != x; then
1088 if test "x$build_alias" = x; then
1089 cross_compiling=maybe
1090 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1091 If a cross compiler is detected then cross compile mode will be used." >&2
1092 elif test "x$build_alias" != "x$host_alias"; then
1098 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1100 test "$silent" = yes && exec 6>/dev/null
1103 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1104 ac_ls_di=`ls -di .` &&
1105 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1106 { echo "$as_me: error: Working directory cannot be determined" >&2
1107 { (exit 1); exit 1; }; }
1108 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1109 { echo "$as_me: error: pwd does not report name of working directory" >&2
1110 { (exit 1); exit 1; }; }
1113 # Find the source files, if location was not specified.
1114 if test -z "$srcdir"; then
1115 ac_srcdir_defaulted=yes
1116 # Try the directory containing this script, then the parent directory.
1117 ac_confdir=`$as_dirname -- "$0" ||
1118 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1119 X"$0" : 'X\(//\)[^/]' \| \
1120 X"$0" : 'X\(//\)$' \| \
1121 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1141 if test ! -r "$srcdir/$ac_unique_file"; then
1145 ac_srcdir_defaulted=no
1147 if test ! -r "$srcdir/$ac_unique_file"; then
1148 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1149 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1150 { (exit 1); exit 1; }; }
1152 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1154 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1155 { (exit 1); exit 1; }; }
1157 # When building in place, set srcdir=.
1158 if test "$ac_abs_confdir" = "$ac_pwd"; then
1161 # Remove unnecessary trailing slashes from srcdir.
1162 # Double slashes in file names in object file debugging info
1163 # mess up M-x gdb in Emacs.
1165 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1167 for ac_var in $ac_precious_vars; do
1168 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1169 eval ac_env_${ac_var}_value=\$${ac_var}
1170 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1171 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1175 # Report the --help message.
1177 if test "$ac_init_help" = "long"; then
1178 # Omit some internal or obsolete options to make the list less imposing.
1179 # This message is too long to be a string in the A/UX 3.1 sh.
1181 \`configure' configures this package to adapt to many kinds of systems.
1183 Usage: $0 [OPTION]... [VAR=VALUE]...
1185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1186 VAR=VALUE. See below for descriptions of some of the useful variables.
1188 Defaults for the options are specified in brackets.
1191 -h, --help display this help and exit
1192 --help=short display options specific to this package
1193 --help=recursive display the short help of all the included packages
1194 -V, --version display version information and exit
1195 -q, --quiet, --silent do not print \`checking...' messages
1196 --cache-file=FILE cache test results in FILE [disabled]
1197 -C, --config-cache alias for \`--cache-file=config.cache'
1198 -n, --no-create do not create output files
1199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1201 Installation directories:
1202 --prefix=PREFIX install architecture-independent files in PREFIX
1203 [$ac_default_prefix]
1204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1207 By default, \`make install' will install all the files in
1208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1210 for instance \`--prefix=\$HOME'.
1212 For better control, use the options below.
1214 Fine tuning of the installation directories:
1215 --bindir=DIR user executables [EPREFIX/bin]
1216 --sbindir=DIR system admin executables [EPREFIX/sbin]
1217 --libexecdir=DIR program executables [EPREFIX/libexec]
1218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1221 --libdir=DIR object code libraries [EPREFIX/lib]
1222 --includedir=DIR C header files [PREFIX/include]
1223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1226 --infodir=DIR info documentation [DATAROOTDIR/info]
1227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1228 --mandir=DIR man documentation [DATAROOTDIR/man]
1229 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1230 --htmldir=DIR html documentation [DOCDIR]
1231 --dvidir=DIR dvi documentation [DOCDIR]
1232 --pdfdir=DIR pdf documentation [DOCDIR]
1233 --psdir=DIR ps documentation [DOCDIR]
1240 if test -n "$ac_init_help"; then
1244 Some influential environment variables:
1245 CC C compiler command
1246 CFLAGS C compiler flags
1247 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1248 nonstandard directory <lib dir>
1249 LIBS libraries to pass to the linker, e.g. -l<library>
1250 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1251 you have headers in a nonstandard directory <include dir>
1254 Use these variables to override the choices made by `configure' or to help
1255 it to find libraries and programs with nonstandard names/locations.
1261 if test "$ac_init_help" = "recursive"; then
1262 # If there are subdirs, report their specific --help.
1263 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1264 test -d "$ac_dir" || continue
1268 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1270 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1271 # A ".." for each directory in $ac_dir_suffix.
1272 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1273 case $ac_top_builddir_sub in
1274 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1275 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1278 ac_abs_top_builddir=$ac_pwd
1279 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1280 # for backward compatibility:
1281 ac_top_builddir=$ac_top_build_prefix
1284 .) # We are building in place.
1286 ac_top_srcdir=$ac_top_builddir_sub
1287 ac_abs_top_srcdir=$ac_pwd ;;
1288 [\\/]* | ?:[\\/]* ) # Absolute name.
1289 ac_srcdir=$srcdir$ac_dir_suffix;
1290 ac_top_srcdir=$srcdir
1291 ac_abs_top_srcdir=$srcdir ;;
1293 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1294 ac_top_srcdir=$ac_top_build_prefix$srcdir
1295 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1297 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1299 cd "$ac_dir" || { ac_status=$?; continue; }
1300 # Check for guested configure.
1301 if test -f "$ac_srcdir/configure.gnu"; then
1303 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1304 elif test -f "$ac_srcdir/configure"; then
1306 $SHELL "$ac_srcdir/configure" --help=recursive
1308 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1310 cd "$ac_pwd" || { ac_status=$?; break; }
1314 test -n "$ac_init_help" && exit $ac_status
1315 if $ac_init_version; then
1318 generated by GNU Autoconf 2.61
1320 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1321 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1322 This configure script is free software; the Free Software Foundation
1323 gives unlimited permission to copy, distribute and modify it.
1327 cat >config.log <<_ACEOF
1328 This file contains any messages produced by compilers while
1329 running configure, to aid debugging if configure makes a mistake.
1331 It was created by $as_me, which was
1332 generated by GNU Autoconf 2.61. Invocation command line was
1344 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1345 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1346 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1347 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1348 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1350 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1351 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1353 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1354 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1355 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1356 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1357 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1358 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1359 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1367 test -z "$as_dir" && as_dir=.
1368 echo "PATH: $as_dir"
1384 # Keep a trace of the command line.
1385 # Strip out --no-create and --no-recursion so they do not pile up.
1386 # Strip out --silent because we don't want to record it for future runs.
1387 # Also quote any args containing shell meta-characters.
1388 # Make two passes to allow for proper duplicate-argument suppression.
1392 ac_must_keep_next=false
1398 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400 | -silent | --silent | --silen | --sile | --sil)
1403 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1406 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1408 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1409 if test $ac_must_keep_next = true; then
1410 ac_must_keep_next=false # Got value, back to normal.
1413 *=* | --config-cache | -C | -disable-* | --disable-* \
1414 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1415 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1416 | -with-* | --with-* | -without-* | --without-* | --x)
1417 case "$ac_configure_args0 " in
1418 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1421 -* ) ac_must_keep_next=true ;;
1424 ac_configure_args="$ac_configure_args '$ac_arg'"
1429 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1430 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432 # When interrupted or exit'd, cleanup temporary files, and complete
1433 # config.log. We remove comments because anyway the quotes in there
1434 # would cause problems or look ugly.
1435 # WARNING: Use '\'' to represent an apostrophe within the trap.
1436 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1437 trap 'exit_status=$?
1438 # Save into config.log some information that might help in debugging.
1443 ## ---------------- ##
1444 ## Cache variables. ##
1445 ## ---------------- ##
1448 # The following way of writing the cache mishandles newlines in values,
1450 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1451 eval ac_val=\$$ac_var
1455 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1456 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1459 _ | IFS | as_nl) ;; #(
1460 *) $as_unset $ac_var ;;
1465 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1466 *${as_nl}ac_space=\ *)
1468 "s/'\''/'\''\\\\'\'''\''/g;
1469 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1480 ## ----------------- ##
1481 ## Output variables. ##
1482 ## ----------------- ##
1485 for ac_var in $ac_subst_vars
1487 eval ac_val=\$$ac_var
1489 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1491 echo "$ac_var='\''$ac_val'\''"
1495 if test -n "$ac_subst_files"; then
1497 ## ------------------- ##
1498 ## File substitutions. ##
1499 ## ------------------- ##
1502 for ac_var in $ac_subst_files
1504 eval ac_val=\$$ac_var
1506 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1508 echo "$ac_var='\''$ac_val'\''"
1513 if test -s confdefs.h; then
1523 test "$ac_signal" != 0 &&
1524 echo "$as_me: caught signal $ac_signal"
1525 echo "$as_me: exit $exit_status"
1527 rm -f core *.core core.conftest.* &&
1528 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1531 for ac_signal in 1 2 13 15; do
1532 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1536 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1537 rm -f -r conftest* confdefs.h
1539 # Predefined preprocessor variables.
1541 cat >>confdefs.h <<_ACEOF
1542 #define PACKAGE_NAME "$PACKAGE_NAME"
1546 cat >>confdefs.h <<_ACEOF
1547 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1551 cat >>confdefs.h <<_ACEOF
1552 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1556 cat >>confdefs.h <<_ACEOF
1557 #define PACKAGE_STRING "$PACKAGE_STRING"
1561 cat >>confdefs.h <<_ACEOF
1562 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1566 # Let the site file select an alternate cache file if it wants to.
1567 # Prefer explicitly selected file to automatically selected ones.
1568 if test -n "$CONFIG_SITE"; then
1569 set x "$CONFIG_SITE"
1570 elif test "x$prefix" != xNONE; then
1571 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1573 set x "$ac_default_prefix/share/config.site" \
1574 "$ac_default_prefix/etc/config.site"
1579 if test -r "$ac_site_file"; then
1580 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1581 echo "$as_me: loading site script $ac_site_file" >&6;}
1582 sed 's/^/| /' "$ac_site_file" >&5
1587 if test -r "$cache_file"; then
1588 # Some versions of bash will fail to source /dev/null (special
1589 # files actually), so we avoid doing that.
1590 if test -f "$cache_file"; then
1591 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1592 echo "$as_me: loading cache $cache_file" >&6;}
1594 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1595 *) . "./$cache_file";;
1599 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1600 echo "$as_me: creating cache $cache_file" >&6;}
1604 # Check that the precious variables saved in the cache have kept the same
1606 ac_cache_corrupted=false
1607 for ac_var in $ac_precious_vars; do
1608 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1609 eval ac_new_set=\$ac_env_${ac_var}_set
1610 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1611 eval ac_new_val=\$ac_env_${ac_var}_value
1612 case $ac_old_set,$ac_new_set in
1614 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1615 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1616 ac_cache_corrupted=: ;;
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1619 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1620 ac_cache_corrupted=: ;;
1623 if test "x$ac_old_val" != "x$ac_new_val"; then
1624 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1625 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1626 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1627 echo "$as_me: former value: $ac_old_val" >&2;}
1628 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1629 echo "$as_me: current value: $ac_new_val" >&2;}
1630 ac_cache_corrupted=:
1633 # Pass precious variables to config.status.
1634 if test "$ac_new_set" = set; then
1636 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1637 *) ac_arg=$ac_var=$ac_new_val ;;
1639 case " $ac_configure_args " in
1640 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1641 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1645 if $ac_cache_corrupted; then
1646 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1647 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1648 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1649 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1650 { (exit 1); exit 1; }; }
1670 ac_cpp='$CPP $CPPFLAGS'
1671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1679 if test x$with_rlm_example != xno; then
1682 ac_cpp='$CPP $CPPFLAGS'
1683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1686 if test -n "$ac_tool_prefix"; then
1687 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1688 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1704 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test -n "$CC"; then
1716 { echo "$as_me:$LINENO: result: $CC" >&5
1717 echo "${ECHO_T}$CC" >&6; }
1719 { echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6; }
1725 if test -z "$ac_cv_prog_CC"; then
1727 # Extract the first word of "gcc", so it can be a program name with args.
1728 set dummy gcc; ac_word=$2
1729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1734 if test -n "$ac_ct_CC"; then
1735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1741 test -z "$as_dir" && as_dir=.
1742 for ac_exec_ext in '' $ac_executable_extensions; do
1743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1744 ac_cv_prog_ac_ct_CC="gcc"
1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1755 if test -n "$ac_ct_CC"; then
1756 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1757 echo "${ECHO_T}$ac_ct_CC" >&6; }
1759 { echo "$as_me:$LINENO: result: no" >&5
1760 echo "${ECHO_T}no" >&6; }
1763 if test "x$ac_ct_CC" = x; then
1766 case $cross_compiling:$ac_tool_warned in
1768 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1769 whose name does not start with the host triplet. If you think this
1770 configuration is useful to you, please write to autoconf@gnu.org." >&5
1771 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1772 whose name does not start with the host triplet. If you think this
1773 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1774 ac_tool_warned=yes ;;
1782 if test -z "$CC"; then
1783 if test -n "$ac_tool_prefix"; then
1784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1785 set dummy ${ac_tool_prefix}cc; ac_word=$2
1786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1788 if test "${ac_cv_prog_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$CC"; then
1792 ac_cv_prog_CC="$CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1801 ac_cv_prog_CC="${ac_tool_prefix}cc"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 if test -n "$CC"; then
1813 { echo "$as_me:$LINENO: result: $CC" >&5
1814 echo "${ECHO_T}$CC" >&6; }
1816 { echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6; }
1823 if test -z "$CC"; then
1824 # Extract the first word of "cc", so it can be a program name with args.
1825 set dummy cc; ac_word=$2
1826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1828 if test "${ac_cv_prog_CC+set}" = set; then
1829 echo $ECHO_N "(cached) $ECHO_C" >&6
1831 if test -n "$CC"; then
1832 ac_cv_prog_CC="$CC" # Let the user override the test.
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 for ac_exec_ext in '' $ac_executable_extensions; do
1841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1843 ac_prog_rejected=yes
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 if test $ac_prog_rejected = yes; then
1855 # We found a bogon in the path, so make sure we never use it.
1856 set dummy $ac_cv_prog_CC
1858 if test $# != 0; then
1859 # We chose a different compiler from the bogus one.
1860 # However, it has the same basename, so the bogon will be chosen
1861 # first if we set CC to just the basename; use the full file name.
1863 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1869 if test -n "$CC"; then
1870 { echo "$as_me:$LINENO: result: $CC" >&5
1871 echo "${ECHO_T}$CC" >&6; }
1873 { echo "$as_me:$LINENO: result: no" >&5
1874 echo "${ECHO_T}no" >&6; }
1879 if test -z "$CC"; then
1880 if test -n "$ac_tool_prefix"; then
1881 for ac_prog in cl.exe
1883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1887 if test "${ac_cv_prog_CC+set}" = set; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1890 if test -n "$CC"; then
1891 ac_cv_prog_CC="$CC" # Let the user override the test.
1893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 test -z "$as_dir" && as_dir=.
1898 for ac_exec_ext in '' $ac_executable_extensions; do
1899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911 if test -n "$CC"; then
1912 { echo "$as_me:$LINENO: result: $CC" >&5
1913 echo "${ECHO_T}$CC" >&6; }
1915 { echo "$as_me:$LINENO: result: no" >&5
1916 echo "${ECHO_T}no" >&6; }
1920 test -n "$CC" && break
1923 if test -z "$CC"; then
1925 for ac_prog in cl.exe
1927 # Extract the first word of "$ac_prog", so it can be a program name with args.
1928 set dummy $ac_prog; ac_word=$2
1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$ac_ct_CC"; then
1935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944 ac_cv_prog_ac_ct_CC="$ac_prog"
1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1955 if test -n "$ac_ct_CC"; then
1956 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1957 echo "${ECHO_T}$ac_ct_CC" >&6; }
1959 { echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6; }
1964 test -n "$ac_ct_CC" && break
1967 if test "x$ac_ct_CC" = x; then
1970 case $cross_compiling:$ac_tool_warned in
1972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1973 whose name does not start with the host triplet. If you think this
1974 configuration is useful to you, please write to autoconf@gnu.org." >&5
1975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1976 whose name does not start with the host triplet. If you think this
1977 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1978 ac_tool_warned=yes ;;
1987 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1988 See \`config.log' for more details." >&5
1989 echo "$as_me: error: no acceptable C compiler found in \$PATH
1990 See \`config.log' for more details." >&2;}
1991 { (exit 1); exit 1; }; }
1993 # Provide some information about the compiler.
1994 echo "$as_me:$LINENO: checking for C compiler version" >&5
1995 ac_compiler=`set X $ac_compile; echo $2`
1996 { (ac_try="$ac_compiler --version >&5"
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2002 (eval "$ac_compiler --version >&5") 2>&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006 { (ac_try="$ac_compiler -v >&5"
2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2009 *) ac_try_echo=$ac_try;;
2011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2012 (eval "$ac_compiler -v >&5") 2>&5
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016 { (ac_try="$ac_compiler -V >&5"
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2022 (eval "$ac_compiler -V >&5") 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2027 cat >conftest.$ac_ext <<_ACEOF
2030 cat confdefs.h >>conftest.$ac_ext
2031 cat >>conftest.$ac_ext <<_ACEOF
2032 /* end confdefs.h. */
2042 ac_clean_files_save=$ac_clean_files
2043 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2044 # Try to create an executable without -o first, disregard a.out.
2045 # It will help us diagnose broken compilers, and finding out an intuition
2047 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2048 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2051 # List of possible output files, starting from the most likely.
2052 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2053 # only as a last resort. b.out is created by i960 compilers.
2054 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2056 # The IRIX 6 linker writes into existing files which may not be
2057 # executable, retaining their permissions. Remove them first so a
2058 # subsequent execution test works.
2060 for ac_file in $ac_files
2063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2064 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2069 if { (ac_try="$ac_link_default"
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2075 (eval "$ac_link_default") 2>&5
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }; then
2079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2080 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2081 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2082 # so that the user can short-circuit this test for compilers unknown to
2084 for ac_file in $ac_files ''
2086 test -f "$ac_file" || continue
2088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2091 # We found the default executable, but exeext='' is most
2095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2099 # We set ac_cv_exeext here because the later test for it is not
2100 # safe: cross compilers may not add the suffix if given an `-o'
2101 # argument, so we may need to know it at that point already.
2102 # Even if this section looks crufty: it has the advantage of
2109 test "$ac_cv_exeext" = no && ac_cv_exeext=
2115 { echo "$as_me:$LINENO: result: $ac_file" >&5
2116 echo "${ECHO_T}$ac_file" >&6; }
2117 if test -z "$ac_file"; then
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: C compiler cannot create executables
2124 See \`config.log' for more details." >&2;}
2125 { (exit 77); exit 77; }; }
2128 ac_exeext=$ac_cv_exeext
2130 # Check that the compiler produces executables we can run. If not, either
2131 # the compiler is broken, or we cross compile.
2132 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137 if { ac_try='./$ac_file'
2138 { (case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2143 (eval "$ac_try") 2>&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 if test "$cross_compiling" = maybe; then
2152 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2162 { echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6; }
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check that the compiler produces executables we can run. If not, either
2168 # the compiler is broken, or we cross compile.
2169 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2171 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6; }
2174 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2176 if { (ac_try="$ac_link"
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182 (eval "$ac_link") 2>&5
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; then
2186 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2187 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2188 # work properly (i.e., refer to `conftest.exe'), while it won't with
2190 for ac_file in conftest.exe conftest conftest.*; do
2191 test -f "$ac_file" || continue
2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2201 See \`config.log' for more details." >&5
2202 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2203 See \`config.log' for more details." >&2;}
2204 { (exit 1); exit 1; }; }
2207 rm -f conftest$ac_cv_exeext
2208 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2209 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2211 rm -f conftest.$ac_ext
2212 EXEEXT=$ac_cv_exeext
2214 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2215 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2216 if test "${ac_cv_objext+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 cat >conftest.$ac_ext <<_ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2234 rm -f conftest.o conftest.obj
2235 if { (ac_try="$ac_compile"
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2241 (eval "$ac_compile") 2>&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 for ac_file in conftest.o conftest.obj conftest.*; do
2246 test -f "$ac_file" || continue;
2248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2254 echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2266 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2267 echo "${ECHO_T}$ac_cv_objext" >&6; }
2268 OBJEXT=$ac_cv_objext
2270 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2275 cat >conftest.$ac_ext <<_ACEOF
2278 cat confdefs.h >>conftest.$ac_ext
2279 cat >>conftest.$ac_ext <<_ACEOF
2280 /* end confdefs.h. */
2293 rm -f conftest.$ac_objext
2294 if { (ac_try="$ac_compile"
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2300 (eval "$ac_compile") 2>conftest.er1
2302 grep -v '^ *+' conftest.er1 >conftest.err
2304 cat conftest.err >&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } && {
2307 test -z "$ac_c_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2322 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2323 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2324 GCC=`test $ac_compiler_gnu = yes && echo yes`
2325 ac_test_CFLAGS=${CFLAGS+set}
2326 ac_save_CFLAGS=$CFLAGS
2327 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2328 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_cc_g+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_save_c_werror_flag=$ac_c_werror_flag
2333 ac_c_werror_flag=yes
2336 cat >conftest.$ac_ext <<_ACEOF
2339 cat confdefs.h >>conftest.$ac_ext
2340 cat >>conftest.$ac_ext <<_ACEOF
2341 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (ac_try="$ac_compile"
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358 (eval "$ac_compile") 2>conftest.er1
2360 grep -v '^ *+' conftest.er1 >conftest.err
2362 cat conftest.err >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); } && {
2365 test -z "$ac_c_werror_flag" ||
2366 test ! -s conftest.err
2367 } && test -s conftest.$ac_objext; then
2370 echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 rm -f conftest.$ac_objext
2390 if { (ac_try="$ac_compile"
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_compile") 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } && {
2403 test -z "$ac_c_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest.$ac_objext; then
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2411 ac_c_werror_flag=$ac_save_c_werror_flag
2413 cat >conftest.$ac_ext <<_ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2428 rm -f conftest.$ac_objext
2429 if { (ac_try="$ac_compile"
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2435 (eval "$ac_compile") 2>conftest.er1
2437 grep -v '^ *+' conftest.er1 >conftest.err
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } && {
2442 test -z "$ac_c_werror_flag" ||
2443 test ! -s conftest.err
2444 } && test -s conftest.$ac_objext; then
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 ac_c_werror_flag=$ac_save_c_werror_flag
2462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2464 if test "$ac_test_CFLAGS" = set; then
2465 CFLAGS=$ac_save_CFLAGS
2466 elif test $ac_cv_prog_cc_g = yes; then
2467 if test "$GCC" = yes; then
2473 if test "$GCC" = yes; then
2479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_cc_c89+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 ac_cv_prog_cc_c89=no
2486 cat >conftest.$ac_ext <<_ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2494 #include <sys/types.h>
2495 #include <sys/stat.h>
2496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2497 struct buf { int x; };
2498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2499 static char *e (p, i)
2505 static char *f (char * (*g) (char **, int), char **p, ...)
2510 s = g (p, va_arg (v,int));
2515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2516 function prototypes and stuff, but not '\xHH' hex character constants.
2517 These don't provoke an error unfortunately, instead are silently treated
2518 as 'x'. The following induces an error, until -std is added to get
2519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2520 array size at least. It's necessary to write '\x00'==0 to get something
2521 that's true only with -std. */
2522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2525 inside strings and character constants. */
2527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2529 int test (int i, double x);
2530 struct s1 {int (*f) (int a);};
2531 struct s2 {int (*f) (double a);};
2532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2546 CC="$ac_save_CC $ac_arg"
2547 rm -f conftest.$ac_objext
2548 if { (ac_try="$ac_compile"
2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551 *) ac_try_echo=$ac_try;;
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554 (eval "$ac_compile") 2>conftest.er1
2556 grep -v '^ *+' conftest.er1 >conftest.err
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } && {
2561 test -z "$ac_c_werror_flag" ||
2562 test ! -s conftest.err
2563 } && test -s conftest.$ac_objext; then
2564 ac_cv_prog_cc_c89=$ac_arg
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2572 rm -f core conftest.err conftest.$ac_objext
2573 test "x$ac_cv_prog_cc_c89" != "xno" && break
2575 rm -f conftest.$ac_ext
2580 case "x$ac_cv_prog_cc_c89" in
2582 { echo "$as_me:$LINENO: result: none needed" >&5
2583 echo "${ECHO_T}none needed" >&6; } ;;
2585 { echo "$as_me:$LINENO: result: unsupported" >&5
2586 echo "${ECHO_T}unsupported" >&6; } ;;
2588 CC="$CC $ac_cv_prog_cc_c89"
2589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2590 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2606 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2607 # On Suns, sometimes $CPP names a directory.
2608 if test -n "$CPP" && test -d "$CPP"; then
2611 if test -z "$CPP"; then
2612 if test "${ac_cv_prog_CPP+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 # Double quotes because CPP needs to be expanded
2616 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2619 for ac_c_preproc_warn_flag in '' yes
2621 # Use a header file that comes with gcc, so configuring glibc
2622 # with a fresh cross-compiler works.
2623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2624 # <limits.h> exists even on freestanding compilers.
2625 # On the NeXT, cc -E runs the code through the compiler's parser,
2626 # not just through cpp. "Syntax error" is here to catch this case.
2627 cat >conftest.$ac_ext <<_ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h. */
2634 # include <limits.h>
2636 # include <assert.h>
2640 if { (ac_try="$ac_cpp conftest.$ac_ext"
2642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643 *) ac_try_echo=$ac_try;;
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } >/dev/null && {
2653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2654 test ! -s conftest.err
2658 echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2661 # Broken: fails on valid input.
2665 rm -f conftest.err conftest.$ac_ext
2667 # OK, works on sane cases. Now check whether nonexistent headers
2668 # can be detected and how.
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 #include <ac_nonexistent.h>
2677 if { (ac_try="$ac_cpp conftest.$ac_ext"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2685 grep -v '^ *+' conftest.er1 >conftest.err
2687 cat conftest.err >&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } >/dev/null && {
2690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2691 test ! -s conftest.err
2693 # Broken: success on invalid input.
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 # Passes both tests.
2704 rm -f conftest.err conftest.$ac_ext
2707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2708 rm -f conftest.err conftest.$ac_ext
2709 if $ac_preproc_ok; then
2721 { echo "$as_me:$LINENO: result: $CPP" >&5
2722 echo "${ECHO_T}$CPP" >&6; }
2724 for ac_c_preproc_warn_flag in '' yes
2726 # Use a header file that comes with gcc, so configuring glibc
2727 # with a fresh cross-compiler works.
2728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2729 # <limits.h> exists even on freestanding compilers.
2730 # On the NeXT, cc -E runs the code through the compiler's parser,
2731 # not just through cpp. "Syntax error" is here to catch this case.
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2739 # include <limits.h>
2741 # include <assert.h>
2745 if { (ac_try="$ac_cpp conftest.$ac_ext"
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2753 grep -v '^ *+' conftest.er1 >conftest.err
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } >/dev/null && {
2758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 # Broken: fails on valid input.
2770 rm -f conftest.err conftest.$ac_ext
2772 # OK, works on sane cases. Now check whether nonexistent headers
2773 # can be detected and how.
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2780 #include <ac_nonexistent.h>
2782 if { (ac_try="$ac_cpp conftest.$ac_ext"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } >/dev/null && {
2795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2796 test ! -s conftest.err
2798 # Broken: success on invalid input.
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2804 # Passes both tests.
2809 rm -f conftest.err conftest.$ac_ext
2812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2813 rm -f conftest.err conftest.$ac_ext
2814 if $ac_preproc_ok; then
2817 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2818 See \`config.log' for more details." >&5
2819 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2820 See \`config.log' for more details." >&2;}
2821 { (exit 1); exit 1; }; }
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 { echo "$as_me:$LINENO: checking for printf in -lc" >&5
2833 echo $ECHO_N "checking for printf in -lc... $ECHO_C" >&6; }
2834 if test "${ac_cv_lib_c_printf+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 ac_check_lib_save_LIBS=$LIBS
2839 cat >conftest.$ac_ext <<_ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h. */
2846 /* Override any GCC internal prototype to avoid an error.
2847 Use char because int might match the return type of a GCC
2848 builtin and then its argument prototype would still apply. */
2861 rm -f conftest.$ac_objext conftest$ac_exeext
2862 if { (ac_try="$ac_link"
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_link") 2>conftest.er1
2870 grep -v '^ *+' conftest.er1 >conftest.err
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } && {
2875 test -z "$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2877 } && test -s conftest$ac_exeext &&
2878 $as_test_x conftest$ac_exeext; then
2879 ac_cv_lib_c_printf=yes
2881 echo "$as_me: failed program was:" >&5
2882 sed 's/^/| /' conftest.$ac_ext >&5
2884 ac_cv_lib_c_printf=no
2887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2888 conftest$ac_exeext conftest.$ac_ext
2889 LIBS=$ac_check_lib_save_LIBS
2891 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_printf" >&5
2892 echo "${ECHO_T}$ac_cv_lib_c_printf" >&6; }
2893 if test $ac_cv_lib_c_printf = yes; then
2894 example_ldflags="$example_ldflags -lc"
2902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
2904 if test "${ac_cv_path_GREP+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 # Extract the first word of "grep ggrep" to use in msg output
2908 if test -z "$GREP"; then
2909 set dummy grep ggrep; ac_prog_name=$2
2910 if test "${ac_cv_path_GREP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 ac_path_GREP_found=false
2914 # Loop through the user's path and test for each of PROGNAME-LIST
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2919 test -z "$as_dir" && as_dir=.
2920 for ac_prog in grep ggrep; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2923 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2924 # Check for GNU ac_path_GREP and select it if it is found.
2925 # Check for GNU $ac_path_GREP
2926 case `"$ac_path_GREP" --version 2>&1` in
2928 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2931 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
2934 cat "conftest.in" "conftest.in" >"conftest.tmp"
2935 mv "conftest.tmp" "conftest.in"
2936 cp "conftest.in" "conftest.nl"
2937 echo 'GREP' >> "conftest.nl"
2938 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2940 ac_count=`expr $ac_count + 1`
2941 if test $ac_count -gt ${ac_path_GREP_max-0}; then
2942 # Best one so far, save it but keep looking for a better one
2943 ac_cv_path_GREP="$ac_path_GREP"
2944 ac_path_GREP_max=$ac_count
2946 # 10*(2^10) chars as input seems more than enough
2947 test $ac_count -gt 10 && break
2949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2953 $ac_path_GREP_found && break 3
2963 GREP="$ac_cv_path_GREP"
2964 if test -z "$GREP"; then
2965 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2967 { (exit 1); exit 1; }; }
2971 ac_cv_path_GREP=$GREP
2976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
2978 GREP="$ac_cv_path_GREP"
2981 { echo "$as_me:$LINENO: checking for egrep" >&5
2982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
2983 if test "${ac_cv_path_EGREP+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2987 then ac_cv_path_EGREP="$GREP -E"
2989 # Extract the first word of "egrep" to use in msg output
2990 if test -z "$EGREP"; then
2991 set dummy egrep; ac_prog_name=$2
2992 if test "${ac_cv_path_EGREP+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 ac_path_EGREP_found=false
2996 # Loop through the user's path and test for each of PROGNAME-LIST
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3001 test -z "$as_dir" && as_dir=.
3002 for ac_prog in egrep; do
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3005 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3006 # Check for GNU ac_path_EGREP and select it if it is found.
3007 # Check for GNU $ac_path_EGREP
3008 case `"$ac_path_EGREP" --version 2>&1` in
3010 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3013 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3016 cat "conftest.in" "conftest.in" >"conftest.tmp"
3017 mv "conftest.tmp" "conftest.in"
3018 cp "conftest.in" "conftest.nl"
3019 echo 'EGREP' >> "conftest.nl"
3020 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3022 ac_count=`expr $ac_count + 1`
3023 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3024 # Best one so far, save it but keep looking for a better one
3025 ac_cv_path_EGREP="$ac_path_EGREP"
3026 ac_path_EGREP_max=$ac_count
3028 # 10*(2^10) chars as input seems more than enough
3029 test $ac_count -gt 10 && break
3031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3035 $ac_path_EGREP_found && break 3
3045 EGREP="$ac_cv_path_EGREP"
3046 if test -z "$EGREP"; then
3047 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3049 { (exit 1); exit 1; }; }
3053 ac_cv_path_EGREP=$EGREP
3059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3061 EGREP="$ac_cv_path_EGREP"
3064 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3066 if test "${ac_cv_header_stdc+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 cat >conftest.$ac_ext <<_ACEOF
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3088 rm -f conftest.$ac_objext
3089 if { (ac_try="$ac_compile"
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3097 grep -v '^ *+' conftest.er1 >conftest.err
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_c_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3105 ac_cv_header_stdc=yes
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_cv_header_stdc=no
3113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115 if test $ac_cv_header_stdc = yes; then
3116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3127 $EGREP "memchr" >/dev/null 2>&1; then
3130 ac_cv_header_stdc=no
3136 if test $ac_cv_header_stdc = yes; then
3137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3148 $EGREP "free" >/dev/null 2>&1; then
3151 ac_cv_header_stdc=no
3157 if test $ac_cv_header_stdc = yes; then
3158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3159 if test "$cross_compiling" = yes; then
3162 cat >conftest.$ac_ext <<_ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3170 #if ((' ' & 0x0FF) == 0x020)
3171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3174 # define ISLOWER(c) \
3175 (('a' <= (c) && (c) <= 'i') \
3176 || ('j' <= (c) && (c) <= 'r') \
3177 || ('s' <= (c) && (c) <= 'z'))
3178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3186 for (i = 0; i < 256; i++)
3187 if (XOR (islower (i), ISLOWER (i))
3188 || toupper (i) != TOUPPER (i))
3193 rm -f conftest$ac_exeext
3194 if { (ac_try="$ac_link"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_link") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3215 echo "$as_me: program exited with status $ac_status" >&5
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3220 ac_cv_header_stdc=no
3222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3228 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3229 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3230 if test $ac_cv_header_stdc = yes; then
3232 cat >>confdefs.h <<\_ACEOF
3233 #define STDC_HEADERS 1
3238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249 inttypes.h stdint.h unistd.h
3251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3263 $ac_includes_default
3265 #include <$ac_header>
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>conftest.er1
3276 grep -v '^ *+' conftest.er1 >conftest.err
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } && {
3281 test -z "$ac_c_werror_flag" ||
3282 test ! -s conftest.err
3283 } && test -s conftest.$ac_objext; then
3284 eval "$as_ac_Header=yes"
3286 echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3289 eval "$as_ac_Header=no"
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 ac_res=`eval echo '${'$as_ac_Header'}'`
3295 { echo "$as_me:$LINENO: result: $ac_res" >&5
3296 echo "${ECHO_T}$ac_res" >&6; }
3297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3298 cat >>confdefs.h <<_ACEOF
3299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3307 if test "${ac_cv_header_stdio_h+set}" = set; then
3308 { echo "$as_me:$LINENO: checking for stdio.h" >&5
3309 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
3310 if test "${ac_cv_header_stdio_h+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
3314 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
3316 # Is the header compilable?
3317 { echo "$as_me:$LINENO: checking stdio.h usability" >&5
3318 echo $ECHO_N "checking stdio.h usability... $ECHO_C" >&6; }
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3325 $ac_includes_default
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3345 ac_header_compiler=yes
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 ac_header_compiler=no
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3355 echo "${ECHO_T}$ac_header_compiler" >&6; }
3357 # Is the header present?
3358 { echo "$as_me:$LINENO: checking stdio.h presence" >&5
3359 echo $ECHO_N "checking stdio.h presence... $ECHO_C" >&6; }
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3368 if { (ac_try="$ac_cpp conftest.$ac_ext"
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3376 grep -v '^ *+' conftest.er1 >conftest.err
3378 cat conftest.err >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); } >/dev/null && {
3381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3382 test ! -s conftest.err
3384 ac_header_preproc=yes
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 ac_header_preproc=no
3392 rm -f conftest.err conftest.$ac_ext
3393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3394 echo "${ECHO_T}$ac_header_preproc" >&6; }
3396 # So? What about this header?
3397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3399 { echo "$as_me:$LINENO: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&5
3400 echo "$as_me: WARNING: stdio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3401 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the compiler's result" >&5
3402 echo "$as_me: WARNING: stdio.h: proceeding with the compiler's result" >&2;}
3403 ac_header_preproc=yes
3406 { echo "$as_me:$LINENO: WARNING: stdio.h: present but cannot be compiled" >&5
3407 echo "$as_me: WARNING: stdio.h: present but cannot be compiled" >&2;}
3408 { echo "$as_me:$LINENO: WARNING: stdio.h: check for missing prerequisite headers?" >&5
3409 echo "$as_me: WARNING: stdio.h: check for missing prerequisite headers?" >&2;}
3410 { echo "$as_me:$LINENO: WARNING: stdio.h: see the Autoconf documentation" >&5
3411 echo "$as_me: WARNING: stdio.h: see the Autoconf documentation" >&2;}
3412 { echo "$as_me:$LINENO: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&5
3413 echo "$as_me: WARNING: stdio.h: section \"Present But Cannot Be Compiled\"" >&2;}
3414 { echo "$as_me:$LINENO: WARNING: stdio.h: proceeding with the preprocessor's result" >&5
3415 echo "$as_me: WARNING: stdio.h: proceeding with the preprocessor's result" >&2;}
3416 { echo "$as_me:$LINENO: WARNING: stdio.h: in the future, the compiler will take precedence" >&5
3417 echo "$as_me: WARNING: stdio.h: in the future, the compiler will take precedence" >&2;}
3421 { echo "$as_me:$LINENO: checking for stdio.h" >&5
3422 echo $ECHO_N "checking for stdio.h... $ECHO_C" >&6; }
3423 if test "${ac_cv_header_stdio_h+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3426 ac_cv_header_stdio_h=$ac_header_preproc
3428 { echo "$as_me:$LINENO: result: $ac_cv_header_stdio_h" >&5
3429 echo "${ECHO_T}$ac_cv_header_stdio_h" >&6; }
3432 if test $ac_cv_header_stdio_h = yes; then
3433 example_cflags="$example_cflags -I/usr/include"
3435 fail=$fail" stdio.h"
3443 for ac_header in stdio.h stdlib.h
3445 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 ac_res=`eval echo '${'$as_ac_Header'}'`
3453 { echo "$as_me:$LINENO: result: $ac_res" >&5
3454 echo "${ECHO_T}$ac_res" >&6; }
3456 # Is the header compilable?
3457 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
3458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 $ac_includes_default
3466 #include <$ac_header>
3468 rm -f conftest.$ac_objext
3469 if { (ac_try="$ac_compile"
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_compile") 2>conftest.er1
3477 grep -v '^ *+' conftest.er1 >conftest.err
3479 cat conftest.err >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); } && {
3482 test -z "$ac_c_werror_flag" ||
3483 test ! -s conftest.err
3484 } && test -s conftest.$ac_objext; then
3485 ac_header_compiler=yes
3487 echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 ac_header_compiler=no
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3495 echo "${ECHO_T}$ac_header_compiler" >&6; }
3497 # Is the header present?
3498 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
3499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #include <$ac_header>
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3516 grep -v '^ *+' conftest.er1 >conftest.err
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null && {
3521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3524 ac_header_preproc=yes
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 ac_header_preproc=no
3532 rm -f conftest.err conftest.$ac_ext
3533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3534 echo "${ECHO_T}$ac_header_preproc" >&6; }
3536 # So? What about this header?
3537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3543 ac_header_preproc=yes
3546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 eval "$as_ac_Header=\$ac_header_preproc"
3568 ac_res=`eval echo '${'$as_ac_Header'}'`
3569 { echo "$as_me:$LINENO: result: $ac_res" >&5
3570 echo "${ECHO_T}$ac_res" >&6; }
3573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3574 cat >>confdefs.h <<_ACEOF
3575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3581 # for the config.h defs
3583 for ac_func in printf
3585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
3587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
3588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 cat >conftest.$ac_ext <<_ACEOF
3594 cat confdefs.h >>conftest.$ac_ext
3595 cat >>conftest.$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3599 #define $ac_func innocuous_$ac_func
3601 /* System header to define __stub macros and hopefully few prototypes,
3602 which can conflict with char $ac_func (); below.
3603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 <limits.h> exists even on freestanding compilers. */
3607 # include <limits.h>
3609 # include <assert.h>
3614 /* Override any GCC internal prototype to avoid an error.
3615 Use char because int might match the return type of a GCC
3616 builtin and then its argument prototype would still apply. */
3621 /* The GNU C library defines this for functions which it implements
3622 to always fail with ENOSYS. Some functions are actually named
3623 something starting with __ and the normal name is an alias. */
3624 #if defined __stub_$ac_func || defined __stub___$ac_func
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (ac_try="$ac_link"
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_link") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest$ac_exeext &&
3653 $as_test_x conftest$ac_exeext; then
3654 eval "$as_ac_var=yes"
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 eval "$as_ac_var=no"
3662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3663 conftest$ac_exeext conftest.$ac_ext
3665 ac_res=`eval echo '${'$as_ac_var'}'`
3666 { echo "$as_me:$LINENO: result: $ac_res" >&5
3667 echo "${ECHO_T}$ac_res" >&6; }
3668 if test `eval echo '${'$as_ac_var'}'` = yes; then
3669 cat >>confdefs.h <<_ACEOF
3670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3675 # for the config.h defs
3677 targetname=rlm_example # keep this! Don't change!
3679 targetname= # keep this! Don't change!
3680 echo \*\*\* module rlm_example is disabled. # keep this! Don't change!
3683 if test x"$fail" != x""; then
3684 if test x"${enable_strict_dependencies}" = x"yes"; then
3685 { { echo "$as_me:$LINENO: error: set --without-rlm_example to disable it explicitly." >&5
3686 echo "$as_me: error: set --without-rlm_example to disable it explicitly." >&2;}
3687 { (exit 1); exit 1; }; }
3689 { echo "$as_me:$LINENO: WARNING: silently not building rlm_example." >&5
3690 echo "$as_me: WARNING: silently not building rlm_example." >&2;}
3691 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_example requires: $fail." >&5
3692 echo "$as_me: WARNING: FAILURE: rlm_example requires: $fail." >&2;};
3701 ac_config_headers="$ac_config_headers config.h"
3702 # delete if you don't want a config.h file.
3704 # keep this! Don't change!
3706 unset ac_cv_env_LIBS_set
3707 unset ac_cv_env_LIBS_value
3709 ac_config_files="$ac_config_files Makefile"
3711 cat >confcache <<\_ACEOF
3712 # This file is a shell script that caches the results of configure
3713 # tests run on this system so they can be shared between configure
3714 # scripts and configure runs, see configure's option --config-cache.
3715 # It is not useful on other systems. If it contains results you don't
3716 # want to keep, you may remove or edit it.
3718 # config.status only pays attention to the cache file if you give it
3719 # the --recheck option to rerun configure.
3721 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3722 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3727 # The following way of writing the cache mishandles newlines in values,
3728 # but we know of no workaround that is simple, portable, and efficient.
3729 # So, we kill variables containing newlines.
3730 # Ultrix sh set writes to stderr and can't be redirected directly,
3731 # and sets the high bit in the cache file unless we assign to the vars.
3733 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3734 eval ac_val=\$$ac_var
3738 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3739 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3742 _ | IFS | as_nl) ;; #(
3743 *) $as_unset $ac_var ;;
3749 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3750 *${as_nl}ac_space=\ *)
3751 # `set' does not quote correctly, so add quotes (double-quote
3752 # substitution turns \\\\ into \\, and sed turns \\ into \).
3755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3758 # `set' quotes correctly as required by POSIX, so do not add quotes.
3759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3770 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3772 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3773 if test -w "$cache_file"; then
3774 test "x$cache_file" != "x/dev/null" &&
3775 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3776 echo "$as_me: updating cache $cache_file" >&6;}
3777 cat confcache >$cache_file
3779 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3780 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3785 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3786 # Let make expand exec_prefix.
3787 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3789 DEFS=-DHAVE_CONFIG_H
3793 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3794 # 1. Remove the extension, and $U if already installed.
3795 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3796 ac_i=`echo "$ac_i" | sed "$ac_script"`
3797 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3798 # will be set to the directory where LIBOBJS objects are built.
3799 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3800 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3804 LTLIBOBJS=$ac_ltlibobjs
3808 : ${CONFIG_STATUS=./config.status}
3809 ac_clean_files_save=$ac_clean_files
3810 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3811 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3812 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3813 cat >$CONFIG_STATUS <<_ACEOF
3815 # Generated by $as_me.
3816 # Run this file to recreate the current configuration.
3817 # Compiler output produced by configure, useful for debugging
3818 # configure, is in config.log if it exists.
3823 SHELL=\${CONFIG_SHELL-$SHELL}
3826 cat >>$CONFIG_STATUS <<\_ACEOF
3827 ## --------------------- ##
3828 ## M4sh Initialization. ##
3829 ## --------------------- ##
3831 # Be more Bourne compatible
3832 DUALCASE=1; export DUALCASE # for MKS sh
3833 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3836 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3837 # is contrary to our usage. Disable this feature.
3838 alias -g '${1+"$@"}'='"$@"'
3839 setopt NO_GLOB_SUBST
3841 case `(set -o) 2>/dev/null` in
3842 *posix*) set -o posix ;;
3851 # Avoid depending upon Character Ranges.
3852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3855 as_cr_digits='0123456789'
3856 as_cr_alnum=$as_cr_Letters$as_cr_digits
3858 # The user is always right.
3859 if test "${PATH_SEPARATOR+set}" != set; then
3860 echo "#! /bin/sh" >conf$$.sh
3861 echo "exit 0" >>conf$$.sh
3863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3871 # Support unset when possible.
3872 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3880 # We need space, tab and new line, in precisely that order. Quoting is
3881 # there to prevent editors from complaining about space-tab.
3882 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3883 # splitting by setting IFS to empty value.)
3888 # Find who we are. Look in the path if we contain no directory separator.
3890 *[\\/]* ) as_myself=$0 ;;
3891 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3902 # We did not find ourselves, most probably we were run as `sh COMMAND'
3903 # in which case we are not to be found in the path.
3904 if test "x$as_myself" = x; then
3907 if test ! -f "$as_myself"; then
3908 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3909 { (exit 1); exit 1; }
3912 # Work around bugs in pre-3.0 UWIN ksh.
3913 for as_var in ENV MAIL MAILPATH
3914 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3922 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3923 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3924 LC_TELEPHONE LC_TIME
3926 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3927 eval $as_var=C; export $as_var
3929 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3933 # Required to use basename.
3934 if expr a : '\(a\)' >/dev/null 2>&1 &&
3935 test "X`expr 00001 : '.*\(...\)'`" = X001; then
3941 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3942 as_basename=basename
3948 # Name of the executable.
3949 as_me=`$as_basename -- "$0" ||
3950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3951 X"$0" : 'X\(//\)$' \| \
3952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3954 sed '/^.*\/\([^/][^/]*\)\/*$/{
3975 test "x$as_lineno_1" != "x$as_lineno_2" &&
3976 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3979 # uniformly replaced by the line number. The first 'sed' inserts a
3980 # line-number line after each line using $LINENO; the second 'sed'
3981 # does the real work. The second script uses 'N' to pair each
3982 # line-number line with the line containing $LINENO, and appends
3983 # trailing '-' during substitution so that $LINENO is not a special
3985 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3986 # scripts with optimization help from Paolo Bonzini. Blame Lee
3987 # E. McMahon (1931-1989) for sed's syntax. :-)
3999 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
4003 chmod +x "$as_me.lineno" ||
4004 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4005 { (exit 1); exit 1; }; }
4007 # Don't try to exec as it changes $[0], causing all sort of problems
4008 # (the dirname of $[0] is not the place where we might find the
4009 # original and so on. Autoconf is especially sensitive to this).
4011 # Exit status is that of the last command.
4016 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4022 ECHO_C= ECHO_N= ECHO_T=
4025 case `echo 'x\c'` in
4026 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4033 if expr a : '\(a\)' >/dev/null 2>&1 &&
4034 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4040 rm -f conf$$ conf$$.exe conf$$.file
4041 if test -d conf$$.dir; then
4042 rm -f conf$$.dir/conf$$.file
4048 if ln -s conf$$.file conf$$ 2>/dev/null; then
4050 # ... but there are two gotchas:
4051 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4052 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4053 # In both cases, we have to default to `cp -p'.
4054 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4056 elif ln conf$$.file conf$$ 2>/dev/null; then
4061 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4062 rmdir conf$$.dir 2>/dev/null
4064 if mkdir -p . 2>/dev/null; then
4067 test -d ./-p && rmdir ./-p
4071 if test -x / >/dev/null 2>&1; then
4074 if ls -dL / >/dev/null 2>&1; then
4081 if test -d "$1"; then
4087 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4088 ???[sx]*):;;*)false;;esac;fi
4092 as_executable_p=$as_test_x
4094 # Sed expression to map a string onto a valid CPP name.
4095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4097 # Sed expression to map a string onto a valid variable name.
4098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4103 # Save the log message, to keep $[0] and so on meaningful, and to
4104 # report actual input values of CONFIG_FILES etc. instead of their
4105 # values after options handling.
4107 This file was extended by $as_me, which was
4108 generated by GNU Autoconf 2.61. Invocation command line was
4110 CONFIG_FILES = $CONFIG_FILES
4111 CONFIG_HEADERS = $CONFIG_HEADERS
4112 CONFIG_LINKS = $CONFIG_LINKS
4113 CONFIG_COMMANDS = $CONFIG_COMMANDS
4116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4121 cat >>$CONFIG_STATUS <<_ACEOF
4122 # Files that config.status was made for.
4123 config_files="$ac_config_files"
4124 config_headers="$ac_config_headers"
4128 cat >>$CONFIG_STATUS <<\_ACEOF
4130 \`$as_me' instantiates files from templates according to the
4131 current configuration.
4133 Usage: $0 [OPTIONS] [FILE]...
4135 -h, --help print this help, then exit
4136 -V, --version print version number and configuration settings, then exit
4137 -q, --quiet do not print progress messages
4138 -d, --debug don't remove temporary files
4139 --recheck update $as_me by reconfiguring in the same conditions
4140 --file=FILE[:TEMPLATE]
4141 instantiate the configuration file FILE
4142 --header=FILE[:TEMPLATE]
4143 instantiate the configuration header FILE
4145 Configuration files:
4148 Configuration headers:
4151 Report bugs to <bug-autoconf@gnu.org>."
4154 cat >>$CONFIG_STATUS <<_ACEOF
4157 configured by $0, generated by GNU Autoconf 2.61,
4158 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
4160 Copyright (C) 2006 Free Software Foundation, Inc.
4161 This config.status script is free software; the Free Software Foundation
4162 gives unlimited permission to copy, distribute and modify it."
4168 cat >>$CONFIG_STATUS <<\_ACEOF
4169 # If no file are specified by the user, then we need to provide default
4170 # value. By we need to know if files were specified by the user.
4176 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4177 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4188 # Handling of the options.
4189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4191 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4192 echo "$ac_cs_version"; exit ;;
4193 --debug | --debu | --deb | --de | --d | -d )
4195 --file | --fil | --fi | --f )
4197 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4198 ac_need_defaults=false;;
4199 --header | --heade | --head | --hea )
4201 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4202 ac_need_defaults=false;;
4204 # Conflict between --help and --header
4205 { echo "$as_me: error: ambiguous option: $1
4206 Try \`$0 --help' for more information." >&2
4207 { (exit 1); exit 1; }; };;
4208 --help | --hel | -h )
4209 echo "$ac_cs_usage"; exit ;;
4210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4211 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4215 -*) { echo "$as_me: error: unrecognized option: $1
4216 Try \`$0 --help' for more information." >&2
4217 { (exit 1); exit 1; }; } ;;
4219 *) ac_config_targets="$ac_config_targets $1"
4220 ac_need_defaults=false ;;
4226 ac_configure_extra_args=
4228 if $ac_cs_silent; then
4230 ac_configure_extra_args="$ac_configure_extra_args --silent"
4234 cat >>$CONFIG_STATUS <<_ACEOF
4235 if \$ac_cs_recheck; then
4236 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4239 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4243 cat >>$CONFIG_STATUS <<\_ACEOF
4247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4248 ## Running $as_me. ##
4254 cat >>$CONFIG_STATUS <<_ACEOF
4257 cat >>$CONFIG_STATUS <<\_ACEOF
4259 # Handling of arguments.
4260 for ac_config_target in $ac_config_targets
4262 case $ac_config_target in
4263 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4264 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4266 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4268 { (exit 1); exit 1; }; };;
4273 # If the user did not use the arguments to specify the items to instantiate,
4274 # then the envvar interface is used. Set only those that are not.
4275 # We use the long form for the default assignment because of an extremely
4276 # bizarre bug on SunOS 4.1.3.
4277 if $ac_need_defaults; then
4278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4282 # Have a temporary directory for convenience. Make it in the build tree
4283 # simply because there is no reason against having it here, and in addition,
4284 # creating and moving files from /tmp can sometimes cause problems.
4285 # Hook for its removal unless debugging.
4286 # Note that there is a small window in which the directory will not be cleaned:
4287 # after its creation but before its name has been assigned to `$tmp'.
4291 trap 'exit_status=$?
4292 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4294 trap '{ (exit 1); exit 1; }' 1 2 13 15
4296 # Create a (secure) tmp directory for tmp files.
4299 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4300 test -n "$tmp" && test -d "$tmp"
4303 tmp=./conf$$-$RANDOM
4304 (umask 077 && mkdir "$tmp")
4307 echo "$me: cannot create a temporary directory in ." >&2
4308 { (exit 1); exit 1; }
4312 # Set up the sed scripts for CONFIG_FILES section.
4315 # No need to generate the scripts if there are no CONFIG_FILES.
4316 # This happens for instance when ./config.status config.h
4317 if test -n "$CONFIG_FILES"; then
4324 for ac_last_try in false false false false false :; do
4325 cat >conf$$subs.sed <<_ACEOF
4326 SHELL!$SHELL$ac_delim
4327 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4328 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4329 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4330 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4331 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4332 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4333 exec_prefix!$exec_prefix$ac_delim
4334 prefix!$prefix$ac_delim
4335 program_transform_name!$program_transform_name$ac_delim
4336 bindir!$bindir$ac_delim
4337 sbindir!$sbindir$ac_delim
4338 libexecdir!$libexecdir$ac_delim
4339 datarootdir!$datarootdir$ac_delim
4340 datadir!$datadir$ac_delim
4341 sysconfdir!$sysconfdir$ac_delim
4342 sharedstatedir!$sharedstatedir$ac_delim
4343 localstatedir!$localstatedir$ac_delim
4344 includedir!$includedir$ac_delim
4345 oldincludedir!$oldincludedir$ac_delim
4346 docdir!$docdir$ac_delim
4347 infodir!$infodir$ac_delim
4348 htmldir!$htmldir$ac_delim
4349 dvidir!$dvidir$ac_delim
4350 pdfdir!$pdfdir$ac_delim
4351 psdir!$psdir$ac_delim
4352 libdir!$libdir$ac_delim
4353 localedir!$localedir$ac_delim
4354 mandir!$mandir$ac_delim
4356 ECHO_C!$ECHO_C$ac_delim
4357 ECHO_N!$ECHO_N$ac_delim
4358 ECHO_T!$ECHO_T$ac_delim
4360 build_alias!$build_alias$ac_delim
4361 host_alias!$host_alias$ac_delim
4362 target_alias!$target_alias$ac_delim
4364 CFLAGS!$CFLAGS$ac_delim
4365 LDFLAGS!$LDFLAGS$ac_delim
4366 CPPFLAGS!$CPPFLAGS$ac_delim
4367 ac_ct_CC!$ac_ct_CC$ac_delim
4368 EXEEXT!$EXEEXT$ac_delim
4369 OBJEXT!$OBJEXT$ac_delim
4372 EGREP!$EGREP$ac_delim
4373 example_cflags!$example_cflags$ac_delim
4374 example_ldflags!$example_ldflags$ac_delim
4375 targetname!$targetname$ac_delim
4376 LIBOBJS!$LIBOBJS$ac_delim
4377 LTLIBOBJS!$LTLIBOBJS$ac_delim
4380 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 52; then
4382 elif $ac_last_try; then
4383 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4384 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4385 { (exit 1); exit 1; }; }
4387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4391 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4392 if test -n "$ac_eof"; then
4393 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4394 ac_eof=`expr $ac_eof + 1`
4397 cat >>$CONFIG_STATUS <<_ACEOF
4398 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4402 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4403 s/^/s,@/; s/!/@,|#_!!_#|/
4406 s/'"$ac_delim"'$/,g/; t
4408 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4409 ' >>$CONFIG_STATUS <conf$$subs.sed
4410 rm -f conf$$subs.sed
4411 cat >>$CONFIG_STATUS <<_ACEOF
4418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4420 # trailing colons and then remove the whole line if VPATH becomes empty
4421 # (actually we leave an empty line to preserve line numbers).
4422 if test "x$srcdir" = x.; then
4423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4427 s/^\([^=]*=[ ]*\):*/\1/
4433 cat >>$CONFIG_STATUS <<\_ACEOF
4434 fi # test -n "$CONFIG_FILES"
4437 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
4440 :[FHLC]) ac_mode=$ac_tag; continue;;
4442 case $ac_mode$ac_tag in
4444 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4445 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4446 { (exit 1); exit 1; }; };;
4447 :[FH]-) ac_tag=-:-;;
4448 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4465 -) ac_f="$tmp/stdin";;
4466 *) # Look for the file first in the build tree, then in the source tree
4467 # (if the path is not absolute). The absolute path cannot be DOS-style,
4468 # because $ac_f cannot contain `:'.
4472 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4474 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4475 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4476 { (exit 1); exit 1; }; };;
4478 ac_file_inputs="$ac_file_inputs $ac_f"
4481 # Let's still pretend it is `configure' which instantiates (i.e., don't
4482 # use $as_me), people would be surprised to read:
4483 # /* config.h. Generated by config.status. */
4484 configure_input="Generated from "`IFS=:
4485 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4486 if test x"$ac_file" != x-; then
4487 configure_input="$ac_file. $configure_input"
4488 { echo "$as_me:$LINENO: creating $ac_file" >&5
4489 echo "$as_me: creating $ac_file" >&6;}
4493 *:-:* | *:-) cat >"$tmp/stdin";;
4498 ac_dir=`$as_dirname -- "$ac_file" ||
4499 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4500 X"$ac_file" : 'X\(//\)[^/]' \| \
4501 X"$ac_file" : 'X\(//\)$' \| \
4502 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4523 -*) as_dir=./$as_dir;;
4525 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4529 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4530 *) as_qdir=$as_dir;;
4532 as_dirs="'$as_qdir' $as_dirs"
4533 as_dir=`$as_dirname -- "$as_dir" ||
4534 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4535 X"$as_dir" : 'X\(//\)[^/]' \| \
4536 X"$as_dir" : 'X\(//\)$' \| \
4537 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4556 test -d "$as_dir" && break
4558 test -z "$as_dirs" || eval "mkdir $as_dirs"
4559 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4560 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4561 { (exit 1); exit 1; }; }; }
4565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4567 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4568 # A ".." for each directory in $ac_dir_suffix.
4569 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4570 case $ac_top_builddir_sub in
4571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4575 ac_abs_top_builddir=$ac_pwd
4576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4577 # for backward compatibility:
4578 ac_top_builddir=$ac_top_build_prefix
4581 .) # We are building in place.
4583 ac_top_srcdir=$ac_top_builddir_sub
4584 ac_abs_top_srcdir=$ac_pwd ;;
4585 [\\/]* | ?:[\\/]* ) # Absolute name.
4586 ac_srcdir=$srcdir$ac_dir_suffix;
4587 ac_top_srcdir=$srcdir
4588 ac_abs_top_srcdir=$srcdir ;;
4590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4591 ac_top_srcdir=$ac_top_build_prefix$srcdir
4592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4605 cat >>$CONFIG_STATUS <<\_ACEOF
4606 # If the template does not know about datarootdir, expand it.
4607 # FIXME: This hack should be removed a few years after 2.60.
4608 ac_datarootdir_hack=; ac_datarootdir_seen=
4610 case `sed -n '/datarootdir/ {
4619 ' $ac_file_inputs` in
4620 *datarootdir*) ac_datarootdir_seen=yes;;
4621 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4622 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4623 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4625 cat >>$CONFIG_STATUS <<_ACEOF
4626 ac_datarootdir_hack='
4627 s&@datadir@&$datadir&g
4628 s&@docdir@&$docdir&g
4629 s&@infodir@&$infodir&g
4630 s&@localedir@&$localedir&g
4631 s&@mandir@&$mandir&g
4632 s&\\\${datarootdir}&$datarootdir&g' ;;
4636 # Neutralize VPATH when `$srcdir' = `.'.
4637 # Shell code in configure.ac might set extrasub.
4638 # FIXME: do we really want to maintain this feature?
4639 cat >>$CONFIG_STATUS <<_ACEOF
4643 cat >>$CONFIG_STATUS <<\_ACEOF
4645 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4646 s&@configure_input@&$configure_input&;t t
4647 s&@top_builddir@&$ac_top_builddir_sub&;t t
4648 s&@srcdir@&$ac_srcdir&;t t
4649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4650 s&@top_srcdir@&$ac_top_srcdir&;t t
4651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4652 s&@builddir@&$ac_builddir&;t t
4653 s&@abs_builddir@&$ac_abs_builddir&;t t
4654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4655 $ac_datarootdir_hack
4656 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4658 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4659 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4660 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4661 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4662 which seems to be undefined. Please make sure it is defined." >&5
4663 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4664 which seems to be undefined. Please make sure it is defined." >&2;}
4668 -) cat "$tmp/out"; rm -f "$tmp/out";;
4669 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4678 # Transform confdefs.h into a sed script `conftest.defines', that
4679 # substitutes the proper values into config.h.in to produce config.h.
4680 rm -f conftest.defines conftest.tail
4681 # First, append a space to every undef/define line, to ease matching.
4682 echo 's/$/ /' >conftest.defines
4683 # Then, protect against being on the right side of a sed subst, or in
4684 # an unquoted here document, in config.status. If some macros were
4685 # called several times there might be several #defines for the same
4686 # symbol, which is useless. But do not sort them, since the last
4687 # AC_DEFINE must be honored.
4688 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4689 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4690 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4691 # PARAMS is the parameter list in the macro definition--in most cases, it's
4692 # just an empty string.
4693 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
4694 ac_dB='\\)[ (].*,\\1define\\2'
4702 s/^[ ]*#[ ]*define[ ][ ]*//
4707 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4708 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4709 ' >>conftest.defines
4711 # Remove the space that was appended to ease matching.
4712 # Then replace #undef with comments. This is necessary, for
4713 # example, in the case of _POSIX_SOURCE, which is predefined and required
4714 # on some systems where configure will not decide to define it.
4715 # (The regexp can be short, since the line contains either #define or #undef.)
4717 s,^[ #]*u.*,/* & */,' >>conftest.defines
4719 # Break up conftest.defines:
4722 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4723 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4724 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4726 ac_in='$ac_file_inputs'
4727 ac_out='"$tmp/out1"'
4728 ac_nxt='"$tmp/out2"'
4732 # Write a here document:
4733 cat >>$CONFIG_STATUS <<_ACEOF
4734 # First, check the format of the line:
4735 cat >"\$tmp/defines.sed" <<\\CEOF
4736 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
4737 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
4741 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4743 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4744 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4745 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4746 grep . conftest.tail >/dev/null || break
4747 rm -f conftest.defines
4748 mv conftest.tail conftest.defines
4750 rm -f conftest.defines conftest.tail
4752 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4753 cat >>$CONFIG_STATUS <<\_ACEOF
4754 if test x"$ac_file" != x-; then
4755 echo "/* $configure_input */" >"$tmp/config.h"
4756 cat "$ac_result" >>"$tmp/config.h"
4757 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4758 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4759 echo "$as_me: $ac_file is unchanged" >&6;}
4762 mv "$tmp/config.h" $ac_file
4765 echo "/* $configure_input */"
4777 { (exit 0); exit 0; }
4779 chmod +x $CONFIG_STATUS
4780 ac_clean_files=$ac_clean_files_save
4783 # configure is writing to config.log, and then calls config.status.
4784 # config.status does its own redirection, appending to config.log.
4785 # Unfortunately, on DOS this fails, as config.log is still kept open
4786 # by configure, so config.status won't be able to write to it; its
4787 # output is simply discarded. So we exec the FD to /dev/null,
4788 # effectively closing config.log, so it can be properly (re)opened and
4789 # appended to by config.status. When coming back to configure, we
4790 # need to make the FD available again.
4791 if test "$no_create" != yes; then
4793 ac_config_status_args=
4794 test "$silent" = yes &&
4795 ac_config_status_args="$ac_config_status_args --quiet"
4797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4800 # would make configure fail if this is the last instruction.
4801 $ac_cs_success || { (exit 1); exit 1; }
4804 # keep this! Don't change!