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 # Factoring default headers for most tests.
556 ac_includes_default="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars='LTLIBOBJS
645 MAINTAINER_MODE_FALSE
674 program_transform_name
687 enable_option_checking
688 enable_maintainer_mode
697 enable_inprocess_agent
699 ac_precious_vars='build_alias
710 # Initialize some variables set by options.
712 ac_init_version=false
713 ac_unrecognized_opts=
715 # The variables have the same names as the options, with
716 # dashes changed to underlines.
724 program_transform_name=s,x,x,
732 # Installation directory options.
733 # These are left unexpanded so users can "make install exec_prefix=/foo"
734 # and all the variables that are supposed to be based on exec_prefix
735 # by default will actually change.
736 # Use braces instead of parens because sh, perl, etc. also accept them.
737 # (The list follows the same order as the GNU Coding Standards.)
738 bindir='${exec_prefix}/bin'
739 sbindir='${exec_prefix}/sbin'
740 libexecdir='${exec_prefix}/libexec'
741 datarootdir='${prefix}/share'
742 datadir='${datarootdir}'
743 sysconfdir='${prefix}/etc'
744 sharedstatedir='${prefix}/com'
745 localstatedir='${prefix}/var'
746 includedir='${prefix}/include'
747 oldincludedir='/usr/include'
748 docdir='${datarootdir}/doc/${PACKAGE}'
749 infodir='${datarootdir}/info'
754 libdir='${exec_prefix}/lib'
755 localedir='${datarootdir}/locale'
756 mandir='${datarootdir}/man'
762 # If the previous option needs an argument, assign it.
763 if test -n "$ac_prev"; then
764 eval $ac_prev=\$ac_option
770 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
774 # Accept the important Cygnus configure options, so we can diagnose typos.
776 case $ac_dashdash$ac_option in
780 -bindir | --bindir | --bindi | --bind | --bin | --bi)
782 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
785 -build | --build | --buil | --bui | --bu)
786 ac_prev=build_alias ;;
787 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
788 build_alias=$ac_optarg ;;
790 -cache-file | --cache-file | --cache-fil | --cache-fi \
791 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
792 ac_prev=cache_file ;;
793 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
794 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
795 cache_file=$ac_optarg ;;
798 cache_file=config.cache ;;
800 -datadir | --datadir | --datadi | --datad)
802 -datadir=* | --datadir=* | --datadi=* | --datad=*)
803 datadir=$ac_optarg ;;
805 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
806 | --dataroo | --dataro | --datar)
807 ac_prev=datarootdir ;;
808 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
809 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
810 datarootdir=$ac_optarg ;;
812 -disable-* | --disable-*)
813 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
814 # Reject names that are not valid shell variable names.
815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
816 as_fn_error "invalid feature name: $ac_useropt"
817 ac_useropt_orig=$ac_useropt
818 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
819 case $ac_user_opts in
823 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
824 ac_unrecognized_sep=', ';;
826 eval enable_$ac_useropt=no ;;
828 -docdir | --docdir | --docdi | --doc | --do)
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
838 -enable-* | --enable-*)
839 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
842 as_fn_error "invalid feature name: $ac_useropt"
843 ac_useropt_orig=$ac_useropt
844 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
845 case $ac_user_opts in
849 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
850 ac_unrecognized_sep=', ';;
852 eval enable_$ac_useropt=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
867 -help | --help | --hel | --he | -h)
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
927 # Obsolete; use --without-fp.
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
988 -psdir | --psdir | --psdi | --psd | --ps)
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1016 -site=* | --site=* | --sit=*)
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1043 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid package name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1056 eval with_$ac_useropt=\$ac_optarg ;;
1058 -without-* | --without-*)
1059 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1062 as_fn_error "invalid package name: $ac_useropt"
1063 ac_useropt_orig=$ac_useropt
1064 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1069 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1070 ac_unrecognized_sep=', ';;
1072 eval with_$ac_useropt=no ;;
1075 # Obsolete; use --with-x.
1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079 | --x-incl | --x-inc | --x-in | --x-i)
1080 ac_prev=x_includes ;;
1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083 x_includes=$ac_optarg ;;
1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087 ac_prev=x_libraries ;;
1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090 x_libraries=$ac_optarg ;;
1092 -*) as_fn_error "unrecognized option: \`$ac_option'
1093 Try \`$0 --help' for more information."
1097 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1098 # Reject names that are not valid shell variable names.
1099 case $ac_envvar in #(
1100 '' | [0-9]* | *[!_$as_cr_alnum]* )
1101 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1103 eval $ac_envvar=\$ac_optarg
1104 export $ac_envvar ;;
1107 # FIXME: should be removed in autoconf 3.0.
1108 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 if test -n "$ac_prev"; then
1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119 as_fn_error "missing argument to $ac_option"
1122 if test -n "$ac_unrecognized_opts"; then
1123 case $enable_option_checking in
1125 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1126 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1130 # Check all directory arguments for consistency.
1131 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1132 datadir sysconfdir sharedstatedir localstatedir includedir \
1133 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1134 libdir localedir mandir
1136 eval ac_val=\$$ac_var
1137 # Remove trailing slashes.
1140 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1141 eval $ac_var=\$ac_val;;
1143 # Be sure to have absolute directory names.
1145 [\\/$]* | ?:[\\/]* ) continue;;
1146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1151 # There might be people who depend on the old broken behavior: `$host'
1152 # used to hold the argument of --host etc.
1153 # FIXME: To remove some day.
1156 target=$target_alias
1158 # FIXME: To remove some day.
1159 if test "x$host_alias" != x; then
1160 if test "x$build_alias" = x; then
1161 cross_compiling=maybe
1162 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1163 If a cross compiler is detected then cross compile mode will be used." >&2
1164 elif test "x$build_alias" != "x$host_alias"; then
1170 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1172 test "$silent" = yes && exec 6>/dev/null
1175 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1176 ac_ls_di=`ls -di .` &&
1177 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1178 as_fn_error "working directory cannot be determined"
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 as_fn_error "pwd does not report name of working directory"
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$as_myself" ||
1188 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$as_myself" : 'X\(//\)[^/]' \| \
1190 X"$as_myself" : 'X\(//\)$' \| \
1191 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1192 $as_echo X"$as_myself" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1221 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1225 # When building in place, set srcdir=.
1226 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 # Remove unnecessary trailing slashes from srcdir.
1230 # Double slashes in file names in object file debugging info
1231 # mess up M-x gdb in Emacs.
1233 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1235 for ac_var in $ac_precious_vars; do
1236 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_env_${ac_var}_value=\$${ac_var}
1238 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 # Report the --help message.
1245 if test "$ac_init_help" = "long"; then
1246 # Omit some internal or obsolete options to make the list less imposing.
1247 # This message is too long to be a string in the A/UX 3.1 sh.
1249 \`configure' configures this package to adapt to many kinds of systems.
1251 Usage: $0 [OPTION]... [VAR=VALUE]...
1253 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1254 VAR=VALUE. See below for descriptions of some of the useful variables.
1256 Defaults for the options are specified in brackets.
1259 -h, --help display this help and exit
1260 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages
1264 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1269 Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 By default, \`make install' will install all the files in
1276 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278 for instance \`--prefix=\$HOME'.
1280 For better control, use the options below.
1282 Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR]
1307 --program-prefix=PREFIX prepend PREFIX to installed program names
1308 --program-suffix=SUFFIX append SUFFIX to installed program names
1309 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 --target=TARGET configure for building compilers for TARGET [HOST]
1318 if test -n "$ac_init_help"; then
1323 --disable-option-checking ignore unrecognized --enable/--with options
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-maintainer-mode enable make rules and dependencies not useful
1327 (and sometimes confusing) to the casual installer
1328 --disable-largefile omit support for large files
1329 --enable-werror treat compile warnings as errors
1330 --enable-inprocess-agent
1334 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1335 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1336 --with-ust=PATH Specify prefix directory for the installed UST package
1337 Equivalent to --with-ust-include=PATH/include
1338 plus --with-ust-lib=PATH/lib
1339 --with-ust-include=PATH Specify directory for installed UST include files
1340 --with-ust-lib=PATH Specify the directory for the installed UST library
1341 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1342 --with-bugurl=URL Direct users to URL to report a bug
1343 --with-libthread-db=PATH
1344 use given libthread_db directly
1346 Some influential environment variables:
1347 CC C compiler command
1348 CFLAGS C compiler flags
1349 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1350 nonstandard directory <lib dir>
1351 LIBS libraries to pass to the linker, e.g. -l<library>
1352 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353 you have headers in a nonstandard directory <include dir>
1356 Use these variables to override the choices made by `configure' or to help
1357 it to find libraries and programs with nonstandard names/locations.
1359 Report bugs to the package provider.
1364 if test "$ac_init_help" = "recursive"; then
1365 # If there are subdirs, report their specific --help.
1366 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1367 test -d "$ac_dir" ||
1368 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1389 .) # We are building in place.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1413 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1423 generated by GNU Autoconf 2.64
1425 Copyright (C) 2009 Free Software Foundation, Inc.
1426 This configure script is free software; the Free Software Foundation
1427 gives unlimited permission to copy, distribute and modify it.
1432 ## ------------------------ ##
1433 ## Autoconf initialization. ##
1434 ## ------------------------ ##
1436 # ac_fn_c_try_compile LINENO
1437 # --------------------------
1438 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1439 ac_fn_c_try_compile ()
1441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1442 rm -f conftest.$ac_objext
1443 if { { ac_try="$ac_compile"
1445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1446 *) ac_try_echo=$ac_try;;
1448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1449 $as_echo "$ac_try_echo"; } >&5
1450 (eval "$ac_compile") 2>conftest.err
1452 if test -s conftest.err; then
1453 grep -v '^ *+' conftest.err >conftest.er1
1454 cat conftest.er1 >&5
1455 mv -f conftest.er1 conftest.err
1457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1458 test $ac_status = 0; } && {
1459 test -z "$ac_c_werror_flag" ||
1460 test ! -s conftest.err
1461 } && test -s conftest.$ac_objext; then :
1464 $as_echo "$as_me: failed program was:" >&5
1465 sed 's/^/| /' conftest.$ac_ext >&5
1469 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1472 } # ac_fn_c_try_compile
1474 # ac_fn_c_try_cpp LINENO
1475 # ----------------------
1476 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1480 if { { ac_try="$ac_cpp conftest.$ac_ext"
1482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1483 *) ac_try_echo=$ac_try;;
1485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1486 $as_echo "$ac_try_echo"; } >&5
1487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1489 if test -s conftest.err; then
1490 grep -v '^ *+' conftest.err >conftest.er1
1491 cat conftest.er1 >&5
1492 mv -f conftest.er1 conftest.err
1494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1495 test $ac_status = 0; } >/dev/null && {
1496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1497 test ! -s conftest.err
1501 $as_echo "$as_me: failed program was:" >&5
1502 sed 's/^/| /' conftest.$ac_ext >&5
1506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1511 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1512 # -------------------------------------------------------
1513 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1514 # the include files in INCLUDES and setting the cache variable VAR
1516 ac_fn_c_check_header_mongrel ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1521 $as_echo_n "checking for $2... " >&6; }
1522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1523 $as_echo_n "(cached) " >&6
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1527 $as_echo "$ac_res" >&6; }
1529 # Is the header compilable?
1530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1531 $as_echo_n "checking $2 usability... " >&6; }
1532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1533 /* end confdefs.h. */
1537 if ac_fn_c_try_compile "$LINENO"; then :
1538 ac_header_compiler=yes
1540 ac_header_compiler=no
1542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1544 $as_echo "$ac_header_compiler" >&6; }
1546 # Is the header present?
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1548 $as_echo_n "checking $2 presence... " >&6; }
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h. */
1553 if ac_fn_c_try_cpp "$LINENO"; then :
1554 ac_header_preproc=yes
1556 ac_header_preproc=no
1558 rm -f conftest.err conftest.$ac_ext
1559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1560 $as_echo "$ac_header_preproc" >&6; }
1562 # So? What about this header?
1563 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1566 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1568 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1572 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1574 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1576 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1578 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1580 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1584 $as_echo_n "checking for $2... " >&6; }
1585 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1586 $as_echo_n "(cached) " >&6
1588 eval "$3=\$ac_header_compiler"
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1592 $as_echo "$ac_res" >&6; }
1594 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596 } # ac_fn_c_check_header_mongrel
1598 # ac_fn_c_try_run LINENO
1599 # ----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601 # that executables *can* be run.
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_link"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>&5
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616 { { case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_try") 2>&5
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; }; }; then :
1628 $as_echo "$as_me: program exited with status $ac_status" >&5
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=$ac_status
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1650 $as_echo_n "(cached) " >&6
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1657 if ac_fn_c_try_compile "$LINENO"; then :
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 } # ac_fn_c_check_header_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 $as_test_x conftest$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 } # ac_fn_c_try_link
1717 # ac_fn_c_check_func LINENO FUNC VAR
1718 # ----------------------------------
1719 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1720 ac_fn_c_check_func ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1726 $as_echo_n "(cached) " >&6
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1732 #define $2 innocuous_$2
1734 /* System header to define __stub macros and hopefully few prototypes,
1735 which can conflict with char $2 (); below.
1736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1737 <limits.h> exists even on freestanding compilers. */
1740 # include <limits.h>
1742 # include <assert.h>
1747 /* Override any GCC internal prototype to avoid an error.
1748 Use char because int might match the return type of a GCC
1749 builtin and then its argument prototype would still apply. */
1754 /* The GNU C library defines this for functions which it implements
1755 to always fail with ENOSYS. Some functions are actually named
1756 something starting with __ and the normal name is an alias. */
1757 #if defined __stub_$2 || defined __stub___$2
1769 if ac_fn_c_try_link "$LINENO"; then :
1774 rm -f core conftest.err conftest.$ac_objext \
1775 conftest$ac_exeext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 } # ac_fn_c_check_func
1784 # ac_fn_c_check_decl LINENO SYMBOL VAR
1785 # ------------------------------------
1786 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1787 ac_fn_c_check_decl ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 as_decl_name=`echo $2|sed 's/ *(.*//'`
1791 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1793 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1794 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1795 $as_echo_n "(cached) " >&6
1797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1798 /* end confdefs.h. */
1803 #ifndef $as_decl_name
1805 (void) $as_decl_use;
1807 (void) $as_decl_name;
1815 if ac_fn_c_try_compile "$LINENO"; then :
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1824 $as_echo "$ac_res" >&6; }
1825 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 } # ac_fn_c_check_decl
1829 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1830 # -------------------------------------------
1831 # Tests whether TYPE exists after having included INCLUDES, setting cache
1832 # variable VAR accordingly.
1833 ac_fn_c_check_type ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h. */
1867 if ac_fn_c_try_compile "$LINENO"; then :
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 } # ac_fn_c_check_type
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1886 It was created by $as_me, which was
1887 generated by GNU Autoconf 2.64. Invocation command line was
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 $as_echo "PATH: $as_dir"
1939 # Keep a trace of the command line.
1940 # Strip out --no-create and --no-recursion so they do not pile up.
1941 # Strip out --silent because we don't want to record it for future runs.
1942 # Also quote any args containing shell meta-characters.
1943 # Make two passes to allow for proper duplicate-argument suppression.
1947 ac_must_keep_next=false
1953 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1955 | -silent | --silent | --silen | --sile | --sil)
1958 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1963 as_fn_append ac_configure_args1 " '$ac_arg'"
1964 if test $ac_must_keep_next = true; then
1965 ac_must_keep_next=false # Got value, back to normal.
1968 *=* | --config-cache | -C | -disable-* | --disable-* \
1969 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1970 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1971 | -with-* | --with-* | -without-* | --without-* | --x)
1972 case "$ac_configure_args0 " in
1973 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1976 -* ) ac_must_keep_next=true ;;
1979 as_fn_append ac_configure_args " '$ac_arg'"
1984 { ac_configure_args0=; unset ac_configure_args0;}
1985 { ac_configure_args1=; unset ac_configure_args1;}
1987 # When interrupted or exit'd, cleanup temporary files, and complete
1988 # config.log. We remove comments because anyway the quotes in there
1989 # would cause problems or look ugly.
1990 # WARNING: Use '\'' to represent an apostrophe within the trap.
1991 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1992 trap 'exit_status=$?
1993 # Save into config.log some information that might help in debugging.
1998 ## ---------------- ##
1999 ## Cache variables. ##
2000 ## ---------------- ##
2003 # The following way of writing the cache mishandles newlines in values,
2005 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2006 eval ac_val=\$$ac_var
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2014 _ | IFS | as_nl) ;; #(
2015 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2016 *) { eval $ac_var=; unset $ac_var;} ;;
2021 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2022 *${as_nl}ac_space=\ *)
2024 "s/'\''/'\''\\\\'\'''\''/g;
2025 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2028 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2036 ## ----------------- ##
2037 ## Output variables. ##
2038 ## ----------------- ##
2041 for ac_var in $ac_subst_vars
2043 eval ac_val=\$$ac_var
2045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 $as_echo "$ac_var='\''$ac_val'\''"
2051 if test -n "$ac_subst_files"; then
2053 ## ------------------- ##
2054 ## File substitutions. ##
2055 ## ------------------- ##
2058 for ac_var in $ac_subst_files
2060 eval ac_val=\$$ac_var
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 $as_echo "$ac_var='\''$ac_val'\''"
2069 if test -s confdefs.h; then
2079 test "$ac_signal" != 0 &&
2080 $as_echo "$as_me: caught signal $ac_signal"
2081 $as_echo "$as_me: exit $exit_status"
2083 rm -f core *.core core.conftest.* &&
2084 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087 for ac_signal in 1 2 13 15; do
2088 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2092 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2093 rm -f -r conftest* confdefs.h
2095 $as_echo "/* confdefs.h */" > confdefs.h
2097 # Predefined preprocessor variables.
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_NAME "$PACKAGE_NAME"
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2111 cat >>confdefs.h <<_ACEOF
2112 #define PACKAGE_STRING "$PACKAGE_STRING"
2115 cat >>confdefs.h <<_ACEOF
2116 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119 cat >>confdefs.h <<_ACEOF
2120 #define PACKAGE_URL "$PACKAGE_URL"
2124 # Let the site file select an alternate cache file if it wants to.
2125 # Prefer an explicitly selected file to automatically selected ones.
2128 if test -n "$CONFIG_SITE"; then
2129 ac_site_file1=$CONFIG_SITE
2130 elif test "x$prefix" != xNONE; then
2131 ac_site_file1=$prefix/share/config.site
2132 ac_site_file2=$prefix/etc/config.site
2134 ac_site_file1=$ac_default_prefix/share/config.site
2135 ac_site_file2=$ac_default_prefix/etc/config.site
2137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139 test "x$ac_site_file" = xNONE && continue
2140 if test -r "$ac_site_file"; then
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2143 sed 's/^/| /' "$ac_site_file" >&5
2148 if test -r "$cache_file"; then
2149 # Some versions of bash will fail to source /dev/null (special
2150 # files actually), so we avoid doing that.
2151 if test -f "$cache_file"; then
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2153 $as_echo "$as_me: loading cache $cache_file" >&6;}
2155 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2156 *) . "./$cache_file";;
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2161 $as_echo "$as_me: creating cache $cache_file" >&6;}
2165 # Check that the precious variables saved in the cache have kept the same
2167 ac_cache_corrupted=false
2168 for ac_var in $ac_precious_vars; do
2169 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2170 eval ac_new_set=\$ac_env_${ac_var}_set
2171 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2172 eval ac_new_val=\$ac_env_${ac_var}_value
2173 case $ac_old_set,$ac_new_set in
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2180 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2181 ac_cache_corrupted=: ;;
2184 if test "x$ac_old_val" != "x$ac_new_val"; then
2185 # differences in whitespace do not lead to failure.
2186 ac_old_val_w=`echo x $ac_old_val`
2187 ac_new_val_w=`echo x $ac_new_val`
2188 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2190 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2191 ac_cache_corrupted=:
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2194 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2195 eval $ac_var=\$ac_old_val
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2198 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2200 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2203 # Pass precious variables to config.status.
2204 if test "$ac_new_set" = set; then
2206 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 *) ac_arg=$ac_var=$ac_new_val ;;
2209 case " $ac_configure_args " in
2210 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2211 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2215 if $ac_cache_corrupted; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2217 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2219 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2220 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2222 ## -------------------- ##
2223 ## Main body of script. ##
2224 ## -------------------- ##
2227 ac_cpp='$CPP $CPPFLAGS'
2228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236 ac_config_headers="$ac_config_headers config.h:config.in"
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2241 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2242 # Check whether --enable-maintainer-mode was given.
2243 if test "${enable_maintainer_mode+set}" = set; then :
2244 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2246 USE_MAINTAINER_MODE=no
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2250 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2251 if test $USE_MAINTAINER_MODE = yes; then
2252 MAINTAINER_MODE_TRUE=
2253 MAINTAINER_MODE_FALSE='#'
2255 MAINTAINER_MODE_TRUE='#'
2256 MAINTAINER_MODE_FALSE=
2259 MAINT=$MAINTAINER_MODE_TRUE
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test -n "$CC"; then
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2302 $as_echo "no" >&6; }
2307 if test -z "$ac_cv_prog_CC"; then
2309 # Extract the first word of "gcc", so it can be a program name with args.
2310 set dummy gcc; ac_word=$2
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$ac_ct_CC"; then
2317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_ac_ct_CC="gcc"
2327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2339 $as_echo "$ac_ct_CC" >&6; }
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342 $as_echo "no" >&6; }
2345 if test "x$ac_ct_CC" = x; then
2348 case $cross_compiling:$ac_tool_warned in
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2352 ac_tool_warned=yes ;;
2360 if test -z "$CC"; then
2361 if test -n "$ac_tool_prefix"; then
2362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2363 set dummy ${ac_tool_prefix}cc; ac_word=$2
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2365 $as_echo_n "checking for $ac_word... " >&6; }
2366 if test "${ac_cv_prog_CC+set}" = set; then :
2367 $as_echo_n "(cached) " >&6
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
2378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2379 ac_cv_prog_CC="${ac_tool_prefix}cc"
2380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390 if test -n "$CC"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2392 $as_echo "$CC" >&6; }
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2395 $as_echo "no" >&6; }
2401 if test -z "$CC"; then
2402 # Extract the first word of "cc", so it can be a program name with args.
2403 set dummy cc; ac_word=$2
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405 $as_echo_n "checking for $ac_word... " >&6; }
2406 if test "${ac_cv_prog_CC+set}" = set; then :
2407 $as_echo_n "(cached) " >&6
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2421 ac_prog_rejected=yes
2425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 if test $ac_prog_rejected = yes; then
2433 # We found a bogon in the path, so make sure we never use it.
2434 set dummy $ac_cv_prog_CC
2436 if test $# != 0; then
2437 # We chose a different compiler from the bogus one.
2438 # However, it has the same basename, so the bogon will be chosen
2439 # first if we set CC to just the basename; use the full file name.
2441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2447 if test -n "$CC"; then
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2449 $as_echo "$CC" >&6; }
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2452 $as_echo "no" >&6; }
2457 if test -z "$CC"; then
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in cl.exe
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_CC+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
2468 if test -n "$CC"; then
2469 ac_cv_prog_CC="$CC" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 if test -n "$CC"; then
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2491 $as_echo "$CC" >&6; }
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2494 $as_echo "no" >&6; }
2498 test -n "$CC" && break
2501 if test -z "$CC"; then
2503 for ac_prog in cl.exe
2505 # Extract the first word of "$ac_prog", so it can be a program name with args.
2506 set dummy $ac_prog; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$ac_ct_CC"; then
2513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_ac_ct_CC="$ac_prog"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2533 if test -n "$ac_ct_CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2535 $as_echo "$ac_ct_CC" >&6; }
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2542 test -n "$ac_ct_CC" && break
2545 if test "x$ac_ct_CC" = x; then
2548 case $cross_compiling:$ac_tool_warned in
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2552 ac_tool_warned=yes ;;
2561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2563 as_fn_error "no acceptable C compiler found in \$PATH
2564 See \`config.log' for more details." "$LINENO" 5; }
2566 # Provide some information about the compiler.
2567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2570 for ac_option in --version -v -V -qversion; do
2571 { { ac_try="$ac_compiler $ac_option >&5"
2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574 *) ac_try_echo=$ac_try;;
2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2577 $as_echo "$ac_try_echo"; } >&5
2578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2580 if test -s conftest.err; then
2582 ... rest of stderr output deleted ...
2583 10q' conftest.err >conftest.er1
2584 cat conftest.er1 >&5
2585 rm -f conftest.er1 conftest.err
2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2588 test $ac_status = 0; }
2591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h. */
2602 ac_clean_files_save=$ac_clean_files
2603 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2604 # Try to create an executable without -o first, disregard a.out.
2605 # It will help us diagnose broken compilers, and finding out an intuition
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2608 $as_echo_n "checking for C compiler default output file name... " >&6; }
2609 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2611 # The possible output files:
2612 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2615 for ac_file in $ac_files
2618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2624 if { { ac_try="$ac_link_default"
2626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627 *) ac_try_echo=$ac_try;;
2629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2630 $as_echo "$ac_try_echo"; } >&5
2631 (eval "$ac_link_default") 2>&5
2633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2634 test $ac_status = 0; }; then :
2635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2638 # so that the user can short-circuit this test for compilers unknown to
2640 for ac_file in $ac_files ''
2642 test -f "$ac_file" || continue
2644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2647 # We found the default executable, but exeext='' is most
2651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2655 # We set ac_cv_exeext here because the later test for it is not
2656 # safe: cross compilers may not add the suffix if given an `-o'
2657 # argument, so we may need to know it at that point already.
2658 # Even if this section looks crufty: it has the advantage of
2665 test "$ac_cv_exeext" = no && ac_cv_exeext=
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2671 $as_echo "$ac_file" >&6; }
2672 if test -z "$ac_file"; then :
2673 $as_echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2678 { as_fn_set_status 77
2679 as_fn_error "C compiler cannot create executables
2680 See \`config.log' for more details." "$LINENO" 5; }; }
2682 ac_exeext=$ac_cv_exeext
2684 # Check that the compiler produces executables we can run. If not, either
2685 # the compiler is broken, or we cross compile.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2687 $as_echo_n "checking whether the C compiler works... " >&6; }
2688 # If not cross compiling, check that we can run a simple program.
2689 if test "$cross_compiling" != yes; then
2690 if { ac_try='./$ac_file'
2691 { { case "(($ac_try" in
2692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2693 *) ac_try_echo=$ac_try;;
2695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2696 $as_echo "$ac_try_echo"; } >&5
2697 (eval "$ac_try") 2>&5
2699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700 test $ac_status = 0; }; }; then
2703 if test "$cross_compiling" = maybe; then
2706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error "cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." "$LINENO" 5; }
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715 $as_echo "yes" >&6; }
2717 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2718 ac_clean_files=$ac_clean_files_save
2719 # Check that the compiler produces executables we can run. If not, either
2720 # the compiler is broken, or we cross compile.
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2722 $as_echo_n "checking whether we are cross compiling... " >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2724 $as_echo "$cross_compiling" >&6; }
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2727 $as_echo_n "checking for suffix of executables... " >&6; }
2728 if { { ac_try="$ac_link"
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2734 $as_echo "$ac_try_echo"; } >&5
2735 (eval "$ac_link") 2>&5
2737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738 test $ac_status = 0; }; then :
2739 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2740 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2741 # work properly (i.e., refer to `conftest.exe'), while it won't with
2743 for ac_file in conftest.exe conftest conftest.*; do
2744 test -f "$ac_file" || continue
2746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2747 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 as_fn_error "cannot compute suffix of executables: cannot compile and link
2756 See \`config.log' for more details." "$LINENO" 5; }
2758 rm -f conftest$ac_cv_exeext
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2760 $as_echo "$ac_cv_exeext" >&6; }
2762 rm -f conftest.$ac_ext
2763 EXEEXT=$ac_cv_exeext
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2766 $as_echo_n "checking for suffix of object files... " >&6; }
2767 if test "${ac_cv_objext+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2781 rm -f conftest.o conftest.obj
2782 if { { ac_try="$ac_compile"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2788 $as_echo "$ac_try_echo"; } >&5
2789 (eval "$ac_compile") 2>&5
2791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2792 test $ac_status = 0; }; then :
2793 for ac_file in conftest.o conftest.obj conftest.*; do
2794 test -f "$ac_file" || continue;
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2797 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2802 $as_echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 as_fn_error "cannot compute suffix of object files: cannot compile
2808 See \`config.log' for more details." "$LINENO" 5; }
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2813 $as_echo "$ac_cv_objext" >&6; }
2814 OBJEXT=$ac_cv_objext
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2817 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2818 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2819 $as_echo_n "(cached) " >&6
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2835 if ac_fn_c_try_compile "$LINENO"; then :
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2845 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2846 if test $ac_compiler_gnu = yes; then
2851 ac_test_CFLAGS=${CFLAGS+set}
2852 ac_save_CFLAGS=$CFLAGS
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2854 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2855 if test "${ac_cv_prog_cc_g+set}" = set; then :
2856 $as_echo_n "(cached) " >&6
2858 ac_save_c_werror_flag=$ac_c_werror_flag
2859 ac_c_werror_flag=yes
2862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2863 /* end confdefs.h. */
2873 if ac_fn_c_try_compile "$LINENO"; then :
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2888 if ac_fn_c_try_compile "$LINENO"; then :
2891 ac_c_werror_flag=$ac_save_c_werror_flag
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2904 if ac_fn_c_try_compile "$LINENO"; then :
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2915 $as_echo "$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917 CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919 if test "$GCC" = yes; then
2925 if test "$GCC" = yes; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2932 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2933 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2934 $as_echo_n "(cached) " >&6
2936 ac_cv_prog_cc_c89=no
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2942 #include <sys/types.h>
2943 #include <sys/stat.h>
2944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2945 struct buf { int x; };
2946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947 static char *e (p, i)
2953 static char *f (char * (*g) (char **, int), char **p, ...)
2958 s = g (p, va_arg (v,int));
2963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2964 function prototypes and stuff, but not '\xHH' hex character constants.
2965 These don't provoke an error unfortunately, instead are silently treated
2966 as 'x'. The following induces an error, until -std is added to get
2967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2968 array size at least. It's necessary to write '\x00'==0 to get something
2969 that's true only with -std. */
2970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973 inside strings and character constants. */
2975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2977 int test (int i, double x);
2978 struct s1 {int (*f) (int a);};
2979 struct s2 {int (*f) (double a);};
2980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2986 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2994 CC="$ac_save_CC $ac_arg"
2995 if ac_fn_c_try_compile "$LINENO"; then :
2996 ac_cv_prog_cc_c89=$ac_arg
2998 rm -f core conftest.err conftest.$ac_objext
2999 test "x$ac_cv_prog_cc_c89" != "xno" && break
3001 rm -f conftest.$ac_ext
3006 case "x$ac_cv_prog_cc_c89" in
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3009 $as_echo "none needed" >&6; } ;;
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3012 $as_echo "unsupported" >&6; } ;;
3014 CC="$CC $ac_cv_prog_cc_c89"
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3016 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3018 if test "x$ac_cv_prog_cc_c89" != xno; then :
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3036 # On Suns, sometimes $CPP names a directory.
3037 if test -n "$CPP" && test -d "$CPP"; then
3040 if test -z "$CPP"; then
3041 if test "${ac_cv_prog_CPP+set}" = set; then :
3042 $as_echo_n "(cached) " >&6
3044 # Double quotes because CPP needs to be expanded
3045 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3048 for ac_c_preproc_warn_flag in '' yes
3050 # Use a header file that comes with gcc, so configuring glibc
3051 # with a fresh cross-compiler works.
3052 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3053 # <limits.h> exists even on freestanding compilers.
3054 # On the NeXT, cc -E runs the code through the compiler's parser,
3055 # not just through cpp. "Syntax error" is here to catch this case.
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3059 # include <limits.h>
3061 # include <assert.h>
3065 if ac_fn_c_try_cpp "$LINENO"; then :
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether nonexistent headers
3074 # can be detected and how.
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3079 if ac_fn_c_try_cpp "$LINENO"; then :
3080 # Broken: success on invalid input.
3083 # Passes both tests.
3087 rm -f conftest.err conftest.$ac_ext
3090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3091 rm -f conftest.err conftest.$ac_ext
3092 if $ac_preproc_ok; then :
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3105 $as_echo "$CPP" >&6; }
3107 for ac_c_preproc_warn_flag in '' yes
3109 # Use a header file that comes with gcc, so configuring glibc
3110 # with a fresh cross-compiler works.
3111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3112 # <limits.h> exists even on freestanding compilers.
3113 # On the NeXT, cc -E runs the code through the compiler's parser,
3114 # not just through cpp. "Syntax error" is here to catch this case.
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3118 # include <limits.h>
3120 # include <assert.h>
3124 if ac_fn_c_try_cpp "$LINENO"; then :
3127 # Broken: fails on valid input.
3130 rm -f conftest.err conftest.$ac_ext
3132 # OK, works on sane cases. Now check whether nonexistent headers
3133 # can be detected and how.
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3136 #include <ac_nonexistent.h>
3138 if ac_fn_c_try_cpp "$LINENO"; then :
3139 # Broken: success on invalid input.
3142 # Passes both tests.
3146 rm -f conftest.err conftest.$ac_ext
3149 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150 rm -f conftest.err conftest.$ac_ext
3151 if $ac_preproc_ok; then :
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3157 See \`config.log' for more details." "$LINENO" 5; }
3161 ac_cpp='$CPP $CPPFLAGS'
3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3168 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3169 if test "${ac_cv_path_GREP+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3172 if test -z "$GREP"; then
3173 ac_path_GREP_found=false
3174 # Loop through the user's path and test for each of PROGNAME-LIST
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3179 test -z "$as_dir" && as_dir=.
3180 for ac_prog in grep ggrep; do
3181 for ac_exec_ext in '' $ac_executable_extensions; do
3182 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3184 # Check for GNU ac_path_GREP and select it if it is found.
3185 # Check for GNU $ac_path_GREP
3186 case `"$ac_path_GREP" --version 2>&1` in
3188 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3191 $as_echo_n 0123456789 >"conftest.in"
3194 cat "conftest.in" "conftest.in" >"conftest.tmp"
3195 mv "conftest.tmp" "conftest.in"
3196 cp "conftest.in" "conftest.nl"
3197 $as_echo 'GREP' >> "conftest.nl"
3198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3200 as_fn_arith $ac_count + 1 && ac_count=$as_val
3201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3202 # Best one so far, save it but keep looking for a better one
3203 ac_cv_path_GREP="$ac_path_GREP"
3204 ac_path_GREP_max=$ac_count
3206 # 10*(2^10) chars as input seems more than enough
3207 test $ac_count -gt 10 && break
3209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3212 $ac_path_GREP_found && break 3
3217 if test -z "$ac_cv_path_GREP"; then
3218 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3221 ac_cv_path_GREP=$GREP
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3226 $as_echo "$ac_cv_path_GREP" >&6; }
3227 GREP="$ac_cv_path_GREP"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3231 $as_echo_n "checking for egrep... " >&6; }
3232 if test "${ac_cv_path_EGREP+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3236 then ac_cv_path_EGREP="$GREP -E"
3238 if test -z "$EGREP"; then
3239 ac_path_EGREP_found=false
3240 # Loop through the user's path and test for each of PROGNAME-LIST
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3245 test -z "$as_dir" && as_dir=.
3246 for ac_prog in egrep; do
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3250 # Check for GNU ac_path_EGREP and select it if it is found.
3251 # Check for GNU $ac_path_EGREP
3252 case `"$ac_path_EGREP" --version 2>&1` in
3254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3257 $as_echo_n 0123456789 >"conftest.in"
3260 cat "conftest.in" "conftest.in" >"conftest.tmp"
3261 mv "conftest.tmp" "conftest.in"
3262 cp "conftest.in" "conftest.nl"
3263 $as_echo 'EGREP' >> "conftest.nl"
3264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3266 as_fn_arith $ac_count + 1 && ac_count=$as_val
3267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3268 # Best one so far, save it but keep looking for a better one
3269 ac_cv_path_EGREP="$ac_path_EGREP"
3270 ac_path_EGREP_max=$ac_count
3272 # 10*(2^10) chars as input seems more than enough
3273 test $ac_count -gt 10 && break
3275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3278 $ac_path_EGREP_found && break 3
3283 if test -z "$ac_cv_path_EGREP"; then
3284 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3287 ac_cv_path_EGREP=$EGREP
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3293 $as_echo "$ac_cv_path_EGREP" >&6; }
3294 EGREP="$ac_cv_path_EGREP"
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3298 $as_echo_n "checking for ANSI C header files... " >&6; }
3299 if test "${ac_cv_header_stdc+set}" = set; then :
3300 $as_echo_n "(cached) " >&6
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318 ac_cv_header_stdc=yes
3320 ac_cv_header_stdc=no
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 if test $ac_cv_header_stdc = yes; then
3325 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3332 $EGREP "memchr" >/dev/null 2>&1; then :
3335 ac_cv_header_stdc=no
3341 if test $ac_cv_header_stdc = yes; then
3342 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3344 /* end confdefs.h. */
3348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3349 $EGREP "free" >/dev/null 2>&1; then :
3352 ac_cv_header_stdc=no
3358 if test $ac_cv_header_stdc = yes; then
3359 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3360 if test "$cross_compiling" = yes; then :
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 #if ((' ' & 0x0FF) == 0x020)
3368 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3369 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3371 # define ISLOWER(c) \
3372 (('a' <= (c) && (c) <= 'i') \
3373 || ('j' <= (c) && (c) <= 'r') \
3374 || ('s' <= (c) && (c) <= 'z'))
3375 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3378 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3383 for (i = 0; i < 256; i++)
3384 if (XOR (islower (i), ISLOWER (i))
3385 || toupper (i) != TOUPPER (i))
3390 if ac_fn_c_try_run "$LINENO"; then :
3393 ac_cv_header_stdc=no
3395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3396 conftest.$ac_objext conftest.beam conftest.$ac_ext
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3402 $as_echo "$ac_cv_header_stdc" >&6; }
3403 if test $ac_cv_header_stdc = yes; then
3405 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3409 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3410 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3411 inttypes.h stdint.h unistd.h
3413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3416 eval as_val=\$$as_ac_Header
3417 if test "x$as_val" = x""yes; then :
3418 cat >>confdefs.h <<_ACEOF
3419 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3428 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3429 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3436 if test "$MINIX" = yes; then
3438 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3441 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3444 $as_echo "#define _MINIX 1" >>confdefs.h
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3450 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3451 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3457 # define __EXTENSIONS__ 1
3458 $ac_includes_default
3467 if ac_fn_c_try_compile "$LINENO"; then :
3468 ac_cv_safe_to_define___extensions__=yes
3470 ac_cv_safe_to_define___extensions__=no
3472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3475 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3476 test $ac_cv_safe_to_define___extensions__ = yes &&
3477 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3479 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3481 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3483 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3485 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3489 # Check whether --enable-largefile was given.
3490 if test "${enable_largefile+set}" = set; then :
3491 enableval=$enable_largefile;
3494 if test "$enable_largefile" != no; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3497 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3498 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3501 ac_cv_sys_largefile_CC=no
3502 if test "$GCC" != yes; then
3505 # IRIX 6.2 and later do not support large files by default,
3506 # so use the C compiler's -n32 option if that helps.
3507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h. */
3509 #include <sys/types.h>
3510 /* Check that off_t can represent 2**63 - 1 correctly.
3511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3512 since some C++ compilers masquerading as C compilers
3513 incorrectly reject 9223372036854775807. */
3514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3516 && LARGE_OFF_T % 2147483647 == 1)
3526 if ac_fn_c_try_compile "$LINENO"; then :
3529 rm -f core conftest.err conftest.$ac_objext
3531 if ac_fn_c_try_compile "$LINENO"; then :
3532 ac_cv_sys_largefile_CC=' -n32'; break
3534 rm -f core conftest.err conftest.$ac_objext
3538 rm -f conftest.$ac_ext
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3542 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3543 if test "$ac_cv_sys_largefile_CC" != no; then
3544 CC=$CC$ac_cv_sys_largefile_CC
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3548 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3549 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <sys/types.h>
3556 /* Check that off_t can represent 2**63 - 1 correctly.
3557 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3558 since some C++ compilers masquerading as C compilers
3559 incorrectly reject 9223372036854775807. */
3560 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3561 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3562 && LARGE_OFF_T % 2147483647 == 1)
3572 if ac_fn_c_try_compile "$LINENO"; then :
3573 ac_cv_sys_file_offset_bits=no; break
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3578 #define _FILE_OFFSET_BITS 64
3579 #include <sys/types.h>
3580 /* Check that off_t can represent 2**63 - 1 correctly.
3581 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3582 since some C++ compilers masquerading as C compilers
3583 incorrectly reject 9223372036854775807. */
3584 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3585 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3586 && LARGE_OFF_T % 2147483647 == 1)
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_cv_sys_file_offset_bits=64; break
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 ac_cv_sys_file_offset_bits=unknown
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3605 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3606 case $ac_cv_sys_file_offset_bits in #(
3609 cat >>confdefs.h <<_ACEOF
3610 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3615 if test $ac_cv_sys_file_offset_bits = unknown; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3617 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3618 if test "${ac_cv_sys_large_files+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <sys/types.h>
3625 /* Check that off_t can represent 2**63 - 1 correctly.
3626 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3627 since some C++ compilers masquerading as C compilers
3628 incorrectly reject 9223372036854775807. */
3629 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3630 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3631 && LARGE_OFF_T % 2147483647 == 1)
3641 if ac_fn_c_try_compile "$LINENO"; then :
3642 ac_cv_sys_large_files=no; break
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647 #define _LARGE_FILES 1
3648 #include <sys/types.h>
3649 /* Check that off_t can represent 2**63 - 1 correctly.
3650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3651 since some C++ compilers masquerading as C compilers
3652 incorrectly reject 9223372036854775807. */
3653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3655 && LARGE_OFF_T % 2147483647 == 1)
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_cv_sys_large_files=1; break
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 ac_cv_sys_large_files=unknown
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3674 $as_echo "$ac_cv_sys_large_files" >&6; }
3675 case $ac_cv_sys_large_files in #(
3678 cat >>confdefs.h <<_ACEOF
3679 #define _LARGE_FILES $ac_cv_sys_large_files
3689 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3690 for ac_t in install-sh install.sh shtool; do
3691 if test -f "$ac_dir/$ac_t"; then
3693 ac_install_sh="$ac_aux_dir/$ac_t -c"
3698 if test -z "$ac_aux_dir"; then
3699 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3702 # These three variables are undocumented and unsupported,
3703 # and are intended to be withdrawn in a future Autoconf release.
3704 # They can cause serious problems if a builder's source tree is in a directory
3705 # whose full name contains unusual characters.
3706 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3707 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3708 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3711 # Make sure we can run config.sub.
3712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3713 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3716 $as_echo_n "checking build system type... " >&6; }
3717 if test "${ac_cv_build+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3720 ac_build_alias=$build_alias
3721 test "x$ac_build_alias" = x &&
3722 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3723 test "x$ac_build_alias" = x &&
3724 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3725 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3726 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3730 $as_echo "$ac_cv_build" >&6; }
3731 case $ac_cv_build in
3733 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3736 ac_save_IFS=$IFS; IFS='-'
3742 # Remember, the first character of IFS is used to create $*,
3743 # except with old shells:
3746 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3750 $as_echo_n "checking host system type... " >&6; }
3751 if test "${ac_cv_host+set}" = set; then :
3752 $as_echo_n "(cached) " >&6
3754 if test "x$host_alias" = x; then
3755 ac_cv_host=$ac_cv_build
3757 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3758 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3763 $as_echo "$ac_cv_host" >&6; }
3766 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3769 ac_save_IFS=$IFS; IFS='-'
3775 # Remember, the first character of IFS is used to create $*,
3776 # except with old shells:
3779 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3783 $as_echo_n "checking target system type... " >&6; }
3784 if test "${ac_cv_target+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3787 if test "x$target_alias" = x; then
3788 ac_cv_target=$ac_cv_host
3790 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3791 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3796 $as_echo "$ac_cv_target" >&6; }
3797 case $ac_cv_target in
3799 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3801 target=$ac_cv_target
3802 ac_save_IFS=$IFS; IFS='-'
3808 # Remember, the first character of IFS is used to create $*,
3809 # except with old shells:
3812 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3815 # The aliases save the names the user supplied, while $host etc.
3816 # will get canonicalized.
3817 test -n "$target_alias" &&
3818 test "$program_prefix$program_suffix$program_transform_name" = \
3820 program_prefix=${target_alias}-
3823 # Find a good install program. We prefer a C program (faster),
3824 # so one script is as good as another. But avoid the broken or
3825 # incompatible versions:
3826 # SysV /etc/install, /usr/sbin/install
3827 # SunOS /usr/etc/install
3828 # IRIX /sbin/install
3830 # AmigaOS /C/install, which installs bootblocks on floppy discs
3831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3834 # OS/2's system install, which has a completely different semantic
3835 # ./install, which can be erroneously created by make from ./install.sh.
3836 # Reject install programs that cannot install multiple files.
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3838 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3839 if test -z "$INSTALL"; then
3840 if test "${ac_cv_path_install+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 test -z "$as_dir" && as_dir=.
3848 # Account for people who put trailing slashes in PATH elements.
3849 case $as_dir/ in #((
3850 ./ | .// | /[cC]/* | \
3851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3852 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3855 # OSF1 and SCO ODT 3.0 have their own names for install.
3856 # Don't use installbsd from OSF since it installs stuff as root
3858 for ac_prog in ginstall scoinst install; do
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3861 if test $ac_prog = install &&
3862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3863 # AIX install. It has an incompatible calling convention.
3865 elif test $ac_prog = install &&
3866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3867 # program-specific install script used by HP pwplus--don't use.
3870 rm -rf conftest.one conftest.two conftest.dir
3871 echo one > conftest.one
3872 echo two > conftest.two
3874 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3875 test -s conftest.one && test -s conftest.two &&
3876 test -s conftest.dir/conftest.one &&
3877 test -s conftest.dir/conftest.two
3879 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3892 rm -rf conftest.one conftest.two conftest.dir
3895 if test "${ac_cv_path_install+set}" = set; then
3896 INSTALL=$ac_cv_path_install
3898 # As a last resort, use the slow shell script. Don't cache a
3899 # value for INSTALL within a source directory, because that will
3900 # break other packages using the cache if that directory is
3901 # removed, or if the value is a relative name.
3902 INSTALL=$ac_install_sh
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3906 $as_echo "$INSTALL" >&6; }
3908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3909 # It thinks the first close brace ends the variable substitution.
3910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3922 $as_echo_n "(cached) " >&6
3924 if test -n "$RANLIB"; then
3925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 RANLIB=$ac_cv_prog_RANLIB
3945 if test -n "$RANLIB"; then
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3947 $as_echo "$RANLIB" >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3955 if test -z "$ac_cv_prog_RANLIB"; then
3956 ac_ct_RANLIB=$RANLIB
3957 # Extract the first word of "ranlib", so it can be a program name with args.
3958 set dummy ranlib; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
3964 if test -n "$ac_ct_RANLIB"; then
3965 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974 ac_cv_prog_ac_ct_RANLIB="ranlib"
3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3985 if test -n "$ac_ct_RANLIB"; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3987 $as_echo "$ac_ct_RANLIB" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3993 if test "x$ac_ct_RANLIB" = x; then
3996 case $cross_compiling:$ac_tool_warned in
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4002 RANLIB=$ac_ct_RANLIB
4005 RANLIB="$ac_cv_prog_RANLIB"
4009 test "$program_prefix" != NONE &&
4010 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4011 # Use a double $ so make ignores it.
4012 test "$program_suffix" != NONE &&
4013 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4014 # Double any \ or $.
4015 # By default was `s,x,x', remove it if useless.
4016 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4017 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4021 $as_echo_n "checking for ANSI C header files... " >&6; }
4022 if test "${ac_cv_header_stdc+set}" = set; then :
4023 $as_echo_n "(cached) " >&6
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_header_stdc=yes
4043 ac_cv_header_stdc=no
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 if test $ac_cv_header_stdc = yes; then
4048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 $EGREP "memchr" >/dev/null 2>&1; then :
4058 ac_cv_header_stdc=no
4064 if test $ac_cv_header_stdc = yes; then
4065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4072 $EGREP "free" >/dev/null 2>&1; then :
4075 ac_cv_header_stdc=no
4081 if test $ac_cv_header_stdc = yes; then
4082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4083 if test "$cross_compiling" = yes; then :
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4090 #if ((' ' & 0x0FF) == 0x020)
4091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4094 # define ISLOWER(c) \
4095 (('a' <= (c) && (c) <= 'i') \
4096 || ('j' <= (c) && (c) <= 'r') \
4097 || ('s' <= (c) && (c) <= 'z'))
4098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4106 for (i = 0; i < 256; i++)
4107 if (XOR (islower (i), ISLOWER (i))
4108 || toupper (i) != TOUPPER (i))
4113 if ac_fn_c_try_run "$LINENO"; then :
4116 ac_cv_header_stdc=no
4118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4119 conftest.$ac_objext conftest.beam conftest.$ac_ext
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4125 $as_echo "$ac_cv_header_stdc" >&6; }
4126 if test $ac_cv_header_stdc = yes; then
4128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4133 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4134 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4136 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4138 $as_echo_n "(cached) " >&6
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #include <sys/types.h>
4154 if ac_fn_c_try_compile "$LINENO"; then :
4155 eval "$as_ac_Header=yes"
4157 eval "$as_ac_Header=no"
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161 eval ac_res=\$$as_ac_Header
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4163 $as_echo "$ac_res" >&6; }
4164 eval as_val=\$$as_ac_Header
4165 if test "x$as_val" = x""yes; then :
4166 cat >>confdefs.h <<_ACEOF
4167 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4170 ac_header_dirent=$ac_hdr; break
4174 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4175 if test $ac_header_dirent = dirent.h; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4177 $as_echo_n "checking for library containing opendir... " >&6; }
4178 if test "${ac_cv_search_opendir+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4181 ac_func_search_save_LIBS=$LIBS
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4185 /* Override any GCC internal prototype to avoid an error.
4186 Use char because int might match the return type of a GCC
4187 builtin and then its argument prototype would still apply. */
4200 for ac_lib in '' dir; do
4201 if test -z "$ac_lib"; then
4202 ac_res="none required"
4205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4207 if ac_fn_c_try_link "$LINENO"; then :
4208 ac_cv_search_opendir=$ac_res
4210 rm -f core conftest.err conftest.$ac_objext \
4212 if test "${ac_cv_search_opendir+set}" = set; then :
4216 if test "${ac_cv_search_opendir+set}" = set; then :
4219 ac_cv_search_opendir=no
4222 LIBS=$ac_func_search_save_LIBS
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4225 $as_echo "$ac_cv_search_opendir" >&6; }
4226 ac_res=$ac_cv_search_opendir
4227 if test "$ac_res" != no; then :
4228 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4234 $as_echo_n "checking for library containing opendir... " >&6; }
4235 if test "${ac_cv_search_opendir+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4238 ac_func_search_save_LIBS=$LIBS
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4242 /* Override any GCC internal prototype to avoid an error.
4243 Use char because int might match the return type of a GCC
4244 builtin and then its argument prototype would still apply. */
4257 for ac_lib in '' x; do
4258 if test -z "$ac_lib"; then
4259 ac_res="none required"
4262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4264 if ac_fn_c_try_link "$LINENO"; then :
4265 ac_cv_search_opendir=$ac_res
4267 rm -f core conftest.err conftest.$ac_objext \
4269 if test "${ac_cv_search_opendir+set}" = set; then :
4273 if test "${ac_cv_search_opendir+set}" = set; then :
4276 ac_cv_search_opendir=no
4279 LIBS=$ac_func_search_save_LIBS
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4282 $as_echo "$ac_cv_search_opendir" >&6; }
4283 ac_res=$ac_cv_search_opendir
4284 if test "$ac_res" != no; then :
4285 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4292 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4293 # for constant arguments. Useless!
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4295 $as_echo_n "checking for working alloca.h... " >&6; }
4296 if test "${ac_cv_working_alloca_h+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4305 char *p = (char *) alloca (2 * sizeof (int));
4311 if ac_fn_c_try_link "$LINENO"; then :
4312 ac_cv_working_alloca_h=yes
4314 ac_cv_working_alloca_h=no
4316 rm -f core conftest.err conftest.$ac_objext \
4317 conftest$ac_exeext conftest.$ac_ext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4320 $as_echo "$ac_cv_working_alloca_h" >&6; }
4321 if test $ac_cv_working_alloca_h = yes; then
4323 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4328 $as_echo_n "checking for alloca... " >&6; }
4329 if test "${ac_cv_func_alloca_works+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4335 # define alloca __builtin_alloca
4338 # include <malloc.h>
4339 # define alloca _alloca
4341 # ifdef HAVE_ALLOCA_H
4342 # include <alloca.h>
4347 # ifndef alloca /* predefined by HP cc +Olibcalls */
4358 char *p = (char *) alloca (1);
4364 if ac_fn_c_try_link "$LINENO"; then :
4365 ac_cv_func_alloca_works=yes
4367 ac_cv_func_alloca_works=no
4369 rm -f core conftest.err conftest.$ac_objext \
4370 conftest$ac_exeext conftest.$ac_ext
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4373 $as_echo "$ac_cv_func_alloca_works" >&6; }
4375 if test $ac_cv_func_alloca_works = yes; then
4377 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4380 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4381 # that cause trouble. Some versions do not even contain alloca or
4382 # contain a buggy version. If you still want to use their alloca,
4383 # use ar to extract alloca.o from them instead of compiling alloca.c.
4385 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4387 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4391 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4392 if test "${ac_cv_os_cray+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #if defined CRAY && ! defined CRAY2
4404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4405 $EGREP "webecray" >/dev/null 2>&1; then :
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4414 $as_echo "$ac_cv_os_cray" >&6; }
4415 if test $ac_cv_os_cray = yes; then
4416 for ac_func in _getb67 GETB67 getb67; do
4417 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4418 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4419 eval as_val=\$$as_ac_var
4420 if test "x$as_val" = x""yes; then :
4422 cat >>confdefs.h <<_ACEOF
4423 #define CRAY_STACKSEG_END $ac_func
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4433 $as_echo_n "checking stack direction for C alloca... " >&6; }
4434 if test "${ac_cv_c_stack_direction+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 if test "$cross_compiling" = yes; then :
4438 ac_cv_c_stack_direction=0
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442 $ac_includes_default
4444 find_stack_direction ()
4446 static char *addr = 0;
4451 return find_stack_direction ();
4454 return (&dummy > addr) ? 1 : -1;
4460 return find_stack_direction () < 0;
4463 if ac_fn_c_try_run "$LINENO"; then :
4464 ac_cv_c_stack_direction=1
4466 ac_cv_c_stack_direction=-1
4468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4469 conftest.$ac_objext conftest.beam conftest.$ac_ext
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4474 $as_echo "$ac_cv_c_stack_direction" >&6; }
4475 cat >>confdefs.h <<_ACEOF
4476 #define STACK_DIRECTION $ac_cv_c_stack_direction
4483 # Dependency checking.
4484 rm -rf .tst 2>/dev/null
4485 mkdir .tst 2>/dev/null
4486 if test -d .tst; then
4491 rmdir .tst 2>/dev/null
4493 DEPDIR="${am__leading_dot}deps"
4495 ac_config_commands="$ac_config_commands depdir"
4498 depcc="$CC" am_compiler_list=
4500 am_depcomp=$ac_aux_dir/depcomp
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4502 $as_echo_n "checking dependency style of $depcc... " >&6; }
4503 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4504 $as_echo_n "(cached) " >&6
4506 if test -f "$am_depcomp"; then
4507 # We make a subdir and do the tests there. Otherwise we can end up
4508 # making bogus files that we don't know about and never remove. For
4509 # instance it was reported that on HP-UX the gcc test will end up
4510 # making a dummy file named `D' -- because `-MD' means `put the output
4513 # Copy depcomp to subdir because otherwise we won't find it if we're
4514 # using a relative directory.
4515 cp "$am_depcomp" conftest.dir
4517 # We will build objects and dependencies in a subdirectory because
4518 # it helps to detect inapplicable dependency modes. For instance
4519 # both Tru64's cc and ICC support -MD to output dependencies as a
4520 # side effect of compilation, but ICC will put the dependencies in
4521 # the current directory while Tru64 will put them in the object
4525 am_cv_CC_dependencies_compiler_type=none
4526 if test "$am_compiler_list" = ""; then
4527 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4529 for depmode in $am_compiler_list; do
4530 if test $depmode = none; then break; fi
4532 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4533 # Setup a source with many dependencies, because some compilers
4534 # like to wrap large dependency lists on column 80 (with \), and
4535 # we should not choose a depcomp mode which is confused by this.
4537 # We need to recreate these files for each test, as the compiler may
4538 # overwrite some of them when testing with obscure command lines.
4539 # This happens at least with the AIX C compiler.
4541 for i in 1 2 3 4 5 6; do
4542 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4543 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4544 # Solaris 8's {/usr,}/bin/sh.
4545 touch sub/conftst$i.h
4547 echo "include sub/conftest.Po" > confmf
4549 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4550 # mode. It turns out that the SunPro C++ compiler does not properly
4551 # handle `-M -o', and we need to detect this.
4552 depcmd="depmode=$depmode \
4553 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4555 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4556 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4557 if env $depcmd > conftest.err 2>&1 &&
4558 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4560 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4561 # icc doesn't choke on unknown options, it will just issue warnings
4562 # or remarks (even with -Werror). So we grep stderr for any message
4563 # that says an option was ignored or not supported.
4564 # When given -MP, icc 7.0 and 7.1 complain thusly:
4565 # icc: Command line warning: ignoring option '-M'; no argument required
4566 # The diagnosis changed in icc 8.0:
4567 # icc: Command line remark: option '-MP' not supported
4568 if (grep 'ignoring option' conftest.err ||
4569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4570 am_cv_CC_dependencies_compiler_type=$depmode
4571 $as_echo "$as_me:$LINENO: success" >&5
4575 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4576 sed -e 's/^/| /' < conftest.err >&5
4582 am_cv_CC_dependencies_compiler_type=none
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4587 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4588 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4589 then as_fn_error "no usable dependency style found" "$LINENO" 5
4590 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4595 # Check for the 'make' the user wants to use.
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if test "${ac_cv_prog_MAKE+set}" = set; then :
4603 $as_echo_n "(cached) " >&6
4605 if test -n "$MAKE"; then
4606 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4615 ac_cv_prog_MAKE="$ac_prog"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 MAKE=$ac_cv_prog_MAKE
4626 if test -n "$MAKE"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4628 $as_echo "$MAKE" >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4635 test -n "$MAKE" && break
4639 case "`$MAKE --version 2>&1 | sed 1q`" in
4644 if test "$MAKE_IS_GNU" = yes; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4656 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4657 $as_echo_n "(cached) " >&6
4659 cat >conftest.make <<\_ACEOF
4662 @echo '@@@%%%=$(MAKE)=@@@%%%'
4664 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4667 eval ac_cv_prog_make_${ac_make}_set=yes;;
4669 eval ac_cv_prog_make_${ac_make}_set=no;;
4673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4675 $as_echo "yes" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4680 SET_MAKE="MAKE=${MAKE-make}"
4684 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
4685 # to find the the source subdir to be configured directly under
4686 # gdbserver/. We need to build gnulib under some other directory not
4687 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4688 # build it in the same directory, when building in the source dir.
4691 in_build="build-gnulib-gdbserver"
4693 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4694 # so they do not pile up.
4695 ac_sub_configure_args=
4697 eval "set x $ac_configure_args"
4701 if test -n "$ac_prev"; then
4706 -cache-file | --cache-file | --cache-fil | --cache-fi \
4707 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4708 ac_prev=cache_file ;;
4709 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4710 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4713 --config-cache | -C)
4715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4719 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4721 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4723 --disable-option-checking)
4727 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4729 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4733 # Always prepend --prefix to ensure using the same prefix
4734 # in subdir configurations.
4735 ac_arg="--prefix=$prefix"
4737 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4739 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4742 if test "$silent" = yes; then
4743 ac_sub_configure_args="--silent $ac_sub_configure_args"
4746 # Always prepend --disable-option-checking to silence warnings, since
4747 # different subdirs can have different --enable and --with options.
4748 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4753 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4755 $as_echo "$ac_msg" >&6
4756 as_dir="$ac_dir"; as_fn_mkdir_p
4760 ac_srcdir=$srcdir/$in_src ;;
4762 ac_srcdir=../$srcdir/$in_src ;;
4767 ac_sub_configure=$ac_srcdir/configure
4769 # Make the cache file name correct relative to the subdirectory.
4771 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4773 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
4777 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4778 # The eval makes quoting arguments work.
4779 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4780 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4781 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4786 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 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 wait.h sys/un.h linux/perf_event.h
4788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4789 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4790 eval as_val=\$$as_ac_Header
4791 if test "x$as_val" = x""yes; then :
4792 cat >>confdefs.h <<_ACEOF
4793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4800 for ac_func in pread pwrite pread64 readlink fdwalk pipe2
4802 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4803 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4804 eval as_val=\$$as_ac_var
4805 if test "x$as_val" = x""yes; then :
4806 cat >>confdefs.h <<_ACEOF
4807 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4813 for ac_func in vasprintf vsnprintf
4815 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4816 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4817 eval as_val=\$$as_ac_var
4818 if test "x$as_val" = x""yes; then :
4819 cat >>confdefs.h <<_ACEOF
4820 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4824 case " $LIBOBJS " in
4825 *" $ac_func.$ac_objext "* ) ;;
4826 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4840 # Check whether --with-ust was given.
4841 if test "${with_ust+set}" = set; then :
4846 # Check whether --with-ust_include was given.
4847 if test "${with_ust_include+set}" = set; then :
4848 withval=$with_ust_include;
4852 # Check whether --with-ust_lib was given.
4853 if test "${with_ust_lib+set}" = set; then :
4854 withval=$with_ust_lib;
4868 ustlibs="-L$with_ust/lib -lust"
4869 ustinc="-I$with_ust/include "
4872 if test "x$with_ust_include" != x; then
4873 ustinc="-I$with_ust_include "
4875 if test "x$with_ust_lib" != x; then
4876 ustlibs="-L$with_ust_lib -lust"
4879 if test "x$with_ust" != "xno"; then
4880 saved_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS $ustinc"
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4883 $as_echo_n "checking for ust... " >&6; }
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4887 #define CONFIG_UST_GDB_INTEGRATION
4888 #include <ust/ust.h>
4898 if ac_fn_c_try_compile "$LINENO"; then :
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4900 $as_echo "yes" >&6; };
4901 $as_echo "#define HAVE_UST 1" >>confdefs.h
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }; ustlibs= ; ustinc=
4907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 CFLAGS="$saved_CFLAGS"
4911 # Flags needed for UST
4915 # Check whether --enable-werror was given.
4916 if test "${enable_werror+set}" = set; then :
4917 enableval=$enable_werror; case "${enableval}" in
4918 yes | y) ERROR_ON_WARNING="yes" ;;
4919 no | n) ERROR_ON_WARNING="no" ;;
4920 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4925 # Enable -Werror by default when using gcc
4926 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4927 ERROR_ON_WARNING=yes
4931 if test "${ERROR_ON_WARNING}" = yes ; then
4932 WERROR_CFLAGS="-Werror"
4935 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4936 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
4939 if test "x$GCC" = xyes
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4942 $as_echo_n "checking compiler warning flags... " >&6; }
4943 # Separate out the -Werror flag as some files just cannot be
4944 # compiled with it enabled.
4945 for w in ${build_warnings}; do
4947 -Werr*) WERROR_CFLAGS=-Werror ;;
4948 *) # Check that GCC accepts it
4949 saved_CFLAGS="$CFLAGS"
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 WARN_CFLAGS="${WARN_CFLAGS} $w"
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966 CFLAGS="$saved_CFLAGS"
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4970 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4977 for ac_func in dladdr
4979 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
4980 if test "x$ac_cv_func_dladdr" = x""yes; then :
4981 cat >>confdefs.h <<_ACEOF
4982 #define HAVE_DLADDR 1
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4992 $as_echo_n "checking for errno... " >&6; }
4993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h. */
5002 static int x; x = errno;
5007 if ac_fn_c_try_link "$LINENO"; then :
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
5009 $as_echo "yes - in errno.h" >&6; };
5010 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5013 rm -f core conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5015 if test $have_errno = no; then
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5025 extern int errno; static int x; x = errno;
5030 if ac_fn_c_try_link "$LINENO"; then :
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5032 $as_echo "yes - must define" >&6; };
5033 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5035 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5041 rm -f core conftest.err conftest.$ac_objext \
5042 conftest$ac_exeext conftest.$ac_ext
5045 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5046 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
5052 cat >>confdefs.h <<_ACEOF
5053 #define HAVE_DECL_STRERROR $ac_have_decl
5055 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5056 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
5062 cat >>confdefs.h <<_ACEOF
5063 #define HAVE_DECL_STRSTR $ac_have_decl
5065 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5066 if test "x$ac_cv_have_decl_perror" = x""yes; then :
5072 cat >>confdefs.h <<_ACEOF
5073 #define HAVE_DECL_PERROR $ac_have_decl
5075 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5076 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
5082 cat >>confdefs.h <<_ACEOF
5083 #define HAVE_DECL_VASPRINTF $ac_have_decl
5085 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5086 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
5092 cat >>confdefs.h <<_ACEOF
5093 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5097 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5098 #include <sys/socket.h>
5101 if test "x$ac_cv_type_socklen_t" = x""yes; then :
5103 cat >>confdefs.h <<_ACEOF
5104 #define HAVE_SOCKLEN_T 1
5111 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5114 if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
5116 cat >>confdefs.h <<_ACEOF
5117 #define HAVE_ELF32_AUXV_T 1
5122 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5125 if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
5127 cat >>confdefs.h <<_ACEOF
5128 #define HAVE_ELF64_AUXV_T 1
5137 # Check whether --with-pkgversion was given.
5138 if test "${with_pkgversion+set}" = set; then :
5139 withval=$with_pkgversion; case "$withval" in
5140 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5142 *) PKGVERSION="($withval) " ;;
5153 # Check whether --with-bugurl was given.
5154 if test "${with_bugurl+set}" = set; then :
5155 withval=$with_bugurl; case "$withval" in
5156 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5159 *) BUGURL="$withval"
5163 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5173 REPORT_BUGS_TO="<$BUGURL>"
5174 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5181 cat >>confdefs.h <<_ACEOF
5182 #define PKGVERSION "$PKGVERSION"
5186 cat >>confdefs.h <<_ACEOF
5187 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5191 # Check for various supplementary target information (beyond the
5192 # triplet) which might affect the choices in configure.srv.
5194 i[34567]86-*-linux*)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5196 $as_echo_n "checking if building for x86-64... " >&6; }
5197 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5200 save_CPPFLAGS="$CPPFLAGS"
5201 CPPFLAGS="$CPPFLAGS $CFLAGS"
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5211 $EGREP "got it" >/dev/null 2>&1; then :
5212 gdb_cv_i386_is_x86_64=yes
5214 gdb_cv_i386_is_x86_64=no
5218 CPPFLAGS="$save_CPPFLAGS"
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5221 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5225 $as_echo_n "checking if building for Coldfire... " >&6; }
5226 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 save_CPPFLAGS="$CPPFLAGS"
5230 CPPFLAGS="$CPPFLAGS $CFLAGS"
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5234 #ifdef __mcoldfire__
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240 $EGREP "got it" >/dev/null 2>&1; then :
5241 gdb_cv_m68k_is_coldfire=yes
5243 gdb_cv_m68k_is_coldfire=no
5247 CPPFLAGS="$save_CPPFLAGS"
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5250 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5254 . ${srcdir}/configure.srv
5256 if test "${srv_mingwce}" = "yes"; then
5258 elif test "${srv_mingw}" = "yes"; then
5259 LIBS="$LIBS -lws2_32"
5260 elif test "${srv_qnx}" = "yes"; then
5261 LIBS="$LIBS -lsocket"
5262 elif test "${srv_lynxos}" = "yes"; then
5263 LIBS="$LIBS -lnetinet"
5266 if test "${srv_mingw}" = "yes"; then
5268 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5272 if test "${srv_linux_usrregs}" = "yes"; then
5274 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5278 if test "${srv_linux_regsets}" = "yes"; then
5280 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5284 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5285 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5290 #include <sys/ptrace.h>
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 gdbsrv_cv_have_ptrace_getregs=yes
5302 gdbsrv_cv_have_ptrace_getregs=no
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5308 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5309 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5311 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5316 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5317 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5318 $as_echo_n "(cached) " >&6
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5322 #include <sys/ptrace.h>
5331 if ac_fn_c_try_compile "$LINENO"; then :
5332 gdbsrv_cv_have_ptrace_getfpxregs=yes
5334 gdbsrv_cv_have_ptrace_getfpxregs=no
5336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5340 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5341 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5343 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5348 if test "${srv_linux_btrace}" = "yes"; then
5350 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
5354 if test "$ac_cv_header_sys_procfs_h" = yes; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5356 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5357 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5358 $as_echo_n "(cached) " >&6
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361 /* end confdefs.h. */
5364 /* Needed for new procfs interface on sparc-solaris. */
5365 #define _STRUCTURED_PROC 1
5366 #include <sys/procfs.h>
5375 if ac_fn_c_try_compile "$LINENO"; then :
5376 bfd_cv_have_sys_procfs_type_lwpid_t=yes
5378 bfd_cv_have_sys_procfs_type_lwpid_t=no
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5386 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5390 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5393 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5394 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5401 /* Needed for new procfs interface on sparc-solaris. */
5402 #define _STRUCTURED_PROC 1
5403 #include <sys/procfs.h>
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 bfd_cv_have_sys_procfs_type_psaddr_t=yes
5415 bfd_cv_have_sys_procfs_type_psaddr_t=no
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5423 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5427 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5430 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5431 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5438 /* Needed for new procfs interface on sparc-solaris. */
5439 #define _STRUCTURED_PROC 1
5440 #include <sys/procfs.h>
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 bfd_cv_have_sys_procfs_type_prgregset_t=yes
5452 bfd_cv_have_sys_procfs_type_prgregset_t=no
5455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5460 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5464 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5467 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5468 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5475 /* Needed for new procfs interface on sparc-solaris. */
5476 #define _STRUCTURED_PROC 1
5477 #include <sys/procfs.h>
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
5489 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
5497 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5501 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
5505 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5507 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5508 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5509 $as_echo_n "(cached) " >&6
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 #include <thread_db.h>
5523 if ac_fn_c_try_compile "$LINENO"; then :
5524 gdbserver_cv_have_thread_db_type_lwpid_t=yes
5526 gdbserver_cv_have_thread_db_type_lwpid_t=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5534 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5538 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
5542 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
5544 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
5545 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5551 #include <thread_db.h>
5560 if ac_fn_c_try_compile "$LINENO"; then :
5561 gdbserver_cv_have_thread_db_type_psaddr_t=yes
5563 gdbserver_cv_have_thread_db_type_psaddr_t=no
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
5571 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
5575 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5581 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5582 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 ac_check_lib_save_LIBS=$LIBS
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5590 /* Override any GCC internal prototype to avoid an error.
5591 Use char because int might match the return type of a GCC
5592 builtin and then its argument prototype would still apply. */
5605 if ac_fn_c_try_link "$LINENO"; then :
5606 ac_cv_lib_dl_dlopen=yes
5608 ac_cv_lib_dl_dlopen=no
5610 rm -f core conftest.err conftest.$ac_objext \
5611 conftest$ac_exeext conftest.$ac_ext
5612 LIBS=$ac_check_lib_save_LIBS
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5615 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5616 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5617 cat >>confdefs.h <<_ACEOF
5618 #define HAVE_LIBDL 1
5627 srv_thread_depfiles=
5630 if test "$srv_linux_thread_db" = "yes"; then
5631 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
5634 $as_echo_n "checking for the dynamic export flag... " >&6; }
5635 old_LDFLAGS="$LDFLAGS"
5636 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
5638 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
5639 LDFLAGS="$LDFLAGS $RDYNAMIC"
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5651 if ac_fn_c_try_link "$LINENO"; then :
5652 found="-Wl,--dynamic-list"
5653 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
5655 RDYNAMIC="-rdynamic"
5656 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5668 if ac_fn_c_try_link "$LINENO"; then :
5674 rm -f core conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5677 rm -f core conftest.err conftest.$ac_objext \
5678 conftest$ac_exeext conftest.$ac_ext
5680 LDFLAGS="$old_LDFLAGS"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
5682 $as_echo "$found" >&6; }
5684 srv_libs="-lthread_db"
5687 srv_thread_depfiles="thread-db.o proc-service.o"
5689 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
5692 $as_echo_n "checking for TD_VERSION... " >&6; }
5693 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5697 /* end confdefs.h. */
5698 #include <thread_db.h>
5707 if ac_fn_c_try_compile "$LINENO"; then :
5708 gdbsrv_cv_have_td_version=yes
5710 gdbsrv_cv_have_td_version=no
5712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
5715 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
5716 if test $gdbsrv_cv_have_td_version = yes; then
5718 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
5724 # Check whether --with-libthread-db was given.
5725 if test "${with_libthread_db+set}" = set; then :
5726 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
5727 srv_libs="$srv_libthread_db_path"
5732 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
5734 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
5738 if test "$srv_xmlfiles" != ""; then
5739 srv_xmlbuiltin="xml-builtin.o"
5741 $as_echo "#define USE_XML 1" >>confdefs.h
5744 tmp_xmlfiles=$srv_xmlfiles
5746 for f in $tmp_xmlfiles; do
5747 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
5751 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
5752 GDBSERVER_LIBS="$srv_libs"
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5755 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5756 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5766 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5771 if ac_fn_c_try_link "$LINENO"; then :
5772 gdbsrv_cv_have_sync_builtins=yes
5774 gdbsrv_cv_have_sync_builtins=no
5776 rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5780 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5781 if test $gdbsrv_cv_have_sync_builtins = yes; then
5783 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
5787 saved_cflags="$CFLAGS"
5788 CFLAGS="$CFLAGS -fvisibility=hidden"
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 gdbsrv_cv_have_visibility_hidden=yes
5803 gdbsrv_cv_have_visibility_hidden=no
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 CFLAGS="$saved_cflags"
5808 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5810 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
5816 cat >>confdefs.h <<_ACEOF
5817 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5821 if test "$cross_compiling" = yes; then :
5822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823 /* end confdefs.h. */
5824 #include <sys/personality.h>
5829 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5830 # define ADDR_NO_RANDOMIZE 0x0040000
5832 /* Test the flag could be set and stays set. */
5833 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5834 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5840 if ac_fn_c_try_link "$LINENO"; then :
5841 gdbsrv_cv_have_personality=true
5843 gdbsrv_cv_have_personality=false
5845 rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 #include <sys/personality.h>
5855 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5856 # define ADDR_NO_RANDOMIZE 0x0040000
5858 /* Test the flag could be set and stays set. */
5859 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5860 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5866 if ac_fn_c_try_run "$LINENO"; then :
5867 gdbsrv_cv_have_personality=true
5869 gdbsrv_cv_have_personality=false
5871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5872 conftest.$ac_objext conftest.beam conftest.$ac_ext
5875 if $gdbsrv_cv_have_personality
5878 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
5886 # check whether to enable the inprocess agent
5887 if test "$ipa_obj" != "" \
5888 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5889 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5895 # Check whether --enable-inprocess-agent was given.
5896 if test "${enable_inprocess_agent+set}" = set; then :
5897 enableval=$enable_inprocess_agent; case "$enableval" in
5898 yes) want_ipa=true ;;
5899 no) want_ipa=false ;;
5900 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5909 IPA_DEPFILES="$ipa_obj"
5910 extra_libraries="$extra_libraries libinproctrace.so"
5912 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
5923 GNULIB=build-gnulib-gdbserver/import
5926 if test x"$STDINT_H" != x; then
5927 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5931 # For --version, we want to the print --host/--target exactly
5932 # as passed to configure. But if those were not specified, then
5933 # print the canonical host/target.
5934 version_host=${host_alias:-$host}
5935 version_target=${target_alias:-$target}
5939 ac_config_files="$ac_config_files Makefile"
5941 ac_config_commands="$ac_config_commands default"
5943 cat >confcache <<\_ACEOF
5944 # This file is a shell script that caches the results of configure
5945 # tests run on this system so they can be shared between configure
5946 # scripts and configure runs, see configure's option --config-cache.
5947 # It is not useful on other systems. If it contains results you don't
5948 # want to keep, you may remove or edit it.
5950 # config.status only pays attention to the cache file if you give it
5951 # the --recheck option to rerun configure.
5953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5959 # The following way of writing the cache mishandles newlines in values,
5960 # but we know of no workaround that is simple, portable, and efficient.
5961 # So, we kill variables containing newlines.
5962 # Ultrix sh set writes to stderr and can't be redirected directly,
5963 # and sets the high bit in the cache file unless we assign to the vars.
5965 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5966 eval ac_val=\$$ac_var
5970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5971 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5974 _ | IFS | as_nl) ;; #(
5975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5976 *) { eval $ac_var=; unset $ac_var;} ;;
5982 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5983 *${as_nl}ac_space=\ *)
5984 # `set' does not quote correctly, so add quotes: double-quote
5985 # substitution turns \\\\ into \\, and sed turns \\ into \.
5988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5991 # `set' quotes correctly as required by POSIX, so do not add quotes.
5992 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6003 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6005 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6006 if test -w "$cache_file"; then
6007 test "x$cache_file" != "x/dev/null" &&
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6009 $as_echo "$as_me: updating cache $cache_file" >&6;}
6010 cat confcache >$cache_file
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6013 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6018 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6019 # Let make expand exec_prefix.
6020 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6022 DEFS=-DHAVE_CONFIG_H
6026 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6027 # 1. Remove the extension, and $U if already installed.
6028 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6029 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6030 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6031 # will be set to the directory where LIBOBJS objects are built.
6032 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6033 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6037 LTLIBOBJS=$ac_ltlibobjs
6040 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6041 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
6042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6044 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6045 as_fn_error "conditional \"GMAKE\" was never defined.
6046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6049 : ${CONFIG_STATUS=./config.status}
6051 ac_clean_files_save=$ac_clean_files
6052 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6054 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6056 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6058 # Generated by $as_me.
6059 # Run this file to recreate the current configuration.
6060 # Compiler output produced by configure, useful for debugging
6061 # configure, is in config.log if it exists.
6067 SHELL=\${CONFIG_SHELL-$SHELL}
6070 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6071 ## -------------------- ##
6072 ## M4sh Initialization. ##
6073 ## -------------------- ##
6075 # Be more Bourne compatible
6076 DUALCASE=1; export DUALCASE # for MKS sh
6077 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6080 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6081 # is contrary to our usage. Disable this feature.
6082 alias -g '${1+"$@"}'='"$@"'
6083 setopt NO_GLOB_SUBST
6085 case `(set -o) 2>/dev/null` in #(
6097 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6098 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6099 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6100 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6101 # Prefer a ksh shell builtin over an external printf program on Solaris,
6102 # but without wasting forks for bash or zsh.
6103 if test -z "$BASH_VERSION$ZSH_VERSION" \
6104 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6105 as_echo='print -r --'
6106 as_echo_n='print -rn --'
6107 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6108 as_echo='printf %s\n'
6109 as_echo_n='printf %s'
6111 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6112 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6113 as_echo_n='/usr/ucb/echo -n'
6115 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6116 as_echo_n_body='eval
6120 expr "X$arg" : "X\\(.*\\)$as_nl";
6121 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6123 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6125 export as_echo_n_body
6126 as_echo_n='sh -c $as_echo_n_body as_echo'
6129 as_echo='sh -c $as_echo_body as_echo'
6132 # The user is always right.
6133 if test "${PATH_SEPARATOR+set}" != set; then
6135 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6136 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6143 # We need space, tab and new line, in precisely that order. Quoting is
6144 # there to prevent editors from complaining about space-tab.
6145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6146 # splitting by setting IFS to empty value.)
6149 # Find who we are. Look in the path if we contain no directory separator.
6151 *[\\/]* ) as_myself=$0 ;;
6152 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 test -z "$as_dir" && as_dir=.
6157 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6163 # We did not find ourselves, most probably we were run as `sh COMMAND'
6164 # in which case we are not to be found in the path.
6165 if test "x$as_myself" = x; then
6168 if test ! -f "$as_myself"; then
6169 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6173 # Unset variables that we do not need and which cause bugs (e.g. in
6174 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6175 # suppresses any "Segmentation fault" message there. '((' could
6176 # trigger a bug in pdksh 5.2.14.
6177 for as_var in BASH_ENV ENV MAIL MAILPATH
6178 do eval test x\${$as_var+set} = xset \
6179 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6192 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6195 # as_fn_error ERROR [LINENO LOG_FD]
6196 # ---------------------------------
6197 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6198 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6199 # script with status $?, using 1 if that was 0.
6202 as_status=$?; test $as_status -eq 0 && as_status=1
6204 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6205 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6207 $as_echo "$as_me: error: $1" >&2
6208 as_fn_exit $as_status
6212 # as_fn_set_status STATUS
6213 # -----------------------
6214 # Set $? to STATUS, without forking.
6218 } # as_fn_set_status
6222 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6232 # Portably unset VAR.
6235 { eval $1=; unset $1;}
6237 as_unset=as_fn_unset
6238 # as_fn_append VAR VALUE
6239 # ----------------------
6240 # Append the text in VALUE to the end of the definition contained in VAR. Take
6241 # advantage of any shell optimizations that allow amortized linear growth over
6242 # repeated appends, instead of the typical quadratic growth present in naive
6244 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6245 eval 'as_fn_append ()
6256 # as_fn_arith ARG...
6257 # ------------------
6258 # Perform arithmetic evaluation on the ARGs, and store the result in the
6259 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6260 # must be portable across $(()) and expr.
6261 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6262 eval 'as_fn_arith ()
6269 as_val=`expr "$@" || test $? -eq 1`
6274 if expr a : '\(a\)' >/dev/null 2>&1 &&
6275 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6281 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6282 as_basename=basename
6287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6293 as_me=`$as_basename -- "$0" ||
6294 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6295 X"$0" : 'X\(//\)$' \| \
6296 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6298 sed '/^.*\/\([^/][^/]*\)\/*$/{
6312 # Avoid depending upon Character Ranges.
6313 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6314 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6315 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6316 as_cr_digits='0123456789'
6317 as_cr_alnum=$as_cr_Letters$as_cr_digits
6319 ECHO_C= ECHO_N= ECHO_T=
6320 case `echo -n x` in #(((((
6322 case `echo 'xy\c'` in
6323 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6325 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6332 rm -f conf$$ conf$$.exe conf$$.file
6333 if test -d conf$$.dir; then
6334 rm -f conf$$.dir/conf$$.file
6337 mkdir conf$$.dir 2>/dev/null
6339 if (echo >conf$$.file) 2>/dev/null; then
6340 if ln -s conf$$.file conf$$ 2>/dev/null; then
6342 # ... but there are two gotchas:
6343 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6344 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6345 # In both cases, we have to default to `cp -p'.
6346 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6348 elif ln conf$$.file conf$$ 2>/dev/null; then
6356 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6357 rmdir conf$$.dir 2>/dev/null
6362 # Create "$as_dir" as a directory, including parents if necessary.
6367 -*) as_dir=./$as_dir;;
6369 test -d "$as_dir" || eval $as_mkdir_p || {
6373 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6374 *) as_qdir=$as_dir;;
6376 as_dirs="'$as_qdir' $as_dirs"
6377 as_dir=`$as_dirname -- "$as_dir" ||
6378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6379 X"$as_dir" : 'X\(//\)[^/]' \| \
6380 X"$as_dir" : 'X\(//\)$' \| \
6381 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6382 $as_echo X"$as_dir" |
6383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6400 test -d "$as_dir" && break
6402 test -z "$as_dirs" || eval "mkdir $as_dirs"
6403 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6407 if mkdir -p . 2>/dev/null; then
6408 as_mkdir_p='mkdir -p "$as_dir"'
6410 test -d ./-p && rmdir ./-p
6414 if test -x / >/dev/null 2>&1; then
6417 if ls -dL / >/dev/null 2>&1; then
6424 if test -d "$1"; then
6430 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6431 ???[sx]*):;;*)false;;esac;fi
6435 as_executable_p=$as_test_x
6437 # Sed expression to map a string onto a valid CPP name.
6438 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6440 # Sed expression to map a string onto a valid variable name.
6441 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6445 ## ----------------------------------- ##
6446 ## Main body of $CONFIG_STATUS script. ##
6447 ## ----------------------------------- ##
6449 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6452 # Save the log message, to keep $0 and so on meaningful, and to
6453 # report actual input values of CONFIG_FILES etc. instead of their
6454 # values after options handling.
6456 This file was extended by $as_me, which was
6457 generated by GNU Autoconf 2.64. Invocation command line was
6459 CONFIG_FILES = $CONFIG_FILES
6460 CONFIG_HEADERS = $CONFIG_HEADERS
6461 CONFIG_LINKS = $CONFIG_LINKS
6462 CONFIG_COMMANDS = $CONFIG_COMMANDS
6465 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6470 case $ac_config_files in *"
6471 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6474 case $ac_config_headers in *"
6475 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6480 # Files that config.status was made for.
6481 config_files="$ac_config_files"
6482 config_headers="$ac_config_headers"
6483 config_commands="$ac_config_commands"
6487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6489 \`$as_me' instantiates files and other configuration actions
6490 from templates according to the current configuration. Unless the files
6491 and actions are specified as TAGs, all are instantiated by default.
6493 Usage: $0 [OPTION]... [TAG]...
6495 -h, --help print this help, then exit
6496 -V, --version print version number and configuration settings, then exit
6497 -q, --quiet, --silent
6498 do not print progress messages
6499 -d, --debug don't remove temporary files
6500 --recheck update $as_me by reconfiguring in the same conditions
6501 --file=FILE[:TEMPLATE]
6502 instantiate the configuration file FILE
6503 --header=FILE[:TEMPLATE]
6504 instantiate the configuration header FILE
6506 Configuration files:
6509 Configuration headers:
6512 Configuration commands:
6515 Report bugs to the package provider."
6518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6521 configured by $0, generated by GNU Autoconf 2.64,
6522 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6524 Copyright (C) 2009 Free Software Foundation, Inc.
6525 This config.status script is free software; the Free Software Foundation
6526 gives unlimited permission to copy, distribute and modify it."
6531 test -n "\$AWK" || AWK=awk
6534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6535 # The default lists apply if the user does not specify any file.
6541 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6542 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6553 # Handling of the options.
6554 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6556 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6557 $as_echo "$ac_cs_version"; exit ;;
6558 --debug | --debu | --deb | --de | --d | -d )
6560 --file | --fil | --fi | --f )
6563 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6565 as_fn_append CONFIG_FILES " '$ac_optarg'"
6566 ac_need_defaults=false;;
6567 --header | --heade | --head | --hea )
6570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6572 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6573 ac_need_defaults=false;;
6575 # Conflict between --help and --header
6576 as_fn_error "ambiguous option: \`$1'
6577 Try \`$0 --help' for more information.";;
6578 --help | --hel | -h )
6579 $as_echo "$ac_cs_usage"; exit ;;
6580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6581 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6585 -*) as_fn_error "unrecognized option: \`$1'
6586 Try \`$0 --help' for more information." ;;
6588 *) as_fn_append ac_config_targets " $1"
6589 ac_need_defaults=false ;;
6595 ac_configure_extra_args=
6597 if $ac_cs_silent; then
6599 ac_configure_extra_args="$ac_configure_extra_args --silent"
6603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6604 if \$ac_cs_recheck; then
6605 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6607 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6608 CONFIG_SHELL='$SHELL'
6614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6618 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6619 ## Running $as_me. ##
6625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6629 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6635 # Handling of arguments.
6636 for ac_config_target in $ac_config_targets
6638 case $ac_config_target in
6639 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6640 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6641 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6642 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6644 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6649 # If the user did not use the arguments to specify the items to instantiate,
6650 # then the envvar interface is used. Set only those that are not.
6651 # We use the long form for the default assignment because of an extremely
6652 # bizarre bug on SunOS 4.1.3.
6653 if $ac_need_defaults; then
6654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6656 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6659 # Have a temporary directory for convenience. Make it in the build tree
6660 # simply because there is no reason against having it here, and in addition,
6661 # creating and moving files from /tmp can sometimes cause problems.
6662 # Hook for its removal unless debugging.
6663 # Note that there is a small window in which the directory will not be cleaned:
6664 # after its creation but before its name has been assigned to `$tmp'.
6668 trap 'exit_status=$?
6669 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6671 trap 'as_fn_exit 1' 1 2 13 15
6673 # Create a (secure) tmp directory for tmp files.
6676 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6677 test -n "$tmp" && test -d "$tmp"
6680 tmp=./conf$$-$RANDOM
6681 (umask 077 && mkdir "$tmp")
6682 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6684 # Set up the scripts for CONFIG_FILES section.
6685 # No need to generate them if there are no CONFIG_FILES.
6686 # This happens for instance with `./config.status config.h'.
6687 if test -n "$CONFIG_FILES"; then
6690 ac_cr=`echo X | tr X '\015'`
6691 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6692 # But we know of no other shell where ac_cr would be empty at this
6693 # point, so we can use a bashism as a fallback.
6694 if test "x$ac_cr" = x; then
6695 eval ac_cr=\$\'\\r\'
6697 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6698 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6704 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6709 echo "cat >conf$$subs.awk <<_ACEOF" &&
6710 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6713 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6714 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6716 for ac_last_try in false false false false false :; do
6717 . ./conf$$subs.sh ||
6718 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6720 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6721 if test $ac_delim_n = $ac_delim_num; then
6723 elif $ac_last_try; then
6724 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6726 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6732 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6736 s/^/S["/; s/!.*/"]=/
6746 s/\(.\{148\}\).*/\1/
6748 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6753 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6760 s/\(.\{148\}\).*/\1/
6762 s/["\\]/\\&/g; s/^/"/; s/$/"/
6766 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6771 ' <conf$$subs.awk | sed '
6776 ' >>$CONFIG_STATUS || ac_write_fail=1
6777 rm -f conf$$subs.awk
6778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6780 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6781 for (key in S) S_is_set[key] = 1
6787 nfields = split(line, field, "@")
6789 len = length(field[1])
6790 for (i = 2; i < nfields; i++) {
6792 keylen = length(key)
6793 if (S_is_set[key]) {
6795 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6796 len += length(value) + length(field[++i])
6807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6808 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6809 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6812 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6813 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6816 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6817 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6818 # trailing colons and then remove the whole line if VPATH becomes empty
6819 # (actually we leave an empty line to preserve line numbers).
6820 if test "x$srcdir" = x.; then
6821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6825 s/^\([^=]*=[ ]*\):*/\1/
6831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6832 fi # test -n "$CONFIG_FILES"
6834 # Set up the scripts for CONFIG_HEADERS section.
6835 # No need to generate them if there are no CONFIG_HEADERS.
6836 # This happens for instance with `./config.status Makefile'.
6837 if test -n "$CONFIG_HEADERS"; then
6838 cat >"$tmp/defines.awk" <<\_ACAWK ||
6842 # Transform confdefs.h into an awk script `defines.awk', embedded as
6843 # here-document in config.status, that substitutes the proper values into
6844 # config.h.in to produce config.h.
6846 # Create a delimiter string that does not exist in confdefs.h, to ease
6847 # handling of long lines.
6849 for ac_last_try in false false :; do
6850 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6851 if test -z "$ac_t"; then
6853 elif $ac_last_try; then
6854 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6856 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6860 # For the awk script, D is an array of macro values keyed by name,
6861 # likewise P contains macro parameters if any. Preserve backslash
6862 # newline sequences.
6864 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6866 s/.\{148\}/&'"$ac_delim"'/g
6869 s/^[ ]*#[ ]*define[ ][ ]*/ /
6876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6882 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6883 D["\1"]=" \3\\\\\\n"\\/p
6885 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6890 s/.\{148\}/&'"$ac_delim"'/g
6895 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6898 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6900 ' <confdefs.h | sed '
6901 s/'"$ac_delim"'/"\\\
6902 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6905 for (key in D) D_is_set[key] = 1
6908 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6910 split(line, arg, " ")
6911 if (arg[1] == "#") {
6915 defundef = substr(arg[1], 2)
6918 split(mac1, mac2, "(") #)
6920 prefix = substr(line, 1, index(line, defundef) - 1)
6921 if (D_is_set[macro]) {
6922 # Preserve the white space surrounding the "#".
6923 print prefix "define", macro P[macro] D[macro]
6926 # Replace #undef with comments. This is necessary, for example,
6927 # in the case of _POSIX_SOURCE, which is predefined and required
6928 # on some systems where configure will not decide to define it.
6929 if (defundef == "undef") {
6930 print "/*", prefix defundef, macro, "*/"
6938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6939 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6940 fi # test -n "$CONFIG_HEADERS"
6943 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6948 :[FHLC]) ac_mode=$ac_tag; continue;;
6950 case $ac_mode$ac_tag in
6952 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6953 :[FH]-) ac_tag=-:-;;
6954 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6971 -) ac_f="$tmp/stdin";;
6972 *) # Look for the file first in the build tree, then in the source tree
6973 # (if the path is not absolute). The absolute path cannot be DOS-style,
6974 # because $ac_f cannot contain `:'.
6978 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6980 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6982 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6983 as_fn_append ac_file_inputs " '$ac_f'"
6986 # Let's still pretend it is `configure' which instantiates (i.e., don't
6987 # use $as_me), people would be surprised to read:
6988 # /* config.h. Generated by config.status. */
6989 configure_input='Generated from '`
6990 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6992 if test x"$ac_file" != x-; then
6993 configure_input="$ac_file. $configure_input"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6995 $as_echo "$as_me: creating $ac_file" >&6;}
6997 # Neutralize special characters interpreted by sed in replacement strings.
6998 case $configure_input in #(
6999 *\&* | *\|* | *\\* )
7000 ac_sed_conf_input=`$as_echo "$configure_input" |
7001 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7002 *) ac_sed_conf_input=$configure_input;;
7006 *:-:* | *:-) cat >"$tmp/stdin" \
7007 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7012 ac_dir=`$as_dirname -- "$ac_file" ||
7013 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7014 X"$ac_file" : 'X\(//\)[^/]' \| \
7015 X"$ac_file" : 'X\(//\)$' \| \
7016 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7017 $as_echo X"$ac_file" |
7018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7035 as_dir="$ac_dir"; as_fn_mkdir_p
7039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7042 # A ".." for each directory in $ac_dir_suffix.
7043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7044 case $ac_top_builddir_sub in
7045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7049 ac_abs_top_builddir=$ac_pwd
7050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7051 # for backward compatibility:
7052 ac_top_builddir=$ac_top_build_prefix
7055 .) # We are building in place.
7057 ac_top_srcdir=$ac_top_builddir_sub
7058 ac_abs_top_srcdir=$ac_pwd ;;
7059 [\\/]* | ?:[\\/]* ) # Absolute name.
7060 ac_srcdir=$srcdir$ac_dir_suffix;
7061 ac_top_srcdir=$srcdir
7062 ac_abs_top_srcdir=$srcdir ;;
7064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7065 ac_top_srcdir=$ac_top_build_prefix$srcdir
7066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7084 # If the template does not know about datarootdir, expand it.
7085 # FIXME: This hack should be removed a few years after 2.60.
7086 ac_datarootdir_hack=; ac_datarootdir_seen=
7097 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7098 *datarootdir*) ac_datarootdir_seen=yes;;
7099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7101 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7104 ac_datarootdir_hack='
7105 s&@datadir@&$datadir&g
7106 s&@docdir@&$docdir&g
7107 s&@infodir@&$infodir&g
7108 s&@localedir@&$localedir&g
7109 s&@mandir@&$mandir&g
7110 s&\\\${datarootdir}&$datarootdir&g' ;;
7114 # Neutralize VPATH when `$srcdir' = `.'.
7115 # Shell code in configure.ac might set extrasub.
7116 # FIXME: do we really want to maintain this feature?
7117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7118 ac_sed_extra="$ac_vpsub
7121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7124 s|@configure_input@|$ac_sed_conf_input|;t t
7125 s&@top_builddir@&$ac_top_builddir_sub&;t t
7126 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7127 s&@srcdir@&$ac_srcdir&;t t
7128 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7129 s&@top_srcdir@&$ac_top_srcdir&;t t
7130 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7131 s&@builddir@&$ac_builddir&;t t
7132 s&@abs_builddir@&$ac_abs_builddir&;t t
7133 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7134 s&@INSTALL@&$ac_INSTALL&;t t
7135 $ac_datarootdir_hack
7137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7138 || as_fn_error "could not create $ac_file" "$LINENO" 5
7140 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7141 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7142 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7144 which seems to be undefined. Please make sure it is defined." >&5
7145 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7146 which seems to be undefined. Please make sure it is defined." >&2;}
7150 -) cat "$tmp/out" && rm -f "$tmp/out";;
7151 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7153 || as_fn_error "could not create $ac_file" "$LINENO" 5
7159 if test x"$ac_file" != x-; then
7161 $as_echo "/* $configure_input */" \
7162 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7163 } >"$tmp/config.h" \
7164 || as_fn_error "could not create $ac_file" "$LINENO" 5
7165 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7167 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7170 mv "$tmp/config.h" "$ac_file" \
7171 || as_fn_error "could not create $ac_file" "$LINENO" 5
7174 $as_echo "/* $configure_input */" \
7175 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7176 || as_fn_error "could not create -" "$LINENO" 5
7180 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7181 $as_echo "$as_me: executing $ac_file commands" >&6;}
7186 case $ac_file$ac_mode in
7187 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7188 "default":C) case x$CONFIG_HEADERS in
7189 xconfig.h:config.in)
7200 ac_clean_files=$ac_clean_files_save
7202 test $ac_write_fail = 0 ||
7203 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7206 # configure is writing to config.log, and then calls config.status.
7207 # config.status does its own redirection, appending to config.log.
7208 # Unfortunately, on DOS this fails, as config.log is still kept open
7209 # by configure, so config.status won't be able to write to it; its
7210 # output is simply discarded. So we exec the FD to /dev/null,
7211 # effectively closing config.log, so it can be properly (re)opened and
7212 # appended to by config.status. When coming back to configure, we
7213 # need to make the FD available again.
7214 if test "$no_create" != yes; then
7216 ac_config_status_args=
7217 test "$silent" = yes &&
7218 ac_config_status_args="$ac_config_status_args --quiet"
7220 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7222 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7223 # would make configure fail if this is the last instruction.
7224 $ac_cs_success || as_fn_exit $?
7226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}