2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for lcr 1.7.
5 # Report bugs to <andreas@eversberg.eu>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: andreas@eversberg.eu about your system, including any
235 $0: error possibly output before this message. Then install
236 $0: a modern shell, or manually run the script under such a
237 $0: shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" || exec 7<&0 </dev/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix=/usr/local
545 ac_config_libobj_dir=.
552 # Identity of this package.
554 PACKAGE_TARNAME='lcr'
555 PACKAGE_VERSION='1.7'
556 PACKAGE_STRING='lcr 1.7'
557 PACKAGE_BUGREPORT='andreas@eversberg.eu'
560 ac_unique_file="main.c"
561 # Factoring default headers for most tests.
562 ac_includes_default="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars='LTLIBOBJS
609 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE
610 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE
634 INSTALL_STRIP_PROGRAM
685 program_transform_name
698 enable_option_checking
699 enable_dependency_tracking
706 ac_precious_vars='build_alias
720 # Initialize some variables set by options.
722 ac_init_version=false
723 ac_unrecognized_opts=
725 # The variables have the same names as the options, with
726 # dashes changed to underlines.
734 program_transform_name=s,x,x,
742 # Installation directory options.
743 # These are left unexpanded so users can "make install exec_prefix=/foo"
744 # and all the variables that are supposed to be based on exec_prefix
745 # by default will actually change.
746 # Use braces instead of parens because sh, perl, etc. also accept them.
747 # (The list follows the same order as the GNU Coding Standards.)
748 bindir='${exec_prefix}/bin'
749 sbindir='${exec_prefix}/sbin'
750 libexecdir='${exec_prefix}/libexec'
751 datarootdir='${prefix}/share'
752 datadir='${datarootdir}'
753 sysconfdir='${prefix}/etc'
754 sharedstatedir='${prefix}/com'
755 localstatedir='${prefix}/var'
756 includedir='${prefix}/include'
757 oldincludedir='/usr/include'
758 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
759 infodir='${datarootdir}/info'
764 libdir='${exec_prefix}/lib'
765 localedir='${datarootdir}/locale'
766 mandir='${datarootdir}/man'
772 # If the previous option needs an argument, assign it.
773 if test -n "$ac_prev"; then
774 eval $ac_prev=\$ac_option
780 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 # Accept the important Cygnus configure options, so we can diagnose typos.
786 case $ac_dashdash$ac_option in
790 -bindir | --bindir | --bindi | --bind | --bin | --bi)
792 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
795 -build | --build | --buil | --bui | --bu)
796 ac_prev=build_alias ;;
797 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
798 build_alias=$ac_optarg ;;
800 -cache-file | --cache-file | --cache-fil | --cache-fi \
801 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
802 ac_prev=cache_file ;;
803 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
804 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
805 cache_file=$ac_optarg ;;
808 cache_file=config.cache ;;
810 -datadir | --datadir | --datadi | --datad)
812 -datadir=* | --datadir=* | --datadi=* | --datad=*)
813 datadir=$ac_optarg ;;
815 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
816 | --dataroo | --dataro | --datar)
817 ac_prev=datarootdir ;;
818 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
819 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
820 datarootdir=$ac_optarg ;;
822 -disable-* | --disable-*)
823 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
824 # Reject names that are not valid shell variable names.
825 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
826 as_fn_error "invalid feature name: $ac_useropt"
827 ac_useropt_orig=$ac_useropt
828 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
829 case $ac_user_opts in
833 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
834 ac_unrecognized_sep=', ';;
836 eval enable_$ac_useropt=no ;;
838 -docdir | --docdir | --docdi | --doc | --do)
840 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848 -enable-* | --enable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
862 eval enable_$ac_useropt=\$ac_optarg ;;
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
877 -help | --help | --hel | --he | -h)
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893 htmldir=$ac_optarg ;;
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
907 -libdir | --libdir | --libdi | --libd)
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
919 -localedir | --localedir | --localedi | --localed | --locale)
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
937 # Obsolete; use --without-fp.
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 -psdir | --psdir | --psdi | --psd | --ps)
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011 sbindir=$ac_optarg ;;
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022 sharedstatedir=$ac_optarg ;;
1024 -site | --site | --sit)
1026 -site=* | --site=* | --sit=*)
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1053 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1056 as_fn_error "invalid package name: $ac_useropt"
1057 ac_useropt_orig=$ac_useropt
1058 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1059 case $ac_user_opts in
1063 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1064 ac_unrecognized_sep=', ';;
1066 eval with_$ac_useropt=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid package name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1082 eval with_$ac_useropt=no ;;
1085 # Obsolete; use --with-x.
1088 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1089 | --x-incl | --x-inc | --x-in | --x-i)
1090 ac_prev=x_includes ;;
1091 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1092 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1093 x_includes=$ac_optarg ;;
1095 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1096 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1097 ac_prev=x_libraries ;;
1098 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1099 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1100 x_libraries=$ac_optarg ;;
1102 -*) as_fn_error "unrecognized option: \`$ac_option'
1103 Try \`$0 --help' for more information."
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names.
1109 case $ac_envvar in #(
1110 '' | [0-9]* | *[!_$as_cr_alnum]* )
1111 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1113 eval $ac_envvar=\$ac_optarg
1114 export $ac_envvar ;;
1117 # FIXME: should be removed in autoconf 3.0.
1118 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1119 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1121 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 if test -n "$ac_prev"; then
1128 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1129 as_fn_error "missing argument to $ac_option"
1132 if test -n "$ac_unrecognized_opts"; then
1133 case $enable_option_checking in
1135 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1136 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1140 # Check all directory arguments for consistency.
1141 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val=\$$ac_var
1147 # Remove trailing slashes.
1150 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1151 eval $ac_var=\$ac_val;;
1153 # Be sure to have absolute directory names.
1155 [\\/$]* | ?:[\\/]* ) continue;;
1156 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 as_fn_error "working directory cannot be determined"
1189 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1190 as_fn_error "pwd does not report name of working directory"
1193 # Find the source files, if location was not specified.
1194 if test -z "$srcdir"; then
1195 ac_srcdir_defaulted=yes
1196 # Try the directory containing this script, then the parent directory.
1197 ac_confdir=`$as_dirname -- "$as_myself" ||
1198 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1199 X"$as_myself" : 'X\(//\)[^/]' \| \
1200 X"$as_myself" : 'X\(//\)$' \| \
1201 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1202 $as_echo X"$as_myself" |
1203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1225 ac_srcdir_defaulted=no
1227 if test ! -r "$srcdir/$ac_unique_file"; then
1228 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1229 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1231 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures lcr 1.7 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/lcr]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of lcr 1.7:";;
1330 --disable-option-checking ignore unrecognized --enable/--with options
1331 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1332 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1333 --disable-dependency-tracking speeds up one-time build
1334 --enable-dependency-tracking do not reject slow dependency extractors
1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1339 --with-asterisk compile with built-in Asterisk channel driver
1342 --with-ssl compile with ssl support (libcrypto) [default=check]
1344 --with-gsm-bs compile with OpenBSC support [default=check]
1346 --with-gsm-ms compile with Osmocom-bb support [default=check]
1348 --with-ss5 compile with CCITT No. 5 support [default=no]
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1360 CXX C++ compiler command
1361 CXXFLAGS C++ compiler flags
1363 Use these variables to override the choices made by `configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1366 Report bugs to <andreas@eversberg.eu>.
1371 if test "$ac_init_help" = "recursive"; then
1372 # If there are subdirs, report their specific --help.
1373 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1374 test -d "$ac_dir" ||
1375 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1396 .) # We are building in place.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1420 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1430 generated by GNU Autoconf 2.65
1432 Copyright (C) 2009 Free Software Foundation, Inc.
1433 This configure script is free software; the Free Software Foundation
1434 gives unlimited permission to copy, distribute and modify it.
1439 ## ------------------------ ##
1440 ## Autoconf initialization. ##
1441 ## ------------------------ ##
1443 # ac_fn_c_try_compile LINENO
1444 # --------------------------
1445 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1446 ac_fn_c_try_compile ()
1448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1449 rm -f conftest.$ac_objext
1450 if { { ac_try="$ac_compile"
1452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1453 *) ac_try_echo=$ac_try;;
1455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1456 $as_echo "$ac_try_echo"; } >&5
1457 (eval "$ac_compile") 2>conftest.err
1459 if test -s conftest.err; then
1460 grep -v '^ *+' conftest.err >conftest.er1
1461 cat conftest.er1 >&5
1462 mv -f conftest.er1 conftest.err
1464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1465 test $ac_status = 0; } && {
1466 test -z "$ac_c_werror_flag" ||
1467 test ! -s conftest.err
1468 } && test -s conftest.$ac_objext; then :
1471 $as_echo "$as_me: failed program was:" >&5
1472 sed 's/^/| /' conftest.$ac_ext >&5
1476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1477 as_fn_set_status $ac_retval
1479 } # ac_fn_c_try_compile
1481 # ac_fn_c_try_cpp LINENO
1482 # ----------------------
1483 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1487 if { { ac_try="$ac_cpp conftest.$ac_ext"
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } >/dev/null && {
1503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1513 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1514 as_fn_set_status $ac_retval
1518 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1519 # -------------------------------------------------------
1520 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1521 # the include files in INCLUDES and setting the cache variable VAR
1523 ac_fn_c_check_header_mongrel ()
1525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1528 $as_echo_n "checking for $2... " >&6; }
1529 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1530 $as_echo_n "(cached) " >&6
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1534 $as_echo "$ac_res" >&6; }
1536 # Is the header compilable?
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1538 $as_echo_n "checking $2 usability... " >&6; }
1539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1540 /* end confdefs.h. */
1544 if ac_fn_c_try_compile "$LINENO"; then :
1545 ac_header_compiler=yes
1547 ac_header_compiler=no
1549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1551 $as_echo "$ac_header_compiler" >&6; }
1553 # Is the header present?
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1555 $as_echo_n "checking $2 presence... " >&6; }
1556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1557 /* end confdefs.h. */
1560 if ac_fn_c_try_cpp "$LINENO"; then :
1561 ac_header_preproc=yes
1563 ac_header_preproc=no
1565 rm -f conftest.err conftest.$ac_ext
1566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1567 $as_echo "$ac_header_preproc" >&6; }
1569 # So? What about this header?
1570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1573 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1575 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1579 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1581 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1583 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1585 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1587 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1589 ## ----------------------------------- ##
1590 ## Report this to andreas@eversberg.eu ##
1591 ## ----------------------------------- ##
1593 ) | sed "s/^/$as_me: WARNING: /" >&2
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1597 $as_echo_n "checking for $2... " >&6; }
1598 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1599 $as_echo_n "(cached) " >&6
1601 eval "$3=\$ac_header_compiler"
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1607 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 } # ac_fn_c_check_header_mongrel
1611 # ac_fn_c_try_run LINENO
1612 # ----------------------
1613 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1614 # that executables *can* be run.
1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618 if { { ac_try="$ac_link"
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>&5
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1629 { { case "(($ac_try" in
1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631 *) ac_try_echo=$ac_try;;
1633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_try") 2>&5
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; }; }; then :
1641 $as_echo "$as_me: program exited with status $ac_status" >&5
1642 $as_echo "$as_me: failed program was:" >&5
1643 sed 's/^/| /' conftest.$ac_ext >&5
1645 ac_retval=$ac_status
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 as_fn_set_status $ac_retval
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1670 if ac_fn_c_try_compile "$LINENO"; then :
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_check_header_compile
1684 # ac_fn_cxx_try_compile LINENO
1685 # ----------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_cxx_try_compile ()
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext
1691 if { { ac_try="$ac_compile"
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_cxx_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext; then :
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1717 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 as_fn_set_status $ac_retval
1720 } # ac_fn_cxx_try_compile
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext conftest$ac_exeext
1729 if { { ac_try="$ac_link"
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>conftest.err
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest$ac_exeext && {
1748 test "$cross_compiling" = yes ||
1749 $as_test_x conftest$ac_exeext
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760 # interfere with the next link command; also delete a directory that is
1761 # left behind by Apple's compiler. We do this before executing the actions.
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_link
1768 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1769 # -------------------------------------------
1770 # Tests whether TYPE exists after having included INCLUDES, setting cache
1771 # variable VAR accordingly.
1772 ac_fn_c_check_type ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1778 $as_echo_n "(cached) " >&6
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1806 if ac_fn_c_try_compile "$LINENO"; then :
1811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 } # ac_fn_c_check_type
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837 #define $2 innocuous_$2
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below.
1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842 <limits.h> exists even on freestanding compilers. */
1845 # include <limits.h>
1847 # include <assert.h>
1852 /* Override any GCC internal prototype to avoid an error.
1853 Use char because int might match the return type of a GCC
1854 builtin and then its argument prototype would still apply. */
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined __stub_$2 || defined __stub___$2
1874 if ac_fn_c_try_link "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext \
1880 conftest$ac_exeext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 } # ac_fn_c_check_func
1888 cat >config.log <<_ACEOF
1889 This file contains any messages produced by compilers while
1890 running configure, to aid debugging if configure makes a mistake.
1892 It was created by lcr $as_me 1.7, which was
1893 generated by GNU Autoconf 2.65. Invocation command line was
1905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 $as_echo "PATH: $as_dir"
1945 # Keep a trace of the command line.
1946 # Strip out --no-create and --no-recursion so they do not pile up.
1947 # Strip out --silent because we don't want to record it for future runs.
1948 # Also quote any args containing shell meta-characters.
1949 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_must_keep_next=false
1959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1961 | -silent | --silent | --silen | --sile | --sil)
1964 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1969 as_fn_append ac_configure_args1 " '$ac_arg'"
1970 if test $ac_must_keep_next = true; then
1971 ac_must_keep_next=false # Got value, back to normal.
1974 *=* | --config-cache | -C | -disable-* | --disable-* \
1975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1977 | -with-* | --with-* | -without-* | --without-* | --x)
1978 case "$ac_configure_args0 " in
1979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 -* ) ac_must_keep_next=true ;;
1985 as_fn_append ac_configure_args " '$ac_arg'"
1990 { ac_configure_args0=; unset ac_configure_args0;}
1991 { ac_configure_args1=; unset ac_configure_args1;}
1993 # When interrupted or exit'd, cleanup temporary files, and complete
1994 # config.log. We remove comments because anyway the quotes in there
1995 # would cause problems or look ugly.
1996 # WARNING: Use '\'' to represent an apostrophe within the trap.
1997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1998 trap 'exit_status=$?
1999 # Save into config.log some information that might help in debugging.
2004 ## ---------------- ##
2005 ## Cache variables. ##
2006 ## ---------------- ##
2009 # The following way of writing the cache mishandles newlines in values,
2011 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2012 eval ac_val=\$$ac_var
2016 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2017 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020 _ | IFS | as_nl) ;; #(
2021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2022 *) { eval $ac_var=; unset $ac_var;} ;;
2027 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2028 *${as_nl}ac_space=\ *)
2030 "s/'\''/'\''\\\\'\'''\''/g;
2031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042 ## ----------------- ##
2043 ## Output variables. ##
2044 ## ----------------- ##
2047 for ac_var in $ac_subst_vars
2049 eval ac_val=\$$ac_var
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 $as_echo "$ac_var='\''$ac_val'\''"
2057 if test -n "$ac_subst_files"; then
2059 ## ------------------- ##
2060 ## File substitutions. ##
2061 ## ------------------- ##
2064 for ac_var in $ac_subst_files
2066 eval ac_val=\$$ac_var
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 $as_echo "$ac_var='\''$ac_val'\''"
2075 if test -s confdefs.h; then
2085 test "$ac_signal" != 0 &&
2086 $as_echo "$as_me: caught signal $ac_signal"
2087 $as_echo "$as_me: exit $exit_status"
2089 rm -f core *.core core.conftest.* &&
2090 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2093 for ac_signal in 1 2 13 15; do
2094 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2098 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2099 rm -f -r conftest* confdefs.h
2101 $as_echo "/* confdefs.h */" > confdefs.h
2103 # Predefined preprocessor variables.
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_NAME "$PACKAGE_NAME"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_STRING "$PACKAGE_STRING"
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_URL "$PACKAGE_URL"
2130 # Let the site file select an alternate cache file if it wants to.
2131 # Prefer an explicitly selected file to automatically selected ones.
2134 if test -n "$CONFIG_SITE"; then
2135 ac_site_file1=$CONFIG_SITE
2136 elif test "x$prefix" != xNONE; then
2137 ac_site_file1=$prefix/share/config.site
2138 ac_site_file2=$prefix/etc/config.site
2140 ac_site_file1=$ac_default_prefix/share/config.site
2141 ac_site_file2=$ac_default_prefix/etc/config.site
2143 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145 test "x$ac_site_file" = xNONE && continue
2146 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2148 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2149 sed 's/^/| /' "$ac_site_file" >&5
2154 if test -r "$cache_file"; then
2155 # Some versions of bash will fail to source /dev/null (special files
2156 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2157 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2159 $as_echo "$as_me: loading cache $cache_file" >&6;}
2161 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2162 *) . "./$cache_file";;
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2167 $as_echo "$as_me: creating cache $cache_file" >&6;}
2171 # Check that the precious variables saved in the cache have kept the same
2173 ac_cache_corrupted=false
2174 for ac_var in $ac_precious_vars; do
2175 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2176 eval ac_new_set=\$ac_env_${ac_var}_set
2177 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2178 eval ac_new_val=\$ac_env_${ac_var}_value
2179 case $ac_old_set,$ac_new_set in
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2183 ac_cache_corrupted=: ;;
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2186 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2187 ac_cache_corrupted=: ;;
2190 if test "x$ac_old_val" != "x$ac_new_val"; then
2191 # differences in whitespace do not lead to failure.
2192 ac_old_val_w=`echo x $ac_old_val`
2193 ac_new_val_w=`echo x $ac_new_val`
2194 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2196 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2197 ac_cache_corrupted=:
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2200 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2201 eval $ac_var=\$ac_old_val
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2204 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2206 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2209 # Pass precious variables to config.status.
2210 if test "$ac_new_set" = set; then
2212 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2213 *) ac_arg=$ac_var=$ac_new_val ;;
2215 case " $ac_configure_args " in
2216 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2217 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2221 if $ac_cache_corrupted; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2225 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2226 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2228 ## -------------------- ##
2229 ## Main body of script. ##
2230 ## -------------------- ##
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 ac_config_headers="$ac_config_headers config.h"
2244 # fix warnings from autoconf + automake
2246 ac_cpp='$CPP $CPPFLAGS'
2247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2252 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2254 $as_echo_n "checking for $ac_word... " >&6; }
2255 if test "${ac_cv_prog_CC+set}" = set; then :
2256 $as_echo_n "(cached) " >&6
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 if test -n "$CC"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2281 $as_echo "$CC" >&6; }
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2284 $as_echo "no" >&6; }
2289 if test -z "$ac_cv_prog_CC"; then
2291 # Extract the first word of "gcc", so it can be a program name with args.
2292 set dummy gcc; ac_word=$2
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2294 $as_echo_n "checking for $ac_word... " >&6; }
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
2298 if test -n "$ac_ct_CC"; then
2299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_ac_ct_CC="gcc"
2309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319 if test -n "$ac_ct_CC"; then
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2321 $as_echo "$ac_ct_CC" >&6; }
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2324 $as_echo "no" >&6; }
2327 if test "x$ac_ct_CC" = x; then
2330 case $cross_compiling:$ac_tool_warned in
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2334 ac_tool_warned=yes ;;
2342 if test -z "$CC"; then
2343 if test -n "$ac_tool_prefix"; then
2344 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2345 set dummy ${ac_tool_prefix}cc; ac_word=$2
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2347 $as_echo_n "checking for $ac_word... " >&6; }
2348 if test "${ac_cv_prog_CC+set}" = set; then :
2349 $as_echo_n "(cached) " >&6
2351 if test -n "$CC"; then
2352 ac_cv_prog_CC="$CC" # Let the user override the test.
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 test -z "$as_dir" && as_dir=.
2359 for ac_exec_ext in '' $ac_executable_extensions; do
2360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2361 ac_cv_prog_CC="${ac_tool_prefix}cc"
2362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2372 if test -n "$CC"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2374 $as_echo "$CC" >&6; }
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2377 $as_echo "no" >&6; }
2383 if test -z "$CC"; then
2384 # Extract the first word of "cc", so it can be a program name with args.
2385 set dummy cc; ac_word=$2
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2387 $as_echo_n "checking for $ac_word... " >&6; }
2388 if test "${ac_cv_prog_CC+set}" = set; then :
2389 $as_echo_n "(cached) " >&6
2391 if test -n "$CC"; then
2392 ac_cv_prog_CC="$CC" # Let the user override the test.
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 test -z "$as_dir" && as_dir=.
2400 for ac_exec_ext in '' $ac_executable_extensions; do
2401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2402 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2403 ac_prog_rejected=yes
2407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 if test $ac_prog_rejected = yes; then
2415 # We found a bogon in the path, so make sure we never use it.
2416 set dummy $ac_cv_prog_CC
2418 if test $# != 0; then
2419 # We chose a different compiler from the bogus one.
2420 # However, it has the same basename, so the bogon will be chosen
2421 # first if we set CC to just the basename; use the full file name.
2423 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2429 if test -n "$CC"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2431 $as_echo "$CC" >&6; }
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2434 $as_echo "no" >&6; }
2439 if test -z "$CC"; then
2440 if test -n "$ac_tool_prefix"; then
2441 for ac_prog in cl.exe
2443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2444 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if test "${ac_cv_prog_CC+set}" = set; then :
2448 $as_echo_n "(cached) " >&6
2450 if test -n "$CC"; then
2451 ac_cv_prog_CC="$CC" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 if test -n "$CC"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2473 $as_echo "$CC" >&6; }
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2480 test -n "$CC" && break
2483 if test -z "$CC"; then
2485 for ac_prog in cl.exe
2487 # Extract the first word of "$ac_prog", so it can be a program name with args.
2488 set dummy $ac_prog; ac_word=$2
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490 $as_echo_n "checking for $ac_word... " >&6; }
2491 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2492 $as_echo_n "(cached) " >&6
2494 if test -n "$ac_ct_CC"; then
2495 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 test -z "$as_dir" && as_dir=.
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504 ac_cv_prog_ac_ct_CC="$ac_prog"
2505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2515 if test -n "$ac_ct_CC"; then
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2517 $as_echo "$ac_ct_CC" >&6; }
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520 $as_echo "no" >&6; }
2524 test -n "$ac_ct_CC" && break
2527 if test "x$ac_ct_CC" = x; then
2530 case $cross_compiling:$ac_tool_warned in
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2534 ac_tool_warned=yes ;;
2543 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545 as_fn_error "no acceptable C compiler found in \$PATH
2546 See \`config.log' for more details." "$LINENO" 5; }
2548 # Provide some information about the compiler.
2549 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2552 for ac_option in --version -v -V -qversion; do
2553 { { ac_try="$ac_compiler $ac_option >&5"
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2559 $as_echo "$ac_try_echo"; } >&5
2560 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2562 if test -s conftest.err; then
2564 ... rest of stderr output deleted ...
2565 10q' conftest.err >conftest.er1
2566 cat conftest.er1 >&5
2568 rm -f conftest.er1 conftest.err
2569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2570 test $ac_status = 0; }
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2584 ac_clean_files_save=$ac_clean_files
2585 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2586 # Try to create an executable without -o first, disregard a.out.
2587 # It will help us diagnose broken compilers, and finding out an intuition
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2590 $as_echo_n "checking whether the C compiler works... " >&6; }
2591 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2593 # The possible output files:
2594 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2597 for ac_file in $ac_files
2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2601 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2606 if { { ac_try="$ac_link_default"
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2612 $as_echo "$ac_try_echo"; } >&5
2613 (eval "$ac_link_default") 2>&5
2615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2616 test $ac_status = 0; }; then :
2617 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2618 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2619 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2620 # so that the user can short-circuit this test for compilers unknown to
2622 for ac_file in $ac_files ''
2624 test -f "$ac_file" || continue
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2629 # We found the default executable, but exeext='' is most
2633 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2635 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637 # We set ac_cv_exeext here because the later test for it is not
2638 # safe: cross compilers may not add the suffix if given an `-o'
2639 # argument, so we may need to know it at that point already.
2640 # Even if this section looks crufty: it has the advantage of
2647 test "$ac_cv_exeext" = no && ac_cv_exeext=
2652 if test -z "$ac_file"; then :
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655 $as_echo "$as_me: failed program was:" >&5
2656 sed 's/^/| /' conftest.$ac_ext >&5
2658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660 { as_fn_set_status 77
2661 as_fn_error "C compiler cannot create executables
2662 See \`config.log' for more details." "$LINENO" 5; }; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2668 $as_echo_n "checking for C compiler default output file name... " >&6; }
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2670 $as_echo "$ac_file" >&6; }
2671 ac_exeext=$ac_cv_exeext
2673 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2674 ac_clean_files=$ac_clean_files_save
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2676 $as_echo_n "checking for suffix of executables... " >&6; }
2677 if { { ac_try="$ac_link"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2683 $as_echo "$ac_try_echo"; } >&5
2684 (eval "$ac_link") 2>&5
2686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2687 test $ac_status = 0; }; then :
2688 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2689 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2690 # work properly (i.e., refer to `conftest.exe'), while it won't with
2692 for ac_file in conftest.exe conftest conftest.*; do
2693 test -f "$ac_file" || continue
2695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2696 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704 as_fn_error "cannot compute suffix of executables: cannot compile and link
2705 See \`config.log' for more details." "$LINENO" 5; }
2707 rm -f conftest conftest$ac_cv_exeext
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2709 $as_echo "$ac_cv_exeext" >&6; }
2711 rm -f conftest.$ac_ext
2712 EXEEXT=$ac_cv_exeext
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h. */
2720 FILE *f = fopen ("conftest.out", "w");
2721 return ferror (f) || fclose (f) != 0;
2727 ac_clean_files="$ac_clean_files conftest.out"
2728 # Check that the compiler produces executables we can run. If not, either
2729 # the compiler is broken, or we cross compile.
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2731 $as_echo_n "checking whether we are cross compiling... " >&6; }
2732 if test "$cross_compiling" != yes; then
2733 { { ac_try="$ac_link"
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2739 $as_echo "$ac_try_echo"; } >&5
2740 (eval "$ac_link") 2>&5
2742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2743 test $ac_status = 0; }
2744 if { ac_try='./conftest$ac_cv_exeext'
2745 { { case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2750 $as_echo "$ac_try_echo"; } >&5
2751 (eval "$ac_try") 2>&5
2753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2754 test $ac_status = 0; }; }; then
2757 if test "$cross_compiling" = maybe; then
2760 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2762 as_fn_error "cannot run C compiled programs.
2763 If you meant to cross compile, use \`--host'.
2764 See \`config.log' for more details." "$LINENO" 5; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2769 $as_echo "$cross_compiling" >&6; }
2771 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2772 ac_clean_files=$ac_clean_files_save
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2774 $as_echo_n "checking for suffix of object files... " >&6; }
2775 if test "${ac_cv_objext+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h. */
2789 rm -f conftest.o conftest.obj
2790 if { { ac_try="$ac_compile"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_compile") 2>&5
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }; then :
2801 for ac_file in conftest.o conftest.obj conftest.*; do
2802 test -f "$ac_file" || continue;
2804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2810 $as_echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2815 as_fn_error "cannot compute suffix of object files: cannot compile
2816 See \`config.log' for more details." "$LINENO" 5; }
2818 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2821 $as_echo "$ac_cv_objext" >&6; }
2822 OBJEXT=$ac_cv_objext
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2825 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2826 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2830 /* end confdefs.h. */
2843 if ac_fn_c_try_compile "$LINENO"; then :
2848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2853 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2854 if test $ac_compiler_gnu = yes; then
2859 ac_test_CFLAGS=${CFLAGS+set}
2860 ac_save_CFLAGS=$CFLAGS
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2862 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2863 if test "${ac_cv_prog_cc_g+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2866 ac_save_c_werror_flag=$ac_c_werror_flag
2867 ac_c_werror_flag=yes
2870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2871 /* end confdefs.h. */
2881 if ac_fn_c_try_compile "$LINENO"; then :
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2896 if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_c_werror_flag=$ac_save_c_werror_flag
2901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2902 /* end confdefs.h. */
2912 if ac_fn_c_try_compile "$LINENO"; then :
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 ac_c_werror_flag=$ac_save_c_werror_flag
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2923 $as_echo "$ac_cv_prog_cc_g" >&6; }
2924 if test "$ac_test_CFLAGS" = set; then
2925 CFLAGS=$ac_save_CFLAGS
2926 elif test $ac_cv_prog_cc_g = yes; then
2927 if test "$GCC" = yes; then
2933 if test "$GCC" = yes; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2940 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2941 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2942 $as_echo_n "(cached) " >&6
2944 ac_cv_prog_cc_c89=no
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2950 #include <sys/types.h>
2951 #include <sys/stat.h>
2952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2953 struct buf { int x; };
2954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2955 static char *e (p, i)
2961 static char *f (char * (*g) (char **, int), char **p, ...)
2966 s = g (p, va_arg (v,int));
2971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2972 function prototypes and stuff, but not '\xHH' hex character constants.
2973 These don't provoke an error unfortunately, instead are silently treated
2974 as 'x'. The following induces an error, until -std is added to get
2975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2976 array size at least. It's necessary to write '\x00'==0 to get something
2977 that's true only with -std. */
2978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2980 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2981 inside strings and character constants. */
2983 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2985 int test (int i, double x);
2986 struct s1 {int (*f) (int a);};
2987 struct s2 {int (*f) (double a);};
2988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2994 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3000 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3002 CC="$ac_save_CC $ac_arg"
3003 if ac_fn_c_try_compile "$LINENO"; then :
3004 ac_cv_prog_cc_c89=$ac_arg
3006 rm -f core conftest.err conftest.$ac_objext
3007 test "x$ac_cv_prog_cc_c89" != "xno" && break
3009 rm -f conftest.$ac_ext
3014 case "x$ac_cv_prog_cc_c89" in
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3017 $as_echo "none needed" >&6; } ;;
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3020 $as_echo "unsupported" >&6; } ;;
3022 CC="$CC $ac_cv_prog_cc_c89"
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3024 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3026 if test "x$ac_cv_prog_cc_c89" != xno; then :
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3043 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3044 # On Suns, sometimes $CPP names a directory.
3045 if test -n "$CPP" && test -d "$CPP"; then
3048 if test -z "$CPP"; then
3049 if test "${ac_cv_prog_CPP+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3052 # Double quotes because CPP needs to be expanded
3053 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3056 for ac_c_preproc_warn_flag in '' yes
3058 # Use a header file that comes with gcc, so configuring glibc
3059 # with a fresh cross-compiler works.
3060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3061 # <limits.h> exists even on freestanding compilers.
3062 # On the NeXT, cc -E runs the code through the compiler's parser,
3063 # not just through cpp. "Syntax error" is here to catch this case.
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3067 # include <limits.h>
3069 # include <assert.h>
3073 if ac_fn_c_try_cpp "$LINENO"; then :
3076 # Broken: fails on valid input.
3079 rm -f conftest.err conftest.$ac_ext
3081 # OK, works on sane cases. Now check whether nonexistent headers
3082 # can be detected and how.
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3085 #include <ac_nonexistent.h>
3087 if ac_fn_c_try_cpp "$LINENO"; then :
3088 # Broken: success on invalid input.
3091 # Passes both tests.
3095 rm -f conftest.err conftest.$ac_ext
3098 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3099 rm -f conftest.err conftest.$ac_ext
3100 if $ac_preproc_ok; then :
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3113 $as_echo "$CPP" >&6; }
3115 for ac_c_preproc_warn_flag in '' yes
3117 # Use a header file that comes with gcc, so configuring glibc
3118 # with a fresh cross-compiler works.
3119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3120 # <limits.h> exists even on freestanding compilers.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp. "Syntax error" is here to catch this case.
3123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 /* end confdefs.h. */
3126 # include <limits.h>
3128 # include <assert.h>
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3135 # Broken: fails on valid input.
3138 rm -f conftest.err conftest.$ac_ext
3140 # OK, works on sane cases. Now check whether nonexistent headers
3141 # can be detected and how.
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3144 #include <ac_nonexistent.h>
3146 if ac_fn_c_try_cpp "$LINENO"; then :
3147 # Broken: success on invalid input.
3150 # Passes both tests.
3154 rm -f conftest.err conftest.$ac_ext
3157 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3158 rm -f conftest.err conftest.$ac_ext
3159 if $ac_preproc_ok; then :
3162 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." "$LINENO" 5; }
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3176 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3177 if test "${ac_cv_path_GREP+set}" = set; then :
3178 $as_echo_n "(cached) " >&6
3180 if test -z "$GREP"; then
3181 ac_path_GREP_found=false
3182 # Loop through the user's path and test for each of PROGNAME-LIST
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3187 test -z "$as_dir" && as_dir=.
3188 for ac_prog in grep ggrep; do
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3191 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3192 # Check for GNU ac_path_GREP and select it if it is found.
3193 # Check for GNU $ac_path_GREP
3194 case `"$ac_path_GREP" --version 2>&1` in
3196 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3199 $as_echo_n 0123456789 >"conftest.in"
3202 cat "conftest.in" "conftest.in" >"conftest.tmp"
3203 mv "conftest.tmp" "conftest.in"
3204 cp "conftest.in" "conftest.nl"
3205 $as_echo 'GREP' >> "conftest.nl"
3206 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3208 as_fn_arith $ac_count + 1 && ac_count=$as_val
3209 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3210 # Best one so far, save it but keep looking for a better one
3211 ac_cv_path_GREP="$ac_path_GREP"
3212 ac_path_GREP_max=$ac_count
3214 # 10*(2^10) chars as input seems more than enough
3215 test $ac_count -gt 10 && break
3217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3220 $ac_path_GREP_found && break 3
3225 if test -z "$ac_cv_path_GREP"; then
3226 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3229 ac_cv_path_GREP=$GREP
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3234 $as_echo "$ac_cv_path_GREP" >&6; }
3235 GREP="$ac_cv_path_GREP"
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3239 $as_echo_n "checking for egrep... " >&6; }
3240 if test "${ac_cv_path_EGREP+set}" = set; then :
3241 $as_echo_n "(cached) " >&6
3243 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3244 then ac_cv_path_EGREP="$GREP -E"
3246 if test -z "$EGREP"; then
3247 ac_path_EGREP_found=false
3248 # Loop through the user's path and test for each of PROGNAME-LIST
3249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3253 test -z "$as_dir" && as_dir=.
3254 for ac_prog in egrep; do
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3257 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3258 # Check for GNU ac_path_EGREP and select it if it is found.
3259 # Check for GNU $ac_path_EGREP
3260 case `"$ac_path_EGREP" --version 2>&1` in
3262 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3265 $as_echo_n 0123456789 >"conftest.in"
3268 cat "conftest.in" "conftest.in" >"conftest.tmp"
3269 mv "conftest.tmp" "conftest.in"
3270 cp "conftest.in" "conftest.nl"
3271 $as_echo 'EGREP' >> "conftest.nl"
3272 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3273 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3274 as_fn_arith $ac_count + 1 && ac_count=$as_val
3275 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3276 # Best one so far, save it but keep looking for a better one
3277 ac_cv_path_EGREP="$ac_path_EGREP"
3278 ac_path_EGREP_max=$ac_count
3280 # 10*(2^10) chars as input seems more than enough
3281 test $ac_count -gt 10 && break
3283 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3286 $ac_path_EGREP_found && break 3
3291 if test -z "$ac_cv_path_EGREP"; then
3292 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3295 ac_cv_path_EGREP=$EGREP
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3301 $as_echo "$ac_cv_path_EGREP" >&6; }
3302 EGREP="$ac_cv_path_EGREP"
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3306 $as_echo_n "checking for ANSI C header files... " >&6; }
3307 if test "${ac_cv_header_stdc+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3325 if ac_fn_c_try_compile "$LINENO"; then :
3326 ac_cv_header_stdc=yes
3328 ac_cv_header_stdc=no
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 if test $ac_cv_header_stdc = yes; then
3333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3340 $EGREP "memchr" >/dev/null 2>&1; then :
3343 ac_cv_header_stdc=no
3349 if test $ac_cv_header_stdc = yes; then
3350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3357 $EGREP "free" >/dev/null 2>&1; then :
3360 ac_cv_header_stdc=no
3366 if test $ac_cv_header_stdc = yes; then
3367 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3368 if test "$cross_compiling" = yes; then :
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3375 #if ((' ' & 0x0FF) == 0x020)
3376 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3377 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3379 # define ISLOWER(c) \
3380 (('a' <= (c) && (c) <= 'i') \
3381 || ('j' <= (c) && (c) <= 'r') \
3382 || ('s' <= (c) && (c) <= 'z'))
3383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3386 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3391 for (i = 0; i < 256; i++)
3392 if (XOR (islower (i), ISLOWER (i))
3393 || toupper (i) != TOUPPER (i))
3398 if ac_fn_c_try_run "$LINENO"; then :
3401 ac_cv_header_stdc=no
3403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3404 conftest.$ac_objext conftest.beam conftest.$ac_ext
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3410 $as_echo "$ac_cv_header_stdc" >&6; }
3411 if test $ac_cv_header_stdc = yes; then
3413 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3417 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3419 inttypes.h stdint.h unistd.h
3421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3422 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3424 eval as_val=\$$as_ac_Header
3425 if test "x$as_val" = x""yes; then :
3426 cat >>confdefs.h <<_ACEOF
3427 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3436 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3437 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3444 if test "$MINIX" = yes; then
3446 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3449 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3452 $as_echo "#define _MINIX 1" >>confdefs.h
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3458 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3459 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3465 # define __EXTENSIONS__ 1
3466 $ac_includes_default
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476 ac_cv_safe_to_define___extensions__=yes
3478 ac_cv_safe_to_define___extensions__=no
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3483 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3484 test $ac_cv_safe_to_define___extensions__ = yes &&
3485 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3487 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3489 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3491 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3493 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3497 # AC_USE_SYSTEM_EXTENSIONS
3498 am__api_version="1.9"
3500 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3501 for ac_t in install-sh install.sh shtool; do
3502 if test -f "$ac_dir/$ac_t"; then
3504 ac_install_sh="$ac_aux_dir/$ac_t -c"
3509 if test -z "$ac_aux_dir"; then
3510 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3513 # These three variables are undocumented and unsupported,
3514 # and are intended to be withdrawn in a future Autoconf release.
3515 # They can cause serious problems if a builder's source tree is in a directory
3516 # whose full name contains unusual characters.
3517 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3518 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3519 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3522 # Find a good install program. We prefer a C program (faster),
3523 # so one script is as good as another. But avoid the broken or
3524 # incompatible versions:
3525 # SysV /etc/install, /usr/sbin/install
3526 # SunOS /usr/etc/install
3527 # IRIX /sbin/install
3529 # AmigaOS /C/install, which installs bootblocks on floppy discs
3530 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3531 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3532 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3533 # OS/2's system install, which has a completely different semantic
3534 # ./install, which can be erroneously created by make from ./install.sh.
3535 # Reject install programs that cannot install multiple files.
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3537 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3538 if test -z "$INSTALL"; then
3539 if test "${ac_cv_path_install+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 # Account for people who put trailing slashes in PATH elements.
3548 case $as_dir/ in #((
3549 ./ | .// | /[cC]/* | \
3550 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3551 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3554 # OSF1 and SCO ODT 3.0 have their own names for install.
3555 # Don't use installbsd from OSF since it installs stuff as root
3557 for ac_prog in ginstall scoinst install; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3560 if test $ac_prog = install &&
3561 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3562 # AIX install. It has an incompatible calling convention.
3564 elif test $ac_prog = install &&
3565 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # program-specific install script used by HP pwplus--don't use.
3569 rm -rf conftest.one conftest.two conftest.dir
3570 echo one > conftest.one
3571 echo two > conftest.two
3573 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3574 test -s conftest.one && test -s conftest.two &&
3575 test -s conftest.dir/conftest.one &&
3576 test -s conftest.dir/conftest.two
3578 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3591 rm -rf conftest.one conftest.two conftest.dir
3594 if test "${ac_cv_path_install+set}" = set; then
3595 INSTALL=$ac_cv_path_install
3597 # As a last resort, use the slow shell script. Don't cache a
3598 # value for INSTALL within a source directory, because that will
3599 # break other packages using the cache if that directory is
3600 # removed, or if the value is a relative name.
3601 INSTALL=$ac_install_sh
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3605 $as_echo "$INSTALL" >&6; }
3607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3608 # It thinks the first close brace ends the variable substitution.
3609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3613 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3616 $as_echo_n "checking whether build environment is sane... " >&6; }
3619 echo timestamp > conftest.file
3620 # Do `set' in a subshell so we don't clobber the current shell's
3621 # arguments. Must try -L first in case configure is actually a
3622 # symlink; some systems play weird games with the mod time of symlinks
3623 # (eg FreeBSD returns the mod time of the symlink's containing
3626 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3627 if test "$*" = "X"; then
3629 set X `ls -t $srcdir/configure conftest.file`
3632 if test "$*" != "X $srcdir/configure conftest.file" \
3633 && test "$*" != "X conftest.file $srcdir/configure"; then
3635 # If neither matched, then we have a broken ls. This can happen
3636 # if, for instance, CONFIG_SHELL is bash and it inherits a
3637 # broken ls alias from the environment. This has actually
3638 # happened. Such a system could not be considered "sane".
3639 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3640 alias in your environment" "$LINENO" 5
3643 test "$2" = conftest.file
3649 as_fn_error "newly created file is older than distributed files!
3650 Check your system clock" "$LINENO" 5
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654 test "$program_prefix" != NONE &&
3655 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3656 # Use a double $ so make ignores it.
3657 test "$program_suffix" != NONE &&
3658 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3659 # Double any \ or $.
3660 # By default was `s,x,x', remove it if useless.
3661 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3662 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3664 # expand $ac_aux_dir to an absolute path
3665 am_aux_dir=`cd $ac_aux_dir && pwd`
3667 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3668 # Use eval to expand $SHELL
3669 if eval "$MISSING --run true"; then
3670 am_missing_run="$MISSING --run "
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3674 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3677 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3678 # We used to keeping the `.' as first argument, in order to
3679 # allow $(mkdir_p) to be used without argument. As in
3680 # $(mkdir_p) $(somedir)
3681 # where $(somedir) is conditionally defined. However this is wrong
3683 # 1. if the package is installed by a user who cannot write `.'
3684 # make install will fail,
3685 # 2. the above comment should most certainly read
3686 # $(mkdir_p) $(DESTDIR)$(somedir)
3687 # so it does not work when $(somedir) is undefined and
3688 # $(DESTDIR) is not.
3689 # To support the latter case, we have to write
3690 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3691 # so the `.' trick is pointless.
3692 mkdir_p='mkdir -p --'
3694 # On NextStep and OpenStep, the `mkdir' command does not
3695 # recognize any option. It will interpret all options as
3696 # directories to create, and then abort because `.' already
3698 for d in ./-p ./--version;
3700 test -d $d && rmdir $d
3702 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3703 if test -f "$ac_aux_dir/mkinstalldirs"; then
3704 mkdir_p='$(mkinstalldirs)'
3706 mkdir_p='$(install_sh) -d'
3710 for ac_prog in gawk mawk nawk awk
3712 # Extract the first word of "$ac_prog", so it can be a program name with args.
3713 set dummy $ac_prog; ac_word=$2
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3715 $as_echo_n "checking for $ac_word... " >&6; }
3716 if test "${ac_cv_prog_AWK+set}" = set; then :
3717 $as_echo_n "(cached) " >&6
3719 if test -n "$AWK"; then
3720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726 test -z "$as_dir" && as_dir=.
3727 for ac_exec_ext in '' $ac_executable_extensions; do
3728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3729 ac_cv_prog_AWK="$ac_prog"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 if test -n "$AWK"; then
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3742 $as_echo "$AWK" >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745 $as_echo "no" >&6; }
3749 test -n "$AWK" && break
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3753 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3755 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3756 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3757 $as_echo_n "(cached) " >&6
3759 cat >conftest.make <<\_ACEOF
3762 @echo '@@@%%%=$(MAKE)=@@@%%%'
3764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3765 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3767 eval ac_cv_prog_make_${ac_make}_set=yes;;
3769 eval ac_cv_prog_make_${ac_make}_set=no;;
3773 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3775 $as_echo "yes" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3780 SET_MAKE="MAKE=${MAKE-make}"
3783 rm -rf .tst 2>/dev/null
3784 mkdir .tst 2>/dev/null
3785 if test -d .tst; then
3790 rmdir .tst 2>/dev/null
3792 DEPDIR="${am__leading_dot}deps"
3794 ac_config_commands="$ac_config_commands depfiles"
3797 am_make=${MAKE-make}
3798 cat > confinc << 'END'
3803 # If we don't find an include directive, just comment out the code.
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3805 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3809 # First try GNU make style include.
3810 echo "include confinc" > confmf
3811 # We grep out `Entering directory' and `Leaving directory'
3812 # messages which can occur if `w' ends up in MAKEFLAGS.
3813 # In particular we don't look at `^make:' because GNU make might
3814 # be invoked under some other name (usually "gmake"), in which
3815 # case it prints its new name instead of `make'.
3816 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3821 # Now try BSD make style include.
3822 if test "$am__include" = "#"; then
3823 echo '.include "confinc"' > confmf
3824 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3825 am__include=.include
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3833 $as_echo "$_am_result" >&6; }
3834 rm -f confinc confmf
3836 # Check whether --enable-dependency-tracking was given.
3837 if test "${enable_dependency_tracking+set}" = set; then :
3838 enableval=$enable_dependency_tracking;
3841 if test "x$enable_dependency_tracking" != xno; then
3842 am_depcomp="$ac_aux_dir/depcomp"
3847 if test "x$enable_dependency_tracking" != xno; then
3857 # test to see if srcdir already configured
3858 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3859 test -f $srcdir/config.status; then
3860 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3863 # test whether we have cygpath
3864 if test -z "$CYGPATH_W"; then
3865 if (cygpath --version) >/dev/null 2>/dev/null; then
3866 CYGPATH_W='cygpath -w'
3873 # Define the identity of the package.
3878 cat >>confdefs.h <<_ACEOF
3879 #define PACKAGE "$PACKAGE"
3883 cat >>confdefs.h <<_ACEOF
3884 #define VERSION "$VERSION"
3887 # Some tools Automake needs.
3889 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3892 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3895 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3898 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3901 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3903 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3905 # Installed binaries are usually stripped using `strip' when the user
3906 # run `make install-strip'. However `strip' might not be the right
3907 # tool to use in cross-compilation environments, therefore Automake
3908 # will honor the `STRIP' environment variable to overrule this program.
3909 if test "$cross_compiling" != no; then
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}strip; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_STRIP+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$STRIP"; then
3919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 STRIP=$ac_cv_prog_STRIP
3939 if test -n "$STRIP"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3941 $as_echo "$STRIP" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3949 if test -z "$ac_cv_prog_STRIP"; then
3951 # Extract the first word of "strip", so it can be a program name with args.
3952 set dummy strip; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3958 if test -n "$ac_ct_STRIP"; then
3959 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_ac_ct_STRIP="strip"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3979 if test -n "$ac_ct_STRIP"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3981 $as_echo "$ac_ct_STRIP" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3987 if test "x$ac_ct_STRIP" = x; then
3990 case $cross_compiling:$ac_tool_warned in
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994 ac_tool_warned=yes ;;
3999 STRIP="$ac_cv_prog_STRIP"
4003 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4005 # We need awk for the "check" target. The system "awk" is bad on
4007 # Always define AMTAR for backward compatibility.
4009 AMTAR=${AMTAR-"${am_missing_run}tar"}
4011 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4016 depcc="$CC" am_compiler_list=
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4019 $as_echo_n "checking dependency style of $depcc... " >&6; }
4020 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4024 # We make a subdir and do the tests there. Otherwise we can end up
4025 # making bogus files that we don't know about and never remove. For
4026 # instance it was reported that on HP-UX the gcc test will end up
4027 # making a dummy file named `D' -- because `-MD' means `put the output
4030 # Copy depcomp to subdir because otherwise we won't find it if we're
4031 # using a relative directory.
4032 cp "$am_depcomp" conftest.dir
4034 # We will build objects and dependencies in a subdirectory because
4035 # it helps to detect inapplicable dependency modes. For instance
4036 # both Tru64's cc and ICC support -MD to output dependencies as a
4037 # side effect of compilation, but ICC will put the dependencies in
4038 # the current directory while Tru64 will put them in the object
4042 am_cv_CC_dependencies_compiler_type=none
4043 if test "$am_compiler_list" = ""; then
4044 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4046 for depmode in $am_compiler_list; do
4047 # Setup a source with many dependencies, because some compilers
4048 # like to wrap large dependency lists on column 80 (with \), and
4049 # we should not choose a depcomp mode which is confused by this.
4051 # We need to recreate these files for each test, as the compiler may
4052 # overwrite some of them when testing with obscure command lines.
4053 # This happens at least with the AIX C compiler.
4055 for i in 1 2 3 4 5 6; do
4056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4058 # Solaris 8's {/usr,}/bin/sh.
4059 touch sub/conftst$i.h
4061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4065 # after this tag, mechanisms are not by side-effect, so they'll
4066 # only be used when explicitly requested
4067 if test "x$enable_dependency_tracking" = xyes; then
4075 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076 # mode. It turns out that the SunPro C++ compiler does not properly
4077 # handle `-M -o', and we need to detect this.
4078 if depmode=$depmode \
4079 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4082 >/dev/null 2>conftest.err &&
4083 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4084 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4085 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4086 # icc doesn't choke on unknown options, it will just issue warnings
4087 # or remarks (even with -Werror). So we grep stderr for any message
4088 # that says an option was ignored or not supported.
4089 # When given -MP, icc 7.0 and 7.1 complain thusly:
4090 # icc: Command line warning: ignoring option '-M'; no argument required
4091 # The diagnosis changed in icc 8.0:
4092 # icc: Command line remark: option '-MP' not supported
4093 if (grep 'ignoring option' conftest.err ||
4094 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4095 am_cv_CC_dependencies_compiler_type=$depmode
4104 am_cv_CC_dependencies_compiler_type=none
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4109 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4110 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4115 test "x$enable_dependency_tracking" != xno \
4116 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4118 am__fastdepCC_FALSE='#'
4120 am__fastdepCC_TRUE='#'
4121 am__fastdepCC_FALSE=
4129 # Checks for programs.
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4136 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4137 # On Suns, sometimes $CPP names a directory.
4138 if test -n "$CPP" && test -d "$CPP"; then
4141 if test -z "$CPP"; then
4142 if test "${ac_cv_prog_CPP+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4145 # Double quotes because CPP needs to be expanded
4146 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4149 for ac_c_preproc_warn_flag in '' yes
4151 # Use a header file that comes with gcc, so configuring glibc
4152 # with a fresh cross-compiler works.
4153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4154 # <limits.h> exists even on freestanding compilers.
4155 # On the NeXT, cc -E runs the code through the compiler's parser,
4156 # not just through cpp. "Syntax error" is here to catch this case.
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4160 # include <limits.h>
4162 # include <assert.h>
4166 if ac_fn_c_try_cpp "$LINENO"; then :
4169 # Broken: fails on valid input.
4172 rm -f conftest.err conftest.$ac_ext
4174 # OK, works on sane cases. Now check whether nonexistent headers
4175 # can be detected and how.
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 #include <ac_nonexistent.h>
4180 if ac_fn_c_try_cpp "$LINENO"; then :
4181 # Broken: success on invalid input.
4184 # Passes both tests.
4188 rm -f conftest.err conftest.$ac_ext
4191 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4192 rm -f conftest.err conftest.$ac_ext
4193 if $ac_preproc_ok; then :
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4206 $as_echo "$CPP" >&6; }
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error" is here to catch this case.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4219 # include <limits.h>
4221 # include <assert.h>
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4228 # Broken: fails on valid input.
4231 rm -f conftest.err conftest.$ac_ext
4233 # OK, works on sane cases. Now check whether nonexistent headers
4234 # can be detected and how.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 #include <ac_nonexistent.h>
4239 if ac_fn_c_try_cpp "$LINENO"; then :
4240 # Broken: success on invalid input.
4243 # Passes both tests.
4247 rm -f conftest.err conftest.$ac_ext
4250 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251 rm -f conftest.err conftest.$ac_ext
4252 if $ac_preproc_ok; then :
4255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4257 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4258 See \`config.log' for more details." "$LINENO" 5; }
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4268 ac_cpp='$CXXCPP $CPPFLAGS'
4269 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4270 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4271 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4272 if test -z "$CXX"; then
4273 if test -n "$CCC"; then
4276 if test -n "$ac_tool_prefix"; then
4277 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 $as_echo_n "checking for $ac_word... " >&6; }
4283 if test "${ac_cv_prog_CXX+set}" = set; then :
4284 $as_echo_n "(cached) " >&6
4286 if test -n "$CXX"; then
4287 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 test -z "$as_dir" && as_dir=.
4294 for ac_exec_ext in '' $ac_executable_extensions; do
4295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 if test -n "$CXX"; then
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4309 $as_echo "$CXX" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4316 test -n "$CXX" && break
4319 if test -z "$CXX"; then
4321 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4323 # Extract the first word of "$ac_prog", so it can be a program name with args.
4324 set dummy $ac_prog; ac_word=$2
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4326 $as_echo_n "checking for $ac_word... " >&6; }
4327 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 if test -n "$ac_ct_CXX"; then
4331 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_ac_ct_CXX="$ac_prog"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4351 if test -n "$ac_ct_CXX"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4353 $as_echo "$ac_ct_CXX" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4360 test -n "$ac_ct_CXX" && break
4363 if test "x$ac_ct_CXX" = x; then
4366 case $cross_compiling:$ac_tool_warned in
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4370 ac_tool_warned=yes ;;
4378 # Provide some information about the compiler.
4379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4382 for ac_option in --version -v -V -qversion; do
4383 { { ac_try="$ac_compiler $ac_option >&5"
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389 $as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4392 if test -s conftest.err; then
4394 ... rest of stderr output deleted ...
4395 10q' conftest.err >conftest.er1
4396 cat conftest.er1 >&5
4398 rm -f conftest.er1 conftest.err
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4404 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4422 if ac_fn_cxx_try_compile "$LINENO"; then :
4427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4432 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4433 if test $ac_compiler_gnu = yes; then
4438 ac_test_CXXFLAGS=${CXXFLAGS+set}
4439 ac_save_CXXFLAGS=$CXXFLAGS
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4441 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4442 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4446 ac_cxx_werror_flag=yes
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4460 if ac_fn_cxx_try_compile "$LINENO"; then :
4461 ac_cv_prog_cxx_g=yes
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4475 if ac_fn_cxx_try_compile "$LINENO"; then :
4478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4491 if ac_fn_cxx_try_compile "$LINENO"; then :
4492 ac_cv_prog_cxx_g=yes
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4502 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4503 if test "$ac_test_CXXFLAGS" = set; then
4504 CXXFLAGS=$ac_save_CXXFLAGS
4505 elif test $ac_cv_prog_cxx_g = yes; then
4506 if test "$GXX" = yes; then
4512 if test "$GXX" = yes; then
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4524 depcc="$CXX" am_compiler_list=
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4527 $as_echo_n "checking dependency style of $depcc... " >&6; }
4528 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
4531 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4532 # We make a subdir and do the tests there. Otherwise we can end up
4533 # making bogus files that we don't know about and never remove. For
4534 # instance it was reported that on HP-UX the gcc test will end up
4535 # making a dummy file named `D' -- because `-MD' means `put the output
4538 # Copy depcomp to subdir because otherwise we won't find it if we're
4539 # using a relative directory.
4540 cp "$am_depcomp" conftest.dir
4542 # We will build objects and dependencies in a subdirectory because
4543 # it helps to detect inapplicable dependency modes. For instance
4544 # both Tru64's cc and ICC support -MD to output dependencies as a
4545 # side effect of compilation, but ICC will put the dependencies in
4546 # the current directory while Tru64 will put them in the object
4550 am_cv_CXX_dependencies_compiler_type=none
4551 if test "$am_compiler_list" = ""; then
4552 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4554 for depmode in $am_compiler_list; do
4555 # Setup a source with many dependencies, because some compilers
4556 # like to wrap large dependency lists on column 80 (with \), and
4557 # we should not choose a depcomp mode which is confused by this.
4559 # We need to recreate these files for each test, as the compiler may
4560 # overwrite some of them when testing with obscure command lines.
4561 # This happens at least with the AIX C compiler.
4563 for i in 1 2 3 4 5 6; do
4564 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4565 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4566 # Solaris 8's {/usr,}/bin/sh.
4567 touch sub/conftst$i.h
4569 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4573 # after this tag, mechanisms are not by side-effect, so they'll
4574 # only be used when explicitly requested
4575 if test "x$enable_dependency_tracking" = xyes; then
4583 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4584 # mode. It turns out that the SunPro C++ compiler does not properly
4585 # handle `-M -o', and we need to detect this.
4586 if depmode=$depmode \
4587 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4588 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4589 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4590 >/dev/null 2>conftest.err &&
4591 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4592 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4593 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4594 # icc doesn't choke on unknown options, it will just issue warnings
4595 # or remarks (even with -Werror). So we grep stderr for any message
4596 # that says an option was ignored or not supported.
4597 # When given -MP, icc 7.0 and 7.1 complain thusly:
4598 # icc: Command line warning: ignoring option '-M'; no argument required
4599 # The diagnosis changed in icc 8.0:
4600 # icc: Command line remark: option '-MP' not supported
4601 if (grep 'ignoring option' conftest.err ||
4602 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4603 am_cv_CXX_dependencies_compiler_type=$depmode
4612 am_cv_CXX_dependencies_compiler_type=none
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4617 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4618 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4623 test "x$enable_dependency_tracking" != xno \
4624 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4625 am__fastdepCXX_TRUE=
4626 am__fastdepCXX_FALSE='#'
4628 am__fastdepCXX_TRUE='#'
4629 am__fastdepCXX_FALSE=
4634 ac_cpp='$CPP $CPPFLAGS'
4635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_CC+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4646 if test -n "$CC"; then
4647 ac_cv_prog_CC="$CC" # Let the user override the test.
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 $as_echo "$CC" >&6; }
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4677 if test -z "$ac_cv_prog_CC"; then
4679 # Extract the first word of "gcc", so it can be a program name with args.
4680 set dummy gcc; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$ac_ct_CC"; then
4687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_CC="gcc"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4707 if test -n "$ac_ct_CC"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4709 $as_echo "$ac_ct_CC" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4715 if test "x$ac_ct_CC" = x; then
4718 case $cross_compiling:$ac_tool_warned in
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4730 if test -z "$CC"; then
4731 if test -n "$ac_tool_prefix"; then
4732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4733 set dummy ${ac_tool_prefix}cc; ac_word=$2
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735 $as_echo_n "checking for $ac_word... " >&6; }
4736 if test "${ac_cv_prog_CC+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4739 if test -n "$CC"; then
4740 ac_cv_prog_CC="$CC" # Let the user override the test.
4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir=.
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4749 ac_cv_prog_CC="${ac_tool_prefix}cc"
4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 if test -n "$CC"; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4762 $as_echo "$CC" >&6; }
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4765 $as_echo "no" >&6; }
4771 if test -z "$CC"; then
4772 # Extract the first word of "cc", so it can be a program name with args.
4773 set dummy cc; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if test "${ac_cv_prog_CC+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4779 if test -n "$CC"; then
4780 ac_cv_prog_CC="$CC" # Let the user override the test.
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 test -z "$as_dir" && as_dir=.
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4791 ac_prog_rejected=yes
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 if test $ac_prog_rejected = yes; then
4803 # We found a bogon in the path, so make sure we never use it.
4804 set dummy $ac_cv_prog_CC
4806 if test $# != 0; then
4807 # We chose a different compiler from the bogus one.
4808 # However, it has the same basename, so the bogon will be chosen
4809 # first if we set CC to just the basename; use the full file name.
4811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4817 if test -n "$CC"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4819 $as_echo "$CC" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4827 if test -z "$CC"; then
4828 if test -n "$ac_tool_prefix"; then
4829 for ac_prog in cl.exe
4831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4834 $as_echo_n "checking for $ac_word... " >&6; }
4835 if test "${ac_cv_prog_CC+set}" = set; then :
4836 $as_echo_n "(cached) " >&6
4838 if test -n "$CC"; then
4839 ac_cv_prog_CC="$CC" # Let the user override the test.
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 if test -n "$CC"; then
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4861 $as_echo "$CC" >&6; }
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4864 $as_echo "no" >&6; }
4868 test -n "$CC" && break
4871 if test -z "$CC"; then
4873 for ac_prog in cl.exe
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876 set dummy $ac_prog; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4882 if test -n "$ac_ct_CC"; then
4883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892 ac_cv_prog_ac_ct_CC="$ac_prog"
4893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4903 if test -n "$ac_ct_CC"; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4905 $as_echo "$ac_ct_CC" >&6; }
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4912 test -n "$ac_ct_CC" && break
4915 if test "x$ac_ct_CC" = x; then
4918 case $cross_compiling:$ac_tool_warned in
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4922 ac_tool_warned=yes ;;
4931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4933 as_fn_error "no acceptable C compiler found in \$PATH
4934 See \`config.log' for more details." "$LINENO" 5; }
4936 # Provide some information about the compiler.
4937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4940 for ac_option in --version -v -V -qversion; do
4941 { { ac_try="$ac_compiler $ac_option >&5"
4943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4944 *) ac_try_echo=$ac_try;;
4946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4947 $as_echo "$ac_try_echo"; } >&5
4948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4950 if test -s conftest.err; then
4952 ... rest of stderr output deleted ...
4953 10q' conftest.err >conftest.er1
4954 cat conftest.er1 >&5
4956 rm -f conftest.er1 conftest.err
4957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4958 test $ac_status = 0; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4963 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4967 /* end confdefs.h. */
4980 if ac_fn_c_try_compile "$LINENO"; then :
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4991 if test $ac_compiler_gnu = yes; then
4996 ac_test_CFLAGS=${CFLAGS+set}
4997 ac_save_CFLAGS=$CFLAGS
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5000 if test "${ac_cv_prog_cc_g+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
5003 ac_save_c_werror_flag=$ac_c_werror_flag
5004 ac_c_werror_flag=yes
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5018 if ac_fn_c_try_compile "$LINENO"; then :
5022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5023 /* end confdefs.h. */
5033 if ac_fn_c_try_compile "$LINENO"; then :
5036 ac_c_werror_flag=$ac_save_c_werror_flag
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5049 if ac_fn_c_try_compile "$LINENO"; then :
5052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5057 ac_c_werror_flag=$ac_save_c_werror_flag
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5060 $as_echo "$ac_cv_prog_cc_g" >&6; }
5061 if test "$ac_test_CFLAGS" = set; then
5062 CFLAGS=$ac_save_CFLAGS
5063 elif test $ac_cv_prog_cc_g = yes; then
5064 if test "$GCC" = yes; then
5070 if test "$GCC" = yes; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5078 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5081 ac_cv_prog_cc_c89=no
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5087 #include <sys/types.h>
5088 #include <sys/stat.h>
5089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5090 struct buf { int x; };
5091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5092 static char *e (p, i)
5098 static char *f (char * (*g) (char **, int), char **p, ...)
5103 s = g (p, va_arg (v,int));
5108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5109 function prototypes and stuff, but not '\xHH' hex character constants.
5110 These don't provoke an error unfortunately, instead are silently treated
5111 as 'x'. The following induces an error, until -std is added to get
5112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5113 array size at least. It's necessary to write '\x00'==0 to get something
5114 that's true only with -std. */
5115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5118 inside strings and character constants. */
5120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5122 int test (int i, double x);
5123 struct s1 {int (*f) (int a);};
5124 struct s2 {int (*f) (double a);};
5125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5139 CC="$ac_save_CC $ac_arg"
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_prog_cc_c89=$ac_arg
5143 rm -f core conftest.err conftest.$ac_objext
5144 test "x$ac_cv_prog_cc_c89" != "xno" && break
5146 rm -f conftest.$ac_ext
5151 case "x$ac_cv_prog_cc_c89" in
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5154 $as_echo "none needed" >&6; } ;;
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5157 $as_echo "unsupported" >&6; } ;;
5159 CC="$CC $ac_cv_prog_cc_c89"
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5163 if test "x$ac_cv_prog_cc_c89" != xno; then :
5168 ac_cpp='$CPP $CPPFLAGS'
5169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5175 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5177 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5178 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5179 $as_echo_n "(cached) " >&6
5181 cat >conftest.make <<\_ACEOF
5184 @echo '@@@%%%=$(MAKE)=@@@%%%'
5186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5187 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5189 eval ac_cv_prog_make_${ac_make}_set=yes;;
5191 eval ac_cv_prog_make_${ac_make}_set=no;;
5195 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197 $as_echo "yes" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 SET_MAKE="MAKE=${MAKE-make}"
5207 # site specific configs
5209 # check for asterisk
5211 # Check whether --with-asterisk was given.
5212 if test "${with_asterisk+set}" = set; then :
5213 withval=$with_asterisk;
5215 with_asterisk="check"
5219 if test "x$with_asterisk" != xno; then :
5220 for ac_header in asterisk/compiler.h
5222 ac_fn_c_check_header_mongrel "$LINENO" "asterisk/compiler.h" "ac_cv_header_asterisk_compiler_h" "$ac_includes_default"
5223 if test "x$ac_cv_header_asterisk_compiler_h" = x""yes; then :
5224 cat >>confdefs.h <<_ACEOF
5225 #define HAVE_ASTERISK_COMPILER_H 1
5229 if test "x$with_asterisk" != xcheck ; then
5230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5232 as_fn_error "--with-asterisk was given, but test for header-file asterisk/compiler.h failed
5233 See \`config.log' for more details." "$LINENO" 5; }
5243 if test "x$with_asterisk" = "xyes"; then
5244 ast_tone_zone_sound=
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tone_zone_sound in asterisk/indications.h" >&5
5247 $as_echo_n "checking for struct tone_zone_sound in asterisk/indications.h... " >&6; }
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5252 #include <asterisk.h>,
5253 #include <asterisk/linkedlists.h>,
5254 #include <asterisk/indications.h>
5258 struct tone_zone_sound * ts = NULL; (void) ts->data;
5263 if ac_fn_c_try_compile "$LINENO"; then :
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5
5268 $as_echo "$tzs_test_result" >&6; }
5270 if test "x$tzs_test_result" = "xyes"; then
5271 ast_tone_zone_sound=tone_zone_sound
5274 if test "x$ast_tone_zone_sound" = "x"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ast_tone_zone_sound in asterisk/indications.h" >&5
5276 $as_echo_n "checking for struct ast_tone_zone_sound in asterisk/indications.h... " >&6; }
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5281 #include <asterisk.h>,
5282 #include <asterisk/linkedlists.h>,
5283 #include <asterisk/indications.h>
5287 struct ast_tone_zone_sound * ts = NULL; (void) ts->name;
5292 if ac_fn_c_try_compile "$LINENO"; then :
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tzs_test_result" >&5
5297 $as_echo "$tzs_test_result" >&6; }
5299 if test "x$tzs_test_result" = "xyes"; then
5300 ast_tone_zone_sound=ast_tone_zone_sound
5304 if test "x$ast_tone_zone_sound" = "x"; then
5305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5307 as_fn_error "No ast_tone_zone_sound, confused...
5308 See \`config.log' for more details." "$LINENO" 5; }
5311 AST_CFLAGS="-Dtone_zone_sound=$ast_tone_zone_sound"
5317 if test "x$with_asterisk" == "xyes" ; then
5318 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE=
5319 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE='#'
5321 ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE='#'
5322 ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE=
5328 # Check whether --with-ssl was given.
5329 if test "${with_ssl+set}" = set; then :
5336 if test "x$with_ssl" != xno; then :
5337 for ac_header in openssl/rsa.h
5339 ac_fn_c_check_header_mongrel "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
5340 if test "x$ac_cv_header_openssl_rsa_h" = x""yes; then :
5341 cat >>confdefs.h <<_ACEOF
5342 #define HAVE_OPENSSL_RSA_H 1
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypto" >&5
5350 $as_echo_n "checking for main in -lcrypto... " >&6; }
5351 if test "${ac_cv_lib_crypto_main+set}" = set; then :
5352 $as_echo_n "(cached) " >&6
5354 ac_check_lib_save_LIBS=$LIBS
5355 LIBS="-lcrypto -lcrypto
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5369 if ac_fn_c_try_link "$LINENO"; then :
5370 ac_cv_lib_crypto_main=yes
5372 ac_cv_lib_crypto_main=no
5374 rm -f core conftest.err conftest.$ac_objext \
5375 conftest$ac_exeext conftest.$ac_ext
5376 LIBS=$ac_check_lib_save_LIBS
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_main" >&5
5379 $as_echo "$ac_cv_lib_crypto_main" >&6; }
5380 if test "x$ac_cv_lib_crypto_main" = x""yes; then :
5381 LIBCRYPTO="-lcrypto"
5384 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
5388 if test "x$with_ssl" != xcheck ; then
5389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5391 as_fn_error "--with-ssl was given, but test for libcrypto failed
5392 See \`config.log' for more details." "$LINENO" 5; }
5403 # Check whether --with-gsm-bs was given.
5404 if test "${with_gsm_bs+set}" = set; then :
5405 withval=$with_gsm_bs;
5411 if test "x$with_gsm_bs" != xno; then :
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openbsc/include/openbsc/gsm_data.h" >&5
5413 $as_echo_n "checking for openbsc/include/openbsc/gsm_data.h... " >&6; }
5414 if test "${ac_cv_file_openbsc_include_openbsc_gsm_data_h+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5417 test "$cross_compiling" = yes &&
5418 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
5419 if test -r "openbsc/include/openbsc/gsm_data.h"; then
5420 ac_cv_file_openbsc_include_openbsc_gsm_data_h=yes
5422 ac_cv_file_openbsc_include_openbsc_gsm_data_h=no
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&5
5426 $as_echo "$ac_cv_file_openbsc_include_openbsc_gsm_data_h" >&6; }
5427 if test "x$ac_cv_file_openbsc_include_openbsc_gsm_data_h" = x""yes; then :
5430 if test "x$with_gsm_bs" != xcheck ; then
5431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5433 as_fn_error "--with-gsm-bs was given, but openbsc/include/openbsc/gsm_data.h was not found! Pleas link OpenBSC and libosmocore source directory to LCR source directory: ln -s path_to_openbsc/openbsc/ openbsc ; ln -s patch_to_libosmocore libosmocore
5434 See \`config.log' for more details." "$LINENO" 5; }
5444 if test "x$with_gsm_bs" == "xyes" ; then
5446 ENABLE_GSM_BS_FALSE='#'
5448 ENABLE_GSM_BS_TRUE='#'
5449 ENABLE_GSM_BS_FALSE=
5455 # Check whether --with-gsm-ms was given.
5456 if test "${with_gsm_ms+set}" = set; then :
5457 withval=$with_gsm_ms;
5463 if test "x$with_gsm_ms" != xno; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for layer23/include/osmocom/osmocom_data.h" >&5
5465 $as_echo_n "checking for layer23/include/osmocom/osmocom_data.h... " >&6; }
5466 if test "${ac_cv_file_layer23_include_osmocom_osmocom_data_h+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5469 test "$cross_compiling" = yes &&
5470 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
5471 if test -r "layer23/include/osmocom/osmocom_data.h"; then
5472 ac_cv_file_layer23_include_osmocom_osmocom_data_h=yes
5474 ac_cv_file_layer23_include_osmocom_osmocom_data_h=no
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&5
5478 $as_echo "$ac_cv_file_layer23_include_osmocom_osmocom_data_h" >&6; }
5479 if test "x$ac_cv_file_layer23_include_osmocom_osmocom_data_h" = x""yes; then :
5482 if test "x$with_gsm_ms" != xcheck ; then
5483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5485 as_fn_error "--with-gsm-ms was given, but osmocom-bb/include/osmocom/osmocom_data.h was not found! Pleas link Osmocom-BB and libosmocore source directory to LCR source directory: ln -s path_to_osmocom-bb/src/host/layer23/ layer23 ; ln -s path_to_libosmocore libosmocore
5486 See \`config.log' for more details." "$LINENO" 5; }
5496 if test "x$with_gsm_ms" == "xyes" ; then
5498 ENABLE_GSM_MS_FALSE='#'
5500 ENABLE_GSM_MS_TRUE='#'
5501 ENABLE_GSM_MS_FALSE=
5507 if test "x$with_gsm_bs" == "xyes" -o "x$with_gsm_ms" == "xyes"; then
5509 ENABLE_GSM_FALSE='#'
5518 # Check whether --with-ss5 was given.
5519 if test "${with_ss5+set}" = set; then :
5528 if test "x$with_ss5" == "xyes" ; then
5530 ENABLE_SS5_FALSE='#'
5537 # Checks for libraries.
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5539 $as_echo_n "checking for main in -lm... " >&6; }
5540 if test "${ac_cv_lib_m_main+set}" = set; then :
5541 $as_echo_n "(cached) " >&6
5543 ac_check_lib_save_LIBS=$LIBS
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5557 if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_lib_m_main=yes
5562 rm -f core conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5567 $as_echo "$ac_cv_lib_m_main" >&6; }
5568 if test "x$ac_cv_lib_m_main" = x""yes; then :
5569 cat >>confdefs.h <<_ACEOF
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lncurses" >&5
5578 $as_echo_n "checking for main in -lncurses... " >&6; }
5579 if test "${ac_cv_lib_ncurses_main+set}" = set; then :
5580 $as_echo_n "(cached) " >&6
5582 ac_check_lib_save_LIBS=$LIBS
5583 LIBS="-lncurses $LIBS"
5584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585 /* end confdefs.h. */
5596 if ac_fn_c_try_link "$LINENO"; then :
5597 ac_cv_lib_ncurses_main=yes
5599 ac_cv_lib_ncurses_main=no
5601 rm -f core conftest.err conftest.$ac_objext \
5602 conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_check_lib_save_LIBS
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_main" >&5
5606 $as_echo "$ac_cv_lib_ncurses_main" >&6; }
5607 if test "x$ac_cv_lib_ncurses_main" = x""yes; then :
5608 cat >>confdefs.h <<_ACEOF
5609 #define HAVE_LIBNCURSES 1
5612 LIBS="-lncurses $LIBS"
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
5617 $as_echo_n "checking for main in -lpthread... " >&6; }
5618 if test "${ac_cv_lib_pthread_main+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 ac_check_lib_save_LIBS=$LIBS
5622 LIBS="-lpthread $LIBS"
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5635 if ac_fn_c_try_link "$LINENO"; then :
5636 ac_cv_lib_pthread_main=yes
5638 ac_cv_lib_pthread_main=no
5640 rm -f core conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
5645 $as_echo "$ac_cv_lib_pthread_main" >&6; }
5646 if test "x$ac_cv_lib_pthread_main" = x""yes; then :
5647 cat >>confdefs.h <<_ACEOF
5648 #define HAVE_LIBPTHREAD 1
5651 LIBS="-lpthread $LIBS"
5656 # Checks for header files.
5658 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5659 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5661 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5663 $as_echo_n "(cached) " >&6
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 eval "$as_ac_Header=yes"
5682 eval "$as_ac_Header=no"
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 eval ac_res=\$$as_ac_Header
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5688 $as_echo "$ac_res" >&6; }
5689 eval as_val=\$$as_ac_Header
5690 if test "x$as_val" = x""yes; then :
5691 cat >>confdefs.h <<_ACEOF
5692 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5695 ac_header_dirent=$ac_hdr; break
5699 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5700 if test $ac_header_dirent = dirent.h; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5702 $as_echo_n "checking for library containing opendir... " >&6; }
5703 if test "${ac_cv_search_opendir+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5706 ac_func_search_save_LIBS=$LIBS
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5725 for ac_lib in '' dir; do
5726 if test -z "$ac_lib"; then
5727 ac_res="none required"
5730 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5732 if ac_fn_c_try_link "$LINENO"; then :
5733 ac_cv_search_opendir=$ac_res
5735 rm -f core conftest.err conftest.$ac_objext \
5737 if test "${ac_cv_search_opendir+set}" = set; then :
5741 if test "${ac_cv_search_opendir+set}" = set; then :
5744 ac_cv_search_opendir=no
5747 LIBS=$ac_func_search_save_LIBS
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5750 $as_echo "$ac_cv_search_opendir" >&6; }
5751 ac_res=$ac_cv_search_opendir
5752 if test "$ac_res" != no; then :
5753 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5759 $as_echo_n "checking for library containing opendir... " >&6; }
5760 if test "${ac_cv_search_opendir+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5763 ac_func_search_save_LIBS=$LIBS
5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5765 /* end confdefs.h. */
5767 /* Override any GCC internal prototype to avoid an error.
5768 Use char because int might match the return type of a GCC
5769 builtin and then its argument prototype would still apply. */
5782 for ac_lib in '' x; do
5783 if test -z "$ac_lib"; then
5784 ac_res="none required"
5787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5789 if ac_fn_c_try_link "$LINENO"; then :
5790 ac_cv_search_opendir=$ac_res
5792 rm -f core conftest.err conftest.$ac_objext \
5794 if test "${ac_cv_search_opendir+set}" = set; then :
5798 if test "${ac_cv_search_opendir+set}" = set; then :
5801 ac_cv_search_opendir=no
5804 LIBS=$ac_func_search_save_LIBS
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5807 $as_echo "$ac_cv_search_opendir" >&6; }
5808 ac_res=$ac_cv_search_opendir
5809 if test "$ac_res" != no; then :
5810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5817 $as_echo_n "checking for ANSI C header files... " >&6; }
5818 if test "${ac_cv_header_stdc+set}" = set; then :
5819 $as_echo_n "(cached) " >&6
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 ac_cv_header_stdc=yes
5839 ac_cv_header_stdc=no
5841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5843 if test $ac_cv_header_stdc = yes; then
5844 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "memchr" >/dev/null 2>&1; then :
5854 ac_cv_header_stdc=no
5860 if test $ac_cv_header_stdc = yes; then
5861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868 $EGREP "free" >/dev/null 2>&1; then :
5871 ac_cv_header_stdc=no
5877 if test $ac_cv_header_stdc = yes; then
5878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5879 if test "$cross_compiling" = yes; then :
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5886 #if ((' ' & 0x0FF) == 0x020)
5887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5890 # define ISLOWER(c) \
5891 (('a' <= (c) && (c) <= 'i') \
5892 || ('j' <= (c) && (c) <= 'r') \
5893 || ('s' <= (c) && (c) <= 'z'))
5894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5902 for (i = 0; i < 256; i++)
5903 if (XOR (islower (i), ISLOWER (i))
5904 || toupper (i) != TOUPPER (i))
5909 if ac_fn_c_try_run "$LINENO"; then :
5912 ac_cv_header_stdc=no
5914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5915 conftest.$ac_objext conftest.beam conftest.$ac_ext
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5921 $as_echo "$ac_cv_header_stdc" >&6; }
5922 if test $ac_cv_header_stdc = yes; then
5924 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
5929 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
5930 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <sys/types.h>
5936 #include <sys/wait.h>
5938 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5941 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5949 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5954 if ac_fn_c_try_compile "$LINENO"; then :
5955 ac_cv_header_sys_wait_h=yes
5957 ac_cv_header_sys_wait_h=no
5959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
5962 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
5963 if test $ac_cv_header_sys_wait_h = yes; then
5965 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
5969 for ac_header in fcntl.h netinet/in.h stdlib.h string.h sys/file.h sys/ioctl.h sys/socket.h sys/time.h unistd.h ctype.h assert.h mISDNuser/mbuffer.h assert.h
5971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5973 eval as_val=\$$as_ac_Header
5974 if test "x$as_val" = x""yes; then :
5975 cat >>confdefs.h <<_ACEOF
5976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5984 # Checks for typedefs, structures, and compiler characteristics.
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5986 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5987 if test "${ac_cv_header_stdbool_h+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
5990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5993 #include <stdbool.h>
5995 "error: bool is not defined"
5998 "error: false is not defined"
6001 "error: false is not 0"
6004 "error: true is not defined"
6007 "error: true is not 1"
6009 #ifndef __bool_true_false_are_defined
6010 "error: __bool_true_false_are_defined is not defined"
6013 struct s { _Bool s: 1; _Bool t; } s;
6015 char a[true == 1 ? 1 : -1];
6016 char b[false == 0 ? 1 : -1];
6017 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6018 char d[(bool) 0.5 == true ? 1 : -1];
6020 char f[(_Bool) 0.0 == false ? 1 : -1];
6022 char h[sizeof (_Bool)];
6024 enum { j = false, k = true, l = false * true, m = true * 256 };
6025 /* The following fails for
6026 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6028 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6029 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6030 # if defined __xlc__ || defined __GNUC__
6031 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
6032 reported by James Lemley on 2005-10-05; see
6033 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
6034 This test is not quite right, since xlc is allowed to
6035 reject this program, as the initializer for xlcbug is
6036 not one of the forms that C requires support for.
6037 However, doing the test right would require a runtime
6038 test, and that would make cross-compilation harder.
6039 Let us hope that IBM fixes the xlc bug, and also adds
6040 support for this kind of constant expression. In the
6041 meantime, this test will reject xlc, which is OK, since
6042 our stdbool.h substitute should suffice. We also test
6043 this with GCC, where it should work, to detect more
6044 quickly whether someone messes up the test in the
6046 char digs[] = "0123456789";
6047 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
6049 /* Catch a bug in an HP-UX C compiler. See
6050 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6051 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6062 /* Refer to every declared value, to avoid compiler optimizations. */
6063 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6064 + !m + !n + !o + !p + !q + !pq);
6070 if ac_fn_c_try_compile "$LINENO"; then :
6071 ac_cv_header_stdbool_h=yes
6073 ac_cv_header_stdbool_h=no
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6078 $as_echo "$ac_cv_header_stdbool_h" >&6; }
6079 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6080 if test "x$ac_cv_type__Bool" = x""yes; then :
6082 cat >>confdefs.h <<_ACEOF
6083 #define HAVE__BOOL 1
6089 if test $ac_cv_header_stdbool_h = yes; then
6091 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6096 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6097 if test "${ac_cv_c_const+set}" = set; then :
6098 $as_echo_n "(cached) " >&6
6100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6106 /* FIXME: Include the comments suggested by Paul. */
6108 /* Ultrix mips cc rejects this. */
6109 typedef int charset[2];
6111 /* SunOS 4.1.1 cc rejects this. */
6112 char const *const *pcpcc;
6114 /* NEC SVR4.0.2 mips cc rejects this. */
6115 struct point {int x, y;};
6116 static struct point const zero = {0,0};
6117 /* AIX XL C 1.02.0.0 rejects this.
6118 It does not let you subtract one const X* pointer from another in
6119 an arm of an if-expression whose if-part is not a constant
6121 const char *g = "string";
6122 pcpcc = &g + (g ? g-g : 0);
6123 /* HPUX 7.0 cc rejects these. */
6125 ppc = (char**) pcpcc;
6126 pcpcc = (char const *const *) ppc;
6127 { /* SCO 3.2v4 cc rejects this. */
6129 char const *s = 0 ? (char *) 0 : (char const *) 0;
6134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6136 const int *foo = &x[0];
6139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6140 typedef const int *iptr;
6144 { /* AIX XL C 1.02.0.0 rejects this saying
6145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6146 struct s { int j; const int *ap[3]; };
6147 struct s *b; b->j = 5;
6149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6153 return !cs[0] && !zero.x;
6160 if ac_fn_c_try_compile "$LINENO"; then :
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
6168 $as_echo "$ac_cv_c_const" >&6; }
6169 if test $ac_cv_c_const = no; then
6171 $as_echo "#define const /**/" >>confdefs.h
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6176 $as_echo_n "checking for inline... " >&6; }
6177 if test "${ac_cv_c_inline+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6181 for ac_kw in inline __inline__ __inline; do
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6186 static $ac_kw foo_t static_foo () {return 0; }
6187 $ac_kw foo_t foo () {return 0; }
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_c_inline=$ac_kw
6194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 test "$ac_cv_c_inline" != no && break
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6200 $as_echo "$ac_cv_c_inline" >&6; }
6202 case $ac_cv_c_inline in
6205 case $ac_cv_c_inline in
6207 *) ac_val=$ac_cv_c_inline;;
6209 cat >>confdefs.h <<_ACEOF
6211 #define inline $ac_val
6217 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6218 if test "x$ac_cv_type_pid_t" = x""yes; then :
6222 cat >>confdefs.h <<_ACEOF
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6229 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6230 if test "${ac_cv_header_time+set}" = set; then :
6231 $as_echo_n "(cached) " >&6
6233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234 /* end confdefs.h. */
6235 #include <sys/types.h>
6236 #include <sys/time.h>
6242 if ((struct tm *) 0)
6248 if ac_fn_c_try_compile "$LINENO"; then :
6249 ac_cv_header_time=yes
6251 ac_cv_header_time=no
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6256 $as_echo "$ac_cv_header_time" >&6; }
6257 if test $ac_cv_header_time = yes; then
6259 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6264 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6265 if test "${ac_cv_struct_tm+set}" = set; then :
6266 $as_echo_n "(cached) " >&6
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 #include <sys/types.h>
6277 int *p = &tm.tm_sec;
6283 if ac_fn_c_try_compile "$LINENO"; then :
6284 ac_cv_struct_tm=time.h
6286 ac_cv_struct_tm=sys/time.h
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6291 $as_echo "$ac_cv_struct_tm" >&6; }
6292 if test $ac_cv_struct_tm = sys/time.h; then
6294 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6299 # Checks for library functions.
6300 for ac_header in vfork.h
6302 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
6303 if test "x$ac_cv_header_vfork_h" = x""yes; then :
6304 cat >>confdefs.h <<_ACEOF
6305 #define HAVE_VFORK_H 1
6312 for ac_func in fork vfork
6314 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6315 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6316 eval as_val=\$$as_ac_var
6317 if test "x$as_val" = x""yes; then :
6318 cat >>confdefs.h <<_ACEOF
6319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6325 if test "x$ac_cv_func_fork" = xyes; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
6327 $as_echo_n "checking for working fork... " >&6; }
6328 if test "${ac_cv_func_fork_works+set}" = set; then :
6329 $as_echo_n "(cached) " >&6
6331 if test "$cross_compiling" = yes; then :
6332 ac_cv_func_fork_works=cross
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 $ac_includes_default
6341 /* By Ruediger Kuhlmann. */
6348 if ac_fn_c_try_run "$LINENO"; then :
6349 ac_cv_func_fork_works=yes
6351 ac_cv_func_fork_works=no
6353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6354 conftest.$ac_objext conftest.beam conftest.$ac_ext
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
6359 $as_echo "$ac_cv_func_fork_works" >&6; }
6362 ac_cv_func_fork_works=$ac_cv_func_fork
6364 if test "x$ac_cv_func_fork_works" = xcross; then
6366 *-*-amigaos* | *-*-msdosdjgpp*)
6367 # Override, as these systems have only a dummy fork() stub
6368 ac_cv_func_fork_works=no
6371 ac_cv_func_fork_works=yes
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
6375 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
6377 ac_cv_func_vfork_works=$ac_cv_func_vfork
6378 if test "x$ac_cv_func_vfork" = xyes; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
6380 $as_echo_n "checking for working vfork... " >&6; }
6381 if test "${ac_cv_func_vfork_works+set}" = set; then :
6382 $as_echo_n "(cached) " >&6
6384 if test "$cross_compiling" = yes; then :
6385 ac_cv_func_vfork_works=cross
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388 /* end confdefs.h. */
6389 /* Thanks to Paul Eggert for this test. */
6390 $ac_includes_default
6391 #include <sys/wait.h>
6395 /* On some sparc systems, changes by the child to local and incoming
6396 argument registers are propagated back to the parent. The compiler
6397 is told about this with #include <vfork.h>, but some compilers
6398 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
6399 static variable whose address is put into a register that is
6400 clobbered by the vfork. */
6403 sparc_address_test (int arg)
6405 sparc_address_test (arg) int arg;
6426 pid_t parent = getpid ();
6429 sparc_address_test (0);
6434 /* Here is another test for sparc vfork register problems. This
6435 test uses lots of local variables, at least as many local
6436 variables as main has allocated so far including compiler
6437 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
6438 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
6439 reuse the register of parent for one of the local variables,
6440 since it will think that parent can't possibly be used any more
6441 in this routine. Assigning to the local variable will thus
6442 munge parent in the parent process. */
6444 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
6445 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
6446 /* Convince the compiler that p..p7 are live; otherwise, it might
6447 use the same hardware register for all 8 local variables. */
6448 if (p != p1 || p != p2 || p != p3 || p != p4
6449 || p != p5 || p != p6 || p != p7)
6452 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
6453 from child file descriptors. If the child closes a descriptor
6454 before it execs or exits, this munges the parent's descriptor
6455 as well. Test for this by closing stdout in the child. */
6456 _exit(close(fileno(stdout)) != 0);
6461 while (wait(&status) != child)
6464 /* Was there some problem with vforking? */
6467 /* Did the child fail? (This shouldn't happen.) */
6470 /* Did the vfork/compiler bug occur? */
6471 || parent != getpid()
6473 /* Did the file descriptor bug occur? */
6474 || fstat(fileno(stdout), &st) != 0
6479 if ac_fn_c_try_run "$LINENO"; then :
6480 ac_cv_func_vfork_works=yes
6482 ac_cv_func_vfork_works=no
6484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6485 conftest.$ac_objext conftest.beam conftest.$ac_ext
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
6490 $as_echo "$ac_cv_func_vfork_works" >&6; }
6493 if test "x$ac_cv_func_fork_works" = xcross; then
6494 ac_cv_func_vfork_works=$ac_cv_func_vfork
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
6496 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
6499 if test "x$ac_cv_func_vfork_works" = xyes; then
6501 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
6505 $as_echo "#define vfork fork" >>confdefs.h
6508 if test "x$ac_cv_func_fork_works" = xyes; then
6510 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
6514 if test $ac_cv_c_compiler_gnu = yes; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
6516 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
6517 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
6518 $as_echo_n "(cached) " >&6
6520 ac_pattern="Autoconf.*'x'"
6521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522 /* end confdefs.h. */
6526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6527 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6528 ac_cv_prog_gcc_traditional=yes
6530 ac_cv_prog_gcc_traditional=no
6535 if test $ac_cv_prog_gcc_traditional = no; then
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6542 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
6543 ac_cv_prog_gcc_traditional=yes
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
6550 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
6551 if test $ac_cv_prog_gcc_traditional = yes; then
6552 CC="$CC -traditional"
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6557 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6558 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 rm -f conftest.sym conftest.file
6563 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6564 if test "$cross_compiling" = yes; then :
6565 ac_cv_func_lstat_dereferences_slashed_symlink=no
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 $ac_includes_default
6574 /* Linux will dereference the symlink and fail, as required by POSIX.
6575 That is better in the sense that it means we will not
6576 have to compile and use the lstat wrapper. */
6577 return lstat ("conftest.sym/", &sbuf) == 0;
6582 if ac_fn_c_try_run "$LINENO"; then :
6583 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6585 ac_cv_func_lstat_dereferences_slashed_symlink=no
6587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6588 conftest.$ac_objext conftest.beam conftest.$ac_ext
6592 # If the `ln -s' command failed, then we probably don't even
6593 # have an lstat function.
6594 ac_cv_func_lstat_dereferences_slashed_symlink=no
6596 rm -f conftest.sym conftest.file
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6600 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6602 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6604 cat >>confdefs.h <<_ACEOF
6605 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6609 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6610 case " $LIBOBJS " in
6611 *" lstat.$ac_objext "* ) ;;
6612 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6619 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6620 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6621 $as_echo_n "(cached) " >&6
6623 if test "$cross_compiling" = yes; then :
6624 ac_cv_func_lstat_empty_string_bug=yes
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 $ac_includes_default
6633 return lstat ("", &sbuf) == 0;
6638 if ac_fn_c_try_run "$LINENO"; then :
6639 ac_cv_func_lstat_empty_string_bug=no
6641 ac_cv_func_lstat_empty_string_bug=yes
6643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6644 conftest.$ac_objext conftest.beam conftest.$ac_ext
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6649 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6650 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6651 case " $LIBOBJS " in
6652 *" lstat.$ac_objext "* ) ;;
6653 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6658 cat >>confdefs.h <<_ACEOF
6659 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
6665 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
6666 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
6667 $as_echo_n "(cached) " >&6
6669 rm -f conftest.sym conftest.file
6671 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6672 if test "$cross_compiling" = yes; then :
6673 ac_cv_func_lstat_dereferences_slashed_symlink=no
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 $ac_includes_default
6682 /* Linux will dereference the symlink and fail, as required by POSIX.
6683 That is better in the sense that it means we will not
6684 have to compile and use the lstat wrapper. */
6685 return lstat ("conftest.sym/", &sbuf) == 0;
6690 if ac_fn_c_try_run "$LINENO"; then :
6691 ac_cv_func_lstat_dereferences_slashed_symlink=yes
6693 ac_cv_func_lstat_dereferences_slashed_symlink=no
6695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6696 conftest.$ac_objext conftest.beam conftest.$ac_ext
6700 # If the `ln -s' command failed, then we probably don't even
6701 # have an lstat function.
6702 ac_cv_func_lstat_dereferences_slashed_symlink=no
6704 rm -f conftest.sym conftest.file
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
6708 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
6710 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
6712 cat >>confdefs.h <<_ACEOF
6713 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
6717 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6718 case " $LIBOBJS " in
6719 *" lstat.$ac_objext "* ) ;;
6720 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6726 for ac_header in stdlib.h
6728 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6729 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6730 cat >>confdefs.h <<_ACEOF
6731 #define HAVE_STDLIB_H 1
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6739 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6740 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6743 if test "$cross_compiling" = yes; then :
6744 ac_cv_func_malloc_0_nonnull=no
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6748 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6749 # include <stdlib.h>
6757 return ! malloc (0);
6762 if ac_fn_c_try_run "$LINENO"; then :
6763 ac_cv_func_malloc_0_nonnull=yes
6765 ac_cv_func_malloc_0_nonnull=no
6767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6768 conftest.$ac_objext conftest.beam conftest.$ac_ext
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6773 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6774 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6776 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6779 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6781 case " $LIBOBJS " in
6782 *" malloc.$ac_objext "* ) ;;
6783 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6788 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6794 $as_echo_n "checking for working memcmp... " >&6; }
6795 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6798 if test "$cross_compiling" = yes; then :
6799 ac_cv_func_memcmp_working=no
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 $ac_includes_default
6808 /* Some versions of memcmp are not 8-bit clean. */
6809 char c0 = '\100', c1 = '\200', c2 = '\201';
6810 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6813 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6814 or more and with at least one buffer not starting on a 4-byte boundary.
6815 William Lewis provided this test program. */
6820 for (i = 0; i < 4; i++)
6824 strcpy (a, "--------01111111");
6825 strcpy (b, "--------10000000");
6826 if (memcmp (a, b, 16) >= 0)
6836 if ac_fn_c_try_run "$LINENO"; then :
6837 ac_cv_func_memcmp_working=yes
6839 ac_cv_func_memcmp_working=no
6841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6842 conftest.$ac_objext conftest.beam conftest.$ac_ext
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6847 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6848 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6849 *" memcmp.$ac_objext "* ) ;;
6850 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
6856 $as_echo_n "checking return type of signal handlers... " >&6; }
6857 if test "${ac_cv_type_signal+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862 #include <sys/types.h>
6868 return *(signal (0, 0)) (0) == 1;
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874 ac_cv_type_signal=int
6876 ac_cv_type_signal=void
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
6881 $as_echo "$ac_cv_type_signal" >&6; }
6883 cat >>confdefs.h <<_ACEOF
6884 #define RETSIGTYPE $ac_cv_type_signal
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
6889 $as_echo_n "checking for working strnlen... " >&6; }
6890 if test "${ac_cv_func_strnlen_working+set}" = set; then :
6891 $as_echo_n "(cached) " >&6
6893 if test "$cross_compiling" = yes; then :
6894 ac_cv_func_strnlen_working=no
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 $ac_includes_default
6904 #define S_LEN (sizeof S - 1)
6906 /* At least one implementation is buggy: that of AIX 4.3 would
6907 give strnlen (S, 1) == 3. */
6910 for (i = 0; i < S_LEN + 1; ++i)
6912 int expected = i <= S_LEN ? i : S_LEN;
6913 if (strnlen (S, i) != expected)
6922 if ac_fn_c_try_run "$LINENO"; then :
6923 ac_cv_func_strnlen_working=yes
6925 ac_cv_func_strnlen_working=no
6927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6928 conftest.$ac_objext conftest.beam conftest.$ac_ext
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
6933 $as_echo "$ac_cv_func_strnlen_working" >&6; }
6934 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
6935 *" strnlen.$ac_objext "* ) ;;
6936 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6942 $as_echo_n "checking for working strtod... " >&6; }
6943 if test "${ac_cv_func_strtod+set}" = set; then :
6944 $as_echo_n "(cached) " >&6
6946 if test "$cross_compiling" = yes; then :
6947 ac_cv_func_strtod=no
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6952 $ac_includes_default
6960 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6961 char *string = " +69";
6964 value = strtod (string, &term);
6965 if (value != 69 || term != (string + 4))
6970 /* Under Solaris 2.4, strtod returns the wrong value for the
6971 terminating character under some conditions. */
6972 char *string = "NaN";
6974 strtod (string, &term);
6975 if (term != string && *(term - 1) == 0)
6982 if ac_fn_c_try_run "$LINENO"; then :
6983 ac_cv_func_strtod=yes
6985 ac_cv_func_strtod=no
6987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6988 conftest.$ac_objext conftest.beam conftest.$ac_ext
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6993 $as_echo "$ac_cv_func_strtod" >&6; }
6994 if test $ac_cv_func_strtod = no; then
6995 case " $LIBOBJS " in
6996 *" strtod.$ac_objext "* ) ;;
6997 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
7001 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
7002 if test "x$ac_cv_func_pow" = x""yes; then :
7006 if test $ac_cv_func_pow = no; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
7008 $as_echo_n "checking for pow in -lm... " >&6; }
7009 if test "${ac_cv_lib_m_pow+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7012 ac_check_lib_save_LIBS=$LIBS
7014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015 /* end confdefs.h. */
7017 /* Override any GCC internal prototype to avoid an error.
7018 Use char because int might match the return type of a GCC
7019 builtin and then its argument prototype would still apply. */
7032 if ac_fn_c_try_link "$LINENO"; then :
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 LIBS=$ac_check_lib_save_LIBS
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
7042 $as_echo "$ac_cv_lib_m_pow" >&6; }
7043 if test "x$ac_cv_lib_m_pow" = x""yes; then :
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
7047 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
7054 for ac_func in vprintf
7056 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
7057 if test "x$ac_cv_func_vprintf" = x""yes; then :
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_VPRINTF 1
7062 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
7063 if test "x$ac_cv_func__doprnt" = x""yes; then :
7065 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
7073 for ac_func in gettimeofday memmove memset mkdir socket strcasecmp strchr strerror strncasecmp strstr strtol strtoul
7075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7076 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7077 eval as_val=\$$as_ac_var
7078 if test "x$as_val" = x""yes; then :
7079 cat >>confdefs.h <<_ACEOF
7080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7088 ac_config_files="$ac_config_files Makefile"
7090 cat >confcache <<\_ACEOF
7091 # This file is a shell script that caches the results of configure
7092 # tests run on this system so they can be shared between configure
7093 # scripts and configure runs, see configure's option --config-cache.
7094 # It is not useful on other systems. If it contains results you don't
7095 # want to keep, you may remove or edit it.
7097 # config.status only pays attention to the cache file if you give it
7098 # the --recheck option to rerun configure.
7100 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7101 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7106 # The following way of writing the cache mishandles newlines in values,
7107 # but we know of no workaround that is simple, portable, and efficient.
7108 # So, we kill variables containing newlines.
7109 # Ultrix sh set writes to stderr and can't be redirected directly,
7110 # and sets the high bit in the cache file unless we assign to the vars.
7112 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7113 eval ac_val=\$$ac_var
7117 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7118 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7121 _ | IFS | as_nl) ;; #(
7122 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7123 *) { eval $ac_var=; unset $ac_var;} ;;
7129 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7130 *${as_nl}ac_space=\ *)
7131 # `set' does not quote correctly, so add quotes: double-quote
7132 # substitution turns \\\\ into \\, and sed turns \\ into \.
7135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7138 # `set' quotes correctly as required by POSIX, so do not add quotes.
7139 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7150 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7153 if test -w "$cache_file"; then
7154 test "x$cache_file" != "x/dev/null" &&
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7156 $as_echo "$as_me: updating cache $cache_file" >&6;}
7157 cat confcache >$cache_file
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7160 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7166 # Let make expand exec_prefix.
7167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7169 DEFS=-DHAVE_CONFIG_H
7173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7174 # 1. Remove the extension, and $U if already installed.
7175 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7176 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7177 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7178 # will be set to the directory where LIBOBJS objects are built.
7179 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7180 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7184 LTLIBOBJS=$ac_ltlibobjs
7187 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7188 as_fn_error "conditional \"AMDEP\" was never defined.
7189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7191 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7192 as_fn_error "conditional \"am__fastdepCC\" was never defined.
7193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7195 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7196 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
7197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7199 if test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_TRUE}" && test -z "${ENABLE_ASTERISK_CHANNEL_DRIVER_FALSE}"; then
7200 as_fn_error "conditional \"ENABLE_ASTERISK_CHANNEL_DRIVER\" was never defined.
7201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7203 if test -z "${ENABLE_GSM_BS_TRUE}" && test -z "${ENABLE_GSM_BS_FALSE}"; then
7204 as_fn_error "conditional \"ENABLE_GSM_BS\" was never defined.
7205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7207 if test -z "${ENABLE_GSM_MS_TRUE}" && test -z "${ENABLE_GSM_MS_FALSE}"; then
7208 as_fn_error "conditional \"ENABLE_GSM_MS\" was never defined.
7209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7211 if test -z "${ENABLE_GSM_TRUE}" && test -z "${ENABLE_GSM_FALSE}"; then
7212 as_fn_error "conditional \"ENABLE_GSM\" was never defined.
7213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7215 if test -z "${ENABLE_SS5_TRUE}" && test -z "${ENABLE_SS5_FALSE}"; then
7216 as_fn_error "conditional \"ENABLE_SS5\" was never defined.
7217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
7220 : ${CONFIG_STATUS=./config.status}
7222 ac_clean_files_save=$ac_clean_files
7223 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7225 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7227 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7229 # Generated by $as_me.
7230 # Run this file to recreate the current configuration.
7231 # Compiler output produced by configure, useful for debugging
7232 # configure, is in config.log if it exists.
7238 SHELL=\${CONFIG_SHELL-$SHELL}
7241 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7242 ## -------------------- ##
7243 ## M4sh Initialization. ##
7244 ## -------------------- ##
7246 # Be more Bourne compatible
7247 DUALCASE=1; export DUALCASE # for MKS sh
7248 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7251 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7252 # is contrary to our usage. Disable this feature.
7253 alias -g '${1+"$@"}'='"$@"'
7254 setopt NO_GLOB_SUBST
7256 case `(set -o) 2>/dev/null` in #(
7268 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7269 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7270 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7271 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7272 # Prefer a ksh shell builtin over an external printf program on Solaris,
7273 # but without wasting forks for bash or zsh.
7274 if test -z "$BASH_VERSION$ZSH_VERSION" \
7275 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7276 as_echo='print -r --'
7277 as_echo_n='print -rn --'
7278 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7279 as_echo='printf %s\n'
7280 as_echo_n='printf %s'
7282 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7283 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7284 as_echo_n='/usr/ucb/echo -n'
7286 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7287 as_echo_n_body='eval
7291 expr "X$arg" : "X\\(.*\\)$as_nl";
7292 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7294 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7296 export as_echo_n_body
7297 as_echo_n='sh -c $as_echo_n_body as_echo'
7300 as_echo='sh -c $as_echo_body as_echo'
7303 # The user is always right.
7304 if test "${PATH_SEPARATOR+set}" != set; then
7306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7307 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7314 # We need space, tab and new line, in precisely that order. Quoting is
7315 # there to prevent editors from complaining about space-tab.
7316 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7317 # splitting by setting IFS to empty value.)
7320 # Find who we are. Look in the path if we contain no directory separator.
7322 *[\\/]* ) as_myself=$0 ;;
7323 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327 test -z "$as_dir" && as_dir=.
7328 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7334 # We did not find ourselves, most probably we were run as `sh COMMAND'
7335 # in which case we are not to be found in the path.
7336 if test "x$as_myself" = x; then
7339 if test ! -f "$as_myself"; then
7340 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7344 # Unset variables that we do not need and which cause bugs (e.g. in
7345 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7346 # suppresses any "Segmentation fault" message there. '((' could
7347 # trigger a bug in pdksh 5.2.14.
7348 for as_var in BASH_ENV ENV MAIL MAILPATH
7349 do eval test x\${$as_var+set} = xset \
7350 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7366 # as_fn_error ERROR [LINENO LOG_FD]
7367 # ---------------------------------
7368 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7369 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7370 # script with status $?, using 1 if that was 0.
7373 as_status=$?; test $as_status -eq 0 && as_status=1
7375 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7376 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
7378 $as_echo "$as_me: error: $1" >&2
7379 as_fn_exit $as_status
7383 # as_fn_set_status STATUS
7384 # -----------------------
7385 # Set $? to STATUS, without forking.
7389 } # as_fn_set_status
7393 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7403 # Portably unset VAR.
7406 { eval $1=; unset $1;}
7408 as_unset=as_fn_unset
7409 # as_fn_append VAR VALUE
7410 # ----------------------
7411 # Append the text in VALUE to the end of the definition contained in VAR. Take
7412 # advantage of any shell optimizations that allow amortized linear growth over
7413 # repeated appends, instead of the typical quadratic growth present in naive
7415 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7416 eval 'as_fn_append ()
7427 # as_fn_arith ARG...
7428 # ------------------
7429 # Perform arithmetic evaluation on the ARGs, and store the result in the
7430 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7431 # must be portable across $(()) and expr.
7432 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7433 eval 'as_fn_arith ()
7440 as_val=`expr "$@" || test $? -eq 1`
7445 if expr a : '\(a\)' >/dev/null 2>&1 &&
7446 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7452 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7453 as_basename=basename
7458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7464 as_me=`$as_basename -- "$0" ||
7465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7466 X"$0" : 'X\(//\)$' \| \
7467 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7469 sed '/^.*\/\([^/][^/]*\)\/*$/{
7483 # Avoid depending upon Character Ranges.
7484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7487 as_cr_digits='0123456789'
7488 as_cr_alnum=$as_cr_Letters$as_cr_digits
7490 ECHO_C= ECHO_N= ECHO_T=
7491 case `echo -n x` in #(((((
7493 case `echo 'xy\c'` in
7494 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7496 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7503 rm -f conf$$ conf$$.exe conf$$.file
7504 if test -d conf$$.dir; then
7505 rm -f conf$$.dir/conf$$.file
7508 mkdir conf$$.dir 2>/dev/null
7510 if (echo >conf$$.file) 2>/dev/null; then
7511 if ln -s conf$$.file conf$$ 2>/dev/null; then
7513 # ... but there are two gotchas:
7514 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7515 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7516 # In both cases, we have to default to `cp -p'.
7517 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7519 elif ln conf$$.file conf$$ 2>/dev/null; then
7527 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7528 rmdir conf$$.dir 2>/dev/null
7533 # Create "$as_dir" as a directory, including parents if necessary.
7538 -*) as_dir=./$as_dir;;
7540 test -d "$as_dir" || eval $as_mkdir_p || {
7544 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7545 *) as_qdir=$as_dir;;
7547 as_dirs="'$as_qdir' $as_dirs"
7548 as_dir=`$as_dirname -- "$as_dir" ||
7549 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7550 X"$as_dir" : 'X\(//\)[^/]' \| \
7551 X"$as_dir" : 'X\(//\)$' \| \
7552 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7553 $as_echo X"$as_dir" |
7554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7571 test -d "$as_dir" && break
7573 test -z "$as_dirs" || eval "mkdir $as_dirs"
7574 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
7578 if mkdir -p . 2>/dev/null; then
7579 as_mkdir_p='mkdir -p "$as_dir"'
7581 test -d ./-p && rmdir ./-p
7585 if test -x / >/dev/null 2>&1; then
7588 if ls -dL / >/dev/null 2>&1; then
7595 if test -d "$1"; then
7601 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
7602 ???[sx]*):;;*)false;;esac;fi
7606 as_executable_p=$as_test_x
7608 # Sed expression to map a string onto a valid CPP name.
7609 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7611 # Sed expression to map a string onto a valid variable name.
7612 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7616 ## ----------------------------------- ##
7617 ## Main body of $CONFIG_STATUS script. ##
7618 ## ----------------------------------- ##
7620 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7623 # Save the log message, to keep $0 and so on meaningful, and to
7624 # report actual input values of CONFIG_FILES etc. instead of their
7625 # values after options handling.
7627 This file was extended by lcr $as_me 1.7, which was
7628 generated by GNU Autoconf 2.65. Invocation command line was
7630 CONFIG_FILES = $CONFIG_FILES
7631 CONFIG_HEADERS = $CONFIG_HEADERS
7632 CONFIG_LINKS = $CONFIG_LINKS
7633 CONFIG_COMMANDS = $CONFIG_COMMANDS
7636 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7641 case $ac_config_files in *"
7642 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7645 case $ac_config_headers in *"
7646 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7651 # Files that config.status was made for.
7652 config_files="$ac_config_files"
7653 config_headers="$ac_config_headers"
7654 config_commands="$ac_config_commands"
7658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7660 \`$as_me' instantiates files and other configuration actions
7661 from templates according to the current configuration. Unless the files
7662 and actions are specified as TAGs, all are instantiated by default.
7664 Usage: $0 [OPTION]... [TAG]...
7666 -h, --help print this help, then exit
7667 -V, --version print version number and configuration settings, then exit
7668 --config print configuration, then exit
7669 -q, --quiet, --silent
7670 do not print progress messages
7671 -d, --debug don't remove temporary files
7672 --recheck update $as_me by reconfiguring in the same conditions
7673 --file=FILE[:TEMPLATE]
7674 instantiate the configuration file FILE
7675 --header=FILE[:TEMPLATE]
7676 instantiate the configuration header FILE
7678 Configuration files:
7681 Configuration headers:
7684 Configuration commands:
7687 Report bugs to <andreas@eversberg.eu>."
7690 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7691 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7693 lcr config.status 1.7
7694 configured by $0, generated by GNU Autoconf 2.65,
7695 with options \\"\$ac_cs_config\\"
7697 Copyright (C) 2009 Free Software Foundation, Inc.
7698 This config.status script is free software; the Free Software Foundation
7699 gives unlimited permission to copy, distribute and modify it."
7705 test -n "\$AWK" || AWK=awk
7708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7709 # The default lists apply if the user does not specify any file.
7715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7716 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7727 # Handling of the options.
7728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7731 $as_echo "$ac_cs_version"; exit ;;
7732 --config | --confi | --conf | --con | --co | --c )
7733 $as_echo "$ac_cs_config"; exit ;;
7734 --debug | --debu | --deb | --de | --d | -d )
7736 --file | --fil | --fi | --f )
7739 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7741 as_fn_append CONFIG_FILES " '$ac_optarg'"
7742 ac_need_defaults=false;;
7743 --header | --heade | --head | --hea )
7746 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7748 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7749 ac_need_defaults=false;;
7751 # Conflict between --help and --header
7752 as_fn_error "ambiguous option: \`$1'
7753 Try \`$0 --help' for more information.";;
7754 --help | --hel | -h )
7755 $as_echo "$ac_cs_usage"; exit ;;
7756 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7757 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7761 -*) as_fn_error "unrecognized option: \`$1'
7762 Try \`$0 --help' for more information." ;;
7764 *) as_fn_append ac_config_targets " $1"
7765 ac_need_defaults=false ;;
7771 ac_configure_extra_args=
7773 if $ac_cs_silent; then
7775 ac_configure_extra_args="$ac_configure_extra_args --silent"
7779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7780 if \$ac_cs_recheck; then
7781 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7783 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7784 CONFIG_SHELL='$SHELL'
7790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7794 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7795 ## Running $as_me. ##
7801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7805 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7809 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7811 # Handling of arguments.
7812 for ac_config_target in $ac_config_targets
7814 case $ac_config_target in
7815 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7816 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7819 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7824 # If the user did not use the arguments to specify the items to instantiate,
7825 # then the envvar interface is used. Set only those that are not.
7826 # We use the long form for the default assignment because of an extremely
7827 # bizarre bug on SunOS 4.1.3.
7828 if $ac_need_defaults; then
7829 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7830 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7831 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7834 # Have a temporary directory for convenience. Make it in the build tree
7835 # simply because there is no reason against having it here, and in addition,
7836 # creating and moving files from /tmp can sometimes cause problems.
7837 # Hook for its removal unless debugging.
7838 # Note that there is a small window in which the directory will not be cleaned:
7839 # after its creation but before its name has been assigned to `$tmp'.
7843 trap 'exit_status=$?
7844 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7846 trap 'as_fn_exit 1' 1 2 13 15
7848 # Create a (secure) tmp directory for tmp files.
7851 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7852 test -n "$tmp" && test -d "$tmp"
7855 tmp=./conf$$-$RANDOM
7856 (umask 077 && mkdir "$tmp")
7857 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
7859 # Set up the scripts for CONFIG_FILES section.
7860 # No need to generate them if there are no CONFIG_FILES.
7861 # This happens for instance with `./config.status config.h'.
7862 if test -n "$CONFIG_FILES"; then
7865 ac_cr=`echo X | tr X '\015'`
7866 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7867 # But we know of no other shell where ac_cr would be empty at this
7868 # point, so we can use a bashism as a fallback.
7869 if test "x$ac_cr" = x; then
7870 eval ac_cr=\$\'\\r\'
7872 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7873 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7879 echo 'BEGIN {' >"$tmp/subs1.awk" &&
7884 echo "cat >conf$$subs.awk <<_ACEOF" &&
7885 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7889 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
7891 for ac_last_try in false false false false false :; do
7892 . ./conf$$subs.sh ||
7893 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7895 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7896 if test $ac_delim_n = $ac_delim_num; then
7898 elif $ac_last_try; then
7899 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7901 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7906 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7907 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7911 s/^/S["/; s/!.*/"]=/
7921 s/\(.\{148\}\)..*/\1/
7923 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7928 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7935 s/\(.\{148\}\)..*/\1/
7937 s/["\\]/\\&/g; s/^/"/; s/$/"/
7941 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7946 ' <conf$$subs.awk | sed '
7951 ' >>$CONFIG_STATUS || ac_write_fail=1
7952 rm -f conf$$subs.awk
7953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7955 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7956 for (key in S) S_is_set[key] = 1
7962 nfields = split(line, field, "@")
7964 len = length(field[1])
7965 for (i = 2; i < nfields; i++) {
7967 keylen = length(key)
7968 if (S_is_set[key]) {
7970 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7971 len += length(value) + length(field[++i])
7982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7983 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7984 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7987 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7988 || as_fn_error "could not setup config files machinery" "$LINENO" 5
7991 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7992 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7993 # trailing colons and then remove the whole line if VPATH becomes empty
7994 # (actually we leave an empty line to preserve line numbers).
7995 if test "x$srcdir" = x.; then
7996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8000 s/^\([^=]*=[ ]*\):*/\1/
8006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8007 fi # test -n "$CONFIG_FILES"
8009 # Set up the scripts for CONFIG_HEADERS section.
8010 # No need to generate them if there are no CONFIG_HEADERS.
8011 # This happens for instance with `./config.status Makefile'.
8012 if test -n "$CONFIG_HEADERS"; then
8013 cat >"$tmp/defines.awk" <<\_ACAWK ||
8017 # Transform confdefs.h into an awk script `defines.awk', embedded as
8018 # here-document in config.status, that substitutes the proper values into
8019 # config.h.in to produce config.h.
8021 # Create a delimiter string that does not exist in confdefs.h, to ease
8022 # handling of long lines.
8024 for ac_last_try in false false :; do
8025 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8026 if test -z "$ac_t"; then
8028 elif $ac_last_try; then
8029 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
8031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8035 # For the awk script, D is an array of macro values keyed by name,
8036 # likewise P contains macro parameters if any. Preserve backslash
8037 # newline sequences.
8039 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8041 s/.\{148\}/&'"$ac_delim"'/g
8044 s/^[ ]*#[ ]*define[ ][ ]*/ /
8051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8053 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8057 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8058 D["\1"]=" \3\\\\\\n"\\/p
8060 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8065 s/.\{148\}/&'"$ac_delim"'/g
8070 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8073 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8075 ' <confdefs.h | sed '
8076 s/'"$ac_delim"'/"\\\
8077 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8080 for (key in D) D_is_set[key] = 1
8083 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8085 split(line, arg, " ")
8086 if (arg[1] == "#") {
8090 defundef = substr(arg[1], 2)
8093 split(mac1, mac2, "(") #)
8095 prefix = substr(line, 1, index(line, defundef) - 1)
8096 if (D_is_set[macro]) {
8097 # Preserve the white space surrounding the "#".
8098 print prefix "define", macro P[macro] D[macro]
8101 # Replace #undef with comments. This is necessary, for example,
8102 # in the case of _POSIX_SOURCE, which is predefined and required
8103 # on some systems where configure will not decide to define it.
8104 if (defundef == "undef") {
8105 print "/*", prefix defundef, macro, "*/"
8113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8114 as_fn_error "could not setup config headers machinery" "$LINENO" 5
8115 fi # test -n "$CONFIG_HEADERS"
8118 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8123 :[FHLC]) ac_mode=$ac_tag; continue;;
8125 case $ac_mode$ac_tag in
8127 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
8128 :[FH]-) ac_tag=-:-;;
8129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8146 -) ac_f="$tmp/stdin";;
8147 *) # Look for the file first in the build tree, then in the source tree
8148 # (if the path is not absolute). The absolute path cannot be DOS-style,
8149 # because $ac_f cannot contain `:'.
8153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8155 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8158 as_fn_append ac_file_inputs " '$ac_f'"
8161 # Let's still pretend it is `configure' which instantiates (i.e., don't
8162 # use $as_me), people would be surprised to read:
8163 # /* config.h. Generated by config.status. */
8164 configure_input='Generated from '`
8165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8167 if test x"$ac_file" != x-; then
8168 configure_input="$ac_file. $configure_input"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8170 $as_echo "$as_me: creating $ac_file" >&6;}
8172 # Neutralize special characters interpreted by sed in replacement strings.
8173 case $configure_input in #(
8174 *\&* | *\|* | *\\* )
8175 ac_sed_conf_input=`$as_echo "$configure_input" |
8176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8177 *) ac_sed_conf_input=$configure_input;;
8181 *:-:* | *:-) cat >"$tmp/stdin" \
8182 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
8187 ac_dir=`$as_dirname -- "$ac_file" ||
8188 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8189 X"$ac_file" : 'X\(//\)[^/]' \| \
8190 X"$ac_file" : 'X\(//\)$' \| \
8191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8192 $as_echo X"$ac_file" |
8193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8210 as_dir="$ac_dir"; as_fn_mkdir_p
8214 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8217 # A ".." for each directory in $ac_dir_suffix.
8218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8219 case $ac_top_builddir_sub in
8220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8224 ac_abs_top_builddir=$ac_pwd
8225 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8226 # for backward compatibility:
8227 ac_top_builddir=$ac_top_build_prefix
8230 .) # We are building in place.
8232 ac_top_srcdir=$ac_top_builddir_sub
8233 ac_abs_top_srcdir=$ac_pwd ;;
8234 [\\/]* | ?:[\\/]* ) # Absolute name.
8235 ac_srcdir=$srcdir$ac_dir_suffix;
8236 ac_top_srcdir=$srcdir
8237 ac_abs_top_srcdir=$srcdir ;;
8239 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8240 ac_top_srcdir=$ac_top_build_prefix$srcdir
8241 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8243 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8259 # If the template does not know about datarootdir, expand it.
8260 # FIXME: This hack should be removed a few years after 2.60.
8261 ac_datarootdir_hack=; ac_datarootdir_seen=
8272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8273 *datarootdir*) ac_datarootdir_seen=yes;;
8274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8276 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8279 ac_datarootdir_hack='
8280 s&@datadir@&$datadir&g
8281 s&@docdir@&$docdir&g
8282 s&@infodir@&$infodir&g
8283 s&@localedir@&$localedir&g
8284 s&@mandir@&$mandir&g
8285 s&\\\${datarootdir}&$datarootdir&g' ;;
8289 # Neutralize VPATH when `$srcdir' = `.'.
8290 # Shell code in configure.ac might set extrasub.
8291 # FIXME: do we really want to maintain this feature?
8292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8293 ac_sed_extra="$ac_vpsub
8296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8299 s|@configure_input@|$ac_sed_conf_input|;t t
8300 s&@top_builddir@&$ac_top_builddir_sub&;t t
8301 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8302 s&@srcdir@&$ac_srcdir&;t t
8303 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8304 s&@top_srcdir@&$ac_top_srcdir&;t t
8305 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8306 s&@builddir@&$ac_builddir&;t t
8307 s&@abs_builddir@&$ac_abs_builddir&;t t
8308 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8309 s&@INSTALL@&$ac_INSTALL&;t t
8310 $ac_datarootdir_hack
8312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
8313 || as_fn_error "could not create $ac_file" "$LINENO" 5
8315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8316 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8319 which seems to be undefined. Please make sure it is defined." >&5
8320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8321 which seems to be undefined. Please make sure it is defined." >&2;}
8325 -) cat "$tmp/out" && rm -f "$tmp/out";;
8326 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
8328 || as_fn_error "could not create $ac_file" "$LINENO" 5
8334 if test x"$ac_file" != x-; then
8336 $as_echo "/* $configure_input */" \
8337 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
8338 } >"$tmp/config.h" \
8339 || as_fn_error "could not create $ac_file" "$LINENO" 5
8340 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8342 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8345 mv "$tmp/config.h" "$ac_file" \
8346 || as_fn_error "could not create $ac_file" "$LINENO" 5
8349 $as_echo "/* $configure_input */" \
8350 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
8351 || as_fn_error "could not create -" "$LINENO" 5
8353 # Compute "$ac_file"'s index in $config_headers.
8355 for _am_header in $config_headers :; do
8357 "$ac_file" | "$ac_file":* )
8360 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8363 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
8364 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8365 X"$ac_file" : 'X\(//\)[^/]' \| \
8366 X"$ac_file" : 'X\(//\)$' \| \
8367 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8368 $as_echo X"$ac_file" |
8369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8385 s/.*/./; q'`/stamp-h$_am_stamp_count
8388 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8389 $as_echo "$as_me: executing $ac_file commands" >&6;}
8394 case $ac_file$ac_mode in
8395 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8396 # Strip MF so we end up with the name of the file.
8397 mf=`echo "$mf" | sed -e 's/:.*$//'`
8398 # Check whether this is an Automake generated Makefile or not.
8399 # We used to match only the files named `Makefile.in', but
8400 # some people rename them; so instead we look at the file content.
8401 # Grep'ing the first line is not enough: some people post-process
8402 # each Makefile.in and add a new line on top of each file to say so.
8403 # So let's grep whole file.
8404 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8405 dirpart=`$as_dirname -- "$mf" ||
8406 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8407 X"$mf" : 'X\(//\)[^/]' \| \
8408 X"$mf" : 'X\(//\)$' \| \
8409 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8431 # Extract the definition of DEPDIR, am__include, and am__quote
8432 # from the Makefile without running `make'.
8433 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8434 test -z "$DEPDIR" && continue
8435 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8436 test -z "am__include" && continue
8437 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8438 # When using ansi2knr, U may be empty or an underscore; expand it
8439 U=`sed -n 's/^U = //p' < "$mf"`
8440 # Find all dependency output files, they are included files with
8441 # $(DEPDIR) in their names. We invoke sed twice because it is the
8442 # simplest approach to changing $(DEPDIR) to its actual value in the
8444 for file in `sed -n "
8445 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8446 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8447 # Make sure the directory exists.
8448 test -f "$dirpart/$file" && continue
8449 fdir=`$as_dirname -- "$file" ||
8450 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8451 X"$file" : 'X\(//\)[^/]' \| \
8452 X"$file" : 'X\(//\)$' \| \
8453 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8472 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8473 # echo "creating $dirpart/$file"
8474 echo '# dummy' > "$dirpart/$file"
8485 ac_clean_files=$ac_clean_files_save
8487 test $ac_write_fail = 0 ||
8488 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
8491 # configure is writing to config.log, and then calls config.status.
8492 # config.status does its own redirection, appending to config.log.
8493 # Unfortunately, on DOS this fails, as config.log is still kept open
8494 # by configure, so config.status won't be able to write to it; its
8495 # output is simply discarded. So we exec the FD to /dev/null,
8496 # effectively closing config.log, so it can be properly (re)opened and
8497 # appended to by config.status. When coming back to configure, we
8498 # need to make the FD available again.
8499 if test "$no_create" != yes; then
8501 ac_config_status_args=
8502 test "$silent" = yes &&
8503 ac_config_status_args="$ac_config_status_args --quiet"
8505 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8507 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8508 # would make configure fail if this is the last instruction.
8509 $ac_cs_success || as_fn_exit $?
8511 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8513 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}