2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix=/usr/local
539 ac_config_libobj_dir=.
546 # Identity of this package.
554 ac_unique_file="server.c"
555 ac_config_libobj_dir=../gnulib
556 # Factoring default headers for most tests.
557 ac_includes_default="\
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
569 # ifdef HAVE_STDLIB_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
592 ac_subst_vars='LTLIBOBJS
663 program_transform_name
676 enable_option_checking
684 enable_inprocess_agent
686 ac_precious_vars='build_alias
697 # Initialize some variables set by options.
699 ac_init_version=false
700 ac_unrecognized_opts=
702 # The variables have the same names as the options, with
703 # dashes changed to underlines.
711 program_transform_name=s,x,x,
719 # Installation directory options.
720 # These are left unexpanded so users can "make install exec_prefix=/foo"
721 # and all the variables that are supposed to be based on exec_prefix
722 # by default will actually change.
723 # Use braces instead of parens because sh, perl, etc. also accept them.
724 # (The list follows the same order as the GNU Coding Standards.)
725 bindir='${exec_prefix}/bin'
726 sbindir='${exec_prefix}/sbin'
727 libexecdir='${exec_prefix}/libexec'
728 datarootdir='${prefix}/share'
729 datadir='${datarootdir}'
730 sysconfdir='${prefix}/etc'
731 sharedstatedir='${prefix}/com'
732 localstatedir='${prefix}/var'
733 includedir='${prefix}/include'
734 oldincludedir='/usr/include'
735 docdir='${datarootdir}/doc/${PACKAGE}'
736 infodir='${datarootdir}/info'
741 libdir='${exec_prefix}/lib'
742 localedir='${datarootdir}/locale'
743 mandir='${datarootdir}/man'
749 # If the previous option needs an argument, assign it.
750 if test -n "$ac_prev"; then
751 eval $ac_prev=\$ac_option
757 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
761 # Accept the important Cygnus configure options, so we can diagnose typos.
763 case $ac_dashdash$ac_option in
767 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 -build | --build | --buil | --bui | --bu)
773 ac_prev=build_alias ;;
774 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
775 build_alias=$ac_optarg ;;
777 -cache-file | --cache-file | --cache-fil | --cache-fi \
778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
779 ac_prev=cache_file ;;
780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
782 cache_file=$ac_optarg ;;
785 cache_file=config.cache ;;
787 -datadir | --datadir | --datadi | --datad)
789 -datadir=* | --datadir=* | --datadi=* | --datad=*)
790 datadir=$ac_optarg ;;
792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
793 | --dataroo | --dataro | --datar)
794 ac_prev=datarootdir ;;
795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
797 datarootdir=$ac_optarg ;;
799 -disable-* | --disable-*)
800 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
803 as_fn_error "invalid feature name: $ac_useropt"
804 ac_useropt_orig=$ac_useropt
805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
806 case $ac_user_opts in
810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
811 ac_unrecognized_sep=', ';;
813 eval enable_$ac_useropt=no ;;
815 -docdir | --docdir | --docdi | --doc | --do)
817 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
822 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 -enable-* | --enable-*)
826 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
839 eval enable_$ac_useropt=\$ac_optarg ;;
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
854 -help | --help | --hel | --he | -h)
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 htmldir=$ac_optarg ;;
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
884 -libdir | --libdir | --libdi | --libd)
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
896 -localedir | --localedir | --localedi | --localed | --locale)
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 # Obsolete; use --without-fp.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 -psdir | --psdir | --psdi | --psd | --ps)
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 sbindir=$ac_optarg ;;
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 sharedstatedir=$ac_optarg ;;
1001 -site | --site | --sit)
1003 -site=* | --site=* | --sit=*)
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1030 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error "invalid package name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval with_$ac_useropt=\$ac_optarg ;;
1045 -without-* | --without-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid package name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval with_$ac_useropt=no ;;
1062 # Obsolete; use --with-x.
1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066 | --x-incl | --x-inc | --x-in | --x-i)
1067 ac_prev=x_includes ;;
1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070 x_includes=$ac_optarg ;;
1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074 ac_prev=x_libraries ;;
1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077 x_libraries=$ac_optarg ;;
1079 -*) as_fn_error "unrecognized option: \`$ac_option'
1080 Try \`$0 --help' for more information."
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 case $ac_envvar in #(
1087 '' | [0-9]* | *[!_$as_cr_alnum]* )
1088 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1090 eval $ac_envvar=\$ac_optarg
1091 export $ac_envvar ;;
1094 # FIXME: should be removed in autoconf 3.0.
1095 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1104 if test -n "$ac_prev"; then
1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106 as_fn_error "missing argument to $ac_option"
1109 if test -n "$ac_unrecognized_opts"; then
1110 case $enable_option_checking in
1112 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1113 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1117 # Check all directory arguments for consistency.
1118 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121 libdir localedir mandir
1123 eval ac_val=\$$ac_var
1124 # Remove trailing slashes.
1127 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1128 eval $ac_var=\$ac_val;;
1130 # Be sure to have absolute directory names.
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1143 target=$target_alias
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1159 test "$silent" = yes && exec 6>/dev/null
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 as_fn_error "working directory cannot be determined"
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 as_fn_error "pwd does not report name of working directory"
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$as_myself" ||
1175 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$as_myself" : 'X\(//\)[^/]' \| \
1177 X"$as_myself" : 'X\(//\)$' \| \
1178 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1179 $as_echo X"$as_myself" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1208 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301 --target=TARGET configure for building compilers for TARGET [HOST]
1305 if test -n "$ac_init_help"; then
1310 --disable-option-checking ignore unrecognized --enable/--with options
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --enable-werror treat compile warnings as errors
1314 --enable-inprocess-agent
1318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1320 --with-ust=PATH Specify prefix directory for the installed UST package
1321 Equivalent to --with-ust-include=PATH/include
1322 plus --with-ust-lib=PATH/lib
1323 --with-ust-include=PATH Specify directory for installed UST include files
1324 --with-ust-lib=PATH Specify the directory for the installed UST library
1325 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1326 --with-bugurl=URL Direct users to URL to report a bug
1327 --with-libthread-db=PATH
1328 use given libthread_db directly
1330 Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
1335 LIBS libraries to pass to the linker, e.g. -l<library>
1336 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1337 you have headers in a nonstandard directory <include dir>
1340 Use these variables to override the choices made by `configure' or to help
1341 it to find libraries and programs with nonstandard names/locations.
1343 Report bugs to the package provider.
1348 if test "$ac_init_help" = "recursive"; then
1349 # If there are subdirs, report their specific --help.
1350 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1351 test -d "$ac_dir" ||
1352 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1367 ac_abs_top_builddir=$ac_pwd
1368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369 # for backward compatibility:
1370 ac_top_builddir=$ac_top_build_prefix
1373 .) # We are building in place.
1375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
1378 ac_srcdir=$srcdir$ac_dir_suffix;
1379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for guested configure.
1390 if test -f "$ac_srcdir/configure.gnu"; then
1392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 elif test -f "$ac_srcdir/configure"; then
1395 $SHELL "$ac_srcdir/configure" --help=recursive
1397 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1399 cd "$ac_pwd" || { ac_status=$?; break; }
1403 test -n "$ac_init_help" && exit $ac_status
1404 if $ac_init_version; then
1407 generated by GNU Autoconf 2.64
1409 Copyright (C) 2009 Free Software Foundation, Inc.
1410 This configure script is free software; the Free Software Foundation
1411 gives unlimited permission to copy, distribute and modify it.
1416 ## ------------------------ ##
1417 ## Autoconf initialization. ##
1418 ## ------------------------ ##
1420 # ac_fn_c_try_compile LINENO
1421 # --------------------------
1422 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1423 ac_fn_c_try_compile ()
1425 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1426 rm -f conftest.$ac_objext
1427 if { { ac_try="$ac_compile"
1429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1430 *) ac_try_echo=$ac_try;;
1432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1433 $as_echo "$ac_try_echo"; } >&5
1434 (eval "$ac_compile") 2>conftest.err
1436 if test -s conftest.err; then
1437 grep -v '^ *+' conftest.err >conftest.er1
1438 cat conftest.er1 >&5
1439 mv -f conftest.er1 conftest.err
1441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1442 test $ac_status = 0; } && {
1443 test -z "$ac_c_werror_flag" ||
1444 test ! -s conftest.err
1445 } && test -s conftest.$ac_objext; then :
1448 $as_echo "$as_me: failed program was:" >&5
1449 sed 's/^/| /' conftest.$ac_ext >&5
1453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1456 } # ac_fn_c_try_compile
1458 # ac_fn_c_try_cpp LINENO
1459 # ----------------------
1460 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1464 if { { ac_try="$ac_cpp conftest.$ac_ext"
1466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1467 *) ac_try_echo=$ac_try;;
1469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1470 $as_echo "$ac_try_echo"; } >&5
1471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1473 if test -s conftest.err; then
1474 grep -v '^ *+' conftest.err >conftest.er1
1475 cat conftest.er1 >&5
1476 mv -f conftest.er1 conftest.err
1478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1479 test $ac_status = 0; } >/dev/null && {
1480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1481 test ! -s conftest.err
1485 $as_echo "$as_me: failed program was:" >&5
1486 sed 's/^/| /' conftest.$ac_ext >&5
1490 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1495 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1496 # -------------------------------------------------------
1497 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1498 # the include files in INCLUDES and setting the cache variable VAR
1500 ac_fn_c_check_header_mongrel ()
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1505 $as_echo_n "checking for $2... " >&6; }
1506 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1507 $as_echo_n "(cached) " >&6
1510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1511 $as_echo "$ac_res" >&6; }
1513 # Is the header compilable?
1514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1515 $as_echo_n "checking $2 usability... " >&6; }
1516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1517 /* end confdefs.h. */
1521 if ac_fn_c_try_compile "$LINENO"; then :
1522 ac_header_compiler=yes
1524 ac_header_compiler=no
1526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1528 $as_echo "$ac_header_compiler" >&6; }
1530 # Is the header present?
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1532 $as_echo_n "checking $2 presence... " >&6; }
1533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1534 /* end confdefs.h. */
1537 if ac_fn_c_try_cpp "$LINENO"; then :
1538 ac_header_preproc=yes
1540 ac_header_preproc=no
1542 rm -f conftest.err conftest.$ac_ext
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1544 $as_echo "$ac_header_preproc" >&6; }
1546 # So? What about this header?
1547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1550 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1552 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1556 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1558 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1560 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1562 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1564 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 $as_echo_n "(cached) " >&6
1572 eval "$3=\$ac_header_compiler"
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576 $as_echo "$ac_res" >&6; }
1578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580 } # ac_fn_c_check_header_mongrel
1582 # ac_fn_c_try_run LINENO
1583 # ----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585 # that executables *can* be run.
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_link"
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_link") 2>&5
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600 { { case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_try") 2>&5
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; }; }; then :
1612 $as_echo "$as_me: program exited with status $ac_status" >&5
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1616 ac_retval=$ac_status
1618 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625 # -------------------------------------------------------
1626 # Tests whether HEADER exists and can be compiled using the include files in
1627 # INCLUDES, setting the cache variable VAR accordingly.
1628 ac_fn_c_check_header_compile ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1634 $as_echo_n "(cached) " >&6
1636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1641 if ac_fn_c_try_compile "$LINENO"; then :
1646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650 $as_echo "$ac_res" >&6; }
1651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 } # ac_fn_c_check_header_compile
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 rm -f conftest.$ac_objext conftest$ac_exeext
1662 if { { ac_try="$ac_link"
1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665 *) ac_try_echo=$ac_try;;
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669 (eval "$ac_link") 2>conftest.err
1671 if test -s conftest.err; then
1672 grep -v '^ *+' conftest.err >conftest.er1
1673 cat conftest.er1 >&5
1674 mv -f conftest.er1 conftest.err
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; } && {
1678 test -z "$ac_c_werror_flag" ||
1679 test ! -s conftest.err
1680 } && test -s conftest$ac_exeext && {
1681 test "$cross_compiling" = yes ||
1682 $as_test_x conftest$ac_exeext
1686 $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1691 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693 # interfere with the next link command; also delete a directory that is
1694 # left behind by Apple's compiler. We do this before executing the actions.
1695 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699 } # ac_fn_c_try_link
1701 # ac_fn_c_check_func LINENO FUNC VAR
1702 # ----------------------------------
1703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1704 ac_fn_c_check_func ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1710 $as_echo_n "(cached) " >&6
1712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h. */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716 #define $2 innocuous_$2
1718 /* System header to define __stub macros and hopefully few prototypes,
1719 which can conflict with char $2 (); below.
1720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721 <limits.h> exists even on freestanding compilers. */
1724 # include <limits.h>
1726 # include <assert.h>
1731 /* Override any GCC internal prototype to avoid an error.
1732 Use char because int might match the return type of a GCC
1733 builtin and then its argument prototype would still apply. */
1738 /* The GNU C library defines this for functions which it implements
1739 to always fail with ENOSYS. Some functions are actually named
1740 something starting with __ and the normal name is an alias. */
1741 #if defined __stub_$2 || defined __stub___$2
1753 if ac_fn_c_try_link "$LINENO"; then :
1758 rm -f core conftest.err conftest.$ac_objext \
1759 conftest$ac_exeext conftest.$ac_ext
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 } # ac_fn_c_check_func
1768 # ac_fn_c_check_decl LINENO SYMBOL VAR
1769 # ------------------------------------
1770 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1771 ac_fn_c_check_decl ()
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 as_decl_name=`echo $2|sed 's/ *(.*//'`
1775 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1777 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1787 #ifndef $as_decl_name
1789 (void) $as_decl_use;
1791 (void) $as_decl_name;
1799 if ac_fn_c_try_compile "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811 } # ac_fn_c_check_decl
1813 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1814 # -------------------------------------------
1815 # Tests whether TYPE exists after having included INCLUDES, setting cache
1816 # variable VAR accordingly.
1817 ac_fn_c_check_type ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1851 if ac_fn_c_try_compile "$LINENO"; then :
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 } # ac_fn_c_check_type
1866 cat >config.log <<_ACEOF
1867 This file contains any messages produced by compilers while
1868 running configure, to aid debugging if configure makes a mistake.
1870 It was created by $as_me, which was
1871 generated by GNU Autoconf 2.64. Invocation command line was
1883 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1884 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1885 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1886 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1887 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1890 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1893 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1894 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1895 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1896 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1897 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1898 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir=.
1907 $as_echo "PATH: $as_dir"
1923 # Keep a trace of the command line.
1924 # Strip out --no-create and --no-recursion so they do not pile up.
1925 # Strip out --silent because we don't want to record it for future runs.
1926 # Also quote any args containing shell meta-characters.
1927 # Make two passes to allow for proper duplicate-argument suppression.
1931 ac_must_keep_next=false
1937 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1939 | -silent | --silent | --silen | --sile | --sil)
1942 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947 as_fn_append ac_configure_args1 " '$ac_arg'"
1948 if test $ac_must_keep_next = true; then
1949 ac_must_keep_next=false # Got value, back to normal.
1952 *=* | --config-cache | -C | -disable-* | --disable-* \
1953 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1954 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1955 | -with-* | --with-* | -without-* | --without-* | --x)
1956 case "$ac_configure_args0 " in
1957 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960 -* ) ac_must_keep_next=true ;;
1963 as_fn_append ac_configure_args " '$ac_arg'"
1968 { ac_configure_args0=; unset ac_configure_args0;}
1969 { ac_configure_args1=; unset ac_configure_args1;}
1971 # When interrupted or exit'd, cleanup temporary files, and complete
1972 # config.log. We remove comments because anyway the quotes in there
1973 # would cause problems or look ugly.
1974 # WARNING: Use '\'' to represent an apostrophe within the trap.
1975 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1976 trap 'exit_status=$?
1977 # Save into config.log some information that might help in debugging.
1982 ## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##
1987 # The following way of writing the cache mishandles newlines in values,
1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990 eval ac_val=\$$ac_var
1994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998 _ | IFS | as_nl) ;; #(
1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000 *) { eval $ac_var=; unset $ac_var;} ;;
2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006 *${as_nl}ac_space=\ *)
2008 "s/'\''/'\''\\\\'\'''\''/g;
2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 ## ----------------- ##
2021 ## Output variables. ##
2022 ## ----------------- ##
2025 for ac_var in $ac_subst_vars
2027 eval ac_val=\$$ac_var
2029 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 $as_echo "$ac_var='\''$ac_val'\''"
2035 if test -n "$ac_subst_files"; then
2037 ## ------------------- ##
2038 ## File substitutions. ##
2039 ## ------------------- ##
2042 for ac_var in $ac_subst_files
2044 eval ac_val=\$$ac_var
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 $as_echo "$ac_var='\''$ac_val'\''"
2053 if test -s confdefs.h; then
2063 test "$ac_signal" != 0 &&
2064 $as_echo "$as_me: caught signal $ac_signal"
2065 $as_echo "$as_me: exit $exit_status"
2067 rm -f core *.core core.conftest.* &&
2068 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2071 for ac_signal in 1 2 13 15; do
2072 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2077 rm -f -r conftest* confdefs.h
2079 $as_echo "/* confdefs.h */" > confdefs.h
2081 # Predefined preprocessor variables.
2083 cat >>confdefs.h <<_ACEOF
2084 #define PACKAGE_NAME "$PACKAGE_NAME"
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_STRING "$PACKAGE_STRING"
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_URL "$PACKAGE_URL"
2108 # Let the site file select an alternate cache file if it wants to.
2109 # Prefer an explicitly selected file to automatically selected ones.
2112 if test -n "$CONFIG_SITE"; then
2113 ac_site_file1=$CONFIG_SITE
2114 elif test "x$prefix" != xNONE; then
2115 ac_site_file1=$prefix/share/config.site
2116 ac_site_file2=$prefix/etc/config.site
2118 ac_site_file1=$ac_default_prefix/share/config.site
2119 ac_site_file2=$ac_default_prefix/etc/config.site
2121 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123 test "x$ac_site_file" = xNONE && continue
2124 if test -r "$ac_site_file"; then
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2126 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2127 sed 's/^/| /' "$ac_site_file" >&5
2132 if test -r "$cache_file"; then
2133 # Some versions of bash will fail to source /dev/null (special
2134 # files actually), so we avoid doing that.
2135 if test -f "$cache_file"; then
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2137 $as_echo "$as_me: loading cache $cache_file" >&6;}
2139 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2140 *) . "./$cache_file";;
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2145 $as_echo "$as_me: creating cache $cache_file" >&6;}
2149 # Check that the precious variables saved in the cache have kept the same
2151 ac_cache_corrupted=false
2152 for ac_var in $ac_precious_vars; do
2153 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2154 eval ac_new_set=\$ac_env_${ac_var}_set
2155 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2156 eval ac_new_val=\$ac_env_${ac_var}_value
2157 case $ac_old_set,$ac_new_set in
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2160 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2161 ac_cache_corrupted=: ;;
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2164 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2165 ac_cache_corrupted=: ;;
2168 if test "x$ac_old_val" != "x$ac_new_val"; then
2169 # differences in whitespace do not lead to failure.
2170 ac_old_val_w=`echo x $ac_old_val`
2171 ac_new_val_w=`echo x $ac_new_val`
2172 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2174 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2175 ac_cache_corrupted=:
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2178 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2179 eval $ac_var=\$ac_old_val
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2182 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2184 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2187 # Pass precious variables to config.status.
2188 if test "$ac_new_set" = set; then
2190 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 *) ac_arg=$ac_var=$ac_new_val ;;
2193 case " $ac_configure_args " in
2194 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2195 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2199 if $ac_cache_corrupted; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2203 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2204 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2206 ## -------------------- ##
2207 ## Main body of script. ##
2208 ## -------------------- ##
2211 ac_cpp='$CPP $CPPFLAGS'
2212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220 ac_config_headers="$ac_config_headers config.h:config.in"
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then :
2235 $as_echo_n "(cached) " >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 if test -n "$CC"; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2260 $as_echo "$CC" >&6; }
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2263 $as_echo "no" >&6; }
2268 if test -z "$ac_cv_prog_CC"; then
2270 # Extract the first word of "gcc", so it can be a program name with args.
2271 set dummy gcc; ac_word=$2
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2273 $as_echo_n "checking for $ac_word... " >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2275 $as_echo_n "(cached) " >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="gcc"
2288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2300 $as_echo "$ac_ct_CC" >&6; }
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2303 $as_echo "no" >&6; }
2306 if test "x$ac_ct_CC" = x; then
2309 case $cross_compiling:$ac_tool_warned in
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2313 ac_tool_warned=yes ;;
2321 if test -z "$CC"; then
2322 if test -n "$ac_tool_prefix"; then
2323 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2324 set dummy ${ac_tool_prefix}cc; ac_word=$2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then :
2328 $as_echo_n "(cached) " >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_CC="${ac_tool_prefix}cc"
2341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$CC"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2353 $as_echo "$CC" >&6; }
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2356 $as_echo "no" >&6; }
2362 if test -z "$CC"; then
2363 # Extract the first word of "cc", so it can be a program name with args.
2364 set dummy cc; ac_word=$2
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2366 $as_echo_n "checking for $ac_word... " >&6; }
2367 if test "${ac_cv_prog_CC+set}" = set; then :
2368 $as_echo_n "(cached) " >&6
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2382 ac_prog_rejected=yes
2386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2393 if test $ac_prog_rejected = yes; then
2394 # We found a bogon in the path, so make sure we never use it.
2395 set dummy $ac_cv_prog_CC
2397 if test $# != 0; then
2398 # We chose a different compiler from the bogus one.
2399 # However, it has the same basename, so the bogon will be chosen
2400 # first if we set CC to just the basename; use the full file name.
2402 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2408 if test -n "$CC"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2410 $as_echo "$CC" >&6; }
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2418 if test -z "$CC"; then
2419 if test -n "$ac_tool_prefix"; then
2420 for ac_prog in cl.exe
2422 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2423 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if test "${ac_cv_prog_CC+set}" = set; then :
2427 $as_echo_n "(cached) " >&6
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2450 if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452 $as_echo "$CC" >&6; }
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2459 test -n "$CC" && break
2462 if test -z "$CC"; then
2464 for ac_prog in cl.exe
2466 # Extract the first word of "$ac_prog", so it can be a program name with args.
2467 set dummy $ac_prog; ac_word=$2
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2469 $as_echo_n "checking for $ac_word... " >&6; }
2470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2471 $as_echo_n "(cached) " >&6
2473 if test -n "$ac_ct_CC"; then
2474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_ac_ct_CC="$ac_prog"
2484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2494 if test -n "$ac_ct_CC"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2496 $as_echo "$ac_ct_CC" >&6; }
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2503 test -n "$ac_ct_CC" && break
2506 if test "x$ac_ct_CC" = x; then
2509 case $cross_compiling:$ac_tool_warned in
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513 ac_tool_warned=yes ;;
2522 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 as_fn_error "no acceptable C compiler found in \$PATH
2525 See \`config.log' for more details." "$LINENO" 5; }
2527 # Provide some information about the compiler.
2528 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2531 for ac_option in --version -v -V -qversion; do
2532 { { ac_try="$ac_compiler $ac_option >&5"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2538 $as_echo "$ac_try_echo"; } >&5
2539 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2541 if test -s conftest.err; then
2543 ... rest of stderr output deleted ...
2544 10q' conftest.err >conftest.er1
2545 cat conftest.er1 >&5
2546 rm -f conftest.er1 conftest.err
2548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2549 test $ac_status = 0; }
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2563 ac_clean_files_save=$ac_clean_files
2564 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2565 # Try to create an executable without -o first, disregard a.out.
2566 # It will help us diagnose broken compilers, and finding out an intuition
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2569 $as_echo_n "checking for C compiler default output file name... " >&6; }
2570 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2572 # The possible output files:
2573 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2576 for ac_file in $ac_files
2579 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2580 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2585 if { { ac_try="$ac_link_default"
2587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588 *) ac_try_echo=$ac_try;;
2590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2591 $as_echo "$ac_try_echo"; } >&5
2592 (eval "$ac_link_default") 2>&5
2594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2595 test $ac_status = 0; }; then :
2596 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2597 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2598 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2599 # so that the user can short-circuit this test for compilers unknown to
2601 for ac_file in $ac_files ''
2603 test -f "$ac_file" || continue
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2608 # We found the default executable, but exeext='' is most
2612 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2614 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616 # We set ac_cv_exeext here because the later test for it is not
2617 # safe: cross compilers may not add the suffix if given an `-o'
2618 # argument, so we may need to know it at that point already.
2619 # Even if this section looks crufty: it has the advantage of
2626 test "$ac_cv_exeext" = no && ac_cv_exeext=
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2632 $as_echo "$ac_file" >&6; }
2633 if test -z "$ac_file"; then :
2634 $as_echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639 { as_fn_set_status 77
2640 as_fn_error "C compiler cannot create executables
2641 See \`config.log' for more details." "$LINENO" 5; }; }
2643 ac_exeext=$ac_cv_exeext
2645 # Check that the compiler produces executables we can run. If not, either
2646 # the compiler is broken, or we cross compile.
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2648 $as_echo_n "checking whether the C compiler works... " >&6; }
2649 # If not cross compiling, check that we can run a simple program.
2650 if test "$cross_compiling" != yes; then
2651 if { ac_try='./$ac_file'
2652 { { case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2657 $as_echo "$ac_try_echo"; } >&5
2658 (eval "$ac_try") 2>&5
2660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2661 test $ac_status = 0; }; }; then
2664 if test "$cross_compiling" = maybe; then
2667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669 as_fn_error "cannot run C compiled programs.
2670 If you meant to cross compile, use \`--host'.
2671 See \`config.log' for more details." "$LINENO" 5; }
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2676 $as_echo "yes" >&6; }
2678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2679 ac_clean_files=$ac_clean_files_save
2680 # Check that the compiler produces executables we can run. If not, either
2681 # the compiler is broken, or we cross compile.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2683 $as_echo_n "checking whether we are cross compiling... " >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2685 $as_echo "$cross_compiling" >&6; }
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2688 $as_echo_n "checking for suffix of executables... " >&6; }
2689 if { { ac_try="$ac_link"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696 (eval "$ac_link") 2>&5
2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699 test $ac_status = 0; }; then :
2700 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2701 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2702 # work properly (i.e., refer to `conftest.exe'), while it won't with
2704 for ac_file in conftest.exe conftest conftest.*; do
2705 test -f "$ac_file" || continue
2707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2708 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2716 as_fn_error "cannot compute suffix of executables: cannot compile and link
2717 See \`config.log' for more details." "$LINENO" 5; }
2719 rm -f conftest$ac_cv_exeext
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2721 $as_echo "$ac_cv_exeext" >&6; }
2723 rm -f conftest.$ac_ext
2724 EXEEXT=$ac_cv_exeext
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2727 $as_echo_n "checking for suffix of object files... " >&6; }
2728 if test "${ac_cv_objext+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2742 rm -f conftest.o conftest.obj
2743 if { { ac_try="$ac_compile"
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2749 $as_echo "$ac_try_echo"; } >&5
2750 (eval "$ac_compile") 2>&5
2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753 test $ac_status = 0; }; then :
2754 for ac_file in conftest.o conftest.obj conftest.*; do
2755 test -f "$ac_file" || continue;
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2758 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2763 $as_echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768 as_fn_error "cannot compute suffix of object files: cannot compile
2769 See \`config.log' for more details." "$LINENO" 5; }
2771 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2774 $as_echo "$ac_cv_objext" >&6; }
2775 OBJEXT=$ac_cv_objext
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2778 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2779 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2780 $as_echo_n "(cached) " >&6
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2796 if ac_fn_c_try_compile "$LINENO"; then :
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2806 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2807 if test $ac_compiler_gnu = yes; then
2812 ac_test_CFLAGS=${CFLAGS+set}
2813 ac_save_CFLAGS=$CFLAGS
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2815 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2816 if test "${ac_cv_prog_cc_g+set}" = set; then :
2817 $as_echo_n "(cached) " >&6
2819 ac_save_c_werror_flag=$ac_c_werror_flag
2820 ac_c_werror_flag=yes
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2834 if ac_fn_c_try_compile "$LINENO"; then :
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2849 if ac_fn_c_try_compile "$LINENO"; then :
2852 ac_c_werror_flag=$ac_save_c_werror_flag
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2865 if ac_fn_c_try_compile "$LINENO"; then :
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 ac_c_werror_flag=$ac_save_c_werror_flag
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2876 $as_echo "$ac_cv_prog_cc_g" >&6; }
2877 if test "$ac_test_CFLAGS" = set; then
2878 CFLAGS=$ac_save_CFLAGS
2879 elif test $ac_cv_prog_cc_g = yes; then
2880 if test "$GCC" = yes; then
2886 if test "$GCC" = yes; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2893 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2894 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2895 $as_echo_n "(cached) " >&6
2897 ac_cv_prog_cc_c89=no
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2919 s = g (p, va_arg (v,int));
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
2927 as 'x'. The following induces an error, until -std is added to get
2928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
2930 that's true only with -std. */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934 inside strings and character constants. */
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 CC="$ac_save_CC $ac_arg"
2956 if ac_fn_c_try_compile "$LINENO"; then :
2957 ac_cv_prog_cc_c89=$ac_arg
2959 rm -f core conftest.err conftest.$ac_objext
2960 test "x$ac_cv_prog_cc_c89" != "xno" && break
2962 rm -f conftest.$ac_ext
2967 case "x$ac_cv_prog_cc_c89" in
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2970 $as_echo "none needed" >&6; } ;;
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2973 $as_echo "unsupported" >&6; } ;;
2975 CC="$CC $ac_cv_prog_cc_c89"
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2977 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2979 if test "x$ac_cv_prog_cc_c89" != xno; then :
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 if test -n "$ac_tool_prefix"; then
2990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_RANLIB+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$RANLIB"; then
2998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 RANLIB=$ac_cv_prog_RANLIB
3018 if test -n "$RANLIB"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3020 $as_echo "$RANLIB" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3028 if test -z "$ac_cv_prog_RANLIB"; then
3029 ac_ct_RANLIB=$RANLIB
3030 # Extract the first word of "ranlib", so it can be a program name with args.
3031 set dummy ranlib; ac_word=$2
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033 $as_echo_n "checking for $ac_word... " >&6; }
3034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3035 $as_echo_n "(cached) " >&6
3037 if test -n "$ac_ct_RANLIB"; then
3038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 ac_cv_prog_ac_ct_RANLIB="ranlib"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3058 if test -n "$ac_ct_RANLIB"; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3060 $as_echo "$ac_ct_RANLIB" >&6; }
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063 $as_echo "no" >&6; }
3066 if test "x$ac_ct_RANLIB" = x; then
3069 case $cross_compiling:$ac_tool_warned in
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3073 ac_tool_warned=yes ;;
3075 RANLIB=$ac_ct_RANLIB
3078 RANLIB="$ac_cv_prog_RANLIB"
3083 ac_cpp='$CPP $CPPFLAGS'
3084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3088 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3089 # On Suns, sometimes $CPP names a directory.
3090 if test -n "$CPP" && test -d "$CPP"; then
3093 if test -z "$CPP"; then
3094 if test "${ac_cv_prog_CPP+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3097 # Double quotes because CPP needs to be expanded
3098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3101 for ac_c_preproc_warn_flag in '' yes
3103 # Use a header file that comes with gcc, so configuring glibc
3104 # with a fresh cross-compiler works.
3105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106 # <limits.h> exists even on freestanding compilers.
3107 # On the NeXT, cc -E runs the code through the compiler's parser,
3108 # not just through cpp. "Syntax error" is here to catch this case.
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3112 # include <limits.h>
3114 # include <assert.h>
3118 if ac_fn_c_try_cpp "$LINENO"; then :
3121 # Broken: fails on valid input.
3124 rm -f conftest.err conftest.$ac_ext
3126 # OK, works on sane cases. Now check whether nonexistent headers
3127 # can be detected and how.
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3133 # Broken: success on invalid input.
3136 # Passes both tests.
3140 rm -f conftest.err conftest.$ac_ext
3143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144 rm -f conftest.err conftest.$ac_ext
3145 if $ac_preproc_ok; then :
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3158 $as_echo "$CPP" >&6; }
3160 for ac_c_preproc_warn_flag in '' yes
3162 # Use a header file that comes with gcc, so configuring glibc
3163 # with a fresh cross-compiler works.
3164 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3165 # <limits.h> exists even on freestanding compilers.
3166 # On the NeXT, cc -E runs the code through the compiler's parser,
3167 # not just through cpp. "Syntax error" is here to catch this case.
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3171 # include <limits.h>
3173 # include <assert.h>
3177 if ac_fn_c_try_cpp "$LINENO"; then :
3180 # Broken: fails on valid input.
3183 rm -f conftest.err conftest.$ac_ext
3185 # OK, works on sane cases. Now check whether nonexistent headers
3186 # can be detected and how.
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3189 #include <ac_nonexistent.h>
3191 if ac_fn_c_try_cpp "$LINENO"; then :
3192 # Broken: success on invalid input.
3195 # Passes both tests.
3199 rm -f conftest.err conftest.$ac_ext
3202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3203 rm -f conftest.err conftest.$ac_ext
3204 if $ac_preproc_ok; then :
3207 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." "$LINENO" 5; }
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3222 if test "${ac_cv_path_GREP+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3225 if test -z "$GREP"; then
3226 ac_path_GREP_found=false
3227 # Loop through the user's path and test for each of PROGNAME-LIST
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3232 test -z "$as_dir" && as_dir=.
3233 for ac_prog in grep ggrep; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3237 # Check for GNU ac_path_GREP and select it if it is found.
3238 # Check for GNU $ac_path_GREP
3239 case `"$ac_path_GREP" --version 2>&1` in
3241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3244 $as_echo_n 0123456789 >"conftest.in"
3247 cat "conftest.in" "conftest.in" >"conftest.tmp"
3248 mv "conftest.tmp" "conftest.in"
3249 cp "conftest.in" "conftest.nl"
3250 $as_echo 'GREP' >> "conftest.nl"
3251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3253 as_fn_arith $ac_count + 1 && ac_count=$as_val
3254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3255 # Best one so far, save it but keep looking for a better one
3256 ac_cv_path_GREP="$ac_path_GREP"
3257 ac_path_GREP_max=$ac_count
3259 # 10*(2^10) chars as input seems more than enough
3260 test $ac_count -gt 10 && break
3262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3265 $ac_path_GREP_found && break 3
3270 if test -z "$ac_cv_path_GREP"; then
3271 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3274 ac_cv_path_GREP=$GREP
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3279 $as_echo "$ac_cv_path_GREP" >&6; }
3280 GREP="$ac_cv_path_GREP"
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3284 $as_echo_n "checking for egrep... " >&6; }
3285 if test "${ac_cv_path_EGREP+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3289 then ac_cv_path_EGREP="$GREP -E"
3291 if test -z "$EGREP"; then
3292 ac_path_EGREP_found=false
3293 # Loop through the user's path and test for each of PROGNAME-LIST
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3298 test -z "$as_dir" && as_dir=.
3299 for ac_prog in egrep; do
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3303 # Check for GNU ac_path_EGREP and select it if it is found.
3304 # Check for GNU $ac_path_EGREP
3305 case `"$ac_path_EGREP" --version 2>&1` in
3307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3310 $as_echo_n 0123456789 >"conftest.in"
3313 cat "conftest.in" "conftest.in" >"conftest.tmp"
3314 mv "conftest.tmp" "conftest.in"
3315 cp "conftest.in" "conftest.nl"
3316 $as_echo 'EGREP' >> "conftest.nl"
3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3319 as_fn_arith $ac_count + 1 && ac_count=$as_val
3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321 # Best one so far, save it but keep looking for a better one
3322 ac_cv_path_EGREP="$ac_path_EGREP"
3323 ac_path_EGREP_max=$ac_count
3325 # 10*(2^10) chars as input seems more than enough
3326 test $ac_count -gt 10 && break
3328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3331 $ac_path_EGREP_found && break 3
3336 if test -z "$ac_cv_path_EGREP"; then
3337 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3340 ac_cv_path_EGREP=$EGREP
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3346 $as_echo "$ac_cv_path_EGREP" >&6; }
3347 EGREP="$ac_cv_path_EGREP"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3351 $as_echo_n "checking for ANSI C header files... " >&6; }
3352 if test "${ac_cv_header_stdc+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3370 if ac_fn_c_try_compile "$LINENO"; then :
3371 ac_cv_header_stdc=yes
3373 ac_cv_header_stdc=no
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 if test $ac_cv_header_stdc = yes; then
3378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 $EGREP "memchr" >/dev/null 2>&1; then :
3388 ac_cv_header_stdc=no
3394 if test $ac_cv_header_stdc = yes; then
3395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3402 $EGREP "free" >/dev/null 2>&1; then :
3405 ac_cv_header_stdc=no
3411 if test $ac_cv_header_stdc = yes; then
3412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3413 if test "$cross_compiling" = yes; then :
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424 # define ISLOWER(c) \
3425 (('a' <= (c) && (c) <= 'i') \
3426 || ('j' <= (c) && (c) <= 'r') \
3427 || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 for (i = 0; i < 256; i++)
3437 if (XOR (islower (i), ISLOWER (i))
3438 || toupper (i) != TOUPPER (i))
3443 if ac_fn_c_try_run "$LINENO"; then :
3446 ac_cv_header_stdc=no
3448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3449 conftest.$ac_objext conftest.beam conftest.$ac_ext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3455 $as_echo "$ac_cv_header_stdc" >&6; }
3456 if test $ac_cv_header_stdc = yes; then
3458 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3463 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3464 inttypes.h stdint.h unistd.h
3466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3467 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3469 eval as_val=\$$as_ac_Header
3470 if test "x$as_val" = x""yes; then :
3471 cat >>confdefs.h <<_ACEOF
3472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3481 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3482 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3489 if test "$MINIX" = yes; then
3491 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3494 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3497 $as_echo "#define _MINIX 1" >>confdefs.h
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3503 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3504 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3510 # define __EXTENSIONS__ 1
3511 $ac_includes_default
3520 if ac_fn_c_try_compile "$LINENO"; then :
3521 ac_cv_safe_to_define___extensions__=yes
3523 ac_cv_safe_to_define___extensions__=no
3525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3528 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3529 test $ac_cv_safe_to_define___extensions__ = yes &&
3530 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3532 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3534 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3536 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3538 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3544 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3545 for ac_t in install-sh install.sh shtool; do
3546 if test -f "$ac_dir/$ac_t"; then
3548 ac_install_sh="$ac_aux_dir/$ac_t -c"
3553 if test -z "$ac_aux_dir"; then
3554 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3557 # These three variables are undocumented and unsupported,
3558 # and are intended to be withdrawn in a future Autoconf release.
3559 # They can cause serious problems if a builder's source tree is in a directory
3560 # whose full name contains unusual characters.
3561 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3562 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3563 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3566 # Make sure we can run config.sub.
3567 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3568 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3571 $as_echo_n "checking build system type... " >&6; }
3572 if test "${ac_cv_build+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3575 ac_build_alias=$build_alias
3576 test "x$ac_build_alias" = x &&
3577 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3578 test "x$ac_build_alias" = x &&
3579 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3580 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3581 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3585 $as_echo "$ac_cv_build" >&6; }
3586 case $ac_cv_build in
3588 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3591 ac_save_IFS=$IFS; IFS='-'
3597 # Remember, the first character of IFS is used to create $*,
3598 # except with old shells:
3601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3605 $as_echo_n "checking host system type... " >&6; }
3606 if test "${ac_cv_host+set}" = set; then :
3607 $as_echo_n "(cached) " >&6
3609 if test "x$host_alias" = x; then
3610 ac_cv_host=$ac_cv_build
3612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3613 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3618 $as_echo "$ac_cv_host" >&6; }
3621 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3624 ac_save_IFS=$IFS; IFS='-'
3630 # Remember, the first character of IFS is used to create $*,
3631 # except with old shells:
3634 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3638 $as_echo_n "checking target system type... " >&6; }
3639 if test "${ac_cv_target+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 if test "x$target_alias" = x; then
3643 ac_cv_target=$ac_cv_host
3645 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3646 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3651 $as_echo "$ac_cv_target" >&6; }
3652 case $ac_cv_target in
3654 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3656 target=$ac_cv_target
3657 ac_save_IFS=$IFS; IFS='-'
3663 # Remember, the first character of IFS is used to create $*,
3664 # except with old shells:
3667 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3670 # The aliases save the names the user supplied, while $host etc.
3671 # will get canonicalized.
3672 test -n "$target_alias" &&
3673 test "$program_prefix$program_suffix$program_transform_name" = \
3675 program_prefix=${target_alias}-
3678 # Find a good install program. We prefer a C program (faster),
3679 # so one script is as good as another. But avoid the broken or
3680 # incompatible versions:
3681 # SysV /etc/install, /usr/sbin/install
3682 # SunOS /usr/etc/install
3683 # IRIX /sbin/install
3685 # AmigaOS /C/install, which installs bootblocks on floppy discs
3686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3689 # OS/2's system install, which has a completely different semantic
3690 # ./install, which can be erroneously created by make from ./install.sh.
3691 # Reject install programs that cannot install multiple files.
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3693 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3694 if test -z "$INSTALL"; then
3695 if test "${ac_cv_path_install+set}" = set; then :
3696 $as_echo_n "(cached) " >&6
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 # Account for people who put trailing slashes in PATH elements.
3704 case $as_dir/ in #((
3705 ./ | .// | /[cC]/* | \
3706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3710 # OSF1 and SCO ODT 3.0 have their own names for install.
3711 # Don't use installbsd from OSF since it installs stuff as root
3713 for ac_prog in ginstall scoinst install; do
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3716 if test $ac_prog = install &&
3717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # AIX install. It has an incompatible calling convention.
3720 elif test $ac_prog = install &&
3721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3722 # program-specific install script used by HP pwplus--don't use.
3725 rm -rf conftest.one conftest.two conftest.dir
3726 echo one > conftest.one
3727 echo two > conftest.two
3729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3730 test -s conftest.one && test -s conftest.two &&
3731 test -s conftest.dir/conftest.one &&
3732 test -s conftest.dir/conftest.two
3734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3747 rm -rf conftest.one conftest.two conftest.dir
3750 if test "${ac_cv_path_install+set}" = set; then
3751 INSTALL=$ac_cv_path_install
3753 # As a last resort, use the slow shell script. Don't cache a
3754 # value for INSTALL within a source directory, because that will
3755 # break other packages using the cache if that directory is
3756 # removed, or if the value is a relative name.
3757 INSTALL=$ac_install_sh
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3761 $as_echo "$INSTALL" >&6; }
3763 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3764 # It thinks the first close brace ends the variable substitution.
3765 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3767 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3769 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3772 test "$program_prefix" != NONE &&
3773 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3774 # Use a double $ so make ignores it.
3775 test "$program_suffix" != NONE &&
3776 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3777 # Double any \ or $.
3778 # By default was `s,x,x', remove it if useless.
3779 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3780 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3784 $as_echo_n "checking for ANSI C header files... " >&6; }
3785 if test "${ac_cv_header_stdc+set}" = set; then :
3786 $as_echo_n "(cached) " >&6
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3803 if ac_fn_c_try_compile "$LINENO"; then :
3804 ac_cv_header_stdc=yes
3806 ac_cv_header_stdc=no
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3810 if test $ac_cv_header_stdc = yes; then
3811 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3818 $EGREP "memchr" >/dev/null 2>&1; then :
3821 ac_cv_header_stdc=no
3827 if test $ac_cv_header_stdc = yes; then
3828 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 $EGREP "free" >/dev/null 2>&1; then :
3838 ac_cv_header_stdc=no
3844 if test $ac_cv_header_stdc = yes; then
3845 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3846 if test "$cross_compiling" = yes; then :
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3853 #if ((' ' & 0x0FF) == 0x020)
3854 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3855 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3857 # define ISLOWER(c) \
3858 (('a' <= (c) && (c) <= 'i') \
3859 || ('j' <= (c) && (c) <= 'r') \
3860 || ('s' <= (c) && (c) <= 'z'))
3861 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3864 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3869 for (i = 0; i < 256; i++)
3870 if (XOR (islower (i), ISLOWER (i))
3871 || toupper (i) != TOUPPER (i))
3876 if ac_fn_c_try_run "$LINENO"; then :
3879 ac_cv_header_stdc=no
3881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3882 conftest.$ac_objext conftest.beam conftest.$ac_ext
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3888 $as_echo "$ac_cv_header_stdc" >&6; }
3889 if test $ac_cv_header_stdc = yes; then
3891 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3896 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3897 # for constant arguments. Useless!
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
3899 $as_echo_n "checking for working alloca.h... " >&6; }
3900 if test "${ac_cv_working_alloca_h+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3909 char *p = (char *) alloca (2 * sizeof (int));
3915 if ac_fn_c_try_link "$LINENO"; then :
3916 ac_cv_working_alloca_h=yes
3918 ac_cv_working_alloca_h=no
3920 rm -f core conftest.err conftest.$ac_objext \
3921 conftest$ac_exeext conftest.$ac_ext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
3924 $as_echo "$ac_cv_working_alloca_h" >&6; }
3925 if test $ac_cv_working_alloca_h = yes; then
3927 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
3932 $as_echo_n "checking for alloca... " >&6; }
3933 if test "${ac_cv_func_alloca_works+set}" = set; then :
3934 $as_echo_n "(cached) " >&6
3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3937 /* end confdefs.h. */
3939 # define alloca __builtin_alloca
3942 # include <malloc.h>
3943 # define alloca _alloca
3945 # ifdef HAVE_ALLOCA_H
3946 # include <alloca.h>
3951 # ifndef alloca /* predefined by HP cc +Olibcalls */
3962 char *p = (char *) alloca (1);
3968 if ac_fn_c_try_link "$LINENO"; then :
3969 ac_cv_func_alloca_works=yes
3971 ac_cv_func_alloca_works=no
3973 rm -f core conftest.err conftest.$ac_objext \
3974 conftest$ac_exeext conftest.$ac_ext
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
3977 $as_echo "$ac_cv_func_alloca_works" >&6; }
3979 if test $ac_cv_func_alloca_works = yes; then
3981 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
3984 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3985 # that cause trouble. Some versions do not even contain alloca or
3986 # contain a buggy version. If you still want to use their alloca,
3987 # use ar to extract alloca.o from them instead of compiling alloca.c.
3989 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
3991 $as_echo "#define C_ALLOCA 1" >>confdefs.h
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
3995 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
3996 if test "${ac_cv_os_cray+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4001 #if defined CRAY && ! defined CRAY2
4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009 $EGREP "webecray" >/dev/null 2>&1; then :
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4018 $as_echo "$ac_cv_os_cray" >&6; }
4019 if test $ac_cv_os_cray = yes; then
4020 for ac_func in _getb67 GETB67 getb67; do
4021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4022 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4023 eval as_val=\$$as_ac_var
4024 if test "x$as_val" = x""yes; then :
4026 cat >>confdefs.h <<_ACEOF
4027 #define CRAY_STACKSEG_END $ac_func
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4037 $as_echo_n "checking stack direction for C alloca... " >&6; }
4038 if test "${ac_cv_c_stack_direction+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4041 if test "$cross_compiling" = yes; then :
4042 ac_cv_c_stack_direction=0
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 $ac_includes_default
4048 find_stack_direction ()
4050 static char *addr = 0;
4055 return find_stack_direction ();
4058 return (&dummy > addr) ? 1 : -1;
4064 return find_stack_direction () < 0;
4067 if ac_fn_c_try_run "$LINENO"; then :
4068 ac_cv_c_stack_direction=1
4070 ac_cv_c_stack_direction=-1
4072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4073 conftest.$ac_objext conftest.beam conftest.$ac_ext
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4078 $as_echo "$ac_cv_c_stack_direction" >&6; }
4079 cat >>confdefs.h <<_ACEOF
4080 #define STACK_DIRECTION $ac_cv_c_stack_direction
4086 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h
4088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4090 eval as_val=\$$as_ac_Header
4091 if test "x$as_val" = x""yes; then :
4092 cat >>confdefs.h <<_ACEOF
4093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4100 for ac_func in pread pwrite pread64
4102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4103 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4104 eval as_val=\$$as_ac_var
4105 if test "x$as_val" = x""yes; then :
4106 cat >>confdefs.h <<_ACEOF
4107 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4113 for ac_func in memmem vasprintf vsnprintf
4115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4117 eval as_val=\$$as_ac_var
4118 if test "x$as_val" = x""yes; then :
4119 cat >>confdefs.h <<_ACEOF
4120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4124 case " $LIBOBJS " in
4125 *" $ac_func.$ac_objext "* ) ;;
4126 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4140 # Check whether --with-ust was given.
4141 if test "${with_ust+set}" = set; then :
4146 # Check whether --with-ust_include was given.
4147 if test "${with_ust_include+set}" = set; then :
4148 withval=$with_ust_include;
4152 # Check whether --with-ust_lib was given.
4153 if test "${with_ust_lib+set}" = set; then :
4154 withval=$with_ust_lib;
4168 ustlibs="-L$with_ust/lib -lust"
4169 ustinc="-I$with_ust/include "
4172 if test "x$with_ust_include" != x; then
4173 ustinc="-I$with_ust_include "
4175 if test "x$with_ust_lib" != x; then
4176 ustlibs="-L$with_ust_lib -lust"
4179 if test "x$with_ust" != "xno"; then
4180 saved_CFLAGS="$CFLAGS"
4181 CFLAGS="$CFLAGS $ustinc"
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4183 $as_echo_n "checking for ust... " >&6; }
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4187 #define CONFIG_UST_GDB_INTEGRATION
4188 #include <ust/ust.h>
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4200 $as_echo "yes" >&6; };
4201 $as_echo "#define HAVE_UST 1" >>confdefs.h
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }; ustlibs= ; ustinc=
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 CFLAGS="$saved_CFLAGS"
4211 # Flags needed for UST
4215 # Check whether --enable-werror was given.
4216 if test "${enable_werror+set}" = set; then :
4217 enableval=$enable_werror; case "${enableval}" in
4218 yes | y) ERROR_ON_WARNING="yes" ;;
4219 no | n) ERROR_ON_WARNING="no" ;;
4220 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4225 # Enable -Werror by default when using gcc
4226 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4227 ERROR_ON_WARNING=yes
4231 if test "${ERROR_ON_WARNING}" = yes ; then
4232 WERROR_CFLAGS="-Werror"
4235 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4236 -Wformat-nonliteral -Wno-char-subscripts"
4239 if test "x$GCC" = xyes
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4242 $as_echo_n "checking compiler warning flags... " >&6; }
4243 # Separate out the -Werror flag as some files just cannot be
4244 # compiled with it enabled.
4245 for w in ${build_warnings}; do
4247 -Werr*) WERROR_CFLAGS=-Werror ;;
4248 *) # Check that GCC accepts it
4249 saved_CFLAGS="$CFLAGS"
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 WARN_CFLAGS="${WARN_CFLAGS} $w"
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 CFLAGS="$saved_CFLAGS"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4270 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4277 for ac_func in dladdr
4279 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
4280 if test "x$ac_cv_func_dladdr" = x""yes; then :
4281 cat >>confdefs.h <<_ACEOF
4282 #define HAVE_DLADDR 1
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4292 $as_echo_n "checking for errno... " >&6; }
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4302 static int x; x = errno;
4307 if ac_fn_c_try_link "$LINENO"; then :
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4309 $as_echo "yes - in errno.h" >&6; };
4310 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4313 rm -f core conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4315 if test $have_errno = no; then
4316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317 /* end confdefs.h. */
4325 extern int errno; static int x; x = errno;
4330 if ac_fn_c_try_link "$LINENO"; then :
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4332 $as_echo "yes - must define" >&6; };
4333 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4335 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4341 rm -f core conftest.err conftest.$ac_objext \
4342 conftest$ac_exeext conftest.$ac_ext
4345 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
4346 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
4352 cat >>confdefs.h <<_ACEOF
4353 #define HAVE_DECL_STRERROR $ac_have_decl
4355 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
4356 if test "x$ac_cv_have_decl_perror" = x""yes; then :
4362 cat >>confdefs.h <<_ACEOF
4363 #define HAVE_DECL_PERROR $ac_have_decl
4365 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4366 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4372 cat >>confdefs.h <<_ACEOF
4373 #define HAVE_DECL_MEMMEM $ac_have_decl
4375 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
4376 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
4382 cat >>confdefs.h <<_ACEOF
4383 #define HAVE_DECL_VASPRINTF $ac_have_decl
4385 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
4386 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
4392 cat >>confdefs.h <<_ACEOF
4393 #define HAVE_DECL_VSNPRINTF $ac_have_decl
4397 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4398 #include <sys/socket.h>
4401 if test "x$ac_cv_type_socklen_t" = x""yes; then :
4403 cat >>confdefs.h <<_ACEOF
4404 #define HAVE_SOCKLEN_T 1
4413 # Check whether --with-pkgversion was given.
4414 if test "${with_pkgversion+set}" = set; then :
4415 withval=$with_pkgversion; case "$withval" in
4416 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4418 *) PKGVERSION="($withval) " ;;
4429 # Check whether --with-bugurl was given.
4430 if test "${with_bugurl+set}" = set; then :
4431 withval=$with_bugurl; case "$withval" in
4432 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4435 *) BUGURL="$withval"
4439 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4449 REPORT_BUGS_TO="<$BUGURL>"
4450 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4457 cat >>confdefs.h <<_ACEOF
4458 #define PKGVERSION "$PKGVERSION"
4462 cat >>confdefs.h <<_ACEOF
4463 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4467 # Check for various supplementary target information (beyond the
4468 # triplet) which might affect the choices in configure.srv.
4470 i[34567]86-*-linux*)
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
4472 $as_echo_n "checking if building for x86-64... " >&6; }
4473 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4474 $as_echo_n "(cached) " >&6
4476 save_CPPFLAGS="$CPPFLAGS"
4477 CPPFLAGS="$CPPFLAGS $CFLAGS"
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "got it" >/dev/null 2>&1; then :
4488 gdb_cv_i386_is_x86_64=yes
4490 gdb_cv_i386_is_x86_64=no
4494 CPPFLAGS="$save_CPPFLAGS"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4497 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4501 $as_echo_n "checking if building for Coldfire... " >&6; }
4502 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4505 save_CPPFLAGS="$CPPFLAGS"
4506 CPPFLAGS="$CPPFLAGS $CFLAGS"
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 #ifdef __mcoldfire__
4515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516 $EGREP "got it" >/dev/null 2>&1; then :
4517 gdb_cv_m68k_is_coldfire=yes
4519 gdb_cv_m68k_is_coldfire=no
4523 CPPFLAGS="$save_CPPFLAGS"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4526 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
4530 . ${srcdir}/configure.srv
4532 if test "${srv_mingwce}" = "yes"; then
4534 elif test "${srv_mingw}" = "yes"; then
4535 LIBS="$LIBS -lws2_32"
4536 elif test "${srv_qnx}" = "yes"; then
4537 LIBS="$LIBS -lsocket"
4538 elif test "${srv_lynxos}" = "yes"; then
4539 LIBS="$LIBS -lnetinet"
4542 if test "${srv_mingw}" = "yes"; then
4544 $as_echo "#define USE_WIN32API 1" >>confdefs.h
4548 if test "${srv_linux_usrregs}" = "yes"; then
4550 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
4554 if test "${srv_linux_regsets}" = "yes"; then
4556 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4560 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4561 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4562 $as_echo_n "(cached) " >&6
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565 /* end confdefs.h. */
4566 #include <sys/ptrace.h>
4575 if ac_fn_c_try_compile "$LINENO"; then :
4576 gdbsrv_cv_have_ptrace_getregs=yes
4578 gdbsrv_cv_have_ptrace_getregs=no
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4584 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
4585 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
4587 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4592 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4593 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <sys/ptrace.h>
4607 if ac_fn_c_try_compile "$LINENO"; then :
4608 gdbsrv_cv_have_ptrace_getfpxregs=yes
4610 gdbsrv_cv_have_ptrace_getfpxregs=no
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4616 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
4617 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
4619 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
4624 if test "$ac_cv_header_sys_procfs_h" = yes; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4626 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4627 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4634 /* Needed for new procfs interface on sparc-solaris. */
4635 #define _STRUCTURED_PROC 1
4636 #include <sys/procfs.h>
4645 if ac_fn_c_try_compile "$LINENO"; then :
4646 bfd_cv_have_sys_procfs_type_lwpid_t=yes
4648 bfd_cv_have_sys_procfs_type_lwpid_t=no
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4656 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4660 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4663 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4664 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 /* Needed for new procfs interface on sparc-solaris. */
4672 #define _STRUCTURED_PROC 1
4673 #include <sys/procfs.h>
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 bfd_cv_have_sys_procfs_type_psaddr_t=yes
4685 bfd_cv_have_sys_procfs_type_psaddr_t=no
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4693 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4697 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4700 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4701 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4708 /* Needed for new procfs interface on sparc-solaris. */
4709 #define _STRUCTURED_PROC 1
4710 #include <sys/procfs.h>
4719 if ac_fn_c_try_compile "$LINENO"; then :
4720 bfd_cv_have_sys_procfs_type_prgregset_t=yes
4722 bfd_cv_have_sys_procfs_type_prgregset_t=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4730 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4734 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4737 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4738 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4745 /* Needed for new procfs interface on sparc-solaris. */
4746 #define _STRUCTURED_PROC 1
4747 #include <sys/procfs.h>
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
4759 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4767 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4771 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4777 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4781 ac_check_lib_save_LIBS=$LIBS
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4786 /* Override any GCC internal prototype to avoid an error.
4787 Use char because int might match the return type of a GCC
4788 builtin and then its argument prototype would still apply. */
4801 if ac_fn_c_try_link "$LINENO"; then :
4802 ac_cv_lib_dl_dlopen=yes
4804 ac_cv_lib_dl_dlopen=no
4806 rm -f core conftest.err conftest.$ac_objext \
4807 conftest$ac_exeext conftest.$ac_ext
4808 LIBS=$ac_check_lib_save_LIBS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4811 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4812 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
4813 cat >>confdefs.h <<_ACEOF
4814 #define HAVE_LIBDL 1
4823 srv_thread_depfiles=
4827 if test "$srv_linux_thread_db" = "yes"; then
4828 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
4831 $as_echo_n "checking for the dynamic export flag... " >&6; }
4832 old_LDFLAGS="$LDFLAGS"
4833 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
4835 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
4836 LDFLAGS="$LDFLAGS $RDYNAMIC"
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4848 if ac_fn_c_try_link "$LINENO"; then :
4849 found="-Wl,--dynamic-list"
4850 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
4852 RDYNAMIC="-rdynamic"
4853 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4865 if ac_fn_c_try_link "$LINENO"; then :
4871 rm -f core conftest.err conftest.$ac_objext \
4872 conftest$ac_exeext conftest.$ac_ext
4874 rm -f core conftest.err conftest.$ac_objext \
4875 conftest$ac_exeext conftest.$ac_ext
4877 LDFLAGS="$old_LDFLAGS"
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
4879 $as_echo "$found" >&6; }
4881 srv_libs="-lthread_db"
4884 srv_thread_depfiles="thread-db.o proc-service.o"
4885 USE_THREAD_DB="-DUSE_THREAD_DB"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4887 $as_echo_n "checking for TD_VERSION... " >&6; }
4888 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <thread_db.h>
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 gdbsrv_cv_have_td_version=yes
4905 gdbsrv_cv_have_td_version=no
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4910 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
4911 if test $gdbsrv_cv_have_td_version = yes; then
4913 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
4919 # Check whether --with-libthread-db was given.
4920 if test "${with_libthread_db+set}" = set; then :
4921 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
4922 srv_libs="$srv_libthread_db_path"
4927 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
4929 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4933 if test "$srv_xmlfiles" != ""; then
4934 srv_xmlbuiltin="xml-builtin.o"
4936 $as_echo "#define USE_XML 1" >>confdefs.h
4939 tmp_xmlfiles=$srv_xmlfiles
4941 for f in $tmp_xmlfiles; do
4942 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
4946 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4947 GDBSERVER_LIBS="$srv_libs"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
4950 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
4951 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4961 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
4966 if ac_fn_c_try_link "$LINENO"; then :
4967 gdbsrv_cv_have_sync_builtins=yes
4969 gdbsrv_cv_have_sync_builtins=no
4971 rm -f core conftest.err conftest.$ac_objext \
4972 conftest$ac_exeext conftest.$ac_ext
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
4975 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
4976 if test $gdbsrv_cv_have_sync_builtins = yes; then
4978 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
4982 saved_cflags="$CFLAGS"
4983 CFLAGS="$CFLAGS -fvisibility=hidden"
4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985 /* end confdefs.h. */
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 gdbsrv_cv_have_visibility_hidden=yes
4998 gdbsrv_cv_have_visibility_hidden=no
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5001 CFLAGS="$saved_cflags"
5007 # check whether to enable the inprocess agent
5008 if test "$ipa_obj" != "" \
5009 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5010 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5016 # Check whether --enable-inprocess-agent was given.
5017 if test "${enable_inprocess_agent+set}" = set; then :
5018 enableval=$enable_inprocess_agent; case "$enableval" in
5019 yes) want_ipa=true ;;
5020 no) want_ipa=false ;;
5021 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5030 IPA_DEPFILES="$ipa_obj"
5031 extra_libraries="$extra_libraries libinproctrace.so"
5033 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
5045 ac_config_files="$ac_config_files Makefile"
5047 ac_config_commands="$ac_config_commands default"
5049 cat >confcache <<\_ACEOF
5050 # This file is a shell script that caches the results of configure
5051 # tests run on this system so they can be shared between configure
5052 # scripts and configure runs, see configure's option --config-cache.
5053 # It is not useful on other systems. If it contains results you don't
5054 # want to keep, you may remove or edit it.
5056 # config.status only pays attention to the cache file if you give it
5057 # the --recheck option to rerun configure.
5059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5065 # The following way of writing the cache mishandles newlines in values,
5066 # but we know of no workaround that is simple, portable, and efficient.
5067 # So, we kill variables containing newlines.
5068 # Ultrix sh set writes to stderr and can't be redirected directly,
5069 # and sets the high bit in the cache file unless we assign to the vars.
5071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5072 eval ac_val=\$$ac_var
5076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5080 _ | IFS | as_nl) ;; #(
5081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5082 *) { eval $ac_var=; unset $ac_var;} ;;
5088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5089 *${as_nl}ac_space=\ *)
5090 # `set' does not quote correctly, so add quotes: double-quote
5091 # substitution turns \\\\ into \\, and sed turns \\ into \.
5094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5097 # `set' quotes correctly as required by POSIX, so do not add quotes.
5098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5112 if test -w "$cache_file"; then
5113 test "x$cache_file" != "x/dev/null" &&
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5115 $as_echo "$as_me: updating cache $cache_file" >&6;}
5116 cat confcache >$cache_file
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5119 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5124 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5125 # Let make expand exec_prefix.
5126 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5128 DEFS=-DHAVE_CONFIG_H
5132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5133 # 1. Remove the extension, and $U if already installed.
5134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5137 # will be set to the directory where LIBOBJS objects are built.
5138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5143 LTLIBOBJS=$ac_ltlibobjs
5147 : ${CONFIG_STATUS=./config.status}
5149 ac_clean_files_save=$ac_clean_files
5150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5156 # Generated by $as_me.
5157 # Run this file to recreate the current configuration.
5158 # Compiler output produced by configure, useful for debugging
5159 # configure, is in config.log if it exists.
5165 SHELL=\${CONFIG_SHELL-$SHELL}
5168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5169 ## -------------------- ##
5170 ## M4sh Initialization. ##
5171 ## -------------------- ##
5173 # Be more Bourne compatible
5174 DUALCASE=1; export DUALCASE # for MKS sh
5175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5179 # is contrary to our usage. Disable this feature.
5180 alias -g '${1+"$@"}'='"$@"'
5181 setopt NO_GLOB_SUBST
5183 case `(set -o) 2>/dev/null` in #(
5195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5199 # Prefer a ksh shell builtin over an external printf program on Solaris,
5200 # but without wasting forks for bash or zsh.
5201 if test -z "$BASH_VERSION$ZSH_VERSION" \
5202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5203 as_echo='print -r --'
5204 as_echo_n='print -rn --'
5205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5206 as_echo='printf %s\n'
5207 as_echo_n='printf %s'
5209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5211 as_echo_n='/usr/ucb/echo -n'
5213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5214 as_echo_n_body='eval
5218 expr "X$arg" : "X\\(.*\\)$as_nl";
5219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5223 export as_echo_n_body
5224 as_echo_n='sh -c $as_echo_n_body as_echo'
5227 as_echo='sh -c $as_echo_body as_echo'
5230 # The user is always right.
5231 if test "${PATH_SEPARATOR+set}" != set; then
5233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5241 # We need space, tab and new line, in precisely that order. Quoting is
5242 # there to prevent editors from complaining about space-tab.
5243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5244 # splitting by setting IFS to empty value.)
5247 # Find who we are. Look in the path if we contain no directory separator.
5249 *[\\/]* ) as_myself=$0 ;;
5250 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 test -z "$as_dir" && as_dir=.
5255 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5261 # We did not find ourselves, most probably we were run as `sh COMMAND'
5262 # in which case we are not to be found in the path.
5263 if test "x$as_myself" = x; then
5266 if test ! -f "$as_myself"; then
5267 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5271 # Unset variables that we do not need and which cause bugs (e.g. in
5272 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5273 # suppresses any "Segmentation fault" message there. '((' could
5274 # trigger a bug in pdksh 5.2.14.
5275 for as_var in BASH_ENV ENV MAIL MAILPATH
5276 do eval test x\${$as_var+set} = xset \
5277 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5293 # as_fn_error ERROR [LINENO LOG_FD]
5294 # ---------------------------------
5295 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5296 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5297 # script with status $?, using 1 if that was 0.
5300 as_status=$?; test $as_status -eq 0 && as_status=1
5302 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5303 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5305 $as_echo "$as_me: error: $1" >&2
5306 as_fn_exit $as_status
5310 # as_fn_set_status STATUS
5311 # -----------------------
5312 # Set $? to STATUS, without forking.
5316 } # as_fn_set_status
5320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5330 # Portably unset VAR.
5333 { eval $1=; unset $1;}
5335 as_unset=as_fn_unset
5336 # as_fn_append VAR VALUE
5337 # ----------------------
5338 # Append the text in VALUE to the end of the definition contained in VAR. Take
5339 # advantage of any shell optimizations that allow amortized linear growth over
5340 # repeated appends, instead of the typical quadratic growth present in naive
5342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5343 eval 'as_fn_append ()
5354 # as_fn_arith ARG...
5355 # ------------------
5356 # Perform arithmetic evaluation on the ARGs, and store the result in the
5357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5358 # must be portable across $(()) and expr.
5359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5360 eval 'as_fn_arith ()
5367 as_val=`expr "$@" || test $? -eq 1`
5372 if expr a : '\(a\)' >/dev/null 2>&1 &&
5373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5379 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5380 as_basename=basename
5385 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5391 as_me=`$as_basename -- "$0" ||
5392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5393 X"$0" : 'X\(//\)$' \| \
5394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5396 sed '/^.*\/\([^/][^/]*\)\/*$/{
5410 # Avoid depending upon Character Ranges.
5411 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5412 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5413 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5414 as_cr_digits='0123456789'
5415 as_cr_alnum=$as_cr_Letters$as_cr_digits
5417 ECHO_C= ECHO_N= ECHO_T=
5418 case `echo -n x` in #(((((
5420 case `echo 'xy\c'` in
5421 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5423 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5430 rm -f conf$$ conf$$.exe conf$$.file
5431 if test -d conf$$.dir; then
5432 rm -f conf$$.dir/conf$$.file
5435 mkdir conf$$.dir 2>/dev/null
5437 if (echo >conf$$.file) 2>/dev/null; then
5438 if ln -s conf$$.file conf$$ 2>/dev/null; then
5440 # ... but there are two gotchas:
5441 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5442 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5443 # In both cases, we have to default to `cp -p'.
5444 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5446 elif ln conf$$.file conf$$ 2>/dev/null; then
5454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5455 rmdir conf$$.dir 2>/dev/null
5460 # Create "$as_dir" as a directory, including parents if necessary.
5465 -*) as_dir=./$as_dir;;
5467 test -d "$as_dir" || eval $as_mkdir_p || {
5471 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5472 *) as_qdir=$as_dir;;
5474 as_dirs="'$as_qdir' $as_dirs"
5475 as_dir=`$as_dirname -- "$as_dir" ||
5476 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5477 X"$as_dir" : 'X\(//\)[^/]' \| \
5478 X"$as_dir" : 'X\(//\)$' \| \
5479 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5480 $as_echo X"$as_dir" |
5481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5498 test -d "$as_dir" && break
5500 test -z "$as_dirs" || eval "mkdir $as_dirs"
5501 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5505 if mkdir -p . 2>/dev/null; then
5506 as_mkdir_p='mkdir -p "$as_dir"'
5508 test -d ./-p && rmdir ./-p
5512 if test -x / >/dev/null 2>&1; then
5515 if ls -dL / >/dev/null 2>&1; then
5522 if test -d "$1"; then
5528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5529 ???[sx]*):;;*)false;;esac;fi
5533 as_executable_p=$as_test_x
5535 # Sed expression to map a string onto a valid CPP name.
5536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5538 # Sed expression to map a string onto a valid variable name.
5539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5543 ## ----------------------------------- ##
5544 ## Main body of $CONFIG_STATUS script. ##
5545 ## ----------------------------------- ##
5547 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5550 # Save the log message, to keep $0 and so on meaningful, and to
5551 # report actual input values of CONFIG_FILES etc. instead of their
5552 # values after options handling.
5554 This file was extended by $as_me, which was
5555 generated by GNU Autoconf 2.64. Invocation command line was
5557 CONFIG_FILES = $CONFIG_FILES
5558 CONFIG_HEADERS = $CONFIG_HEADERS
5559 CONFIG_LINKS = $CONFIG_LINKS
5560 CONFIG_COMMANDS = $CONFIG_COMMANDS
5563 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5568 case $ac_config_files in *"
5569 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5572 case $ac_config_headers in *"
5573 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5578 # Files that config.status was made for.
5579 config_files="$ac_config_files"
5580 config_headers="$ac_config_headers"
5581 config_commands="$ac_config_commands"
5585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5587 \`$as_me' instantiates files and other configuration actions
5588 from templates according to the current configuration. Unless the files
5589 and actions are specified as TAGs, all are instantiated by default.
5591 Usage: $0 [OPTION]... [TAG]...
5593 -h, --help print this help, then exit
5594 -V, --version print version number and configuration settings, then exit
5595 -q, --quiet, --silent
5596 do not print progress messages
5597 -d, --debug don't remove temporary files
5598 --recheck update $as_me by reconfiguring in the same conditions
5599 --file=FILE[:TEMPLATE]
5600 instantiate the configuration file FILE
5601 --header=FILE[:TEMPLATE]
5602 instantiate the configuration header FILE
5604 Configuration files:
5607 Configuration headers:
5610 Configuration commands:
5613 Report bugs to the package provider."
5616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5619 configured by $0, generated by GNU Autoconf 2.64,
5620 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5622 Copyright (C) 2009 Free Software Foundation, Inc.
5623 This config.status script is free software; the Free Software Foundation
5624 gives unlimited permission to copy, distribute and modify it."
5629 test -n "\$AWK" || AWK=awk
5632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5633 # The default lists apply if the user does not specify any file.
5639 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5640 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5651 # Handling of the options.
5652 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5654 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5655 $as_echo "$ac_cs_version"; exit ;;
5656 --debug | --debu | --deb | --de | --d | -d )
5658 --file | --fil | --fi | --f )
5661 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5663 as_fn_append CONFIG_FILES " '$ac_optarg'"
5664 ac_need_defaults=false;;
5665 --header | --heade | --head | --hea )
5668 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5670 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5671 ac_need_defaults=false;;
5673 # Conflict between --help and --header
5674 as_fn_error "ambiguous option: \`$1'
5675 Try \`$0 --help' for more information.";;
5676 --help | --hel | -h )
5677 $as_echo "$ac_cs_usage"; exit ;;
5678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5679 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5683 -*) as_fn_error "unrecognized option: \`$1'
5684 Try \`$0 --help' for more information." ;;
5686 *) as_fn_append ac_config_targets " $1"
5687 ac_need_defaults=false ;;
5693 ac_configure_extra_args=
5695 if $ac_cs_silent; then
5697 ac_configure_extra_args="$ac_configure_extra_args --silent"
5701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5702 if \$ac_cs_recheck; then
5703 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5705 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5706 CONFIG_SHELL='$SHELL'
5712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5717 ## Running $as_me. ##
5723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5728 # Handling of arguments.
5729 for ac_config_target in $ac_config_targets
5731 case $ac_config_target in
5732 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
5733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5734 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
5736 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5741 # If the user did not use the arguments to specify the items to instantiate,
5742 # then the envvar interface is used. Set only those that are not.
5743 # We use the long form for the default assignment because of an extremely
5744 # bizarre bug on SunOS 4.1.3.
5745 if $ac_need_defaults; then
5746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5751 # Have a temporary directory for convenience. Make it in the build tree
5752 # simply because there is no reason against having it here, and in addition,
5753 # creating and moving files from /tmp can sometimes cause problems.
5754 # Hook for its removal unless debugging.
5755 # Note that there is a small window in which the directory will not be cleaned:
5756 # after its creation but before its name has been assigned to `$tmp'.
5760 trap 'exit_status=$?
5761 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5763 trap 'as_fn_exit 1' 1 2 13 15
5765 # Create a (secure) tmp directory for tmp files.
5768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5769 test -n "$tmp" && test -d "$tmp"
5772 tmp=./conf$$-$RANDOM
5773 (umask 077 && mkdir "$tmp")
5774 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5776 # Set up the scripts for CONFIG_FILES section.
5777 # No need to generate them if there are no CONFIG_FILES.
5778 # This happens for instance with `./config.status config.h'.
5779 if test -n "$CONFIG_FILES"; then
5782 ac_cr=`echo X | tr X '\015'`
5783 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5784 # But we know of no other shell where ac_cr would be empty at this
5785 # point, so we can use a bashism as a fallback.
5786 if test "x$ac_cr" = x; then
5787 eval ac_cr=\$\'\\r\'
5789 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5790 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5796 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5801 echo "cat >conf$$subs.awk <<_ACEOF" &&
5802 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5805 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5806 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5808 for ac_last_try in false false false false false :; do
5809 . ./conf$$subs.sh ||
5810 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5812 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5813 if test $ac_delim_n = $ac_delim_num; then
5815 elif $ac_last_try; then
5816 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5824 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5828 s/^/S["/; s/!.*/"]=/
5838 s/\(.\{148\}\).*/\1/
5840 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5845 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5852 s/\(.\{148\}\).*/\1/
5854 s/["\\]/\\&/g; s/^/"/; s/$/"/
5858 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5863 ' <conf$$subs.awk | sed '
5868 ' >>$CONFIG_STATUS || ac_write_fail=1
5869 rm -f conf$$subs.awk
5870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5872 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5873 for (key in S) S_is_set[key] = 1
5879 nfields = split(line, field, "@")
5881 len = length(field[1])
5882 for (i = 2; i < nfields; i++) {
5884 keylen = length(key)
5885 if (S_is_set[key]) {
5887 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5888 len += length(value) + length(field[++i])
5899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5900 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5901 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5904 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5905 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5910 # trailing colons and then remove the whole line if VPATH becomes empty
5911 # (actually we leave an empty line to preserve line numbers).
5912 if test "x$srcdir" = x.; then
5913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5917 s/^\([^=]*=[ ]*\):*/\1/
5923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5924 fi # test -n "$CONFIG_FILES"
5926 # Set up the scripts for CONFIG_HEADERS section.
5927 # No need to generate them if there are no CONFIG_HEADERS.
5928 # This happens for instance with `./config.status Makefile'.
5929 if test -n "$CONFIG_HEADERS"; then
5930 cat >"$tmp/defines.awk" <<\_ACAWK ||
5934 # Transform confdefs.h into an awk script `defines.awk', embedded as
5935 # here-document in config.status, that substitutes the proper values into
5936 # config.h.in to produce config.h.
5938 # Create a delimiter string that does not exist in confdefs.h, to ease
5939 # handling of long lines.
5941 for ac_last_try in false false :; do
5942 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5943 if test -z "$ac_t"; then
5945 elif $ac_last_try; then
5946 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5952 # For the awk script, D is an array of macro values keyed by name,
5953 # likewise P contains macro parameters if any. Preserve backslash
5954 # newline sequences.
5956 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5958 s/.\{148\}/&'"$ac_delim"'/g
5961 s/^[ ]*#[ ]*define[ ][ ]*/ /
5968 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
5974 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
5975 D["\1"]=" \3\\\\\\n"\\/p
5977 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5982 s/.\{148\}/&'"$ac_delim"'/g
5987 s/["\\]/\\&/g; s/^/"/; s/$/"/p
5990 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5992 ' <confdefs.h | sed '
5993 s/'"$ac_delim"'/"\\\
5994 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5997 for (key in D) D_is_set[key] = 1
6000 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6002 split(line, arg, " ")
6003 if (arg[1] == "#") {
6007 defundef = substr(arg[1], 2)
6010 split(mac1, mac2, "(") #)
6012 prefix = substr(line, 1, index(line, defundef) - 1)
6013 if (D_is_set[macro]) {
6014 # Preserve the white space surrounding the "#".
6015 print prefix "define", macro P[macro] D[macro]
6018 # Replace #undef with comments. This is necessary, for example,
6019 # in the case of _POSIX_SOURCE, which is predefined and required
6020 # on some systems where configure will not decide to define it.
6021 if (defundef == "undef") {
6022 print "/*", prefix defundef, macro, "*/"
6030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6031 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6032 fi # test -n "$CONFIG_HEADERS"
6035 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6040 :[FHLC]) ac_mode=$ac_tag; continue;;
6042 case $ac_mode$ac_tag in
6044 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6045 :[FH]-) ac_tag=-:-;;
6046 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6063 -) ac_f="$tmp/stdin";;
6064 *) # Look for the file first in the build tree, then in the source tree
6065 # (if the path is not absolute). The absolute path cannot be DOS-style,
6066 # because $ac_f cannot contain `:'.
6070 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6072 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6074 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6075 as_fn_append ac_file_inputs " '$ac_f'"
6078 # Let's still pretend it is `configure' which instantiates (i.e., don't
6079 # use $as_me), people would be surprised to read:
6080 # /* config.h. Generated by config.status. */
6081 configure_input='Generated from '`
6082 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6084 if test x"$ac_file" != x-; then
6085 configure_input="$ac_file. $configure_input"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6087 $as_echo "$as_me: creating $ac_file" >&6;}
6089 # Neutralize special characters interpreted by sed in replacement strings.
6090 case $configure_input in #(
6091 *\&* | *\|* | *\\* )
6092 ac_sed_conf_input=`$as_echo "$configure_input" |
6093 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6094 *) ac_sed_conf_input=$configure_input;;
6098 *:-:* | *:-) cat >"$tmp/stdin" \
6099 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6104 ac_dir=`$as_dirname -- "$ac_file" ||
6105 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6106 X"$ac_file" : 'X\(//\)[^/]' \| \
6107 X"$ac_file" : 'X\(//\)$' \| \
6108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6109 $as_echo X"$ac_file" |
6110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6127 as_dir="$ac_dir"; as_fn_mkdir_p
6131 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6133 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6134 # A ".." for each directory in $ac_dir_suffix.
6135 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6136 case $ac_top_builddir_sub in
6137 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6138 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6141 ac_abs_top_builddir=$ac_pwd
6142 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6143 # for backward compatibility:
6144 ac_top_builddir=$ac_top_build_prefix
6147 .) # We are building in place.
6149 ac_top_srcdir=$ac_top_builddir_sub
6150 ac_abs_top_srcdir=$ac_pwd ;;
6151 [\\/]* | ?:[\\/]* ) # Absolute name.
6152 ac_srcdir=$srcdir$ac_dir_suffix;
6153 ac_top_srcdir=$srcdir
6154 ac_abs_top_srcdir=$srcdir ;;
6156 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6157 ac_top_srcdir=$ac_top_build_prefix$srcdir
6158 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6160 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6170 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6171 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6176 # If the template does not know about datarootdir, expand it.
6177 # FIXME: This hack should be removed a few years after 2.60.
6178 ac_datarootdir_hack=; ac_datarootdir_seen=
6189 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6190 *datarootdir*) ac_datarootdir_seen=yes;;
6191 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6193 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6196 ac_datarootdir_hack='
6197 s&@datadir@&$datadir&g
6198 s&@docdir@&$docdir&g
6199 s&@infodir@&$infodir&g
6200 s&@localedir@&$localedir&g
6201 s&@mandir@&$mandir&g
6202 s&\\\${datarootdir}&$datarootdir&g' ;;
6206 # Neutralize VPATH when `$srcdir' = `.'.
6207 # Shell code in configure.ac might set extrasub.
6208 # FIXME: do we really want to maintain this feature?
6209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6210 ac_sed_extra="$ac_vpsub
6213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6216 s|@configure_input@|$ac_sed_conf_input|;t t
6217 s&@top_builddir@&$ac_top_builddir_sub&;t t
6218 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6219 s&@srcdir@&$ac_srcdir&;t t
6220 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6221 s&@top_srcdir@&$ac_top_srcdir&;t t
6222 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6223 s&@builddir@&$ac_builddir&;t t
6224 s&@abs_builddir@&$ac_abs_builddir&;t t
6225 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6226 s&@INSTALL@&$ac_INSTALL&;t t
6227 $ac_datarootdir_hack
6229 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6230 || as_fn_error "could not create $ac_file" "$LINENO" 5
6232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6233 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6236 which seems to be undefined. Please make sure it is defined." >&5
6237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6238 which seems to be undefined. Please make sure it is defined." >&2;}
6242 -) cat "$tmp/out" && rm -f "$tmp/out";;
6243 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6245 || as_fn_error "could not create $ac_file" "$LINENO" 5
6251 if test x"$ac_file" != x-; then
6253 $as_echo "/* $configure_input */" \
6254 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6255 } >"$tmp/config.h" \
6256 || as_fn_error "could not create $ac_file" "$LINENO" 5
6257 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6262 mv "$tmp/config.h" "$ac_file" \
6263 || as_fn_error "could not create $ac_file" "$LINENO" 5
6266 $as_echo "/* $configure_input */" \
6267 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6268 || as_fn_error "could not create -" "$LINENO" 5
6272 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6273 $as_echo "$as_me: executing $ac_file commands" >&6;}
6278 case $ac_file$ac_mode in
6279 "default":C) case x$CONFIG_HEADERS in
6280 xconfig.h:config.in)
6291 ac_clean_files=$ac_clean_files_save
6293 test $ac_write_fail = 0 ||
6294 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6297 # configure is writing to config.log, and then calls config.status.
6298 # config.status does its own redirection, appending to config.log.
6299 # Unfortunately, on DOS this fails, as config.log is still kept open
6300 # by configure, so config.status won't be able to write to it; its
6301 # output is simply discarded. So we exec the FD to /dev/null,
6302 # effectively closing config.log, so it can be properly (re)opened and
6303 # appended to by config.status. When coming back to configure, we
6304 # need to make the FD available again.
6305 if test "$no_create" != yes; then
6307 ac_config_status_args=
6308 test "$silent" = yes &&
6309 ac_config_status_args="$ac_config_status_args --quiet"
6311 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6313 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6314 # would make configure fail if this is the last instruction.
6315 $ac_cs_success || as_fn_exit $?
6317 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6319 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}