2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="ircd/ircd.c"
555 ac_default_prefix=$HOME
556 # Factoring default headers for most tests.
557 ac_includes_default="\
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
569 # ifdef HAVE_STDLIB_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
592 ac_subst_vars='LTLIBOBJS
659 program_transform_name
672 enable_option_checking
696 ac_precious_vars='build_alias
709 # Initialize some variables set by options.
711 ac_init_version=false
712 ac_unrecognized_opts=
714 # The variables have the same names as the options, with
715 # dashes changed to underlines.
723 program_transform_name=s,x,x,
731 # Installation directory options.
732 # These are left unexpanded so users can "make install exec_prefix=/foo"
733 # and all the variables that are supposed to be based on exec_prefix
734 # by default will actually change.
735 # Use braces instead of parens because sh, perl, etc. also accept them.
736 # (The list follows the same order as the GNU Coding Standards.)
737 bindir='${exec_prefix}/bin'
738 sbindir='${exec_prefix}/sbin'
739 libexecdir='${exec_prefix}/libexec'
740 datarootdir='${prefix}/share'
741 datadir='${datarootdir}'
742 sysconfdir='${prefix}/etc'
743 sharedstatedir='${prefix}/com'
744 localstatedir='${prefix}/var'
745 includedir='${prefix}/include'
746 oldincludedir='/usr/include'
747 docdir='${datarootdir}/doc/${PACKAGE}'
748 infodir='${datarootdir}/info'
753 libdir='${exec_prefix}/lib'
754 localedir='${datarootdir}/locale'
755 mandir='${datarootdir}/man'
761 # If the previous option needs an argument, assign it.
762 if test -n "$ac_prev"; then
763 eval $ac_prev=\$ac_option
769 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
773 # Accept the important Cygnus configure options, so we can diagnose typos.
775 case $ac_dashdash$ac_option in
779 -bindir | --bindir | --bindi | --bind | --bin | --bi)
781 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
784 -build | --build | --buil | --bui | --bu)
785 ac_prev=build_alias ;;
786 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
787 build_alias=$ac_optarg ;;
789 -cache-file | --cache-file | --cache-fil | --cache-fi \
790 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
791 ac_prev=cache_file ;;
792 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
793 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
794 cache_file=$ac_optarg ;;
797 cache_file=config.cache ;;
799 -datadir | --datadir | --datadi | --datad)
801 -datadir=* | --datadir=* | --datadi=* | --datad=*)
802 datadir=$ac_optarg ;;
804 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
805 | --dataroo | --dataro | --datar)
806 ac_prev=datarootdir ;;
807 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
808 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
809 datarootdir=$ac_optarg ;;
811 -disable-* | --disable-*)
812 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
815 as_fn_error "invalid feature name: $ac_useropt"
816 ac_useropt_orig=$ac_useropt
817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
818 case $ac_user_opts in
822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
823 ac_unrecognized_sep=', ';;
825 eval enable_$ac_useropt=no ;;
827 -docdir | --docdir | --docdi | --doc | --do)
829 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 -enable-* | --enable-*)
838 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
841 as_fn_error "invalid feature name: $ac_useropt"
842 ac_useropt_orig=$ac_useropt
843 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
844 case $ac_user_opts in
848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
849 ac_unrecognized_sep=', ';;
851 eval enable_$ac_useropt=\$ac_optarg ;;
853 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855 | --exec | --exe | --ex)
856 ac_prev=exec_prefix ;;
857 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859 | --exec=* | --exe=* | --ex=*)
860 exec_prefix=$ac_optarg ;;
862 -gas | --gas | --ga | --g)
863 # Obsolete; use --with-gas.
866 -help | --help | --hel | --he | -h)
868 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869 ac_init_help=recursive ;;
870 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871 ac_init_help=short ;;
873 -host | --host | --hos | --ho)
874 ac_prev=host_alias ;;
875 -host=* | --host=* | --hos=* | --ho=*)
876 host_alias=$ac_optarg ;;
878 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 htmldir=$ac_optarg ;;
884 -includedir | --includedir | --includedi | --included | --include \
885 | --includ | --inclu | --incl | --inc)
886 ac_prev=includedir ;;
887 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888 | --includ=* | --inclu=* | --incl=* | --inc=*)
889 includedir=$ac_optarg ;;
891 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894 infodir=$ac_optarg ;;
896 -libdir | --libdir | --libdi | --libd)
898 -libdir=* | --libdir=* | --libdi=* | --libd=*)
901 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902 | --libexe | --libex | --libe)
903 ac_prev=libexecdir ;;
904 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905 | --libexe=* | --libex=* | --libe=*)
906 libexecdir=$ac_optarg ;;
908 -localedir | --localedir | --localedi | --localed | --locale)
910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911 localedir=$ac_optarg ;;
913 -localstatedir | --localstatedir | --localstatedi | --localstated \
914 | --localstate | --localstat | --localsta | --localst | --locals)
915 ac_prev=localstatedir ;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918 localstatedir=$ac_optarg ;;
920 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
926 # Obsolete; use --without-fp.
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c | -n)
933 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939 | --oldin | --oldi | --old | --ol | --o)
940 ac_prev=oldincludedir ;;
941 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944 oldincludedir=$ac_optarg ;;
946 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951 -program-prefix | --program-prefix | --program-prefi | --program-pref \
952 | --program-pre | --program-pr | --program-p)
953 ac_prev=program_prefix ;;
954 -program-prefix=* | --program-prefix=* | --program-prefi=* \
955 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956 program_prefix=$ac_optarg ;;
958 -program-suffix | --program-suffix | --program-suffi | --program-suff \
959 | --program-suf | --program-su | --program-s)
960 ac_prev=program_suffix ;;
961 -program-suffix=* | --program-suffix=* | --program-suffi=* \
962 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963 program_suffix=$ac_optarg ;;
965 -program-transform-name | --program-transform-name \
966 | --program-transform-nam | --program-transform-na \
967 | --program-transform-n | --program-transform- \
968 | --program-transform | --program-transfor \
969 | --program-transfo | --program-transf \
970 | --program-trans | --program-tran \
971 | --progr-tra | --program-tr | --program-t)
972 ac_prev=program_transform_name ;;
973 -program-transform-name=* | --program-transform-name=* \
974 | --program-transform-nam=* | --program-transform-na=* \
975 | --program-transform-n=* | --program-transform-=* \
976 | --program-transform=* | --program-transfor=* \
977 | --program-transfo=* | --program-transf=* \
978 | --program-trans=* | --program-tran=* \
979 | --progr-tra=* | --program-tr=* | --program-t=*)
980 program_transform_name=$ac_optarg ;;
982 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987 -psdir | --psdir | --psdi | --psd | --ps)
989 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993 | -silent | --silent | --silen | --sile | --sil)
996 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 sbindir=$ac_optarg ;;
1002 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004 | --sharedst | --shareds | --shared | --share | --shar \
1006 ac_prev=sharedstatedir ;;
1007 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 sharedstatedir=$ac_optarg ;;
1013 -site | --site | --sit)
1015 -site=* | --site=* | --sit=*)
1018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021 srcdir=$ac_optarg ;;
1023 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024 | --syscon | --sysco | --sysc | --sys | --sy)
1025 ac_prev=sysconfdir ;;
1026 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028 sysconfdir=$ac_optarg ;;
1030 -target | --target | --targe | --targ | --tar | --ta | --t)
1031 ac_prev=target_alias ;;
1032 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033 target_alias=$ac_optarg ;;
1035 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 -version | --version | --versio | --versi | --vers | -V)
1039 ac_init_version=: ;;
1042 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid package name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1055 eval with_$ac_useropt=\$ac_optarg ;;
1057 -without-* | --without-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid package name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1071 eval with_$ac_useropt=no ;;
1074 # Obsolete; use --with-x.
1077 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1078 | --x-incl | --x-inc | --x-in | --x-i)
1079 ac_prev=x_includes ;;
1080 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1081 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1082 x_includes=$ac_optarg ;;
1084 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1085 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1086 ac_prev=x_libraries ;;
1087 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1088 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1089 x_libraries=$ac_optarg ;;
1091 -*) as_fn_error "unrecognized option: \`$ac_option'
1092 Try \`$0 --help' for more information."
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 case $ac_envvar in #(
1099 '' | [0-9]* | *[!_$as_cr_alnum]* )
1100 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1102 eval $ac_envvar=\$ac_optarg
1103 export $ac_envvar ;;
1106 # FIXME: should be removed in autoconf 3.0.
1107 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1109 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 if test -n "$ac_prev"; then
1117 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1118 as_fn_error "missing argument to $ac_option"
1121 if test -n "$ac_unrecognized_opts"; then
1122 case $enable_option_checking in
1124 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1125 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1129 # Check all directory arguments for consistency.
1130 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1131 datadir sysconfdir sharedstatedir localstatedir includedir \
1132 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1133 libdir localedir mandir
1135 eval ac_val=\$$ac_var
1136 # Remove trailing slashes.
1139 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1140 eval $ac_var=\$ac_val;;
1142 # Be sure to have absolute directory names.
1144 [\\/$]* | ?:[\\/]* ) continue;;
1145 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1147 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1155 target=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159 if test "x$build_alias" = x; then
1160 cross_compiling=maybe
1161 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1171 test "$silent" = yes && exec 6>/dev/null
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177 as_fn_error "working directory cannot be determined"
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 as_fn_error "pwd does not report name of working directory"
1182 # Find the source files, if location was not specified.
1183 if test -z "$srcdir"; then
1184 ac_srcdir_defaulted=yes
1185 # Try the directory containing this script, then the parent directory.
1186 ac_confdir=`$as_dirname -- "$as_myself" ||
1187 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1188 X"$as_myself" : 'X\(//\)[^/]' \| \
1189 X"$as_myself" : 'X\(//\)$' \| \
1190 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1191 $as_echo X"$as_myself" |
1192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1210 if test ! -r "$srcdir/$ac_unique_file"; then
1214 ac_srcdir_defaulted=no
1216 if test ! -r "$srcdir/$ac_unique_file"; then
1217 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1218 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1220 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1222 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1232 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 for ac_var in $ac_precious_vars; do
1235 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_${ac_var}_value=\$${ac_var}
1237 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 # Report the --help message.
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1248 \`configure' configures this package to adapt to many kinds of systems.
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1255 Defaults for the options are specified in brackets.
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1279 For better control, use the options below.
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1306 --build=BUILD configure for building on BUILD [guessed]
1307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1311 if test -n "$ac_init_help"; then
1316 --disable-option-checking ignore unrecognized --enable/--with options
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-poll Force poll to be used regardless of whether or not
1321 --enable-debug Turn on debugging mode
1322 --disable-asserts Disable assertion checking
1323 --enable-profile Enable profiling support (add -pg to CFLAGS and LDFLAGS)
1324 --enable-pedantic Enable pedantic warnings (add -pedantic to CFLAGS)
1325 --enable-warnings Enable warnings (add -Wall to CFLAGS)
1326 --disable-inlines Disable inlining for a few critical functions
1327 --disable-devpoll Disable the /dev/poll-based engine
1328 --disable-kqueue Disable the kqueue-based engine
1329 --disable-epoll Disable the epoll-based engine
1332 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334 --with-leak-detect Turn on the leak detector(requires patched boehm)
1335 --without-ipv6 disable IPv6 support (default is autodetect)
1336 --with-symlink=name Name to give the symlink; if name is "no," no
1337 symlink will be created.
1338 --with-mode=mode Permissions (in octal) to give the binary
1339 --with-owner=owner Specify owner of the installed binary
1340 --with-group=group Specify group owner of the installed binary
1341 --with-domain=domain Domain name to use in local statistics gathering
1342 --with-chroot=dir Specify that the server will be operated under
1343 a different root directory given by dir. See
1344 doc/readme.chroot for more information.
1345 --with-dpath=dir Directory for all server data files
1346 --with-cpath=file Set server configuration file
1347 --with-lpath=file Set the debugging log file
1348 --with-maxcon=maxcon Maximum number of connections server will accept
1350 Some influential environment variables:
1351 CC C compiler command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1354 nonstandard directory <lib dir>
1355 LIBS libraries to pass to the linker, e.g. -l<library>
1356 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1357 you have headers in a nonstandard directory <include dir>
1359 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1360 the first program found out of: `bison -y', `byacc', `yacc'.
1361 YFLAGS The list of arguments that will be passed by default to $YACC.
1362 This script will default YFLAGS to the empty string to avoid a
1363 default value of `-d' given by some make applications.
1365 Use these variables to override the choices made by `configure' or to help
1366 it to find libraries and programs with nonstandard names/locations.
1368 Report bugs to the package provider.
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" ||
1377 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1385 # A ".." for each directory in $ac_dir_suffix.
1386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1387 case $ac_top_builddir_sub in
1388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1392 ac_abs_top_builddir=$ac_pwd
1393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1394 # for backward compatibility:
1395 ac_top_builddir=$ac_top_build_prefix
1398 .) # We are building in place.
1400 ac_top_srcdir=$ac_top_builddir_sub
1401 ac_abs_top_srcdir=$ac_pwd ;;
1402 [\\/]* | ?:[\\/]* ) # Absolute name.
1403 ac_srcdir=$srcdir$ac_dir_suffix;
1404 ac_top_srcdir=$srcdir
1405 ac_abs_top_srcdir=$srcdir ;;
1407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1408 ac_top_srcdir=$ac_top_build_prefix$srcdir
1409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1413 cd "$ac_dir" || { ac_status=$?; continue; }
1414 # Check for guested configure.
1415 if test -f "$ac_srcdir/configure.gnu"; then
1417 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1418 elif test -f "$ac_srcdir/configure"; then
1420 $SHELL "$ac_srcdir/configure" --help=recursive
1422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1424 cd "$ac_pwd" || { ac_status=$?; break; }
1428 test -n "$ac_init_help" && exit $ac_status
1429 if $ac_init_version; then
1432 generated by GNU Autoconf 2.64
1434 Copyright (C) 2009 Free Software Foundation, Inc.
1435 This configure script is free software; the Free Software Foundation
1436 gives unlimited permission to copy, distribute and modify it.
1441 ## ------------------------ ##
1442 ## Autoconf initialization. ##
1443 ## ------------------------ ##
1445 # ac_fn_c_try_compile LINENO
1446 # --------------------------
1447 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1448 ac_fn_c_try_compile ()
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext
1452 if { { ac_try="$ac_compile"
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_compile") 2>conftest.err
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest.$ac_objext; then :
1473 $as_echo "$as_me: failed program was:" >&5
1474 sed 's/^/| /' conftest.$ac_ext >&5
1478 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1481 } # ac_fn_c_try_compile
1483 # ac_fn_c_try_link LINENO
1484 # -----------------------
1485 # Try to link conftest.$ac_ext, and return whether this succeeded.
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext conftest$ac_exeext
1490 if { { ac_try="$ac_link"
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_link") 2>conftest.err
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest$ac_exeext && {
1509 test "$cross_compiling" = yes ||
1510 $as_test_x conftest$ac_exeext
1514 $as_echo "$as_me: failed program was:" >&5
1515 sed 's/^/| /' conftest.$ac_ext >&5
1519 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1520 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1521 # interfere with the next link command; also delete a directory that is
1522 # left behind by Apple's compiler. We do this before executing the actions.
1523 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1527 } # ac_fn_c_try_link
1529 # ac_fn_c_check_func LINENO FUNC VAR
1530 # ----------------------------------
1531 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1532 ac_fn_c_check_func ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1536 $as_echo_n "checking for $2... " >&6; }
1537 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1538 $as_echo_n "(cached) " >&6
1540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1541 /* end confdefs.h. */
1542 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1544 #define $2 innocuous_$2
1546 /* System header to define __stub macros and hopefully few prototypes,
1547 which can conflict with char $2 (); below.
1548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1549 <limits.h> exists even on freestanding compilers. */
1552 # include <limits.h>
1554 # include <assert.h>
1559 /* Override any GCC internal prototype to avoid an error.
1560 Use char because int might match the return type of a GCC
1561 builtin and then its argument prototype would still apply. */
1566 /* The GNU C library defines this for functions which it implements
1567 to always fail with ENOSYS. Some functions are actually named
1568 something starting with __ and the normal name is an alias. */
1569 #if defined __stub_$2 || defined __stub___$2
1581 if ac_fn_c_try_link "$LINENO"; then :
1586 rm -f core conftest.err conftest.$ac_objext \
1587 conftest$ac_exeext conftest.$ac_ext
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1591 $as_echo "$ac_res" >&6; }
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1594 } # ac_fn_c_check_func
1596 # ac_fn_c_try_cpp LINENO
1597 # ----------------------
1598 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_cpp conftest.$ac_ext"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } >/dev/null && {
1618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633 # ac_fn_c_try_run LINENO
1634 # ----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636 # that executables *can* be run.
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 if { { ac_try="$ac_link"
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>&5
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651 { { case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_try") 2>&5
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; }; }; then :
1663 $as_echo "$as_me: program exited with status $ac_status" >&5
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 ac_retval=$ac_status
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1680 ac_fn_c_check_header_mongrel ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1704 ac_header_compiler=no
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1720 ac_header_preproc=no
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1726 # So? What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750 $as_echo_n "(cached) " >&6
1752 eval "$3=\$ac_header_compiler"
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1760 } # ac_fn_c_check_header_mongrel
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1779 if ac_fn_c_try_compile "$LINENO"; then :
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1794 # -------------------------------------------
1795 # Tests whether TYPE exists after having included INCLUDES, setting cache
1796 # variable VAR accordingly.
1797 ac_fn_c_check_type ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 $as_echo_n "(cached) " >&6
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1818 if ac_fn_c_try_compile "$LINENO"; then :
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1831 if ac_fn_c_try_compile "$LINENO"; then :
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842 $as_echo "$ac_res" >&6; }
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1845 } # ac_fn_c_check_type
1847 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1848 # --------------------------------------------
1849 # Tries to find the compile-time value of EXPR in a program that includes
1850 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1852 ac_fn_c_compute_int ()
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if test "$cross_compiling" = yes; then
1856 # Depending upon the size, compute the lo and hi bounds.
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1863 static int test_array [1 - 2 * !(($2) >= 0)];
1870 if ac_fn_c_try_compile "$LINENO"; then :
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1879 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1886 if ac_fn_c_try_compile "$LINENO"; then :
1887 ac_hi=$ac_mid; break
1889 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1890 if test $ac_lo -le $ac_mid; then
1894 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1905 static int test_array [1 - 2 * !(($2) < 0)];
1912 if ac_fn_c_try_compile "$LINENO"; then :
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1921 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 ac_lo=$ac_mid; break
1931 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1932 if test $ac_mid -le $ac_hi; then
1936 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 # Binary search between lo and hi bounds.
1947 while test "x$ac_lo" != "x$ac_hi"; do
1948 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1955 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1962 if ac_fn_c_try_compile "$LINENO"; then :
1965 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1977 static long int longval () { return $2; }
1978 static unsigned long int ulongval () { return $2; }
1985 FILE *f = fopen ("conftest.val", "w");
1990 long int i = longval ();
1993 fprintf (f, "%ld", i);
1997 unsigned long int i = ulongval ();
2000 fprintf (f, "%lu", i);
2002 /* Do not output a trailing newline, as this causes \r\n confusion
2003 on some platforms. */
2004 return ferror (f) || fclose (f) != 0;
2010 if ac_fn_c_try_run "$LINENO"; then :
2011 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2015 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2016 conftest.$ac_objext conftest.beam conftest.$ac_ext
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 } # ac_fn_c_compute_int
2024 cat >config.log <<_ACEOF
2025 This file contains any messages produced by compilers while
2026 running configure, to aid debugging if configure makes a mistake.
2028 It was created by $as_me, which was
2029 generated by GNU Autoconf 2.64. Invocation command line was
2041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2050 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2051 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2054 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2055 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2056 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 $as_echo "PATH: $as_dir"
2081 # Keep a trace of the command line.
2082 # Strip out --no-create and --no-recursion so they do not pile up.
2083 # Strip out --silent because we don't want to record it for future runs.
2084 # Also quote any args containing shell meta-characters.
2085 # Make two passes to allow for proper duplicate-argument suppression.
2089 ac_must_keep_next=false
2095 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097 | -silent | --silent | --silen | --sile | --sil)
2100 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2103 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2105 as_fn_append ac_configure_args1 " '$ac_arg'"
2106 if test $ac_must_keep_next = true; then
2107 ac_must_keep_next=false # Got value, back to normal.
2110 *=* | --config-cache | -C | -disable-* | --disable-* \
2111 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113 | -with-* | --with-* | -without-* | --without-* | --x)
2114 case "$ac_configure_args0 " in
2115 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2118 -* ) ac_must_keep_next=true ;;
2121 as_fn_append ac_configure_args " '$ac_arg'"
2126 { ac_configure_args0=; unset ac_configure_args0;}
2127 { ac_configure_args1=; unset ac_configure_args1;}
2129 # When interrupted or exit'd, cleanup temporary files, and complete
2130 # config.log. We remove comments because anyway the quotes in there
2131 # would cause problems or look ugly.
2132 # WARNING: Use '\'' to represent an apostrophe within the trap.
2133 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2134 trap 'exit_status=$?
2135 # Save into config.log some information that might help in debugging.
2140 ## ---------------- ##
2141 ## Cache variables. ##
2142 ## ---------------- ##
2145 # The following way of writing the cache mishandles newlines in values,
2147 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148 eval ac_val=\$$ac_var
2152 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2153 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2156 _ | IFS | as_nl) ;; #(
2157 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2158 *) { eval $ac_var=; unset $ac_var;} ;;
2163 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2164 *${as_nl}ac_space=\ *)
2166 "s/'\''/'\''\\\\'\'''\''/g;
2167 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2170 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178 ## ----------------- ##
2179 ## Output variables. ##
2180 ## ----------------- ##
2183 for ac_var in $ac_subst_vars
2185 eval ac_val=\$$ac_var
2187 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2189 $as_echo "$ac_var='\''$ac_val'\''"
2193 if test -n "$ac_subst_files"; then
2195 ## ------------------- ##
2196 ## File substitutions. ##
2197 ## ------------------- ##
2200 for ac_var in $ac_subst_files
2202 eval ac_val=\$$ac_var
2204 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2206 $as_echo "$ac_var='\''$ac_val'\''"
2211 if test -s confdefs.h; then
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2237 $as_echo "/* confdefs.h */" > confdefs.h
2239 # Predefined preprocessor variables.
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271 ac_site_file1=$CONFIG_SITE
2272 elif test "x$prefix" != xNONE; then
2273 ac_site_file1=$prefix/share/config.site
2274 ac_site_file2=$prefix/etc/config.site
2276 ac_site_file1=$ac_default_prefix/share/config.site
2277 ac_site_file2=$ac_default_prefix/etc/config.site
2279 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2281 test "x$ac_site_file" = xNONE && continue
2282 if test -r "$ac_site_file"; then
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2284 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2285 sed 's/^/| /' "$ac_site_file" >&5
2290 if test -r "$cache_file"; then
2291 # Some versions of bash will fail to source /dev/null (special
2292 # files actually), so we avoid doing that.
2293 if test -f "$cache_file"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2295 $as_echo "$as_me: loading cache $cache_file" >&6;}
2297 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2298 *) . "./$cache_file";;
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2303 $as_echo "$as_me: creating cache $cache_file" >&6;}
2307 # Check that the precious variables saved in the cache have kept the same
2309 ac_cache_corrupted=false
2310 for ac_var in $ac_precious_vars; do
2311 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2312 eval ac_new_set=\$ac_env_${ac_var}_set
2313 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2314 eval ac_new_val=\$ac_env_${ac_var}_value
2315 case $ac_old_set,$ac_new_set in
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2318 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2319 ac_cache_corrupted=: ;;
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2322 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2323 ac_cache_corrupted=: ;;
2326 if test "x$ac_old_val" != "x$ac_new_val"; then
2327 # differences in whitespace do not lead to failure.
2328 ac_old_val_w=`echo x $ac_old_val`
2329 ac_new_val_w=`echo x $ac_new_val`
2330 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2332 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2333 ac_cache_corrupted=:
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2336 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2337 eval $ac_var=\$ac_old_val
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2340 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2342 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2345 # Pass precious variables to config.status.
2346 if test "$ac_new_set" = set; then
2348 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 *) ac_arg=$ac_var=$ac_new_val ;;
2351 case " $ac_configure_args " in
2352 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2353 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2357 if $ac_cache_corrupted; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2361 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2362 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2364 ## -------------------- ##
2365 ## Main body of script. ##
2366 ## -------------------- ##
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installation prefix" >&5
2378 $as_echo_n "checking for installation prefix... " >&6; }
2379 if test "${unet_cv_prefix+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
2382 unet_cv_prefix=$HOME
2385 if test x"$prefix" != xNONE; then
2386 unet_cv_prefix=$prefix
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_prefix" >&5
2389 $as_echo "$unet_cv_prefix" >&6; }
2390 ac_default_prefix=$unet_cv_prefix
2392 ac_config_headers="$ac_config_headers config.h"
2398 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2399 for ac_t in install-sh install.sh shtool; do
2400 if test -f "$ac_dir/$ac_t"; then
2402 ac_install_sh="$ac_aux_dir/$ac_t -c"
2407 if test -z "$ac_aux_dir"; then
2408 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2416 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2417 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2425 $as_echo_n "checking build system type... " >&6; }
2426 if test "${ac_cv_build+set}" = set; then :
2427 $as_echo_n "(cached) " >&6
2429 ac_build_alias=$build_alias
2430 test "x$ac_build_alias" = x &&
2431 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2432 test "x$ac_build_alias" = x &&
2433 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2434 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2435 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2439 $as_echo "$ac_cv_build" >&6; }
2440 case $ac_cv_build in
2442 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2445 ac_save_IFS=$IFS; IFS='-'
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2455 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2459 $as_echo_n "checking host system type... " >&6; }
2460 if test "${ac_cv_host+set}" = set; then :
2461 $as_echo_n "(cached) " >&6
2463 if test "x$host_alias" = x; then
2464 ac_cv_host=$ac_cv_build
2466 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2467 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2472 $as_echo "$ac_cv_host" >&6; }
2475 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2478 ac_save_IFS=$IFS; IFS='-'
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2488 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test -n "$CC"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2536 if test -z "$ac_cv_prog_CC"; then
2538 # Extract the first word of "gcc", so it can be a program name with args.
2539 set dummy gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2545 if test -n "$ac_ct_CC"; then
2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_ac_ct_CC="gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2566 if test -n "$ac_ct_CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2568 $as_echo "$ac_ct_CC" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2574 if test "x$ac_ct_CC" = x; then
2577 case $cross_compiling:$ac_tool_warned in
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2589 if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}cc; ac_word=$2
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 $as_echo_n "checking for $ac_word... " >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then :
2596 $as_echo_n "(cached) " >&6
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_CC="${ac_tool_prefix}cc"
2609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test -n "$CC"; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2621 $as_echo "$CC" >&6; }
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 $as_echo "no" >&6; }
2630 if test -z "$CC"; then
2631 # Extract the first word of "cc", so it can be a program name with args.
2632 set dummy cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if test "${ac_cv_prog_CC+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2650 ac_prog_rejected=yes
2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 if test $ac_prog_rejected = yes; then
2662 # We found a bogon in the path, so make sure we never use it.
2663 set dummy $ac_cv_prog_CC
2665 if test $# != 0; then
2666 # We chose a different compiler from the bogus one.
2667 # However, it has the same basename, so the bogon will be chosen
2668 # first if we set CC to just the basename; use the full file name.
2670 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2676 if test -n "$CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2678 $as_echo "$CC" >&6; }
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2686 if test -z "$CC"; then
2687 if test -n "$ac_tool_prefix"; then
2688 for ac_prog in cl.exe
2690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2691 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693 $as_echo_n "checking for $ac_word... " >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 test -z "$as_dir" && as_dir=.
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2718 if test -n "$CC"; then
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2720 $as_echo "$CC" >&6; }
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723 $as_echo "no" >&6; }
2727 test -n "$CC" && break
2730 if test -z "$CC"; then
2732 for ac_prog in cl.exe
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy $ac_prog; ac_word=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$ac_ct_CC"; then
2742 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_ac_ct_CC="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2764 $as_echo "$ac_ct_CC" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$ac_ct_CC" && break
2774 if test "x$ac_ct_CC" = x; then
2777 case $cross_compiling:$ac_tool_warned in
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2790 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2792 as_fn_error "no acceptable C compiler found in \$PATH
2793 See \`config.log' for more details." "$LINENO" 5; }
2795 # Provide some information about the compiler.
2796 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2799 for ac_option in --version -v -V -qversion; do
2800 { { ac_try="$ac_compiler $ac_option >&5"
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806 $as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2809 if test -s conftest.err; then
2811 ... rest of stderr output deleted ...
2812 10q' conftest.err >conftest.er1
2813 cat conftest.er1 >&5
2814 rm -f conftest.er1 conftest.err
2816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2817 test $ac_status = 0; }
2820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821 /* end confdefs.h. */
2826 FILE *f = fopen ("conftest.out", "w");
2827 return ferror (f) || fclose (f) != 0;
2833 ac_clean_files_save=$ac_clean_files
2834 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2835 # Try to create an executable without -o first, disregard a.out.
2836 # It will help us diagnose broken compilers, and finding out an intuition
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839 $as_echo_n "checking for C compiler default output file name... " >&6; }
2840 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2842 # The possible output files:
2843 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2846 for ac_file in $ac_files
2849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2850 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2855 if { { ac_try="$ac_link_default"
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2861 $as_echo "$ac_try_echo"; } >&5
2862 (eval "$ac_link_default") 2>&5
2864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2865 test $ac_status = 0; }; then :
2866 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2867 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2868 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2869 # so that the user can short-circuit this test for compilers unknown to
2871 for ac_file in $ac_files ''
2873 test -f "$ac_file" || continue
2875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2878 # We found the default executable, but exeext='' is most
2882 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2884 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2886 # We set ac_cv_exeext here because the later test for it is not
2887 # safe: cross compilers may not add the suffix if given an `-o'
2888 # argument, so we may need to know it at that point already.
2889 # Even if this section looks crufty: it has the advantage of
2896 test "$ac_cv_exeext" = no && ac_cv_exeext=
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2902 $as_echo "$ac_file" >&6; }
2903 if test -z "$ac_file"; then :
2904 $as_echo "$as_me: failed program was:" >&5
2905 sed 's/^/| /' conftest.$ac_ext >&5
2907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2909 { as_fn_set_status 77
2910 as_fn_error "C compiler cannot create executables
2911 See \`config.log' for more details." "$LINENO" 5; }; }
2913 ac_exeext=$ac_cv_exeext
2915 # Check that the compiler produces executables we can run. If not, either
2916 # the compiler is broken, or we cross compile.
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2918 $as_echo_n "checking whether the C compiler works... " >&6; }
2919 # If not cross compiling, check that we can run a simple program.
2920 if test "$cross_compiling" != yes; then
2921 if { ac_try='./$ac_file'
2922 { { case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_try") 2>&5
2930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931 test $ac_status = 0; }; }; then
2934 if test "$cross_compiling" = maybe; then
2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error "cannot run C compiled programs.
2940 If you meant to cross compile, use \`--host'.
2941 See \`config.log' for more details." "$LINENO" 5; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2946 $as_echo "yes" >&6; }
2948 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2949 ac_clean_files=$ac_clean_files_save
2950 # Check that the compiler produces executables we can run. If not, either
2951 # the compiler is broken, or we cross compile.
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2953 $as_echo_n "checking whether we are cross compiling... " >&6; }
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2955 $as_echo "$cross_compiling" >&6; }
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2958 $as_echo_n "checking for suffix of executables... " >&6; }
2959 if { { ac_try="$ac_link"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link") 2>&5
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2972 # work properly (i.e., refer to `conftest.exe'), while it won't with
2974 for ac_file in conftest.exe conftest conftest.*; do
2975 test -f "$ac_file" || continue
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error "cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details." "$LINENO" 5; }
2989 rm -f conftest$ac_cv_exeext
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2991 $as_echo "$ac_cv_exeext" >&6; }
2993 rm -f conftest.$ac_ext
2994 EXEEXT=$ac_cv_exeext
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2997 $as_echo_n "checking for suffix of object files... " >&6; }
2998 if test "${ac_cv_objext+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h. */
3012 rm -f conftest.o conftest.obj
3013 if { { ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3019 $as_echo "$ac_try_echo"; } >&5
3020 (eval "$ac_compile") 2>&5
3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3023 test $ac_status = 0; }; then :
3024 for ac_file in conftest.o conftest.obj conftest.*; do
3025 test -f "$ac_file" || continue;
3027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3028 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3033 $as_echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3038 as_fn_error "cannot compute suffix of object files: cannot compile
3039 See \`config.log' for more details." "$LINENO" 5; }
3041 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3044 $as_echo "$ac_cv_objext" >&6; }
3045 OBJEXT=$ac_cv_objext
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3048 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3049 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3066 if ac_fn_c_try_compile "$LINENO"; then :
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3076 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3077 if test $ac_compiler_gnu = yes; then
3082 ac_test_CFLAGS=${CFLAGS+set}
3083 ac_save_CFLAGS=$CFLAGS
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3085 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3086 if test "${ac_cv_prog_cc_g+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 ac_save_c_werror_flag=$ac_c_werror_flag
3090 ac_c_werror_flag=yes
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3104 if ac_fn_c_try_compile "$LINENO"; then :
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3119 if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_c_werror_flag=$ac_save_c_werror_flag
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3135 if ac_fn_c_try_compile "$LINENO"; then :
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_c_werror_flag=$ac_save_c_werror_flag
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3146 $as_echo "$ac_cv_prog_cc_g" >&6; }
3147 if test "$ac_test_CFLAGS" = set; then
3148 CFLAGS=$ac_save_CFLAGS
3149 elif test $ac_cv_prog_cc_g = yes; then
3150 if test "$GCC" = yes; then
3156 if test "$GCC" = yes; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3163 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3164 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3167 ac_cv_prog_cc_c89=no
3169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3170 /* end confdefs.h. */
3173 #include <sys/types.h>
3174 #include <sys/stat.h>
3175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3176 struct buf { int x; };
3177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3178 static char *e (p, i)
3184 static char *f (char * (*g) (char **, int), char **p, ...)
3189 s = g (p, va_arg (v,int));
3194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3195 function prototypes and stuff, but not '\xHH' hex character constants.
3196 These don't provoke an error unfortunately, instead are silently treated
3197 as 'x'. The following induces an error, until -std is added to get
3198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3199 array size at least. It's necessary to write '\x00'==0 to get something
3200 that's true only with -std. */
3201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3204 inside strings and character constants. */
3206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3208 int test (int i, double x);
3209 struct s1 {int (*f) (int a);};
3210 struct s2 {int (*f) (double a);};
3211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225 CC="$ac_save_CC $ac_arg"
3226 if ac_fn_c_try_compile "$LINENO"; then :
3227 ac_cv_prog_cc_c89=$ac_arg
3229 rm -f core conftest.err conftest.$ac_objext
3230 test "x$ac_cv_prog_cc_c89" != "xno" && break
3232 rm -f conftest.$ac_ext
3237 case "x$ac_cv_prog_cc_c89" in
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3240 $as_echo "none needed" >&6; } ;;
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3243 $as_echo "unsupported" >&6; } ;;
3245 CC="$CC $ac_cv_prog_cc_c89"
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3247 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3249 if test "x$ac_cv_prog_cc_c89" != xno; then :
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 if test -n "$CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3304 if test -z "$ac_cv_prog_CC"; then
3306 # Extract the first word of "gcc", so it can be a program name with args.
3307 set dummy gcc; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_ac_ct_CC="gcc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3334 if test -n "$ac_ct_CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3336 $as_echo "$ac_ct_CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3342 if test "x$ac_ct_CC" = x; then
3345 case $cross_compiling:$ac_tool_warned in
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3349 ac_tool_warned=yes ;;
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3360 set dummy ${ac_tool_prefix}cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 test -z "$as_dir" && as_dir=.
3374 for ac_exec_ext in '' $ac_executable_extensions; do
3375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3376 ac_cv_prog_CC="${ac_tool_prefix}cc"
3377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 if test -n "$CC"; then
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3389 $as_echo "$CC" >&6; }
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3392 $as_echo "no" >&6; }
3398 if test -z "$CC"; then
3399 # Extract the first word of "cc", so it can be a program name with args.
3400 set dummy cc; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_CC+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC="$CC" # Let the user override the test.
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3418 ac_prog_rejected=yes
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 if test $ac_prog_rejected = yes; then
3430 # We found a bogon in the path, so make sure we never use it.
3431 set dummy $ac_cv_prog_CC
3433 if test $# != 0; then
3434 # We chose a different compiler from the bogus one.
3435 # However, it has the same basename, so the bogon will be chosen
3436 # first if we set CC to just the basename; use the full file name.
3438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444 if test -n "$CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3454 if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 for ac_prog in cl.exe
3458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3461 $as_echo_n "checking for $ac_word... " >&6; }
3462 if test "${ac_cv_prog_CC+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -n "$CC"; then
3466 ac_cv_prog_CC="$CC" # Let the user override the test.
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 for ac_exec_ext in '' $ac_executable_extensions; do
3474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 if test -n "$CC"; then
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488 $as_echo "$CC" >&6; }
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491 $as_echo "no" >&6; }
3495 test -n "$CC" && break
3498 if test -z "$CC"; then
3500 for ac_prog in cl.exe
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505 $as_echo_n "checking for $ac_word... " >&6; }
3506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3507 $as_echo_n "(cached) " >&6
3509 if test -n "$ac_ct_CC"; then
3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519 ac_cv_prog_ac_ct_CC="$ac_prog"
3520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3530 if test -n "$ac_ct_CC"; then
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3532 $as_echo "$ac_ct_CC" >&6; }
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 $as_echo "no" >&6; }
3539 test -n "$ac_ct_CC" && break
3542 if test "x$ac_ct_CC" = x; then
3545 case $cross_compiling:$ac_tool_warned in
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3560 as_fn_error "no acceptable C compiler found in \$PATH
3561 See \`config.log' for more details." "$LINENO" 5; }
3563 # Provide some information about the compiler.
3564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3567 for ac_option in --version -v -V -qversion; do
3568 { { ac_try="$ac_compiler $ac_option >&5"
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3577 if test -s conftest.err; then
3579 ... rest of stderr output deleted ...
3580 10q' conftest.err >conftest.er1
3581 cat conftest.er1 >&5
3582 rm -f conftest.er1 conftest.err
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3589 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3590 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3607 if ac_fn_c_try_compile "$LINENO"; then :
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3617 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3618 if test $ac_compiler_gnu = yes; then
3623 ac_test_CFLAGS=${CFLAGS+set}
3624 ac_save_CFLAGS=$CFLAGS
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3626 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3627 if test "${ac_cv_prog_cc_g+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3630 ac_save_c_werror_flag=$ac_c_werror_flag
3631 ac_c_werror_flag=yes
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3645 if ac_fn_c_try_compile "$LINENO"; then :
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3660 if ac_fn_c_try_compile "$LINENO"; then :
3663 ac_c_werror_flag=$ac_save_c_werror_flag
3665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3666 /* end confdefs.h. */
3676 if ac_fn_c_try_compile "$LINENO"; then :
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_c_werror_flag=$ac_save_c_werror_flag
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3687 $as_echo "$ac_cv_prog_cc_g" >&6; }
3688 if test "$ac_test_CFLAGS" = set; then
3689 CFLAGS=$ac_save_CFLAGS
3690 elif test $ac_cv_prog_cc_g = yes; then
3691 if test "$GCC" = yes; then
3697 if test "$GCC" = yes; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3705 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3708 ac_cv_prog_cc_c89=no
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 #include <sys/types.h>
3715 #include <sys/stat.h>
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3730 s = g (p, va_arg (v,int));
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3736 function prototypes and stuff, but not '\xHH' hex character constants.
3737 These don't provoke an error unfortunately, instead are silently treated
3738 as 'x'. The following induces an error, until -std is added to get
3739 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3740 array size at least. It's necessary to write '\x00'==0 to get something
3741 that's true only with -std. */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745 inside strings and character constants. */
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3766 CC="$ac_save_CC $ac_arg"
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_c89=$ac_arg
3770 rm -f core conftest.err conftest.$ac_objext
3771 test "x$ac_cv_prog_cc_c89" != "xno" && break
3773 rm -f conftest.$ac_ext
3778 case "x$ac_cv_prog_cc_c89" in
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3781 $as_echo "none needed" >&6; } ;;
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3784 $as_echo "unsupported" >&6; } ;;
3786 CC="$CC $ac_cv_prog_cc_c89"
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3788 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3790 if test "x$ac_cv_prog_cc_c89" != xno; then :
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3801 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
3807 $as_echo_n "checking for library containing crypt... " >&6; }
3808 if test "${ac_cv_search_crypt+set}" = set; then :
3809 $as_echo_n "(cached) " >&6
3811 ac_func_search_save_LIBS=$LIBS
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3815 /* Override any GCC internal prototype to avoid an error.
3816 Use char because int might match the return type of a GCC
3817 builtin and then its argument prototype would still apply. */
3830 for ac_lib in '' descrypt crypt; do
3831 if test -z "$ac_lib"; then
3832 ac_res="none required"
3835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3837 if ac_fn_c_try_link "$LINENO"; then :
3838 ac_cv_search_crypt=$ac_res
3840 rm -f core conftest.err conftest.$ac_objext \
3842 if test "${ac_cv_search_crypt+set}" = set; then :
3846 if test "${ac_cv_search_crypt+set}" = set; then :
3849 ac_cv_search_crypt=no
3852 LIBS=$ac_func_search_save_LIBS
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
3855 $as_echo "$ac_cv_search_crypt" >&6; }
3856 ac_res=$ac_cv_search_crypt
3857 if test "$ac_res" != no; then :
3858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3861 as_fn_error "Unable to find library containing crypt()" "$LINENO" 5
3866 # Most operating systems have gethostbyname() in the default searched
3867 # libraries (i.e. libc):
3868 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
3869 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
3872 # Some OSes (eg. Solaris) place it in libnsl:
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
3874 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3875 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 ac_check_lib_save_LIBS=$LIBS
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3883 /* Override any GCC internal prototype to avoid an error.
3884 Use char because int might match the return type of a GCC
3885 builtin and then its argument prototype would still apply. */
3889 char gethostbyname ();
3893 return gethostbyname ();
3898 if ac_fn_c_try_link "$LINENO"; then :
3899 ac_cv_lib_nsl_gethostbyname=yes
3901 ac_cv_lib_nsl_gethostbyname=no
3903 rm -f core conftest.err conftest.$ac_objext \
3904 conftest$ac_exeext conftest.$ac_ext
3905 LIBS=$ac_check_lib_save_LIBS
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
3908 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3909 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
3910 cat >>confdefs.h <<_ACEOF
3911 #define HAVE_LIBNSL 1
3917 # Some strange OSes (SINIX) have it in libsocket:
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
3919 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3920 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
3921 $as_echo_n "(cached) " >&6
3923 ac_check_lib_save_LIBS=$LIBS
3924 LIBS="-lsocket $LIBS"
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3928 /* Override any GCC internal prototype to avoid an error.
3929 Use char because int might match the return type of a GCC
3930 builtin and then its argument prototype would still apply. */
3934 char gethostbyname ();
3938 return gethostbyname ();
3943 if ac_fn_c_try_link "$LINENO"; then :
3944 ac_cv_lib_socket_gethostbyname=yes
3946 ac_cv_lib_socket_gethostbyname=no
3948 rm -f core conftest.err conftest.$ac_objext \
3949 conftest$ac_exeext conftest.$ac_ext
3950 LIBS=$ac_check_lib_save_LIBS
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
3953 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
3954 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
3955 cat >>confdefs.h <<_ACEOF
3956 #define HAVE_LIBSOCKET 1
3959 LIBS="-lsocket $LIBS"
3962 # Unfortunately libsocket sometimes depends on libnsl.
3963 # AC_CHECK_LIB's API is essentially broken so the following
3964 # ugliness is necessary:
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
3966 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3967 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
3970 ac_check_lib_save_LIBS=$LIBS
3971 LIBS="-lsocket -lnsl $LIBS"
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3975 /* Override any GCC internal prototype to avoid an error.
3976 Use char because int might match the return type of a GCC
3977 builtin and then its argument prototype would still apply. */
3981 char gethostbyname ();
3985 return gethostbyname ();
3990 if ac_fn_c_try_link "$LINENO"; then :
3991 ac_cv_lib_socket_gethostbyname=yes
3993 ac_cv_lib_socket_gethostbyname=no
3995 rm -f core conftest.err conftest.$ac_objext \
3996 conftest$ac_exeext conftest.$ac_ext
3997 LIBS=$ac_check_lib_save_LIBS
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
4000 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4001 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then :
4002 LIBS="-lsocket -lnsl $LIBS"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lresolv" >&5
4005 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
4006 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4009 ac_check_lib_save_LIBS=$LIBS
4010 LIBS="-lresolv $LIBS"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4014 /* Override any GCC internal prototype to avoid an error.
4015 Use char because int might match the return type of a GCC
4016 builtin and then its argument prototype would still apply. */
4020 char gethostbyname ();
4024 return gethostbyname ();
4029 if ac_fn_c_try_link "$LINENO"; then :
4030 ac_cv_lib_resolv_gethostbyname=yes
4032 ac_cv_lib_resolv_gethostbyname=no
4034 rm -f core conftest.err conftest.$ac_objext \
4035 conftest$ac_exeext conftest.$ac_ext
4036 LIBS=$ac_check_lib_save_LIBS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname" >&5
4039 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
4040 if test "x$ac_cv_lib_resolv_gethostbyname" = x""yes; then :
4041 cat >>confdefs.h <<_ACEOF
4042 #define HAVE_LIBRESOLV 1
4045 LIBS="-lresolv $LIBS"
4060 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
4061 if test "x$ac_cv_func_socket" = x""yes; then :
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4065 $as_echo_n "checking for socket in -lsocket... " >&6; }
4066 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
4069 ac_check_lib_save_LIBS=$LIBS
4070 LIBS="-lsocket $LIBS"
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4074 /* Override any GCC internal prototype to avoid an error.
4075 Use char because int might match the return type of a GCC
4076 builtin and then its argument prototype would still apply. */
4089 if ac_fn_c_try_link "$LINENO"; then :
4090 ac_cv_lib_socket_socket=yes
4092 ac_cv_lib_socket_socket=no
4094 rm -f core conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
4096 LIBS=$ac_check_lib_save_LIBS
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4099 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4100 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4101 cat >>confdefs.h <<_ACEOF
4102 #define HAVE_LIBSOCKET 1
4105 LIBS="-lsocket $LIBS"
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
4109 $as_echo_n "checking for socket in -lsocket... " >&6; }
4110 if test "${ac_cv_lib_socket_socket+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
4113 ac_check_lib_save_LIBS=$LIBS
4114 LIBS="-lsocket -lnsl $LIBS"
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4118 /* Override any GCC internal prototype to avoid an error.
4119 Use char because int might match the return type of a GCC
4120 builtin and then its argument prototype would still apply. */
4133 if ac_fn_c_try_link "$LINENO"; then :
4134 ac_cv_lib_socket_socket=yes
4136 ac_cv_lib_socket_socket=no
4138 rm -f core conftest.err conftest.$ac_objext \
4139 conftest$ac_exeext conftest.$ac_ext
4140 LIBS=$ac_check_lib_save_LIBS
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
4143 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4144 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
4145 LIBS="-lsocket -lnsl $LIBS"
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4160 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4165 if test -z "$CPP"; then
4166 if test "${ac_cv_prog_CPP+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4173 for ac_c_preproc_warn_flag in '' yes
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error" is here to catch this case.
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4184 # include <limits.h>
4186 # include <assert.h>
4190 if ac_fn_c_try_cpp "$LINENO"; then :
4193 # Broken: fails on valid input.
4196 rm -f conftest.err conftest.$ac_ext
4198 # OK, works on sane cases. Now check whether nonexistent headers
4199 # can be detected and how.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <ac_nonexistent.h>
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205 # Broken: success on invalid input.
4208 # Passes both tests.
4212 rm -f conftest.err conftest.$ac_ext
4215 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4216 rm -f conftest.err conftest.$ac_ext
4217 if $ac_preproc_ok; then :
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4230 $as_echo "$CPP" >&6; }
4232 for ac_c_preproc_warn_flag in '' yes
4234 # Use a header file that comes with gcc, so configuring glibc
4235 # with a fresh cross-compiler works.
4236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4237 # <limits.h> exists even on freestanding compilers.
4238 # On the NeXT, cc -E runs the code through the compiler's parser,
4239 # not just through cpp. "Syntax error" is here to catch this case.
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4243 # include <limits.h>
4245 # include <assert.h>
4249 if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: fails on valid input.
4255 rm -f conftest.err conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4261 #include <ac_nonexistent.h>
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4264 # Broken: success on invalid input.
4267 # Passes both tests.
4271 rm -f conftest.err conftest.$ac_ext
4274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4275 rm -f conftest.err conftest.$ac_ext
4276 if $ac_preproc_ok; then :
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4282 See \`config.log' for more details." "$LINENO" 5; }
4286 ac_cpp='$CPP $CPPFLAGS'
4287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4293 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4294 if test "${ac_cv_path_GREP+set}" = set; then :
4295 $as_echo_n "(cached) " >&6
4297 if test -z "$GREP"; then
4298 ac_path_GREP_found=false
4299 # Loop through the user's path and test for each of PROGNAME-LIST
4300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 test -z "$as_dir" && as_dir=.
4305 for ac_prog in grep ggrep; do
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4308 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4309 # Check for GNU ac_path_GREP and select it if it is found.
4310 # Check for GNU $ac_path_GREP
4311 case `"$ac_path_GREP" --version 2>&1` in
4313 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4316 $as_echo_n 0123456789 >"conftest.in"
4319 cat "conftest.in" "conftest.in" >"conftest.tmp"
4320 mv "conftest.tmp" "conftest.in"
4321 cp "conftest.in" "conftest.nl"
4322 $as_echo 'GREP' >> "conftest.nl"
4323 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4324 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4325 as_fn_arith $ac_count + 1 && ac_count=$as_val
4326 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4327 # Best one so far, save it but keep looking for a better one
4328 ac_cv_path_GREP="$ac_path_GREP"
4329 ac_path_GREP_max=$ac_count
4331 # 10*(2^10) chars as input seems more than enough
4332 test $ac_count -gt 10 && break
4334 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337 $ac_path_GREP_found && break 3
4342 if test -z "$ac_cv_path_GREP"; then
4343 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346 ac_cv_path_GREP=$GREP
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4351 $as_echo "$ac_cv_path_GREP" >&6; }
4352 GREP="$ac_cv_path_GREP"
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4356 $as_echo_n "checking for egrep... " >&6; }
4357 if test "${ac_cv_path_EGREP+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4360 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4361 then ac_cv_path_EGREP="$GREP -E"
4363 if test -z "$EGREP"; then
4364 ac_path_EGREP_found=false
4365 # Loop through the user's path and test for each of PROGNAME-LIST
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4370 test -z "$as_dir" && as_dir=.
4371 for ac_prog in egrep; do
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4374 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4375 # Check for GNU ac_path_EGREP and select it if it is found.
4376 # Check for GNU $ac_path_EGREP
4377 case `"$ac_path_EGREP" --version 2>&1` in
4379 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4382 $as_echo_n 0123456789 >"conftest.in"
4385 cat "conftest.in" "conftest.in" >"conftest.tmp"
4386 mv "conftest.tmp" "conftest.in"
4387 cp "conftest.in" "conftest.nl"
4388 $as_echo 'EGREP' >> "conftest.nl"
4389 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4391 as_fn_arith $ac_count + 1 && ac_count=$as_val
4392 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4393 # Best one so far, save it but keep looking for a better one
4394 ac_cv_path_EGREP="$ac_path_EGREP"
4395 ac_path_EGREP_max=$ac_count
4397 # 10*(2^10) chars as input seems more than enough
4398 test $ac_count -gt 10 && break
4400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 $ac_path_EGREP_found && break 3
4408 if test -z "$ac_cv_path_EGREP"; then
4409 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4412 ac_cv_path_EGREP=$EGREP
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4418 $as_echo "$ac_cv_path_EGREP" >&6; }
4419 EGREP="$ac_cv_path_EGREP"
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4423 $as_echo_n "checking for ANSI C header files... " >&6; }
4424 if test "${ac_cv_header_stdc+set}" = set; then :
4425 $as_echo_n "(cached) " >&6
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428 /* end confdefs.h. */
4442 if ac_fn_c_try_compile "$LINENO"; then :
4443 ac_cv_header_stdc=yes
4445 ac_cv_header_stdc=no
4447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4449 if test $ac_cv_header_stdc = yes; then
4450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457 $EGREP "memchr" >/dev/null 2>&1; then :
4460 ac_cv_header_stdc=no
4466 if test $ac_cv_header_stdc = yes; then
4467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4474 $EGREP "free" >/dev/null 2>&1; then :
4477 ac_cv_header_stdc=no
4483 if test $ac_cv_header_stdc = yes; then
4484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4485 if test "$cross_compiling" = yes; then :
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4492 #if ((' ' & 0x0FF) == 0x020)
4493 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4494 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4496 # define ISLOWER(c) \
4497 (('a' <= (c) && (c) <= 'i') \
4498 || ('j' <= (c) && (c) <= 'r') \
4499 || ('s' <= (c) && (c) <= 'z'))
4500 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4508 for (i = 0; i < 256; i++)
4509 if (XOR (islower (i), ISLOWER (i))
4510 || toupper (i) != TOUPPER (i))
4515 if ac_fn_c_try_run "$LINENO"; then :
4518 ac_cv_header_stdc=no
4520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4521 conftest.$ac_objext conftest.beam conftest.$ac_ext
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4527 $as_echo "$ac_cv_header_stdc" >&6; }
4528 if test $ac_cv_header_stdc = yes; then
4530 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4534 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4535 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4536 inttypes.h stdint.h unistd.h
4538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4539 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4541 eval as_val=\$$as_ac_Header
4542 if test "x$as_val" = x""yes; then :
4543 cat >>confdefs.h <<_ACEOF
4544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552 for ac_header in crypt.h poll.h inttypes.h stdint.h sys/devpoll.h sys/epoll.h sys/event.h sys/param.h sys/resource.h sys/socket.h
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4556 eval as_val=\$$as_ac_Header
4557 if test "x$as_val" = x""yes; then :
4558 cat >>confdefs.h <<_ACEOF
4559 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4568 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4569 if test "${ac_cv_c_bigendian+set}" = set; then :
4570 $as_echo_n "(cached) " >&6
4572 ac_cv_c_bigendian=unknown
4573 # See if we're dealing with a universal compiler.
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #ifndef __APPLE_CC__
4577 not a universal capable compiler
4582 if ac_fn_c_try_compile "$LINENO"; then :
4584 # Check for potential -arch flags. It is not universal unless
4585 # there are at least two -arch flags with different values.
4588 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4589 if test -n "$ac_prev"; then
4591 i?86 | x86_64 | ppc | ppc64)
4592 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4595 ac_cv_c_bigendian=universal
4601 elif test "x$ac_word" = "x-arch"; then
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 if test $ac_cv_c_bigendian = unknown; then
4608 # See if sys/param.h defines the BYTE_ORDER macro.
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4611 #include <sys/types.h>
4612 #include <sys/param.h>
4617 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4618 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4627 if ac_fn_c_try_compile "$LINENO"; then :
4628 # It does; now see whether it defined to BIG_ENDIAN or not.
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631 #include <sys/types.h>
4632 #include <sys/param.h>
4637 #if BYTE_ORDER != BIG_ENDIAN
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 ac_cv_c_bigendian=yes
4648 ac_cv_c_bigendian=no
4650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 if test $ac_cv_c_bigendian = unknown; then
4655 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4663 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4671 if ac_fn_c_try_compile "$LINENO"; then :
4672 # It does; now see whether it defined to _BIG_ENDIAN or not.
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4688 if ac_fn_c_try_compile "$LINENO"; then :
4689 ac_cv_c_bigendian=yes
4691 ac_cv_c_bigendian=no
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697 if test $ac_cv_c_bigendian = unknown; then
4698 # Compile a test program.
4699 if test "$cross_compiling" = yes; then :
4700 # Try to guess by grepping values from an object file.
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 short int ascii_mm[] =
4704 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4705 short int ascii_ii[] =
4706 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4707 int use_ascii (int i) {
4708 return ascii_mm[i] + ascii_ii[i];
4710 short int ebcdic_ii[] =
4711 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4712 short int ebcdic_mm[] =
4713 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4714 int use_ebcdic (int i) {
4715 return ebcdic_mm[i] + ebcdic_ii[i];
4722 return use_ascii (foo) == use_ebcdic (foo);
4727 if ac_fn_c_try_compile "$LINENO"; then :
4728 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4729 ac_cv_c_bigendian=yes
4731 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4732 if test "$ac_cv_c_bigendian" = unknown; then
4733 ac_cv_c_bigendian=no
4735 # finding both strings is unlikely to happen, but who knows?
4736 ac_cv_c_bigendian=unknown
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744 $ac_includes_default
4749 /* Are we little or big endian? From Harbison&Steele. */
4753 char c[sizeof (long int)];
4756 return u.c[sizeof (long int) - 1] == 1;
4762 if ac_fn_c_try_run "$LINENO"; then :
4763 ac_cv_c_bigendian=no
4765 ac_cv_c_bigendian=yes
4767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4768 conftest.$ac_objext conftest.beam conftest.$ac_ext
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4774 $as_echo "$ac_cv_c_bigendian" >&6; }
4775 case $ac_cv_c_bigendian in #(
4777 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
4783 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4787 as_fn_error "unknown endianness
4788 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4791 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4792 if test "x$ac_cv_type_size_t" = x""yes; then :
4796 cat >>confdefs.h <<_ACEOF
4797 #define size_t unsigned int
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4803 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4804 if test "${ac_cv_header_time+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4809 #include <sys/types.h>
4810 #include <sys/time.h>
4816 if ((struct tm *) 0)
4822 if ac_fn_c_try_compile "$LINENO"; then :
4823 ac_cv_header_time=yes
4825 ac_cv_header_time=no
4827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4830 $as_echo "$ac_cv_header_time" >&6; }
4831 if test $ac_cv_header_time = yes; then
4833 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
4838 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
4839 if test "${ac_cv_struct_tm+set}" = set; then :
4840 $as_echo_n "(cached) " >&6
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 #include <sys/types.h>
4851 int *p = &tm.tm_sec;
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858 ac_cv_struct_tm=time.h
4860 ac_cv_struct_tm=sys/time.h
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
4865 $as_echo "$ac_cv_struct_tm" >&6; }
4866 if test $ac_cv_struct_tm = sys/time.h; then
4868 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
4873 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
4874 if test "${ac_cv_type_uid_t+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <sys/types.h>
4882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883 $EGREP "uid_t" >/dev/null 2>&1; then :
4884 ac_cv_type_uid_t=yes
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
4892 $as_echo "$ac_cv_type_uid_t" >&6; }
4893 if test $ac_cv_type_uid_t = no; then
4895 $as_echo "#define uid_t int" >>confdefs.h
4898 $as_echo "#define gid_t int" >>confdefs.h
4902 # The cast to long int works around a bug in the HP C Compiler
4903 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4904 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4905 # This bug is HP SR number 8606223364.
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
4907 $as_echo_n "checking size of short... " >&6; }
4908 if test "${ac_cv_sizeof_short+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4911 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
4914 if test "$ac_cv_type_short" = yes; then
4915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4917 { as_fn_set_status 77
4918 as_fn_error "cannot compute sizeof (short)
4919 See \`config.log' for more details." "$LINENO" 5; }; }
4921 ac_cv_sizeof_short=0
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
4927 $as_echo "$ac_cv_sizeof_short" >&6; }
4931 cat >>confdefs.h <<_ACEOF
4932 #define SIZEOF_SHORT $ac_cv_sizeof_short
4936 # The cast to long int works around a bug in the HP C Compiler
4937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4939 # This bug is HP SR number 8606223364.
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4941 $as_echo_n "checking size of int... " >&6; }
4942 if test "${ac_cv_sizeof_int+set}" = set; then :
4943 $as_echo_n "(cached) " >&6
4945 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4948 if test "$ac_cv_type_int" = yes; then
4949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 { as_fn_set_status 77
4952 as_fn_error "cannot compute sizeof (int)
4953 See \`config.log' for more details." "$LINENO" 5; }; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4961 $as_echo "$ac_cv_sizeof_int" >&6; }
4965 cat >>confdefs.h <<_ACEOF
4966 #define SIZEOF_INT $ac_cv_sizeof_int
4970 # The cast to long int works around a bug in the HP C Compiler
4971 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4972 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4973 # This bug is HP SR number 8606223364.
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4975 $as_echo_n "checking size of long... " >&6; }
4976 if test "${ac_cv_sizeof_long+set}" = set; then :
4977 $as_echo_n "(cached) " >&6
4979 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4982 if test "$ac_cv_type_long" = yes; then
4983 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4984 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4985 { as_fn_set_status 77
4986 as_fn_error "cannot compute sizeof (long)
4987 See \`config.log' for more details." "$LINENO" 5; }; }
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4995 $as_echo "$ac_cv_sizeof_long" >&6; }
4999 cat >>confdefs.h <<_ACEOF
5000 #define SIZEOF_LONG $ac_cv_sizeof_long
5004 # The cast to long int works around a bug in the HP C Compiler
5005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5007 # This bug is HP SR number 8606223364.
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5009 $as_echo_n "checking size of void *... " >&6; }
5010 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5013 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5016 if test "$ac_cv_type_void_p" = yes; then
5017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019 { as_fn_set_status 77
5020 as_fn_error "cannot compute sizeof (void *)
5021 See \`config.log' for more details." "$LINENO" 5; }; }
5023 ac_cv_sizeof_void_p=0
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5029 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5033 cat >>confdefs.h <<_ACEOF
5034 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5038 # The cast to long int works around a bug in the HP C Compiler
5039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5041 # This bug is HP SR number 8606223364.
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
5043 $as_echo_n "checking size of int64_t... " >&6; }
5044 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5047 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
5050 if test "$ac_cv_type_int64_t" = yes; then
5051 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5053 { as_fn_set_status 77
5054 as_fn_error "cannot compute sizeof (int64_t)
5055 See \`config.log' for more details." "$LINENO" 5; }; }
5057 ac_cv_sizeof_int64_t=0
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
5063 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
5067 cat >>confdefs.h <<_ACEOF
5068 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
5072 # The cast to long int works around a bug in the HP C Compiler
5073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5075 # This bug is HP SR number 8606223364.
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5077 $as_echo_n "checking size of long long... " >&6; }
5078 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5084 if test "$ac_cv_type_long_long" = yes; then
5085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5087 { as_fn_set_status 77
5088 as_fn_error "cannot compute sizeof (long long)
5089 See \`config.log' for more details." "$LINENO" 5; }; }
5091 ac_cv_sizeof_long_long=0
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5097 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5101 cat >>confdefs.h <<_ACEOF
5102 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5106 if test "$ac_cv_sizeof_int" = 2 ; then
5107 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5108 if test "x$ac_cv_type_int16_t" = x""yes; then :
5112 cat >>confdefs.h <<_ACEOF
5118 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5119 if test "x$ac_cv_type_uint16_t" = x""yes; then :
5123 cat >>confdefs.h <<_ACEOF
5124 #define uint16_t unsigned int
5129 elif test "$ac_cv_sizeof_short" = 2 ; then
5130 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
5131 if test "x$ac_cv_type_int16_t" = x""yes; then :
5135 cat >>confdefs.h <<_ACEOF
5136 #define int16_t short
5141 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
5142 if test "x$ac_cv_type_uint16_t" = x""yes; then :
5146 cat >>confdefs.h <<_ACEOF
5147 #define uint16_t unsigned short
5153 as_fn_error "Cannot find a type with size of 16 bits" "$LINENO" 5
5155 if test "$ac_cv_sizeof_int" = 4 ; then
5156 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5157 if test "x$ac_cv_type_int32_t" = x""yes; then :
5161 cat >>confdefs.h <<_ACEOF
5167 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5168 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5172 cat >>confdefs.h <<_ACEOF
5173 #define uint32_t unsigned int
5178 elif test "$ac_cv_sizeof_short" = 4 ; then
5179 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5180 if test "x$ac_cv_type_int32_t" = x""yes; then :
5184 cat >>confdefs.h <<_ACEOF
5185 #define int32_t short
5190 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5191 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5195 cat >>confdefs.h <<_ACEOF
5196 #define uint32_t unsigned short
5201 elif test "$ac_cv_sizeof_long" = 4 ; then
5202 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
5203 if test "x$ac_cv_type_int32_t" = x""yes; then :
5207 cat >>confdefs.h <<_ACEOF
5208 #define int32_t long
5213 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
5214 if test "x$ac_cv_type_uint32_t" = x""yes; then :
5218 cat >>confdefs.h <<_ACEOF
5219 #define uint32_t unsigned long
5225 as_fn_error "Cannot find a type with size of 32 bits" "$LINENO" 5
5227 if test "$ac_cv_sizeof_int64_t" = 8 ; then
5228 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5229 if test "x$ac_cv_type_int64_t" = x""yes; then :
5233 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5234 if test "x$ac_cv_type_uint64_t" = x""yes; then :
5238 elif test "$ac_cv_sizeof_long_long" = 8 ; then
5239 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5240 if test "x$ac_cv_type_int64_t" = x""yes; then :
5244 cat >>confdefs.h <<_ACEOF
5245 #define int64_t long long
5250 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5251 if test "x$ac_cv_type_uint64_t" = x""yes; then :
5255 cat >>confdefs.h <<_ACEOF
5256 #define uint64_t unsigned long long
5262 as_fn_error "Cannot find a type with size of 64 bits" "$LINENO" 5
5264 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <sys/types.h>
5265 #include <netinet/in.h>
5267 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
5268 unet_have_sockaddr_in6="yes"
5270 unet_have_sockaddr_in6="no"
5274 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5275 #include<sys/socket.h>
5277 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
5282 $as_echo_n "checking for socklen_t equivalent... " >&6; }
5283 if test "${curl_cv_socklen_t_equiv+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5287 curl_cv_socklen_t_equiv=
5288 for arg2 in "struct sockaddr" void ; do
5289 for t in int size_t unsigned long "unsigned long" ; do
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <sys/types.h>
5293 #include <sys/socket.h>
5294 int getpeername (int $arg2 *, $t *);
5299 getpeername(0, 0, &len);
5304 if ac_fn_c_try_compile "$LINENO"; then :
5305 curl_cv_socklen_t_equiv="$t"
5308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_socklen_t_equiv" >&5
5315 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
5317 cat >>confdefs.h <<_ACEOF
5318 #define socklen_t $curl_cv_socklen_t_equiv
5324 for ac_func in kqueue setrlimit getrusage times
5326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5328 eval as_val=\$$as_ac_var
5329 if test "x$as_val" = x""yes; then :
5330 cat >>confdefs.h <<_ACEOF
5331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5339 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5340 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5341 $as_echo_n "(cached) " >&6
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5345 #include <sys/types.h>
5346 #include <sys/wait.h>
5348 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5351 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5359 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5364 if ac_fn_c_try_compile "$LINENO"; then :
5365 ac_cv_header_sys_wait_h=yes
5367 ac_cv_header_sys_wait_h=no
5369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5372 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5373 if test $ac_cv_header_sys_wait_h = yes; then
5375 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for restartable system calls" >&5
5380 $as_echo_n "checking for restartable system calls... " >&6; }
5381 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5384 if test "$cross_compiling" = yes; then :
5385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5387 as_fn_error "cannot run test program while cross compiling
5388 See \`config.log' for more details." "$LINENO" 5; }
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5392 /* Exit 0 (true) if wait returns something other than -1,
5393 i.e. the pid of the child, which means that wait was restarted
5394 after getting the signal. */
5396 $ac_includes_default
5398 #ifdef HAVE_SYS_WAIT_H
5399 # include <sys/wait.h>
5402 /* Some platforms explicitly require an extern "C" signal handler
5405 extern "C" void ucatch (int dummy) { }
5407 void ucatch (dummy) int dummy; { }
5413 int i = fork (), status;
5418 kill (getppid (), SIGINT);
5423 signal (SIGINT, ucatch);
5429 return status == -1;
5432 if ac_fn_c_try_run "$LINENO"; then :
5433 ac_cv_sys_restartable_syscalls=yes
5435 ac_cv_sys_restartable_syscalls=no
5437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5438 conftest.$ac_objext conftest.beam conftest.$ac_ext
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_restartable_syscalls" >&5
5443 $as_echo "$ac_cv_sys_restartable_syscalls" >&6; }
5444 if test $ac_cv_sys_restartable_syscalls = yes; then
5446 $as_echo "#define HAVE_RESTARTABLE_SYSCALLS 1" >>confdefs.h
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for donuts" >&5
5452 $as_echo_n "checking for donuts... " >&6; }
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454 $as_echo "yes" >&6; }
5456 for ac_prog in gawk mawk nawk awk
5458 # Extract the first word of "$ac_prog", so it can be a program name with args.
5459 set dummy $ac_prog; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if test "${ac_cv_prog_AWK+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5465 if test -n "$AWK"; then
5466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 test -z "$as_dir" && as_dir=.
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475 ac_cv_prog_AWK="$ac_prog"
5476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 if test -n "$AWK"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5488 $as_echo "$AWK" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5495 test -n "$AWK" && break
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5499 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5501 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5502 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5503 $as_echo_n "(cached) " >&6
5505 cat >conftest.make <<\_ACEOF
5508 @echo '@@@%%%=$(MAKE)=@@@%%%'
5510 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5511 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5513 eval ac_cv_prog_make_${ac_make}_set=yes;;
5515 eval ac_cv_prog_make_${ac_make}_set=no;;
5519 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 SET_MAKE="MAKE=${MAKE-make}"
5529 # Find a good install program. We prefer a C program (faster),
5530 # so one script is as good as another. But avoid the broken or
5531 # incompatible versions:
5532 # SysV /etc/install, /usr/sbin/install
5533 # SunOS /usr/etc/install
5534 # IRIX /sbin/install
5536 # AmigaOS /C/install, which installs bootblocks on floppy discs
5537 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5538 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5539 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5540 # OS/2's system install, which has a completely different semantic
5541 # ./install, which can be erroneously created by make from ./install.sh.
5542 # Reject install programs that cannot install multiple files.
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5544 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5545 if test -z "$INSTALL"; then
5546 if test "${ac_cv_path_install+set}" = set; then :
5547 $as_echo_n "(cached) " >&6
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 # Account for people who put trailing slashes in PATH elements.
5555 case $as_dir/ in #((
5556 ./ | .// | /[cC]/* | \
5557 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5558 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5561 # OSF1 and SCO ODT 3.0 have their own names for install.
5562 # Don't use installbsd from OSF since it installs stuff as root
5564 for ac_prog in ginstall scoinst install; do
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5567 if test $ac_prog = install &&
5568 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5569 # AIX install. It has an incompatible calling convention.
5571 elif test $ac_prog = install &&
5572 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5573 # program-specific install script used by HP pwplus--don't use.
5576 rm -rf conftest.one conftest.two conftest.dir
5577 echo one > conftest.one
5578 echo two > conftest.two
5580 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5581 test -s conftest.one && test -s conftest.two &&
5582 test -s conftest.dir/conftest.one &&
5583 test -s conftest.dir/conftest.two
5585 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5598 rm -rf conftest.one conftest.two conftest.dir
5601 if test "${ac_cv_path_install+set}" = set; then
5602 INSTALL=$ac_cv_path_install
5604 # As a last resort, use the slow shell script. Don't cache a
5605 # value for INSTALL within a source directory, because that will
5606 # break other packages using the cache if that directory is
5607 # removed, or if the value is a relative name.
5608 INSTALL=$ac_install_sh
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5612 $as_echo "$INSTALL" >&6; }
5614 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5615 # It thinks the first close brace ends the variable substitution.
5616 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5618 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5620 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5623 $as_echo_n "checking whether ln -s works... " >&6; }
5625 if test "$LN_S" = "ln -s"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5630 $as_echo "no, using $LN_S" >&6; }
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if test "${ac_cv_path_RMPROG+set}" = set; then :
5640 $as_echo_n "(cached) " >&6
5644 ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 RMPROG=$ac_cv_path_RMPROG
5666 if test -n "$RMPROG"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMPROG" >&5
5668 $as_echo "$RMPROG" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5675 test -n "$RMPROG" && break
5677 test -n "$RMPROG" || RMPROG="/bin/rm"
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if test "${ac_cv_path_SHPROG+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5690 ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 SHPROG=$ac_cv_path_SHPROG
5712 if test -n "$SHPROG"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHPROG" >&5
5714 $as_echo "$SHPROG" >&6; }
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 test -n "$SHPROG" && break
5723 test -n "$SHPROG" || SHPROG="/bin/sh"
5726 for ac_prog in flex lex
5728 # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if test "${ac_cv_prog_LEX+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5735 if test -n "$LEX"; then
5736 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_LEX="$ac_prog"
5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5756 if test -n "$LEX"; then
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5758 $as_echo "$LEX" >&6; }
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5765 test -n "$LEX" && break
5767 test -n "$LEX" || LEX=":"
5769 if test "x$LEX" != "x:"; then
5770 cat >conftest.l <<_ACEOF
5776 e { yyless (input () != 0); }
5777 f { unput (yytext[0]); }
5778 . { BEGIN INITIAL; }
5780 #ifdef YYTEXT_POINTER
5781 extern char *yytext;
5786 return ! yylex () + ! yywrap ();
5789 { { ac_try="$LEX conftest.l"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5795 $as_echo "$ac_try_echo"; } >&5
5796 (eval "$LEX conftest.l") 2>&5
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799 test $ac_status = 0; }
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5801 $as_echo_n "checking lex output file root... " >&6; }
5802 if test "${ac_cv_prog_lex_root+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5806 if test -f lex.yy.c; then
5807 ac_cv_prog_lex_root=lex.yy
5808 elif test -f lexyy.c; then
5809 ac_cv_prog_lex_root=lexyy
5811 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5815 $as_echo "$ac_cv_prog_lex_root" >&6; }
5816 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5818 if test -z "${LEXLIB+set}"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5820 $as_echo_n "checking lex library... " >&6; }
5821 if test "${ac_cv_lib_lex+set}" = set; then :
5822 $as_echo_n "(cached) " >&6
5826 ac_cv_lib_lex='none needed'
5827 for ac_lib in '' -lfl -ll; do
5828 LIBS="$ac_lib $ac_save_LIBS"
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 `cat $LEX_OUTPUT_ROOT.c`
5833 if ac_fn_c_try_link "$LINENO"; then :
5834 ac_cv_lib_lex=$ac_lib
5836 rm -f core conftest.err conftest.$ac_objext \
5837 conftest$ac_exeext conftest.$ac_ext
5838 test "$ac_cv_lib_lex" != 'none needed' && break
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5844 $as_echo "$ac_cv_lib_lex" >&6; }
5845 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5850 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5851 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5854 # POSIX says lex can declare yytext either as a pointer or an array; the
5855 # default is implementation-dependent. Figure out which it is, since
5856 # not all implementations provide the %pointer and %array declarations.
5857 ac_cv_prog_lex_yytext_pointer=no
5859 LIBS="$LEXLIB $ac_save_LIBS"
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #define YYTEXT_POINTER 1
5863 `cat $LEX_OUTPUT_ROOT.c`
5865 if ac_fn_c_try_link "$LINENO"; then :
5866 ac_cv_prog_lex_yytext_pointer=yes
5868 rm -f core conftest.err conftest.$ac_objext \
5869 conftest$ac_exeext conftest.$ac_ext
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5874 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5875 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5877 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5880 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5883 if test "$LEX" = ":" ; then
5884 as_fn_error "Cannot find flex." "$LINENO" 5
5885 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
5888 as_fn_error "Cannot use $LEX as flex." "$LINENO" 5
5891 for ac_prog in 'bison -y' byacc
5893 # Extract the first word of "$ac_prog", so it can be a program name with args.
5894 set dummy $ac_prog; ac_word=$2
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5896 $as_echo_n "checking for $ac_word... " >&6; }
5897 if test "${ac_cv_prog_YACC+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5900 if test -n "$YACC"; then
5901 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 test -z "$as_dir" && as_dir=.
5908 for ac_exec_ext in '' $ac_executable_extensions; do
5909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5910 ac_cv_prog_YACC="$ac_prog"
5911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 YACC=$ac_cv_prog_YACC
5921 if test -n "$YACC"; then
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5923 $as_echo "$YACC" >&6; }
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5926 $as_echo "no" >&6; }
5930 test -n "$YACC" && break
5932 test -n "$YACC" || YACC="yacc"
5934 if test "$YACC" = ":" ; then
5935 as_fn_error "Cannot find yacc." "$LINENO" 5
5936 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $YACC may not work as yacc." >&5
5940 $as_echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix non-blocking" >&5
5944 $as_echo_n "checking for posix non-blocking... " >&6; }
5945 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then :
5946 $as_echo_n "(cached) " >&6
5948 if test "$cross_compiling" = yes; then :
5949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5951 as_fn_error "cannot run test program while cross compiling
5952 See \`config.log' for more details." "$LINENO" 5; }
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5956 #include <sys/types.h>
5957 #include <sys/socket.h>
5959 #include <sys/ioctl.h>
5960 #include <sys/file.h>
5962 $ac_cv_type_signal alarmed() { exit(1); }
5967 size_t l = sizeof(x);
5968 int f = socket(AF_INET, SOCK_DGRAM, 0);
5969 if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
5971 signal(SIGALRM, alarmed);
5973 recvfrom(f, b, 12, 0, &x, &l);
5980 if ac_fn_c_try_run "$LINENO"; then :
5981 unet_cv_sys_nonblocking_posix=yes
5983 unet_cv_sys_nonblocking_posix=no
5985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5986 conftest.$ac_objext conftest.beam conftest.$ac_ext
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_nonblocking_posix" >&5
5991 $as_echo "$unet_cv_sys_nonblocking_posix" >&6; }
5992 if test $unet_cv_sys_nonblocking_posix = yes; then
5994 $as_echo "#define NBLOCK_POSIX /**/" >>confdefs.h
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd non-blocking" >&5
5998 $as_echo_n "checking for bsd non-blocking... " >&6; }
5999 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then :
6000 $as_echo_n "(cached) " >&6
6002 if test "$cross_compiling" = yes; then :
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error "cannot run test program while cross compiling
6006 See \`config.log' for more details." "$LINENO" 5; }
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <sys/types.h>
6011 #include <sys/socket.h>
6013 #include <sys/ioctl.h>
6014 #include <sys/file.h>
6016 $ac_cv_type_signal alarmed() { exit(1); }
6021 size_t l = sizeof(x);
6022 int f = socket(AF_INET, SOCK_DGRAM, 0);
6023 if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
6025 signal(SIGALRM, alarmed);
6027 recvfrom(f, b, 12, 0, &x, &l);
6034 if ac_fn_c_try_run "$LINENO"; then :
6035 unet_cv_sys_nonblocking_bsd=yes
6037 unet_cv_sys_nonblocking_bsd=no
6039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6040 conftest.$ac_objext conftest.beam conftest.$ac_ext
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_nonblocking_bsd" >&5
6045 $as_echo "$unet_cv_sys_nonblocking_bsd" >&6; }
6046 if test $unet_cv_sys_nonblocking_bsd = yes; then
6048 $as_echo "#define NBLOCK_BSD /**/" >>confdefs.h
6052 $as_echo "#define NBLOCK_SYSV /**/" >>confdefs.h
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix signals" >&5
6057 $as_echo_n "checking for posix signals... " >&6; }
6058 if test "${unet_cv_sys_signal_posix+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6067 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
6072 if ac_fn_c_try_compile "$LINENO"; then :
6073 unet_cv_sys_signal_posix=yes
6075 unet_cv_sys_signal_posix=no
6077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_signal_posix" >&5
6080 $as_echo "$unet_cv_sys_signal_posix" >&6; }
6081 if test $unet_cv_sys_signal_posix = yes; then
6083 $as_echo "#define POSIX_SIGNALS /**/" >>confdefs.h
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bsd reliable signals" >&5
6087 $as_echo_n "checking for bsd reliable signals... " >&6; }
6088 if test "${unet_cv_sys_signal_bsd+set}" = set; then :
6089 $as_echo_n "(cached) " >&6
6091 if test "$cross_compiling" = yes; then :
6092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6094 as_fn_error "cannot run test program while cross compiling
6095 See \`config.log' for more details." "$LINENO" 5; }
6097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6098 /* end confdefs.h. */
6101 $ac_cv_type_signal handler()
6105 kill(getpid(), SIGTERM);
6110 signal(SIGTERM, handler);
6111 kill(getpid(), SIGTERM);
6115 if ac_fn_c_try_run "$LINENO"; then :
6116 unet_cv_sys_signal_bsd=yes
6118 unet_cv_sys_signal_bsd=no
6120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6121 conftest.$ac_objext conftest.beam conftest.$ac_ext
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_sys_signal_bsd" >&5
6126 $as_echo "$unet_cv_sys_signal_bsd" >&6; }
6127 if test $unet_cv_sys_signal_bsd = yes; then
6129 $as_echo "#define BSD_RELIABLE_SIGNALS /**/" >>confdefs.h
6133 $as_echo "#define SYSV_UNRELIABLE_SIGNALS /**/" >>confdefs.h
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS-dependent information" >&5
6139 $as_echo_n "checking for OS-dependent information... " >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux ($host) found." >&5
6143 $as_echo "Linux ($host) found." >&6; }
6144 unet_poll_syscall=yes
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ($host) found." >&5
6149 $as_echo "Solaris ($host) found." >&6; }
6150 if test x"$ac_cv_header_poll_h" = xyes; then
6151 unet_poll_syscall=yes
6153 unet_poll_syscall=no
6156 $as_echo "#define IRCU_SOLARIS 1" >>confdefs.h
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Solaris ($host) found." >&5
6162 $as_echo "Solaris ($host) found." >&6; }
6163 unet_poll_syscall=no
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenBSD ($host) found." >&5
6168 $as_echo "OpenBSD ($host) found." >&6; }
6169 if test x"$ac_cv_header_poll_h" = xyes; then
6170 unet_poll_syscall=yes
6172 unet_poll_syscall=no
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generic BSD ($host) found." >&5
6178 $as_echo "Generic BSD ($host) found." >&6; }
6179 if test x"$ac_cv_header_poll_h" = xyes; then
6180 unet_poll_syscall=yes
6182 unet_poll_syscall=no
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin (Mac OS X) ($host) found." >&5
6188 $as_echo "Darwin (Mac OS X) ($host) found." >&6; }
6189 unet_poll_syscall=no
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unknown system type $host found." >&5
6194 $as_echo "Unknown system type $host found." >&6; }
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown OS type; using generic routines." >&5
6196 $as_echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
6197 unet_poll_syscall=no
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable use of poll()" >&5
6202 $as_echo_n "checking whether to enable use of poll()... " >&6; }
6203 # Check whether --enable-poll was given.
6204 if test "${enable_poll+set}" = set; then :
6205 enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
6207 if test "${unet_cv_enable_poll+set}" = set; then :
6208 $as_echo_n "(cached) " >&6
6210 unet_cv_enable_poll=$unet_poll_syscall
6216 # Force poll to be disabled if there is no poll.h
6217 if test x"$ac_cv_header_poll_h" != xyes; then
6218 unet_cv_enable_poll=no
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_poll" >&5
6222 $as_echo "$unet_cv_enable_poll" >&6; }
6224 if test x"$unet_cv_enable_poll" = xyes; then
6226 $as_echo "#define USE_POLL 1" >>confdefs.h
6228 ENGINE_C=engine_poll.c
6230 ENGINE_C=engine_select.c
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug mode" >&5
6235 $as_echo_n "checking whether to enable debug mode... " >&6; }
6236 # Check whether --enable-debug was given.
6237 if test "${enable_debug+set}" = set; then :
6238 enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
6240 if test "${unet_cv_enable_debug+set}" = set; then :
6241 $as_echo_n "(cached) " >&6
6243 unet_cv_enable_debug=no
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_debug" >&5
6249 $as_echo "$unet_cv_enable_debug" >&6; }
6251 if test x"$unet_cv_enable_debug" = xyes; then
6253 $as_echo "#define DEBUGMODE 1" >>confdefs.h
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable leak detection" >&5
6258 $as_echo_n "checking whether to enable leak detection... " >&6; }
6260 # Check whether --with-leak-detect was given.
6261 if test "${with_leak_detect+set}" = set; then :
6262 withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
6264 if test "${unet_cv_with_leak_detect+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6267 unet_cv_with_leak_detect=no
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_leak_detect" >&5
6273 $as_echo "$unet_cv_enable_leak_detect" >&6; }
6275 if test x"$unet_cv_with_leak_detect" != xno; then
6277 CFLAGS="-DMDEBUG $CFLAGS"
6278 if test x"$unet_cv_with_leak_detect" != xyes; then
6279 LIBS="-L$unet_cv_with_leak_detect $LIBS"
6284 # Check whether --with-ipv6 was given.
6285 if test "${with_ipv6+set}" = set; then :
6286 withval=$with_ipv6; ac_cv_use_ipv6=$withval
6288 ac_cv_use_ipv6=$unet_have_sockaddr_in6
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use IPv6" >&5
6292 $as_echo_n "checking whether to use IPv6... " >&6; }
6293 if test "${ac_cv_use_ipv6+set}" = set; then :
6294 $as_echo_n "(cached) " >&6
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ipv6" >&5
6299 $as_echo "$ac_cv_use_ipv6" >&6; }
6300 if test x"$ac_cv_use_ipv6" != "xno" ; then
6302 $as_echo "#define IPV6 1" >>confdefs.h
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable asserts" >&5
6307 $as_echo_n "checking whether to enable asserts... " >&6; }
6308 # Check whether --enable-asserts was given.
6309 if test "${enable_asserts+set}" = set; then :
6310 enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
6312 if test "${unet_cv_enable_asserts+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6315 unet_cv_enable_asserts=yes
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_asserts" >&5
6321 $as_echo "$unet_cv_enable_asserts" >&6; }
6323 if test x"$unet_cv_enable_asserts" = xno; then
6325 $as_echo "#define NDEBUG 1" >>confdefs.h
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling support (gprof)" >&5
6330 $as_echo_n "checking whether to enable profiling support (gprof)... " >&6; }
6331 # Check whether --enable-profile was given.
6332 if test "${enable_profile+set}" = set; then :
6333 enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
6335 if test "${unet_cv_enable_profile+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6338 unet_cv_enable_profile=no
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_profile" >&5
6344 $as_echo "$unet_cv_enable_profile" >&6; }
6346 if test x"$unet_cv_enable_profile" = xyes; then
6347 CFLAGS="-pg $CFLAGS"
6348 LDFLAGS="-pg $LDFLAGS"
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pedantic compiler warnings" >&5
6352 $as_echo_n "checking whether to enable pedantic compiler warnings... " >&6; }
6353 # Check whether --enable-pedantic was given.
6354 if test "${enable_pedantic+set}" = set; then :
6355 enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
6357 if test "${unet_cv_enable_pedantic+set}" = set; then :
6358 $as_echo_n "(cached) " >&6
6360 unet_cv_enable_pedantic=no
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_pedantic" >&5
6366 $as_echo "$unet_cv_enable_pedantic" >&6; }
6368 if test x"$unet_cv_enable_pedantic" = xyes; then
6369 CFLAGS="-pedantic $CFLAGS"
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings" >&5
6373 $as_echo_n "checking whether to enable compiler warnings... " >&6; }
6374 # Check whether --enable-warnings was given.
6375 if test "${enable_warnings+set}" = set; then :
6376 enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
6378 if test "${unet_cv_enable_warnings+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6381 unet_cv_enable_warnings=no
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_warnings" >&5
6387 $as_echo "$unet_cv_enable_warnings" >&6; }
6389 if test x"$unet_cv_enable_warnings" = xyes; then
6390 CFLAGS="-Wall $CFLAGS"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable inlining for a few critical functions" >&5
6394 $as_echo_n "checking whether to enable inlining for a few critical functions... " >&6; }
6395 # Check whether --enable-inlines was given.
6396 if test "${enable_inlines+set}" = set; then :
6397 enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
6399 if test "${unet_cv_enable_inlines+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6402 unet_cv_enable_inlines=yes
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_inlines" >&5
6408 $as_echo "$unet_cv_enable_inlines" >&6; }
6410 if test x"$unet_cv_enable_inlines" = xyes; then
6412 $as_echo "#define FORCEINLINE 1" >>confdefs.h
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the /dev/poll event engine" >&5
6417 $as_echo_n "checking whether to enable the /dev/poll event engine... " >&6; }
6418 # Check whether --enable-devpoll was given.
6419 if test "${enable_devpoll+set}" = set; then :
6420 enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
6422 if test "${unet_cv_enable_devpoll+set}" = set; then :
6423 $as_echo_n "(cached) " >&6
6425 unet_cv_enable_devpoll=yes
6431 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
6432 unet_cv_enable_devpoll=no
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_devpoll" >&5
6436 $as_echo "$unet_cv_enable_devpoll" >&6; }
6438 if test x"$unet_cv_enable_devpoll" != xno; then
6440 $as_echo "#define USE_DEVPOLL 1" >>confdefs.h
6442 ENGINE_C="engine_devpoll.c $ENGINE_C"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the kqueue event engine" >&5
6446 $as_echo_n "checking whether to enable the kqueue event engine... " >&6; }
6447 # Check whether --enable-kqueue was given.
6448 if test "${enable_kqueue+set}" = set; then :
6449 enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
6451 if test "${unet_cv_enable_kqueue+set}" = set; then :
6452 $as_echo_n "(cached) " >&6
6454 unet_cv_enable_kqueue=yes
6460 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
6461 unet_cv_enable_kqueue=no
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_kqueue" >&5
6465 $as_echo "$unet_cv_enable_kqueue" >&6; }
6467 if test x"$unet_cv_enable_kqueue" != xno; then
6469 $as_echo "#define USE_KQUEUE 1" >>confdefs.h
6471 ENGINE_C="engine_kqueue.c $ENGINE_C"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the epoll event engine" >&5
6475 $as_echo_n "checking whether to enable the epoll event engine... " >&6; }
6476 # Check whether --enable-epoll was given.
6477 if test "${enable_epoll+set}" = set; then :
6478 enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
6480 if test "${unet_cv_enable_epoll+set}" = set; then :
6481 $as_echo_n "(cached) " >&6
6483 unet_cv_enable_epoll=yes
6489 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
6490 unet_cv_enable_epoll=no
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_enable_epoll" >&5
6494 $as_echo "$unet_cv_enable_epoll" >&6; }
6496 if test x"$unet_cv_enable_epoll" != xno; then
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epoll functions are properly defined" >&5
6498 $as_echo_n "checking whether epoll functions are properly defined... " >&6; }
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 #include <sys/epoll.h>
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6512 $as_echo "yes" >&6; }
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6517 $as_echo "#define EPOLL_NEED_BODY 1" >>confdefs.h
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6523 $as_echo "#define USE_EPOLL 1" >>confdefs.h
6525 ENGINE_C="engine_epoll.c $ENGINE_C"
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
6529 $as_echo_n "checking for va_copy... " >&6; }
6530 if test "${unet_cv_c_va_copy+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6539 va_list ap1, ap2; va_copy(ap1, ap2);
6544 if ac_fn_c_try_link "$LINENO"; then :
6545 unet_cv_c_va_copy="yes"
6547 unet_cv_c_va_copy="no"
6550 rm -f core conftest.err conftest.$ac_objext \
6551 conftest$ac_exeext conftest.$ac_ext
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_c_va_copy" >&5
6554 $as_echo "$unet_cv_c_va_copy" >&6; }
6555 if test "$unet_cv_c_va_copy" = "yes" ; then
6557 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __va_copy" >&5
6562 $as_echo_n "checking for __va_copy... " >&6; }
6563 if test "${unet_cv_c___va_copy+set}" = set; then :
6564 $as_echo_n "(cached) " >&6
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6572 va_list ap1, ap2; __va_copy(ap1, ap2);
6577 if ac_fn_c_try_link "$LINENO"; then :
6578 unet_cv_c___va_copy="yes"
6580 unet_cv_c___va_copy="no"
6583 rm -f core conftest.err conftest.$ac_objext \
6584 conftest$ac_exeext conftest.$ac_ext
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_c___va_copy" >&5
6587 $as_echo "$unet_cv_c___va_copy" >&6; }
6588 if test "$unet_cv_c___va_copy" = "yes" ; then
6590 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what name to give the symlink" >&5
6595 $as_echo_n "checking what name to give the symlink... " >&6; }
6597 # Check whether --with-symlink was given.
6598 if test "${with_symlink+set}" = set; then :
6599 withval=$with_symlink; unet_cv_with_symlink=$with_symlink
6601 if test "${unet_cv_with_symlink+set}" = set; then :
6602 $as_echo_n "(cached) " >&6
6604 unet_cv_with_symlink="ircd"
6610 if test x"$unet_cv_with_symlink" = xyes; then
6611 unet_cv_with_symlink="ircd"
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_symlink" >&5
6615 $as_echo "$unet_cv_with_symlink" >&6; }
6617 if test x"$unet_cv_with_symlink" = xno; then
6618 INSTALL_RULE=install-no-symlink
6621 INSTALL_RULE=install-with-symlink
6622 SYMLINK=$unet_cv_with_symlink
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what permissions to set on the installed binary" >&5
6628 $as_echo_n "checking what permissions to set on the installed binary... " >&6; }
6630 # Check whether --with-mode was given.
6631 if test "${with_mode+set}" = set; then :
6632 withval=$with_mode; unet_cv_with_mode=$with_mode
6634 if test "${unet_cv_with_mode+set}" = set; then :
6635 $as_echo_n "(cached) " >&6
6637 unet_cv_with_mode=711
6643 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
6644 unet_cv_with_mode=711
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_mode" >&5
6648 $as_echo "$unet_cv_with_mode" >&6; }
6650 IRCDMODE=$unet_cv_with_mode
6653 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which user should own the installed binary" >&5
6655 $as_echo_n "checking which user should own the installed binary... " >&6; }
6657 # Check whether --with-owner was given.
6658 if test "${with_owner+set}" = set; then :
6659 withval=$with_owner; unet_cv_with_owner=$with_owner
6661 if test "${unet_cv_with_owner+set}" = set; then :
6662 $as_echo_n "(cached) " >&6
6664 unet_cv_with_owner=$unet_uid
6670 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
6671 unet_cv_with_owner=$unet_uid
6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_owner" >&5
6675 $as_echo "$unet_cv_with_owner" >&6; }
6677 IRCDOWN=$unet_cv_with_owner
6680 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which group should own the installed binary" >&5
6682 $as_echo_n "checking which group should own the installed binary... " >&6; }
6684 # Check whether --with-group was given.
6685 if test "${with_group+set}" = set; then :
6686 withval=$with_group; unet_cv_with_group=$with_group
6688 if test "${unet_cv_with_group+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6691 unet_cv_with_group=$unet_gid
6697 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
6698 unet_cv_with_group=$unet_gid
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_group" >&5
6702 $as_echo "$unet_cv_with_group" >&6; }
6704 IRCDGRP=$unet_cv_with_group
6708 if test -f /etc/resolv.conf; then
6709 unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
6710 if test x"$unet_domain" = x; then
6711 unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for site domain name" >&5
6715 $as_echo_n "checking for site domain name... " >&6; }
6717 # Check whether --with-domain was given.
6718 if test "${with_domain+set}" = set; then :
6719 withval=$with_domain; unet_cv_with_domain=$with_domain
6721 if test "${unet_cv_with_domain+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6724 unet_cv_with_domain=$unet_domain
6730 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
6731 unet_cv_with_domain=$unet_domain
6733 if test x"$unet_cv_with_domain" = xno; then
6734 as_fn_error "Unable to determine server DNS domain; use --with-domain to set it" "$LINENO" 5
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_domain" >&5
6738 $as_echo "$unet_cv_with_domain" >&6; }
6741 cat >>confdefs.h <<_ACEOF
6742 #define DOMAINNAME "*$unet_cv_with_domain"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if chroot operation is desired" >&5
6747 $as_echo_n "checking if chroot operation is desired... " >&6; }
6749 # Check whether --with-chroot was given.
6750 if test "${with_chroot+set}" = set; then :
6751 withval=$with_chroot; unet_cv_with_chroot=$with_chroot
6753 if test "${unet_cv_with_chroot+set}" = set; then :
6754 $as_echo_n "(cached) " >&6
6756 unet_cv_with_chroot=no
6762 if test x"$unet_cv_with_chroot" = xyes; then
6763 as_fn_error "--with-chroot given with no directory. See doc/readme.chroot." "$LINENO" 5
6766 # Ensure there are no trailing /'s to mess us up
6767 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_chroot" >&5
6770 $as_echo "$unet_cv_with_chroot" >&6; }
6772 # Deal with the annoying value "NONE" here
6773 unet_save_prefix=$prefix
6774 if test x"$prefix" = xNONE; then
6775 prefix=$ac_default_prefix
6780 unet_save_exec_prefix=$exec_prefix
6781 if test x"$exec_prefix" = xNONE; then
6784 exec_prefix=$exec_prefix
6787 # Obtain the actual interesting directories
6788 unet_bindir=`eval echo "$bindir"`
6789 unet_libdir=`eval echo "$libdir"`
6791 # Restore the original settings of $prefix and $exec_prefix
6792 prefix=$unet_save_prefix
6793 exec_prefix=$unet_save_exec_prefix
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the binary will be for /restart" >&5
6796 $as_echo_n "checking where the binary will be for /restart... " >&6; }
6797 if test x"$unet_cv_with_symlink" = xno; then
6798 unet_spath="$unet_bindir/ircd"
6800 unet_spath="$unet_bindir/$unet_cv_with_symlink"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_spath" >&5
6803 $as_echo "$unet_spath" >&6; }
6805 if test x"$unet_cv_with_chroot" != xno; then
6806 if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6807 unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
6810 $as_echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
6815 cat >>confdefs.h <<_ACEOF
6816 #define SPATH "$unet_spath"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what the data directory should be" >&5
6821 $as_echo_n "checking what the data directory should be... " >&6; }
6823 # Check whether --with-dpath was given.
6824 if test "${with_dpath+set}" = set; then :
6825 withval=$with_dpath; unet_cv_with_dpath=$with_dpath
6827 if test "${unet_cv_with_dpath+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 unet_cv_with_dpath=$unet_libdir
6836 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
6837 unet_cv_with_dpath=$unet_libdir
6840 # Ensure there are no trailing /'s to mess us up
6841 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_dpath" >&5
6844 $as_echo "$unet_cv_with_dpath" >&6; }
6846 if test x"$unet_cv_with_chroot" != xno; then
6847 if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6848 unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
6850 as_fn_error "Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" "$LINENO" 5
6853 unet_dpath=$unet_cv_with_dpath
6857 cat >>confdefs.h <<_ACEOF
6858 #define DPATH "$unet_dpath"
6862 DPATH=$unet_cv_with_dpath
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the default configuration file resides" >&5
6866 $as_echo_n "checking where the default configuration file resides... " >&6; }
6868 # Check whether --with-cpath was given.
6869 if test "${with_cpath+set}" = set; then :
6870 withval=$with_cpath; unet_cv_with_cpath=$with_cpath
6872 if test "${unet_cv_with_cpath+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6875 unet_cv_with_cpath="ircd.conf"
6881 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
6882 unet_cv_with_cpath="ircd.conf"
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_cpath" >&5
6886 $as_echo "$unet_cv_with_cpath" >&6; }
6888 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
6889 # Absolute path; check against chroot stuff
6890 if test x"$unet_cv_with_chroot" != xno; then
6891 if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6892 unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
6894 as_fn_error "Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" "$LINENO" 5
6897 unet_cpath=$unet_cv_with_cpath
6900 unet_cpath=$unet_cv_with_cpath
6904 cat >>confdefs.h <<_ACEOF
6905 #define CPATH "$unet_cpath"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to put the debugging log if debugging enabled" >&5
6910 $as_echo_n "checking where to put the debugging log if debugging enabled... " >&6; }
6912 # Check whether --with-lpath was given.
6913 if test "${with_lpath+set}" = set; then :
6914 withval=$with_lpath; unet_cv_with_lpath=$with_lpath
6916 if test "${unet_cv_with_lpath+set}" = set; then :
6917 $as_echo_n "(cached) " >&6
6919 unet_cv_with_lpath="ircd.log"
6925 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
6926 unet_cv_with_lpath="ircd.log"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_lpath" >&5
6930 $as_echo "$unet_cv_with_lpath" >&6; }
6932 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
6933 # Absolute path; check against chroot stuff
6934 if test x"$unet_cv_with_chroot" != xno; then
6935 if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
6936 unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&5
6939 $as_echo "$as_me: WARNING: Log file $unet_cv_with_lpath not relative to root directory $unet_cv_with_chroot; using default ircd.log instead" >&2;}
6940 unet_cv_with_lpath="ircd.log"
6941 unet_lpath="ircd.log"
6944 unet_lpath=$unet_cv_with_lpath
6947 unet_lpath=$unet_cv_with_lpath
6951 cat >>confdefs.h <<_ACEOF
6952 #define LPATH "$unet_lpath"
6956 unet_maxcon=`ulimit -Hn`
6957 if test x"$unet_maxcon" = xunlimited; then
6958 unet_maxcon=`ulimit -Sn`
6960 unet_maxcon=`expr $unet_maxcon - 4`
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking max connections" >&5
6962 $as_echo_n "checking max connections... " >&6; }
6964 # Check whether --with-maxcon was given.
6965 if test "${with_maxcon+set}" = set; then :
6966 withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
6968 if test "${unet_cv_with_maxcon+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6971 unet_cv_with_maxcon=$unet_maxcon
6977 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
6978 if test "$unet_maxcon" -lt 32; then
6979 as_fn_error "Maximum connections (number of open files minus 4) must be at least 32." "$LINENO" 5
6981 unet_cv_with_maxcon=$unet_maxcon
6982 elif test "$unet_cv_with_maxcon" -lt 32; then
6983 as_fn_error "Maximum connections (--with-maxcon) must be at least 32." "$LINENO" 5
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unet_cv_with_maxcon" >&5
6987 $as_echo "$unet_cv_with_maxcon" >&6; }
6990 cat >>confdefs.h <<_ACEOF
6991 #define MAXCONNECTIONS $unet_cv_with_maxcon
6995 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile"
6997 ac_config_commands="$ac_config_commands default"
6999 cat >confcache <<\_ACEOF
7000 # This file is a shell script that caches the results of configure
7001 # tests run on this system so they can be shared between configure
7002 # scripts and configure runs, see configure's option --config-cache.
7003 # It is not useful on other systems. If it contains results you don't
7004 # want to keep, you may remove or edit it.
7006 # config.status only pays attention to the cache file if you give it
7007 # the --recheck option to rerun configure.
7009 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7010 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7015 # The following way of writing the cache mishandles newlines in values,
7016 # but we know of no workaround that is simple, portable, and efficient.
7017 # So, we kill variables containing newlines.
7018 # Ultrix sh set writes to stderr and can't be redirected directly,
7019 # and sets the high bit in the cache file unless we assign to the vars.
7021 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7022 eval ac_val=\$$ac_var
7026 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7027 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7030 _ | IFS | as_nl) ;; #(
7031 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7032 *) { eval $ac_var=; unset $ac_var;} ;;
7038 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7039 *${as_nl}ac_space=\ *)
7040 # `set' does not quote correctly, so add quotes: double-quote
7041 # substitution turns \\\\ into \\, and sed turns \\ into \.
7044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7047 # `set' quotes correctly as required by POSIX, so do not add quotes.
7048 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7057 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7059 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7061 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7062 if test -w "$cache_file"; then
7063 test "x$cache_file" != "x/dev/null" &&
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7065 $as_echo "$as_me: updating cache $cache_file" >&6;}
7066 cat confcache >$cache_file
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7069 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7074 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7075 # Let make expand exec_prefix.
7076 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7078 DEFS=-DHAVE_CONFIG_H
7082 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7083 # 1. Remove the extension, and $U if already installed.
7084 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7085 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7086 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7087 # will be set to the directory where LIBOBJS objects are built.
7088 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7089 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7093 LTLIBOBJS=$ac_ltlibobjs
7098 : ${CONFIG_STATUS=./config.status}
7100 ac_clean_files_save=$ac_clean_files
7101 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7103 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7105 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7107 # Generated by $as_me.
7108 # Run this file to recreate the current configuration.
7109 # Compiler output produced by configure, useful for debugging
7110 # configure, is in config.log if it exists.
7116 SHELL=\${CONFIG_SHELL-$SHELL}
7119 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7120 ## -------------------- ##
7121 ## M4sh Initialization. ##
7122 ## -------------------- ##
7124 # Be more Bourne compatible
7125 DUALCASE=1; export DUALCASE # for MKS sh
7126 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7129 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7130 # is contrary to our usage. Disable this feature.
7131 alias -g '${1+"$@"}'='"$@"'
7132 setopt NO_GLOB_SUBST
7134 case `(set -o) 2>/dev/null` in #(
7146 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7147 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7148 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7149 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7150 # Prefer a ksh shell builtin over an external printf program on Solaris,
7151 # but without wasting forks for bash or zsh.
7152 if test -z "$BASH_VERSION$ZSH_VERSION" \
7153 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7154 as_echo='print -r --'
7155 as_echo_n='print -rn --'
7156 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7157 as_echo='printf %s\n'
7158 as_echo_n='printf %s'
7160 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7161 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7162 as_echo_n='/usr/ucb/echo -n'
7164 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7165 as_echo_n_body='eval
7169 expr "X$arg" : "X\\(.*\\)$as_nl";
7170 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7172 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7174 export as_echo_n_body
7175 as_echo_n='sh -c $as_echo_n_body as_echo'
7178 as_echo='sh -c $as_echo_body as_echo'
7181 # The user is always right.
7182 if test "${PATH_SEPARATOR+set}" != set; then
7184 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7185 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7192 # We need space, tab and new line, in precisely that order. Quoting is
7193 # there to prevent editors from complaining about space-tab.
7194 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7195 # splitting by setting IFS to empty value.)
7198 # Find who we are. Look in the path if we contain no directory separator.
7200 *[\\/]* ) as_myself=$0 ;;
7201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7212 # We did not find ourselves, most probably we were run as `sh COMMAND'
7213 # in which case we are not to be found in the path.
7214 if test "x$as_myself" = x; then
7217 if test ! -f "$as_myself"; then
7218 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7222 # Unset variables that we do not need and which cause bugs (e.g. in
7223 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7224 # suppresses any "Segmentation fault" message there. '((' could
7225 # trigger a bug in pdksh 5.2.14.
7226 for as_var in BASH_ENV ENV MAIL MAILPATH
7227 do eval test x\${$as_var+set} = xset \
7228 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7241 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7244 # as_fn_error ERROR [LINENO LOG_FD]
7245 # ---------------------------------
7246 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7247 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7248 # script with status $?, using 1 if that was 0.
7251 as_status=$?; test $as_status -eq 0 && as_status=1
7253 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7254 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7256 $as_echo "$as_me: error: $1" >&2
7257 as_fn_exit $as_status
7261 # as_fn_set_status STATUS
7262 # -----------------------
7263 # Set $? to STATUS, without forking.
7267 } # as_fn_set_status
7271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7281 # Portably unset VAR.
7284 { eval $1=; unset $1;}
7286 as_unset=as_fn_unset
7287 # as_fn_append VAR VALUE
7288 # ----------------------
7289 # Append the text in VALUE to the end of the definition contained in VAR. Take
7290 # advantage of any shell optimizations that allow amortized linear growth over
7291 # repeated appends, instead of the typical quadratic growth present in naive
7293 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7294 eval 'as_fn_append ()
7305 # as_fn_arith ARG...
7306 # ------------------
7307 # Perform arithmetic evaluation on the ARGs, and store the result in the
7308 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7309 # must be portable across $(()) and expr.
7310 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7311 eval 'as_fn_arith ()
7318 as_val=`expr "$@" || test $? -eq 1`
7323 if expr a : '\(a\)' >/dev/null 2>&1 &&
7324 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7330 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7331 as_basename=basename
7336 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7342 as_me=`$as_basename -- "$0" ||
7343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7344 X"$0" : 'X\(//\)$' \| \
7345 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7347 sed '/^.*\/\([^/][^/]*\)\/*$/{
7361 # Avoid depending upon Character Ranges.
7362 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7363 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7364 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7365 as_cr_digits='0123456789'
7366 as_cr_alnum=$as_cr_Letters$as_cr_digits
7368 ECHO_C= ECHO_N= ECHO_T=
7369 case `echo -n x` in #(((((
7371 case `echo 'xy\c'` in
7372 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7374 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7381 rm -f conf$$ conf$$.exe conf$$.file
7382 if test -d conf$$.dir; then
7383 rm -f conf$$.dir/conf$$.file
7386 mkdir conf$$.dir 2>/dev/null
7388 if (echo >conf$$.file) 2>/dev/null; then
7389 if ln -s conf$$.file conf$$ 2>/dev/null; then
7391 # ... but there are two gotchas:
7392 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7393 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7394 # In both cases, we have to default to `cp -p'.
7395 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7397 elif ln conf$$.file conf$$ 2>/dev/null; then
7405 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7406 rmdir conf$$.dir 2>/dev/null
7411 # Create "$as_dir" as a directory, including parents if necessary.
7416 -*) as_dir=./$as_dir;;
7418 test -d "$as_dir" || eval $as_mkdir_p || {
7422 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7423 *) as_qdir=$as_dir;;
7425 as_dirs="'$as_qdir' $as_dirs"
7426 as_dir=`$as_dirname -- "$as_dir" ||
7427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7428 X"$as_dir" : 'X\(//\)[^/]' \| \
7429 X"$as_dir" : 'X\(//\)$' \| \
7430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7431 $as_echo X"$as_dir" |
7432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7449 test -d "$as_dir" && break
7451 test -z "$as_dirs" || eval "mkdir $as_dirs"
7452 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7456 if mkdir -p . 2>/dev/null; then
7457 as_mkdir_p='mkdir -p "$as_dir"'
7459 test -d ./-p && rmdir ./-p
7463 if test -x / >/dev/null 2>&1; then
7466 if ls -dL / >/dev/null 2>&1; then
7473 if test -d "$1"; then
7479 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7480 ???[sx]*):;;*)false;;esac;fi
7484 as_executable_p=$as_test_x
7486 # Sed expression to map a string onto a valid CPP name.
7487 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7489 # Sed expression to map a string onto a valid variable name.
7490 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7494 ## ----------------------------------- ##
7495 ## Main body of $CONFIG_STATUS script. ##
7496 ## ----------------------------------- ##
7498 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7501 # Save the log message, to keep $0 and so on meaningful, and to
7502 # report actual input values of CONFIG_FILES etc. instead of their
7503 # values after options handling.
7505 This file was extended by $as_me, which was
7506 generated by GNU Autoconf 2.64. Invocation command line was
7508 CONFIG_FILES = $CONFIG_FILES
7509 CONFIG_HEADERS = $CONFIG_HEADERS
7510 CONFIG_LINKS = $CONFIG_LINKS
7511 CONFIG_COMMANDS = $CONFIG_COMMANDS
7514 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7519 case $ac_config_files in *"
7520 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7523 case $ac_config_headers in *"
7524 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7529 # Files that config.status was made for.
7530 config_files="$ac_config_files"
7531 config_headers="$ac_config_headers"
7532 config_commands="$ac_config_commands"
7536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7538 \`$as_me' instantiates files and other configuration actions
7539 from templates according to the current configuration. Unless the files
7540 and actions are specified as TAGs, all are instantiated by default.
7542 Usage: $0 [OPTION]... [TAG]...
7544 -h, --help print this help, then exit
7545 -V, --version print version number and configuration settings, then exit
7546 -q, --quiet, --silent
7547 do not print progress messages
7548 -d, --debug don't remove temporary files
7549 --recheck update $as_me by reconfiguring in the same conditions
7550 --file=FILE[:TEMPLATE]
7551 instantiate the configuration file FILE
7552 --header=FILE[:TEMPLATE]
7553 instantiate the configuration header FILE
7555 Configuration files:
7558 Configuration headers:
7561 Configuration commands:
7564 Report bugs to the package provider."
7567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7570 configured by $0, generated by GNU Autoconf 2.64,
7571 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7573 Copyright (C) 2009 Free Software Foundation, Inc.
7574 This config.status script is free software; the Free Software Foundation
7575 gives unlimited permission to copy, distribute and modify it."
7581 test -n "\$AWK" || AWK=awk
7584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7585 # The default lists apply if the user does not specify any file.
7591 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7592 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7603 # Handling of the options.
7604 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7606 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7607 $as_echo "$ac_cs_version"; exit ;;
7608 --debug | --debu | --deb | --de | --d | -d )
7610 --file | --fil | --fi | --f )
7613 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7615 as_fn_append CONFIG_FILES " '$ac_optarg'"
7616 ac_need_defaults=false;;
7617 --header | --heade | --head | --hea )
7620 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7622 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7623 ac_need_defaults=false;;
7625 # Conflict between --help and --header
7626 as_fn_error "ambiguous option: \`$1'
7627 Try \`$0 --help' for more information.";;
7628 --help | --hel | -h )
7629 $as_echo "$ac_cs_usage"; exit ;;
7630 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7631 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7635 -*) as_fn_error "unrecognized option: \`$1'
7636 Try \`$0 --help' for more information." ;;
7638 *) as_fn_append ac_config_targets " $1"
7639 ac_need_defaults=false ;;
7645 ac_configure_extra_args=
7647 if $ac_cs_silent; then
7649 ac_configure_extra_args="$ac_configure_extra_args --silent"
7653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7654 if \$ac_cs_recheck; then
7655 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7657 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7658 CONFIG_SHELL='$SHELL'
7664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7668 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7669 ## Running $as_me. ##
7675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7680 # Handling of arguments.
7681 for ac_config_target in $ac_config_targets
7683 case $ac_config_target in
7684 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7685 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7686 "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
7687 "ircd/test/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
7688 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7690 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7695 # If the user did not use the arguments to specify the items to instantiate,
7696 # then the envvar interface is used. Set only those that are not.
7697 # We use the long form for the default assignment because of an extremely
7698 # bizarre bug on SunOS 4.1.3.
7699 if $ac_need_defaults; then
7700 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7701 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7705 # Have a temporary directory for convenience. Make it in the build tree
7706 # simply because there is no reason against having it here, and in addition,
7707 # creating and moving files from /tmp can sometimes cause problems.
7708 # Hook for its removal unless debugging.
7709 # Note that there is a small window in which the directory will not be cleaned:
7710 # after its creation but before its name has been assigned to `$tmp'.
7714 trap 'exit_status=$?
7715 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7717 trap 'as_fn_exit 1' 1 2 13 15
7719 # Create a (secure) tmp directory for tmp files.
7722 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7723 test -n "$tmp" && test -d "$tmp"
7726 tmp=./conf$$-$RANDOM
7727 (umask 077 && mkdir "$tmp")
7728 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7730 # Set up the scripts for CONFIG_FILES section.
7731 # No need to generate them if there are no CONFIG_FILES.
7732 # This happens for instance with `./config.status config.h'.
7733 if test -n "$CONFIG_FILES"; then
7736 ac_cr=`echo X | tr X '\015'`
7737 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7738 # But we know of no other shell where ac_cr would be empty at this
7739 # point, so we can use a bashism as a fallback.
7740 if test "x$ac_cr" = x; then
7741 eval ac_cr=\$\'\\r\'
7743 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7744 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7750 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7755 echo "cat >conf$$subs.awk <<_ACEOF" &&
7756 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7759 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7760 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7762 for ac_last_try in false false false false false :; do
7763 . ./conf$$subs.sh ||
7764 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7766 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7767 if test $ac_delim_n = $ac_delim_num; then
7769 elif $ac_last_try; then
7770 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7772 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7778 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7782 s/^/S["/; s/!.*/"]=/
7792 s/\(.\{148\}\).*/\1/
7794 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7799 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7806 s/\(.\{148\}\).*/\1/
7808 s/["\\]/\\&/g; s/^/"/; s/$/"/
7812 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7817 ' <conf$$subs.awk | sed '
7822 ' >>$CONFIG_STATUS || ac_write_fail=1
7823 rm -f conf$$subs.awk
7824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7826 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7827 for (key in S) S_is_set[key] = 1
7833 nfields = split(line, field, "@")
7835 len = length(field[1])
7836 for (i = 2; i < nfields; i++) {
7838 keylen = length(key)
7839 if (S_is_set[key]) {
7841 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7842 len += length(value) + length(field[++i])
7853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7854 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7855 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7858 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7859 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7862 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7863 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7864 # trailing colons and then remove the whole line if VPATH becomes empty
7865 # (actually we leave an empty line to preserve line numbers).
7866 if test "x$srcdir" = x.; then
7867 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7871 s/^\([^=]*=[ ]*\):*/\1/
7877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7878 fi # test -n "$CONFIG_FILES"
7880 # Set up the scripts for CONFIG_HEADERS section.
7881 # No need to generate them if there are no CONFIG_HEADERS.
7882 # This happens for instance with `./config.status Makefile'.
7883 if test -n "$CONFIG_HEADERS"; then
7884 cat >"$tmp/defines.awk" <<\_ACAWK ||
7888 # Transform confdefs.h into an awk script `defines.awk', embedded as
7889 # here-document in config.status, that substitutes the proper values into
7890 # config.h.in to produce config.h.
7892 # Create a delimiter string that does not exist in confdefs.h, to ease
7893 # handling of long lines.
7895 for ac_last_try in false false :; do
7896 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7897 if test -z "$ac_t"; then
7899 elif $ac_last_try; then
7900 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7906 # For the awk script, D is an array of macro values keyed by name,
7907 # likewise P contains macro parameters if any. Preserve backslash
7908 # newline sequences.
7910 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7912 s/.\{148\}/&'"$ac_delim"'/g
7915 s/^[ ]*#[ ]*define[ ][ ]*/ /
7922 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7924 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7928 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7929 D["\1"]=" \3\\\\\\n"\\/p
7931 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7936 s/.\{148\}/&'"$ac_delim"'/g
7941 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7944 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7946 ' <confdefs.h | sed '
7947 s/'"$ac_delim"'/"\\\
7948 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7950 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7951 for (key in D) D_is_set[key] = 1
7954 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7956 split(line, arg, " ")
7957 if (arg[1] == "#") {
7961 defundef = substr(arg[1], 2)
7964 split(mac1, mac2, "(") #)
7966 prefix = substr(line, 1, index(line, defundef) - 1)
7967 if (D_is_set[macro]) {
7968 # Preserve the white space surrounding the "#".
7969 print prefix "define", macro P[macro] D[macro]
7972 # Replace #undef with comments. This is necessary, for example,
7973 # in the case of _POSIX_SOURCE, which is predefined and required
7974 # on some systems where configure will not decide to define it.
7975 if (defundef == "undef") {
7976 print "/*", prefix defundef, macro, "*/"
7984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7985 as_fn_error "could not setup config headers machinery" "$LINENO" 5
7986 fi # test -n "$CONFIG_HEADERS"
7989 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7994 :[FHLC]) ac_mode=$ac_tag; continue;;
7996 case $ac_mode$ac_tag in
7998 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7999 :[FH]-) ac_tag=-:-;;
8000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8017 -) ac_f="$tmp/stdin";;
8018 *) # Look for the file first in the build tree, then in the source tree
8019 # (if the path is not absolute). The absolute path cannot be DOS-style,
8020 # because $ac_f cannot contain `:'.
8024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8026 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8028 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8029 as_fn_append ac_file_inputs " '$ac_f'"
8032 # Let's still pretend it is `configure' which instantiates (i.e., don't
8033 # use $as_me), people would be surprised to read:
8034 # /* config.h. Generated by config.status. */
8035 configure_input='Generated from '`
8036 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8038 if test x"$ac_file" != x-; then
8039 configure_input="$ac_file. $configure_input"
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8041 $as_echo "$as_me: creating $ac_file" >&6;}
8043 # Neutralize special characters interpreted by sed in replacement strings.
8044 case $configure_input in #(
8045 *\&* | *\|* | *\\* )
8046 ac_sed_conf_input=`$as_echo "$configure_input" |
8047 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8048 *) ac_sed_conf_input=$configure_input;;
8052 *:-:* | *:-) cat >"$tmp/stdin" \
8053 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8058 ac_dir=`$as_dirname -- "$ac_file" ||
8059 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8060 X"$ac_file" : 'X\(//\)[^/]' \| \
8061 X"$ac_file" : 'X\(//\)$' \| \
8062 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8063 $as_echo X"$ac_file" |
8064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8081 as_dir="$ac_dir"; as_fn_mkdir_p
8085 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8087 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8088 # A ".." for each directory in $ac_dir_suffix.
8089 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8090 case $ac_top_builddir_sub in
8091 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8092 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8095 ac_abs_top_builddir=$ac_pwd
8096 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8097 # for backward compatibility:
8098 ac_top_builddir=$ac_top_build_prefix
8101 .) # We are building in place.
8103 ac_top_srcdir=$ac_top_builddir_sub
8104 ac_abs_top_srcdir=$ac_pwd ;;
8105 [\\/]* | ?:[\\/]* ) # Absolute name.
8106 ac_srcdir=$srcdir$ac_dir_suffix;
8107 ac_top_srcdir=$srcdir
8108 ac_abs_top_srcdir=$srcdir ;;
8110 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8111 ac_top_srcdir=$ac_top_build_prefix$srcdir
8112 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8114 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8125 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8130 # If the template does not know about datarootdir, expand it.
8131 # FIXME: This hack should be removed a few years after 2.60.
8132 ac_datarootdir_hack=; ac_datarootdir_seen=
8143 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8144 *datarootdir*) ac_datarootdir_seen=yes;;
8145 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8147 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8150 ac_datarootdir_hack='
8151 s&@datadir@&$datadir&g
8152 s&@docdir@&$docdir&g
8153 s&@infodir@&$infodir&g
8154 s&@localedir@&$localedir&g
8155 s&@mandir@&$mandir&g
8156 s&\\\${datarootdir}&$datarootdir&g' ;;
8160 # Neutralize VPATH when `$srcdir' = `.'.
8161 # Shell code in configure.ac might set extrasub.
8162 # FIXME: do we really want to maintain this feature?
8163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8164 ac_sed_extra="$ac_vpsub
8167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8169 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8170 s|@configure_input@|$ac_sed_conf_input|;t t
8171 s&@top_builddir@&$ac_top_builddir_sub&;t t
8172 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8173 s&@srcdir@&$ac_srcdir&;t t
8174 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8175 s&@top_srcdir@&$ac_top_srcdir&;t t
8176 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8177 s&@builddir@&$ac_builddir&;t t
8178 s&@abs_builddir@&$ac_abs_builddir&;t t
8179 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8180 s&@INSTALL@&$ac_INSTALL&;t t
8181 $ac_datarootdir_hack
8183 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8184 || as_fn_error "could not create $ac_file" "$LINENO" 5
8186 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8190 which seems to be undefined. Please make sure it is defined." >&5
8191 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8192 which seems to be undefined. Please make sure it is defined." >&2;}
8196 -) cat "$tmp/out" && rm -f "$tmp/out";;
8197 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8199 || as_fn_error "could not create $ac_file" "$LINENO" 5
8205 if test x"$ac_file" != x-; then
8207 $as_echo "/* $configure_input */" \
8208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8209 } >"$tmp/config.h" \
8210 || as_fn_error "could not create $ac_file" "$LINENO" 5
8211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8213 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8216 mv "$tmp/config.h" "$ac_file" \
8217 || as_fn_error "could not create $ac_file" "$LINENO" 5
8220 $as_echo "/* $configure_input */" \
8221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8222 || as_fn_error "could not create -" "$LINENO" 5
8226 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8227 $as_echo "$as_me: executing $ac_file commands" >&6;}
8232 case $ac_file$ac_mode in
8233 "default":C) echo timestamp > stamp-h ;;
8241 ac_clean_files=$ac_clean_files_save
8243 test $ac_write_fail = 0 ||
8244 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8247 # configure is writing to config.log, and then calls config.status.
8248 # config.status does its own redirection, appending to config.log.
8249 # Unfortunately, on DOS this fails, as config.log is still kept open
8250 # by configure, so config.status won't be able to write to it; its
8251 # output is simply discarded. So we exec the FD to /dev/null,
8252 # effectively closing config.log, so it can be properly (re)opened and
8253 # appended to by config.status. When coming back to configure, we
8254 # need to make the FD available again.
8255 if test "$no_create" != yes; then
8257 ac_config_status_args=
8258 test "$silent" = yes &&
8259 ac_config_status_args="$ac_config_status_args --quiet"
8261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8264 # would make configure fail if this is the last instruction.
8265 $ac_cs_success || as_fn_exit $?
8267 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8269 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8273 ac_config_commands="$ac_config_commands default-1"