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
644 MAINTAINER_MODE_FALSE
673 program_transform_name
686 enable_option_checking
687 enable_maintainer_mode
695 enable_inprocess_agent
697 ac_precious_vars='build_alias
708 # Initialize some variables set by options.
710 ac_init_version=false
711 ac_unrecognized_opts=
713 # The variables have the same names as the options, with
714 # dashes changed to underlines.
722 program_transform_name=s,x,x,
730 # Installation directory options.
731 # These are left unexpanded so users can "make install exec_prefix=/foo"
732 # and all the variables that are supposed to be based on exec_prefix
733 # by default will actually change.
734 # Use braces instead of parens because sh, perl, etc. also accept them.
735 # (The list follows the same order as the GNU Coding Standards.)
736 bindir='${exec_prefix}/bin'
737 sbindir='${exec_prefix}/sbin'
738 libexecdir='${exec_prefix}/libexec'
739 datarootdir='${prefix}/share'
740 datadir='${datarootdir}'
741 sysconfdir='${prefix}/etc'
742 sharedstatedir='${prefix}/com'
743 localstatedir='${prefix}/var'
744 includedir='${prefix}/include'
745 oldincludedir='/usr/include'
746 docdir='${datarootdir}/doc/${PACKAGE}'
747 infodir='${datarootdir}/info'
752 libdir='${exec_prefix}/lib'
753 localedir='${datarootdir}/locale'
754 mandir='${datarootdir}/man'
760 # If the previous option needs an argument, assign it.
761 if test -n "$ac_prev"; then
762 eval $ac_prev=\$ac_option
768 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
772 # Accept the important Cygnus configure options, so we can diagnose typos.
774 case $ac_dashdash$ac_option in
778 -bindir | --bindir | --bindi | --bind | --bin | --bi)
780 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
783 -build | --build | --buil | --bui | --bu)
784 ac_prev=build_alias ;;
785 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
786 build_alias=$ac_optarg ;;
788 -cache-file | --cache-file | --cache-fil | --cache-fi \
789 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
790 ac_prev=cache_file ;;
791 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
792 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
793 cache_file=$ac_optarg ;;
796 cache_file=config.cache ;;
798 -datadir | --datadir | --datadi | --datad)
800 -datadir=* | --datadir=* | --datadi=* | --datad=*)
801 datadir=$ac_optarg ;;
803 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
804 | --dataroo | --dataro | --datar)
805 ac_prev=datarootdir ;;
806 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
807 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
808 datarootdir=$ac_optarg ;;
810 -disable-* | --disable-*)
811 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
812 # Reject names that are not valid shell variable names.
813 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
814 as_fn_error "invalid feature name: $ac_useropt"
815 ac_useropt_orig=$ac_useropt
816 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
817 case $ac_user_opts in
821 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
822 ac_unrecognized_sep=', ';;
824 eval enable_$ac_useropt=no ;;
826 -docdir | --docdir | --docdi | --doc | --do)
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
836 -enable-* | --enable-*)
837 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
840 as_fn_error "invalid feature name: $ac_useropt"
841 ac_useropt_orig=$ac_useropt
842 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
843 case $ac_user_opts in
847 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
848 ac_unrecognized_sep=', ';;
850 eval enable_$ac_useropt=\$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev=exec_prefix ;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
865 -help | --help | --hel | --he | -h)
867 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
868 ac_init_help=recursive ;;
869 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
870 ac_init_help=short ;;
872 -host | --host | --hos | --ho)
873 ac_prev=host_alias ;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 htmldir=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev=includedir ;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev=libexecdir ;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev=localstatedir ;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 # Obsolete; use --without-fp.
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev=oldincludedir ;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev=program_prefix ;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev=program_suffix ;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev=program_transform_name ;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 -psdir | --psdir | --psdi | --psd | --ps)
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 sbindir=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1005 ac_prev=sharedstatedir ;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 sharedstatedir=$ac_optarg ;;
1012 -site | --site | --sit)
1014 -site=* | --site=* | --sit=*)
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev=sysconfdir ;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev=target_alias ;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version=: ;;
1041 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044 as_fn_error "invalid package name: $ac_useropt"
1045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1054 eval with_$ac_useropt=\$ac_optarg ;;
1056 -without-* | --without-*)
1057 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1060 as_fn_error "invalid package name: $ac_useropt"
1061 ac_useropt_orig=$ac_useropt
1062 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1063 case $ac_user_opts in
1067 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1068 ac_unrecognized_sep=', ';;
1070 eval with_$ac_useropt=no ;;
1073 # Obsolete; use --with-x.
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1090 -*) as_fn_error "unrecognized option: \`$ac_option'
1091 Try \`$0 --help' for more information."
1095 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 case $ac_envvar in #(
1098 '' | [0-9]* | *[!_$as_cr_alnum]* )
1099 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 as_fn_error "missing argument to $ac_option"
1120 if test -n "$ac_unrecognized_opts"; then
1121 case $enable_option_checking in
1123 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1124 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1128 # Check all directory arguments for consistency.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val=\$$ac_var
1135 # Remove trailing slashes.
1138 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1139 eval $ac_var=\$ac_val;;
1141 # Be sure to have absolute directory names.
1143 [\\/$]* | ?:[\\/]* ) continue;;
1144 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1146 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 as_fn_error "working directory cannot be determined"
1177 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1178 as_fn_error "pwd does not report name of working directory"
1181 # Find the source files, if location was not specified.
1182 if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$as_myself" ||
1186 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190 $as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1213 ac_srcdir_defaulted=no
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1219 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1223 # When building in place, set srcdir=.
1224 if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 # Remove unnecessary trailing slashes from srcdir.
1228 # Double slashes in file names in object file debugging info
1229 # mess up M-x gdb in Emacs.
1231 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1233 for ac_var in $ac_precious_vars; do
1234 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_env_${ac_var}_value=\$${ac_var}
1236 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1237 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1241 # Report the --help message.
1243 if test "$ac_init_help" = "long"; then
1244 # Omit some internal or obsolete options to make the list less imposing.
1245 # This message is too long to be a string in the A/UX 3.1 sh.
1247 \`configure' configures this package to adapt to many kinds of systems.
1249 Usage: $0 [OPTION]... [VAR=VALUE]...
1251 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1252 VAR=VALUE. See below for descriptions of some of the useful variables.
1254 Defaults for the options are specified in brackets.
1257 -h, --help display this help and exit
1258 --help=short display options specific to this package
1259 --help=recursive display the short help of all the included packages
1260 -V, --version display version information and exit
1261 -q, --quiet, --silent do not print \`checking...' messages
1262 --cache-file=FILE cache test results in FILE [disabled]
1263 -C, --config-cache alias for \`--cache-file=config.cache'
1264 -n, --no-create do not create output files
1265 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1267 Installation directories:
1268 --prefix=PREFIX install architecture-independent files in PREFIX
1269 [$ac_default_prefix]
1270 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 By default, \`make install' will install all the files in
1274 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1275 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1276 for instance \`--prefix=\$HOME'.
1278 For better control, use the options below.
1280 Fine tuning of the installation directories:
1281 --bindir=DIR user executables [EPREFIX/bin]
1282 --sbindir=DIR system admin executables [EPREFIX/sbin]
1283 --libexecdir=DIR program executables [EPREFIX/libexec]
1284 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1285 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1286 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1287 --libdir=DIR object code libraries [EPREFIX/lib]
1288 --includedir=DIR C header files [PREFIX/include]
1289 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1290 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1291 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1292 --infodir=DIR info documentation [DATAROOTDIR/info]
1293 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1294 --mandir=DIR man documentation [DATAROOTDIR/man]
1295 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1296 --htmldir=DIR html documentation [DOCDIR]
1297 --dvidir=DIR dvi documentation [DOCDIR]
1298 --pdfdir=DIR pdf documentation [DOCDIR]
1299 --psdir=DIR ps documentation [DOCDIR]
1305 --program-prefix=PREFIX prepend PREFIX to installed program names
1306 --program-suffix=SUFFIX append SUFFIX to installed program names
1307 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312 --target=TARGET configure for building compilers for TARGET [HOST]
1316 if test -n "$ac_init_help"; then
1321 --disable-option-checking ignore unrecognized --enable/--with options
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-maintainer-mode enable make rules and dependencies not useful
1325 (and sometimes confusing) to the casual installer
1326 --enable-werror treat compile warnings as errors
1327 --enable-inprocess-agent
1331 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1332 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1333 --with-ust=PATH Specify prefix directory for the installed UST package
1334 Equivalent to --with-ust-include=PATH/include
1335 plus --with-ust-lib=PATH/lib
1336 --with-ust-include=PATH Specify directory for installed UST include files
1337 --with-ust-lib=PATH Specify the directory for the installed UST library
1338 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1339 --with-bugurl=URL Direct users to URL to report a bug
1340 --with-libthread-db=PATH
1341 use given libthread_db directly
1343 Some influential environment variables:
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
1349 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1350 you have headers in a nonstandard directory <include dir>
1353 Use these variables to override the choices made by `configure' or to help
1354 it to find libraries and programs with nonstandard names/locations.
1356 Report bugs to the package provider.
1361 if test "$ac_init_help" = "recursive"; then
1362 # If there are subdirs, report their specific --help.
1363 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1364 test -d "$ac_dir" ||
1365 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1372 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1373 # A ".." for each directory in $ac_dir_suffix.
1374 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1375 case $ac_top_builddir_sub in
1376 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380 ac_abs_top_builddir=$ac_pwd
1381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1382 # for backward compatibility:
1383 ac_top_builddir=$ac_top_build_prefix
1386 .) # We are building in place.
1388 ac_top_srcdir=$ac_top_builddir_sub
1389 ac_abs_top_srcdir=$ac_pwd ;;
1390 [\\/]* | ?:[\\/]* ) # Absolute name.
1391 ac_srcdir=$srcdir$ac_dir_suffix;
1392 ac_top_srcdir=$srcdir
1393 ac_abs_top_srcdir=$srcdir ;;
1395 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1396 ac_top_srcdir=$ac_top_build_prefix$srcdir
1397 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1401 cd "$ac_dir" || { ac_status=$?; continue; }
1402 # Check for guested configure.
1403 if test -f "$ac_srcdir/configure.gnu"; then
1405 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1406 elif test -f "$ac_srcdir/configure"; then
1408 $SHELL "$ac_srcdir/configure" --help=recursive
1410 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1412 cd "$ac_pwd" || { ac_status=$?; break; }
1416 test -n "$ac_init_help" && exit $ac_status
1417 if $ac_init_version; then
1420 generated by GNU Autoconf 2.64
1422 Copyright (C) 2009 Free Software Foundation, Inc.
1423 This configure script is free software; the Free Software Foundation
1424 gives unlimited permission to copy, distribute and modify it.
1429 ## ------------------------ ##
1430 ## Autoconf initialization. ##
1431 ## ------------------------ ##
1433 # ac_fn_c_try_compile LINENO
1434 # --------------------------
1435 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1436 ac_fn_c_try_compile ()
1438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1439 rm -f conftest.$ac_objext
1440 if { { ac_try="$ac_compile"
1442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1443 *) ac_try_echo=$ac_try;;
1445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446 $as_echo "$ac_try_echo"; } >&5
1447 (eval "$ac_compile") 2>conftest.err
1449 if test -s conftest.err; then
1450 grep -v '^ *+' conftest.err >conftest.er1
1451 cat conftest.er1 >&5
1452 mv -f conftest.er1 conftest.err
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; } && {
1456 test -z "$ac_c_werror_flag" ||
1457 test ! -s conftest.err
1458 } && test -s conftest.$ac_objext; then :
1461 $as_echo "$as_me: failed program was:" >&5
1462 sed 's/^/| /' conftest.$ac_ext >&5
1466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1469 } # ac_fn_c_try_compile
1471 # ac_fn_c_try_cpp LINENO
1472 # ----------------------
1473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1477 if { { ac_try="$ac_cpp conftest.$ac_ext"
1479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1480 *) ac_try_echo=$ac_try;;
1482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1483 $as_echo "$ac_try_echo"; } >&5
1484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1486 if test -s conftest.err; then
1487 grep -v '^ *+' conftest.err >conftest.er1
1488 cat conftest.er1 >&5
1489 mv -f conftest.er1 conftest.err
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } >/dev/null && {
1493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1494 test ! -s conftest.err
1498 $as_echo "$as_me: failed program was:" >&5
1499 sed 's/^/| /' conftest.$ac_ext >&5
1503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1508 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1509 # -------------------------------------------------------
1510 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1511 # the include files in INCLUDES and setting the cache variable VAR
1513 ac_fn_c_check_header_mongrel ()
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1518 $as_echo_n "checking for $2... " >&6; }
1519 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1520 $as_echo_n "(cached) " >&6
1523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1524 $as_echo "$ac_res" >&6; }
1526 # Is the header compilable?
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1528 $as_echo_n "checking $2 usability... " >&6; }
1529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530 /* end confdefs.h. */
1534 if ac_fn_c_try_compile "$LINENO"; then :
1535 ac_header_compiler=yes
1537 ac_header_compiler=no
1539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1541 $as_echo "$ac_header_compiler" >&6; }
1543 # Is the header present?
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1545 $as_echo_n "checking $2 presence... " >&6; }
1546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1547 /* end confdefs.h. */
1550 if ac_fn_c_try_cpp "$LINENO"; then :
1551 ac_header_preproc=yes
1553 ac_header_preproc=no
1555 rm -f conftest.err conftest.$ac_ext
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1557 $as_echo "$ac_header_preproc" >&6; }
1559 # So? What about this header?
1560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1563 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1565 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1569 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1571 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1573 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1575 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1577 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1581 $as_echo_n "checking for $2... " >&6; }
1582 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1583 $as_echo_n "(cached) " >&6
1585 eval "$3=\$ac_header_compiler"
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589 $as_echo "$ac_res" >&6; }
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 } # ac_fn_c_check_header_mongrel
1595 # ac_fn_c_try_run LINENO
1596 # ----------------------
1597 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1598 # that executables *can* be run.
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 if { { ac_try="$ac_link"
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_link") 2>&5
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1613 { { case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_try") 2>&5
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; }; }; then :
1625 $as_echo "$as_me: program exited with status $ac_status" >&5
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1629 ac_retval=$ac_status
1631 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1647 $as_echo_n "(cached) " >&6
1649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650 /* end confdefs.h. */
1654 if ac_fn_c_try_compile "$LINENO"; then :
1659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 } # ac_fn_c_check_header_compile
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 rm -f conftest.$ac_objext conftest$ac_exeext
1675 if { { ac_try="$ac_link"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>conftest.err
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } && {
1691 test -z "$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 } && test -s conftest$ac_exeext && {
1694 test "$cross_compiling" = yes ||
1695 $as_test_x conftest$ac_exeext
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 } # ac_fn_c_try_link
1714 # ac_fn_c_check_func LINENO FUNC VAR
1715 # ----------------------------------
1716 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1717 ac_fn_c_check_func ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1726 /* end confdefs.h. */
1727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1729 #define $2 innocuous_$2
1731 /* System header to define __stub macros and hopefully few prototypes,
1732 which can conflict with char $2 (); below.
1733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1734 <limits.h> exists even on freestanding compilers. */
1737 # include <limits.h>
1739 # include <assert.h>
1744 /* Override any GCC internal prototype to avoid an error.
1745 Use char because int might match the return type of a GCC
1746 builtin and then its argument prototype would still apply. */
1751 /* The GNU C library defines this for functions which it implements
1752 to always fail with ENOSYS. Some functions are actually named
1753 something starting with __ and the normal name is an alias. */
1754 #if defined __stub_$2 || defined __stub___$2
1766 if ac_fn_c_try_link "$LINENO"; then :
1771 rm -f core conftest.err conftest.$ac_objext \
1772 conftest$ac_exeext conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 } # ac_fn_c_check_func
1781 # ac_fn_c_check_decl LINENO SYMBOL VAR
1782 # ------------------------------------
1783 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1784 ac_fn_c_check_decl ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 as_decl_name=`echo $2|sed 's/ *(.*//'`
1788 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1790 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1791 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1792 $as_echo_n "(cached) " >&6
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1800 #ifndef $as_decl_name
1802 (void) $as_decl_use;
1804 (void) $as_decl_name;
1812 if ac_fn_c_try_compile "$LINENO"; then :
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 } # ac_fn_c_check_decl
1826 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1827 # -------------------------------------------
1828 # Tests whether TYPE exists after having included INCLUDES, setting cache
1829 # variable VAR accordingly.
1830 ac_fn_c_check_type ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836 $as_echo_n "(cached) " >&6
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1864 if ac_fn_c_try_compile "$LINENO"; then :
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_type
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1883 It was created by $as_me, which was
1884 generated by GNU Autoconf 2.64. Invocation command line was
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1944 ac_must_keep_next=false
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1973 -* ) ac_must_keep_next=true ;;
1976 as_fn_append ac_configure_args " '$ac_arg'"
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
2000 # The following way of writing the cache mishandles newlines in values,
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2038 for ac_var in $ac_subst_vars
2040 eval ac_val=\$$ac_var
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 $as_echo "$ac_var='\''$ac_val'\''"
2048 if test -n "$ac_subst_files"; then
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2055 for ac_var in $ac_subst_files
2057 eval ac_val=\$$ac_var
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061 $as_echo "$ac_var='\''$ac_val'\''"
2066 if test -s confdefs.h; then
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2092 $as_echo "/* confdefs.h */" > confdefs.h
2094 # Predefined preprocessor variables.
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2162 # Check that the precious variables saved in the cache have kept the same
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2233 ac_config_headers="$ac_config_headers config.h:config.in"
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2238 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2239 # Check whether --enable-maintainer-mode was given.
2240 if test "${enable_maintainer_mode+set}" = set; then :
2241 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2243 USE_MAINTAINER_MODE=no
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2247 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2248 if test $USE_MAINTAINER_MODE = yes; then
2249 MAINTAINER_MODE_TRUE=
2250 MAINTAINER_MODE_FALSE='#'
2252 MAINTAINER_MODE_TRUE='#'
2253 MAINTAINER_MODE_FALSE=
2256 MAINT=$MAINTAINER_MODE_TRUE
2261 ac_cpp='$CPP $CPPFLAGS'
2262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265 if test -n "$ac_tool_prefix"; then
2266 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2267 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2269 $as_echo_n "checking for $ac_word... " >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then :
2271 $as_echo_n "(cached) " >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 test -z "$as_dir" && as_dir=.
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2283 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 if test -n "$CC"; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2296 $as_echo "$CC" >&6; }
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2299 $as_echo "no" >&6; }
2304 if test -z "$ac_cv_prog_CC"; then
2306 # Extract the first word of "gcc", so it can be a program name with args.
2307 set dummy gcc; ac_word=$2
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2309 $as_echo_n "checking for $ac_word... " >&6; }
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2313 if test -n "$ac_ct_CC"; then
2314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_CC="gcc"
2324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2336 $as_echo "$ac_ct_CC" >&6; }
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2339 $as_echo "no" >&6; }
2342 if test "x$ac_ct_CC" = x; then
2345 case $cross_compiling:$ac_tool_warned in
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2349 ac_tool_warned=yes ;;
2357 if test -z "$CC"; then
2358 if test -n "$ac_tool_prefix"; then
2359 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2360 set dummy ${ac_tool_prefix}cc; ac_word=$2
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2362 $as_echo_n "checking for $ac_word... " >&6; }
2363 if test "${ac_cv_prog_CC+set}" = set; then :
2364 $as_echo_n "(cached) " >&6
2366 if test -n "$CC"; then
2367 ac_cv_prog_CC="$CC" # Let the user override the test.
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2376 ac_cv_prog_CC="${ac_tool_prefix}cc"
2377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 if test -n "$CC"; then
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2389 $as_echo "$CC" >&6; }
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2392 $as_echo "no" >&6; }
2398 if test -z "$CC"; then
2399 # Extract the first word of "cc", so it can be a program name with args.
2400 set dummy cc; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if test "${ac_cv_prog_CC+set}" = set; then :
2404 $as_echo_n "(cached) " >&6
2406 if test -n "$CC"; then
2407 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2418 ac_prog_rejected=yes
2422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2429 if test $ac_prog_rejected = yes; then
2430 # We found a bogon in the path, so make sure we never use it.
2431 set dummy $ac_cv_prog_CC
2433 if test $# != 0; then
2434 # We chose a different compiler from the bogus one.
2435 # However, it has the same basename, so the bogon will be chosen
2436 # first if we set CC to just the basename; use the full file name.
2438 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2444 if test -n "$CC"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2446 $as_echo "$CC" >&6; }
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2454 if test -z "$CC"; then
2455 if test -n "$ac_tool_prefix"; then
2456 for ac_prog in cl.exe
2458 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2459 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if test "${ac_cv_prog_CC+set}" = set; then :
2463 $as_echo_n "(cached) " >&6
2465 if test -n "$CC"; then
2466 ac_cv_prog_CC="$CC" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$CC"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2488 $as_echo "$CC" >&6; }
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2491 $as_echo "no" >&6; }
2495 test -n "$CC" && break
2498 if test -z "$CC"; then
2500 for ac_prog in cl.exe
2502 # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2507 $as_echo_n "(cached) " >&6
2509 if test -n "$ac_ct_CC"; then
2510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_ac_ct_CC="$ac_prog"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2530 if test -n "$ac_ct_CC"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2532 $as_echo "$ac_ct_CC" >&6; }
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2539 test -n "$ac_ct_CC" && break
2542 if test "x$ac_ct_CC" = x; then
2545 case $cross_compiling:$ac_tool_warned in
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2549 ac_tool_warned=yes ;;
2558 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 as_fn_error "no acceptable C compiler found in \$PATH
2561 See \`config.log' for more details." "$LINENO" 5; }
2563 # Provide some information about the compiler.
2564 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2567 for ac_option in --version -v -V -qversion; do
2568 { { ac_try="$ac_compiler $ac_option >&5"
2570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571 *) ac_try_echo=$ac_try;;
2573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2574 $as_echo "$ac_try_echo"; } >&5
2575 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2577 if test -s conftest.err; then
2579 ... rest of stderr output deleted ...
2580 10q' conftest.err >conftest.er1
2581 cat conftest.er1 >&5
2582 rm -f conftest.er1 conftest.err
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; }
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2599 ac_clean_files_save=$ac_clean_files
2600 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2601 # Try to create an executable without -o first, disregard a.out.
2602 # It will help us diagnose broken compilers, and finding out an intuition
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2605 $as_echo_n "checking for C compiler default output file name... " >&6; }
2606 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2608 # The possible output files:
2609 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2612 for ac_file in $ac_files
2615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2616 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2621 if { { ac_try="$ac_link_default"
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_link_default") 2>&5
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }; then :
2632 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2633 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2634 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2635 # so that the user can short-circuit this test for compilers unknown to
2637 for ac_file in $ac_files ''
2639 test -f "$ac_file" || continue
2641 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2644 # We found the default executable, but exeext='' is most
2648 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2652 # We set ac_cv_exeext here because the later test for it is not
2653 # safe: cross compilers may not add the suffix if given an `-o'
2654 # argument, so we may need to know it at that point already.
2655 # Even if this section looks crufty: it has the advantage of
2662 test "$ac_cv_exeext" = no && ac_cv_exeext=
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2668 $as_echo "$ac_file" >&6; }
2669 if test -z "$ac_file"; then :
2670 $as_echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675 { as_fn_set_status 77
2676 as_fn_error "C compiler cannot create executables
2677 See \`config.log' for more details." "$LINENO" 5; }; }
2679 ac_exeext=$ac_cv_exeext
2681 # Check that the compiler produces executables we can run. If not, either
2682 # the compiler is broken, or we cross compile.
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2684 $as_echo_n "checking whether the C compiler works... " >&6; }
2685 # If not cross compiling, check that we can run a simple program.
2686 if test "$cross_compiling" != yes; then
2687 if { ac_try='./$ac_file'
2688 { { case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694 (eval "$ac_try") 2>&5
2696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2697 test $ac_status = 0; }; }; then
2700 if test "$cross_compiling" = maybe; then
2703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 as_fn_error "cannot run C compiled programs.
2706 If you meant to cross compile, use \`--host'.
2707 See \`config.log' for more details." "$LINENO" 5; }
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2712 $as_echo "yes" >&6; }
2714 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2715 ac_clean_files=$ac_clean_files_save
2716 # Check that the compiler produces executables we can run. If not, either
2717 # the compiler is broken, or we cross compile.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2719 $as_echo_n "checking whether we are cross compiling... " >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2721 $as_echo "$cross_compiling" >&6; }
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2724 $as_echo_n "checking for suffix of executables... " >&6; }
2725 if { { ac_try="$ac_link"
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731 $as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_link") 2>&5
2734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2735 test $ac_status = 0; }; then :
2736 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2737 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2738 # work properly (i.e., refer to `conftest.exe'), while it won't with
2740 for ac_file in conftest.exe conftest conftest.*; do
2741 test -f "$ac_file" || continue
2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2744 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2752 as_fn_error "cannot compute suffix of executables: cannot compile and link
2753 See \`config.log' for more details." "$LINENO" 5; }
2755 rm -f conftest$ac_cv_exeext
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2757 $as_echo "$ac_cv_exeext" >&6; }
2759 rm -f conftest.$ac_ext
2760 EXEEXT=$ac_cv_exeext
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2763 $as_echo_n "checking for suffix of object files... " >&6; }
2764 if test "${ac_cv_objext+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2778 rm -f conftest.o conftest.obj
2779 if { { ac_try="$ac_compile"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2785 $as_echo "$ac_try_echo"; } >&5
2786 (eval "$ac_compile") 2>&5
2788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2789 test $ac_status = 0; }; then :
2790 for ac_file in conftest.o conftest.obj conftest.*; do
2791 test -f "$ac_file" || continue;
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2794 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2799 $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2804 as_fn_error "cannot compute suffix of object files: cannot compile
2805 See \`config.log' for more details." "$LINENO" 5; }
2807 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2810 $as_echo "$ac_cv_objext" >&6; }
2811 OBJEXT=$ac_cv_objext
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2814 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2815 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2816 $as_echo_n "(cached) " >&6
2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h. */
2832 if ac_fn_c_try_compile "$LINENO"; then :
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2842 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2843 if test $ac_compiler_gnu = yes; then
2848 ac_test_CFLAGS=${CFLAGS+set}
2849 ac_save_CFLAGS=$CFLAGS
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2851 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2852 if test "${ac_cv_prog_cc_g+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2855 ac_save_c_werror_flag=$ac_c_werror_flag
2856 ac_c_werror_flag=yes
2859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2860 /* end confdefs.h. */
2870 if ac_fn_c_try_compile "$LINENO"; then :
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2885 if ac_fn_c_try_compile "$LINENO"; then :
2888 ac_c_werror_flag=$ac_save_c_werror_flag
2890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2891 /* end confdefs.h. */
2901 if ac_fn_c_try_compile "$LINENO"; then :
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 ac_c_werror_flag=$ac_save_c_werror_flag
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2912 $as_echo "$ac_cv_prog_cc_g" >&6; }
2913 if test "$ac_test_CFLAGS" = set; then
2914 CFLAGS=$ac_save_CFLAGS
2915 elif test $ac_cv_prog_cc_g = yes; then
2916 if test "$GCC" = yes; then
2922 if test "$GCC" = yes; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2929 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2930 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2931 $as_echo_n "(cached) " >&6
2933 ac_cv_prog_cc_c89=no
2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2936 /* end confdefs.h. */
2939 #include <sys/types.h>
2940 #include <sys/stat.h>
2941 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2942 struct buf { int x; };
2943 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944 static char *e (p, i)
2950 static char *f (char * (*g) (char **, int), char **p, ...)
2955 s = g (p, va_arg (v,int));
2960 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2961 function prototypes and stuff, but not '\xHH' hex character constants.
2962 These don't provoke an error unfortunately, instead are silently treated
2963 as 'x'. The following induces an error, until -std is added to get
2964 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2965 array size at least. It's necessary to write '\x00'==0 to get something
2966 that's true only with -std. */
2967 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2969 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2970 inside strings and character constants. */
2972 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2974 int test (int i, double x);
2975 struct s1 {int (*f) (int a);};
2976 struct s2 {int (*f) (double a);};
2977 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2983 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2988 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2989 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2991 CC="$ac_save_CC $ac_arg"
2992 if ac_fn_c_try_compile "$LINENO"; then :
2993 ac_cv_prog_cc_c89=$ac_arg
2995 rm -f core conftest.err conftest.$ac_objext
2996 test "x$ac_cv_prog_cc_c89" != "xno" && break
2998 rm -f conftest.$ac_ext
3003 case "x$ac_cv_prog_cc_c89" in
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3006 $as_echo "none needed" >&6; } ;;
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3009 $as_echo "unsupported" >&6; } ;;
3011 CC="$CC $ac_cv_prog_cc_c89"
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3015 if test "x$ac_cv_prog_cc_c89" != xno; then :
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3033 # On Suns, sometimes $CPP names a directory.
3034 if test -n "$CPP" && test -d "$CPP"; then
3037 if test -z "$CPP"; then
3038 if test "${ac_cv_prog_CPP+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3041 # Double quotes because CPP needs to be expanded
3042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3045 for ac_c_preproc_warn_flag in '' yes
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
3049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
3051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 /* end confdefs.h. */
3056 # include <limits.h>
3058 # include <assert.h>
3062 if ac_fn_c_try_cpp "$LINENO"; then :
3065 # Broken: fails on valid input.
3068 rm -f conftest.err conftest.$ac_ext
3070 # OK, works on sane cases. Now check whether nonexistent headers
3071 # can be detected and how.
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3074 #include <ac_nonexistent.h>
3076 if ac_fn_c_try_cpp "$LINENO"; then :
3077 # Broken: success on invalid input.
3080 # Passes both tests.
3084 rm -f conftest.err conftest.$ac_ext
3087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3088 rm -f conftest.err conftest.$ac_ext
3089 if $ac_preproc_ok; then :
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3102 $as_echo "$CPP" >&6; }
3104 for ac_c_preproc_warn_flag in '' yes
3106 # Use a header file that comes with gcc, so configuring glibc
3107 # with a fresh cross-compiler works.
3108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3109 # <limits.h> exists even on freestanding compilers.
3110 # On the NeXT, cc -E runs the code through the compiler's parser,
3111 # not just through cpp. "Syntax error" is here to catch this case.
3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3113 /* end confdefs.h. */
3115 # include <limits.h>
3117 # include <assert.h>
3121 if ac_fn_c_try_cpp "$LINENO"; then :
3124 # Broken: fails on valid input.
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether nonexistent headers
3130 # can be detected and how.
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3133 #include <ac_nonexistent.h>
3135 if ac_fn_c_try_cpp "$LINENO"; then :
3136 # Broken: success on invalid input.
3139 # Passes both tests.
3143 rm -f conftest.err conftest.$ac_ext
3146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3147 rm -f conftest.err conftest.$ac_ext
3148 if $ac_preproc_ok; then :
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3154 See \`config.log' for more details." "$LINENO" 5; }
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3165 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3166 if test "${ac_cv_path_GREP+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3169 if test -z "$GREP"; then
3170 ac_path_GREP_found=false
3171 # Loop through the user's path and test for each of PROGNAME-LIST
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3176 test -z "$as_dir" && as_dir=.
3177 for ac_prog in grep ggrep; do
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3180 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3181 # Check for GNU ac_path_GREP and select it if it is found.
3182 # Check for GNU $ac_path_GREP
3183 case `"$ac_path_GREP" --version 2>&1` in
3185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3188 $as_echo_n 0123456789 >"conftest.in"
3191 cat "conftest.in" "conftest.in" >"conftest.tmp"
3192 mv "conftest.tmp" "conftest.in"
3193 cp "conftest.in" "conftest.nl"
3194 $as_echo 'GREP' >> "conftest.nl"
3195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3197 as_fn_arith $ac_count + 1 && ac_count=$as_val
3198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3199 # Best one so far, save it but keep looking for a better one
3200 ac_cv_path_GREP="$ac_path_GREP"
3201 ac_path_GREP_max=$ac_count
3203 # 10*(2^10) chars as input seems more than enough
3204 test $ac_count -gt 10 && break
3206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3209 $ac_path_GREP_found && break 3
3214 if test -z "$ac_cv_path_GREP"; then
3215 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3218 ac_cv_path_GREP=$GREP
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3223 $as_echo "$ac_cv_path_GREP" >&6; }
3224 GREP="$ac_cv_path_GREP"
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3228 $as_echo_n "checking for egrep... " >&6; }
3229 if test "${ac_cv_path_EGREP+set}" = set; then :
3230 $as_echo_n "(cached) " >&6
3232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3233 then ac_cv_path_EGREP="$GREP -E"
3235 if test -z "$EGREP"; then
3236 ac_path_EGREP_found=false
3237 # Loop through the user's path and test for each of PROGNAME-LIST
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3242 test -z "$as_dir" && as_dir=.
3243 for ac_prog in egrep; do
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3246 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3247 # Check for GNU ac_path_EGREP and select it if it is found.
3248 # Check for GNU $ac_path_EGREP
3249 case `"$ac_path_EGREP" --version 2>&1` in
3251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3254 $as_echo_n 0123456789 >"conftest.in"
3257 cat "conftest.in" "conftest.in" >"conftest.tmp"
3258 mv "conftest.tmp" "conftest.in"
3259 cp "conftest.in" "conftest.nl"
3260 $as_echo 'EGREP' >> "conftest.nl"
3261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3263 as_fn_arith $ac_count + 1 && ac_count=$as_val
3264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3265 # Best one so far, save it but keep looking for a better one
3266 ac_cv_path_EGREP="$ac_path_EGREP"
3267 ac_path_EGREP_max=$ac_count
3269 # 10*(2^10) chars as input seems more than enough
3270 test $ac_count -gt 10 && break
3272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3275 $ac_path_EGREP_found && break 3
3280 if test -z "$ac_cv_path_EGREP"; then
3281 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3284 ac_cv_path_EGREP=$EGREP
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3290 $as_echo "$ac_cv_path_EGREP" >&6; }
3291 EGREP="$ac_cv_path_EGREP"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3295 $as_echo_n "checking for ANSI C header files... " >&6; }
3296 if test "${ac_cv_header_stdc+set}" = set; then :
3297 $as_echo_n "(cached) " >&6
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_header_stdc=yes
3317 ac_cv_header_stdc=no
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321 if test $ac_cv_header_stdc = yes; then
3322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3329 $EGREP "memchr" >/dev/null 2>&1; then :
3332 ac_cv_header_stdc=no
3338 if test $ac_cv_header_stdc = yes; then
3339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341 /* end confdefs.h. */
3345 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3346 $EGREP "free" >/dev/null 2>&1; then :
3349 ac_cv_header_stdc=no
3355 if test $ac_cv_header_stdc = yes; then
3356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3357 if test "$cross_compiling" = yes; then :
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 #if ((' ' & 0x0FF) == 0x020)
3365 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3366 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3368 # define ISLOWER(c) \
3369 (('a' <= (c) && (c) <= 'i') \
3370 || ('j' <= (c) && (c) <= 'r') \
3371 || ('s' <= (c) && (c) <= 'z'))
3372 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3375 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3380 for (i = 0; i < 256; i++)
3381 if (XOR (islower (i), ISLOWER (i))
3382 || toupper (i) != TOUPPER (i))
3387 if ac_fn_c_try_run "$LINENO"; then :
3390 ac_cv_header_stdc=no
3392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3393 conftest.$ac_objext conftest.beam conftest.$ac_ext
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3399 $as_echo "$ac_cv_header_stdc" >&6; }
3400 if test $ac_cv_header_stdc = yes; then
3402 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3406 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3407 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3413 eval as_val=\$$as_ac_Header
3414 if test "x$as_val" = x""yes; then :
3415 cat >>confdefs.h <<_ACEOF
3416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3425 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3426 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3433 if test "$MINIX" = yes; then
3435 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3438 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3441 $as_echo "#define _MINIX 1" >>confdefs.h
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3447 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3448 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3449 $as_echo_n "(cached) " >&6
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3454 # define __EXTENSIONS__ 1
3455 $ac_includes_default
3464 if ac_fn_c_try_compile "$LINENO"; then :
3465 ac_cv_safe_to_define___extensions__=yes
3467 ac_cv_safe_to_define___extensions__=no
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3472 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3473 test $ac_cv_safe_to_define___extensions__ = yes &&
3474 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3476 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3478 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3480 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3482 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3488 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3489 for ac_t in install-sh install.sh shtool; do
3490 if test -f "$ac_dir/$ac_t"; then
3492 ac_install_sh="$ac_aux_dir/$ac_t -c"
3497 if test -z "$ac_aux_dir"; then
3498 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3501 # These three variables are undocumented and unsupported,
3502 # and are intended to be withdrawn in a future Autoconf release.
3503 # They can cause serious problems if a builder's source tree is in a directory
3504 # whose full name contains unusual characters.
3505 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3506 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3507 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3510 # Make sure we can run config.sub.
3511 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3512 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3515 $as_echo_n "checking build system type... " >&6; }
3516 if test "${ac_cv_build+set}" = set; then :
3517 $as_echo_n "(cached) " >&6
3519 ac_build_alias=$build_alias
3520 test "x$ac_build_alias" = x &&
3521 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3522 test "x$ac_build_alias" = x &&
3523 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3524 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3525 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3529 $as_echo "$ac_cv_build" >&6; }
3530 case $ac_cv_build in
3532 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3535 ac_save_IFS=$IFS; IFS='-'
3541 # Remember, the first character of IFS is used to create $*,
3542 # except with old shells:
3545 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3549 $as_echo_n "checking host system type... " >&6; }
3550 if test "${ac_cv_host+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3553 if test "x$host_alias" = x; then
3554 ac_cv_host=$ac_cv_build
3556 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3557 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3562 $as_echo "$ac_cv_host" >&6; }
3565 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3568 ac_save_IFS=$IFS; IFS='-'
3574 # Remember, the first character of IFS is used to create $*,
3575 # except with old shells:
3578 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3582 $as_echo_n "checking target system type... " >&6; }
3583 if test "${ac_cv_target+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3586 if test "x$target_alias" = x; then
3587 ac_cv_target=$ac_cv_host
3589 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3590 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3595 $as_echo "$ac_cv_target" >&6; }
3596 case $ac_cv_target in
3598 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3600 target=$ac_cv_target
3601 ac_save_IFS=$IFS; IFS='-'
3607 # Remember, the first character of IFS is used to create $*,
3608 # except with old shells:
3611 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3614 # The aliases save the names the user supplied, while $host etc.
3615 # will get canonicalized.
3616 test -n "$target_alias" &&
3617 test "$program_prefix$program_suffix$program_transform_name" = \
3619 program_prefix=${target_alias}-
3622 # Find a good install program. We prefer a C program (faster),
3623 # so one script is as good as another. But avoid the broken or
3624 # incompatible versions:
3625 # SysV /etc/install, /usr/sbin/install
3626 # SunOS /usr/etc/install
3627 # IRIX /sbin/install
3629 # AmigaOS /C/install, which installs bootblocks on floppy discs
3630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3633 # OS/2's system install, which has a completely different semantic
3634 # ./install, which can be erroneously created by make from ./install.sh.
3635 # Reject install programs that cannot install multiple files.
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3637 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3638 if test -z "$INSTALL"; then
3639 if test "${ac_cv_path_install+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir=.
3647 # Account for people who put trailing slashes in PATH elements.
3648 case $as_dir/ in #((
3649 ./ | .// | /[cC]/* | \
3650 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3651 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3654 # OSF1 and SCO ODT 3.0 have their own names for install.
3655 # Don't use installbsd from OSF since it installs stuff as root
3657 for ac_prog in ginstall scoinst install; do
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3660 if test $ac_prog = install &&
3661 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3662 # AIX install. It has an incompatible calling convention.
3664 elif test $ac_prog = install &&
3665 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3666 # program-specific install script used by HP pwplus--don't use.
3669 rm -rf conftest.one conftest.two conftest.dir
3670 echo one > conftest.one
3671 echo two > conftest.two
3673 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3674 test -s conftest.one && test -s conftest.two &&
3675 test -s conftest.dir/conftest.one &&
3676 test -s conftest.dir/conftest.two
3678 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3691 rm -rf conftest.one conftest.two conftest.dir
3694 if test "${ac_cv_path_install+set}" = set; then
3695 INSTALL=$ac_cv_path_install
3697 # As a last resort, use the slow shell script. Don't cache a
3698 # value for INSTALL within a source directory, because that will
3699 # break other packages using the cache if that directory is
3700 # removed, or if the value is a relative name.
3701 INSTALL=$ac_install_sh
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3705 $as_echo "$INSTALL" >&6; }
3707 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3708 # It thinks the first close brace ends the variable substitution.
3709 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3711 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3713 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$RANLIB"; then
3724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 RANLIB=$ac_cv_prog_RANLIB
3744 if test -n "$RANLIB"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3746 $as_echo "$RANLIB" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3754 if test -z "$ac_cv_prog_RANLIB"; then
3755 ac_ct_RANLIB=$RANLIB
3756 # Extract the first word of "ranlib", so it can be a program name with args.
3757 set dummy ranlib; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$ac_ct_RANLIB"; then
3764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_ac_ct_RANLIB="ranlib"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3784 if test -n "$ac_ct_RANLIB"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3786 $as_echo "$ac_ct_RANLIB" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3792 if test "x$ac_ct_RANLIB" = x; then
3795 case $cross_compiling:$ac_tool_warned in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3801 RANLIB=$ac_ct_RANLIB
3804 RANLIB="$ac_cv_prog_RANLIB"
3808 test "$program_prefix" != NONE &&
3809 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3810 # Use a double $ so make ignores it.
3811 test "$program_suffix" != NONE &&
3812 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3813 # Double any \ or $.
3814 # By default was `s,x,x', remove it if useless.
3815 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3816 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3820 $as_echo_n "checking for ANSI C header files... " >&6; }
3821 if test "${ac_cv_header_stdc+set}" = set; then :
3822 $as_echo_n "(cached) " >&6
3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3839 if ac_fn_c_try_compile "$LINENO"; then :
3840 ac_cv_header_stdc=yes
3842 ac_cv_header_stdc=no
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849 /* end confdefs.h. */
3853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3854 $EGREP "memchr" >/dev/null 2>&1; then :
3857 ac_cv_header_stdc=no
3863 if test $ac_cv_header_stdc = yes; then
3864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "free" >/dev/null 2>&1; then :
3874 ac_cv_header_stdc=no
3880 if test $ac_cv_header_stdc = yes; then
3881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3882 if test "$cross_compiling" = yes; then :
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3889 #if ((' ' & 0x0FF) == 0x020)
3890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3893 # define ISLOWER(c) \
3894 (('a' <= (c) && (c) <= 'i') \
3895 || ('j' <= (c) && (c) <= 'r') \
3896 || ('s' <= (c) && (c) <= 'z'))
3897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3905 for (i = 0; i < 256; i++)
3906 if (XOR (islower (i), ISLOWER (i))
3907 || toupper (i) != TOUPPER (i))
3912 if ac_fn_c_try_run "$LINENO"; then :
3915 ac_cv_header_stdc=no
3917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3918 conftest.$ac_objext conftest.beam conftest.$ac_ext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3924 $as_echo "$ac_cv_header_stdc" >&6; }
3925 if test $ac_cv_header_stdc = yes; then
3927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3932 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3933 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
3935 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
3937 $as_echo_n "(cached) " >&6
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #include <sys/types.h>
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 eval "$as_ac_Header=yes"
3956 eval "$as_ac_Header=no"
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3960 eval ac_res=\$$as_ac_Header
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3962 $as_echo "$ac_res" >&6; }
3963 eval as_val=\$$as_ac_Header
3964 if test "x$as_val" = x""yes; then :
3965 cat >>confdefs.h <<_ACEOF
3966 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3969 ac_header_dirent=$ac_hdr; break
3973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3974 if test $ac_header_dirent = dirent.h; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
3976 $as_echo_n "checking for library containing opendir... " >&6; }
3977 if test "${ac_cv_search_opendir+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3980 ac_func_search_save_LIBS=$LIBS
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3984 /* Override any GCC internal prototype to avoid an error.
3985 Use char because int might match the return type of a GCC
3986 builtin and then its argument prototype would still apply. */
3999 for ac_lib in '' dir; do
4000 if test -z "$ac_lib"; then
4001 ac_res="none required"
4004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4006 if ac_fn_c_try_link "$LINENO"; then :
4007 ac_cv_search_opendir=$ac_res
4009 rm -f core conftest.err conftest.$ac_objext \
4011 if test "${ac_cv_search_opendir+set}" = set; then :
4015 if test "${ac_cv_search_opendir+set}" = set; then :
4018 ac_cv_search_opendir=no
4021 LIBS=$ac_func_search_save_LIBS
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4024 $as_echo "$ac_cv_search_opendir" >&6; }
4025 ac_res=$ac_cv_search_opendir
4026 if test "$ac_res" != no; then :
4027 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4033 $as_echo_n "checking for library containing opendir... " >&6; }
4034 if test "${ac_cv_search_opendir+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4037 ac_func_search_save_LIBS=$LIBS
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4041 /* Override any GCC internal prototype to avoid an error.
4042 Use char because int might match the return type of a GCC
4043 builtin and then its argument prototype would still apply. */
4056 for ac_lib in '' x; do
4057 if test -z "$ac_lib"; then
4058 ac_res="none required"
4061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4063 if ac_fn_c_try_link "$LINENO"; then :
4064 ac_cv_search_opendir=$ac_res
4066 rm -f core conftest.err conftest.$ac_objext \
4068 if test "${ac_cv_search_opendir+set}" = set; then :
4072 if test "${ac_cv_search_opendir+set}" = set; then :
4075 ac_cv_search_opendir=no
4078 LIBS=$ac_func_search_save_LIBS
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4081 $as_echo "$ac_cv_search_opendir" >&6; }
4082 ac_res=$ac_cv_search_opendir
4083 if test "$ac_res" != no; then :
4084 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4091 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4092 # for constant arguments. Useless!
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4094 $as_echo_n "checking for working alloca.h... " >&6; }
4095 if test "${ac_cv_working_alloca_h+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4104 char *p = (char *) alloca (2 * sizeof (int));
4110 if ac_fn_c_try_link "$LINENO"; then :
4111 ac_cv_working_alloca_h=yes
4113 ac_cv_working_alloca_h=no
4115 rm -f core conftest.err conftest.$ac_objext \
4116 conftest$ac_exeext conftest.$ac_ext
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4119 $as_echo "$ac_cv_working_alloca_h" >&6; }
4120 if test $ac_cv_working_alloca_h = yes; then
4122 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4127 $as_echo_n "checking for alloca... " >&6; }
4128 if test "${ac_cv_func_alloca_works+set}" = set; then :
4129 $as_echo_n "(cached) " >&6
4131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4132 /* end confdefs.h. */
4134 # define alloca __builtin_alloca
4137 # include <malloc.h>
4138 # define alloca _alloca
4140 # ifdef HAVE_ALLOCA_H
4141 # include <alloca.h>
4146 # ifndef alloca /* predefined by HP cc +Olibcalls */
4157 char *p = (char *) alloca (1);
4163 if ac_fn_c_try_link "$LINENO"; then :
4164 ac_cv_func_alloca_works=yes
4166 ac_cv_func_alloca_works=no
4168 rm -f core conftest.err conftest.$ac_objext \
4169 conftest$ac_exeext conftest.$ac_ext
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4172 $as_echo "$ac_cv_func_alloca_works" >&6; }
4174 if test $ac_cv_func_alloca_works = yes; then
4176 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4179 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4180 # that cause trouble. Some versions do not even contain alloca or
4181 # contain a buggy version. If you still want to use their alloca,
4182 # use ar to extract alloca.o from them instead of compiling alloca.c.
4184 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4186 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4190 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4191 if test "${ac_cv_os_cray+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4196 #if defined CRAY && ! defined CRAY2
4203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4204 $EGREP "webecray" >/dev/null 2>&1; then :
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4213 $as_echo "$ac_cv_os_cray" >&6; }
4214 if test $ac_cv_os_cray = yes; then
4215 for ac_func in _getb67 GETB67 getb67; do
4216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4218 eval as_val=\$$as_ac_var
4219 if test "x$as_val" = x""yes; then :
4221 cat >>confdefs.h <<_ACEOF
4222 #define CRAY_STACKSEG_END $ac_func
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4232 $as_echo_n "checking stack direction for C alloca... " >&6; }
4233 if test "${ac_cv_c_stack_direction+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4236 if test "$cross_compiling" = yes; then :
4237 ac_cv_c_stack_direction=0
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 $ac_includes_default
4243 find_stack_direction ()
4245 static char *addr = 0;
4250 return find_stack_direction ();
4253 return (&dummy > addr) ? 1 : -1;
4259 return find_stack_direction () < 0;
4262 if ac_fn_c_try_run "$LINENO"; then :
4263 ac_cv_c_stack_direction=1
4265 ac_cv_c_stack_direction=-1
4267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4268 conftest.$ac_objext conftest.beam conftest.$ac_ext
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4273 $as_echo "$ac_cv_c_stack_direction" >&6; }
4274 cat >>confdefs.h <<_ACEOF
4275 #define STACK_DIRECTION $ac_cv_c_stack_direction
4282 # Dependency checking.
4283 rm -rf .tst 2>/dev/null
4284 mkdir .tst 2>/dev/null
4285 if test -d .tst; then
4290 rmdir .tst 2>/dev/null
4292 DEPDIR="${am__leading_dot}deps"
4294 ac_config_commands="$ac_config_commands depdir"
4297 depcc="$CC" am_compiler_list=
4299 am_depcomp=$ac_aux_dir/depcomp
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4301 $as_echo_n "checking dependency style of $depcc... " >&6; }
4302 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -f "$am_depcomp"; then
4306 # We make a subdir and do the tests there. Otherwise we can end up
4307 # making bogus files that we don't know about and never remove. For
4308 # instance it was reported that on HP-UX the gcc test will end up
4309 # making a dummy file named `D' -- because `-MD' means `put the output
4312 # Copy depcomp to subdir because otherwise we won't find it if we're
4313 # using a relative directory.
4314 cp "$am_depcomp" conftest.dir
4316 # We will build objects and dependencies in a subdirectory because
4317 # it helps to detect inapplicable dependency modes. For instance
4318 # both Tru64's cc and ICC support -MD to output dependencies as a
4319 # side effect of compilation, but ICC will put the dependencies in
4320 # the current directory while Tru64 will put them in the object
4324 am_cv_CC_dependencies_compiler_type=none
4325 if test "$am_compiler_list" = ""; then
4326 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4328 for depmode in $am_compiler_list; do
4329 if test $depmode = none; then break; fi
4331 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4332 # Setup a source with many dependencies, because some compilers
4333 # like to wrap large dependency lists on column 80 (with \), and
4334 # we should not choose a depcomp mode which is confused by this.
4336 # We need to recreate these files for each test, as the compiler may
4337 # overwrite some of them when testing with obscure command lines.
4338 # This happens at least with the AIX C compiler.
4340 for i in 1 2 3 4 5 6; do
4341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4343 # Solaris 8's {/usr,}/bin/sh.
4344 touch sub/conftst$i.h
4346 echo "include sub/conftest.Po" > confmf
4348 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4349 # mode. It turns out that the SunPro C++ compiler does not properly
4350 # handle `-M -o', and we need to detect this.
4351 depcmd="depmode=$depmode \
4352 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4353 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4354 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4355 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4356 if env $depcmd > conftest.err 2>&1 &&
4357 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4358 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4359 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4360 # icc doesn't choke on unknown options, it will just issue warnings
4361 # or remarks (even with -Werror). So we grep stderr for any message
4362 # that says an option was ignored or not supported.
4363 # When given -MP, icc 7.0 and 7.1 complain thusly:
4364 # icc: Command line warning: ignoring option '-M'; no argument required
4365 # The diagnosis changed in icc 8.0:
4366 # icc: Command line remark: option '-MP' not supported
4367 if (grep 'ignoring option' conftest.err ||
4368 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4369 am_cv_CC_dependencies_compiler_type=$depmode
4370 $as_echo "$as_me:$LINENO: success" >&5
4374 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4375 sed -e 's/^/| /' < conftest.err >&5
4381 am_cv_CC_dependencies_compiler_type=none
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4386 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4387 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4388 then as_fn_error "no usable dependency style found" "$LINENO" 5
4389 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4394 # Check for the 'make' the user wants to use.
4397 # Extract the first word of "$ac_prog", so it can be a program name with args.
4398 set dummy $ac_prog; ac_word=$2
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 $as_echo_n "checking for $ac_word... " >&6; }
4401 if test "${ac_cv_prog_MAKE+set}" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 if test -n "$MAKE"; then
4405 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_MAKE="$ac_prog"
4415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 MAKE=$ac_cv_prog_MAKE
4425 if test -n "$MAKE"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4427 $as_echo "$MAKE" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4434 test -n "$MAKE" && break
4438 case "`$MAKE --version 2>&1 | sed 1q`" in
4443 if test "$MAKE_IS_GNU" = yes; then
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4452 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4454 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4455 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4456 $as_echo_n "(cached) " >&6
4458 cat >conftest.make <<\_ACEOF
4461 @echo '@@@%%%=$(MAKE)=@@@%%%'
4463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4464 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4466 eval ac_cv_prog_make_${ac_make}_set=yes;;
4468 eval ac_cv_prog_make_${ac_make}_set=no;;
4472 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4474 $as_echo "yes" >&6; }
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4478 $as_echo "no" >&6; }
4479 SET_MAKE="MAKE=${MAKE-make}"
4483 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
4484 # to find the the source subdir to be configured directly under
4485 # gdbserver/. We need to build gnulib under some other directory not
4486 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4487 # build it in the same directory, when building in the source dir.
4490 in_build="build-gnulib-gdbserver"
4492 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4493 # so they do not pile up.
4494 ac_sub_configure_args=
4496 eval "set x $ac_configure_args"
4500 if test -n "$ac_prev"; then
4505 -cache-file | --cache-file | --cache-fil | --cache-fi \
4506 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4507 ac_prev=cache_file ;;
4508 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4509 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4512 --config-cache | -C)
4514 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4516 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4522 --disable-option-checking)
4526 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4528 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4532 # Always prepend --prefix to ensure using the same prefix
4533 # in subdir configurations.
4534 ac_arg="--prefix=$prefix"
4536 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4538 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4541 if test "$silent" = yes; then
4542 ac_sub_configure_args="--silent $ac_sub_configure_args"
4545 # Always prepend --disable-option-checking to silence warnings, since
4546 # different subdirs can have different --enable and --with options.
4547 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4552 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4553 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4554 $as_echo "$ac_msg" >&6
4555 as_dir="$ac_dir"; as_fn_mkdir_p
4559 ac_srcdir=$srcdir/$in_src ;;
4561 ac_srcdir=../$srcdir/$in_src ;;
4566 ac_sub_configure=$ac_srcdir/configure
4568 # Make the cache file name correct relative to the subdirectory.
4570 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4572 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4575 { $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
4576 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4577 # The eval makes quoting arguments work.
4578 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4579 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4580 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4585 for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h thread_db.h linux/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h sys/wait.h wait.h sys/un.h linux/perf_event.h
4587 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4588 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4589 eval as_val=\$$as_ac_Header
4590 if test "x$as_val" = x""yes; then :
4591 cat >>confdefs.h <<_ACEOF
4592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4599 for ac_func in pread pwrite pread64 readlink
4601 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4602 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4603 eval as_val=\$$as_ac_var
4604 if test "x$as_val" = x""yes; then :
4605 cat >>confdefs.h <<_ACEOF
4606 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4612 for ac_func in vasprintf vsnprintf
4614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4616 eval as_val=\$$as_ac_var
4617 if test "x$as_val" = x""yes; then :
4618 cat >>confdefs.h <<_ACEOF
4619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4623 case " $LIBOBJS " in
4624 *" $ac_func.$ac_objext "* ) ;;
4625 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4639 # Check whether --with-ust was given.
4640 if test "${with_ust+set}" = set; then :
4645 # Check whether --with-ust_include was given.
4646 if test "${with_ust_include+set}" = set; then :
4647 withval=$with_ust_include;
4651 # Check whether --with-ust_lib was given.
4652 if test "${with_ust_lib+set}" = set; then :
4653 withval=$with_ust_lib;
4667 ustlibs="-L$with_ust/lib -lust"
4668 ustinc="-I$with_ust/include "
4671 if test "x$with_ust_include" != x; then
4672 ustinc="-I$with_ust_include "
4674 if test "x$with_ust_lib" != x; then
4675 ustlibs="-L$with_ust_lib -lust"
4678 if test "x$with_ust" != "xno"; then
4679 saved_CFLAGS="$CFLAGS"
4680 CFLAGS="$CFLAGS $ustinc"
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4682 $as_echo_n "checking for ust... " >&6; }
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4686 #define CONFIG_UST_GDB_INTEGRATION
4687 #include <ust/ust.h>
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4699 $as_echo "yes" >&6; };
4700 $as_echo "#define HAVE_UST 1" >>confdefs.h
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }; ustlibs= ; ustinc=
4706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707 CFLAGS="$saved_CFLAGS"
4710 # Flags needed for UST
4714 # Check whether --enable-werror was given.
4715 if test "${enable_werror+set}" = set; then :
4716 enableval=$enable_werror; case "${enableval}" in
4717 yes | y) ERROR_ON_WARNING="yes" ;;
4718 no | n) ERROR_ON_WARNING="no" ;;
4719 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4724 # Enable -Werror by default when using gcc
4725 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4726 ERROR_ON_WARNING=yes
4730 if test "${ERROR_ON_WARNING}" = yes ; then
4731 WERROR_CFLAGS="-Werror"
4734 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4735 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
4738 if test "x$GCC" = xyes
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4741 $as_echo_n "checking compiler warning flags... " >&6; }
4742 # Separate out the -Werror flag as some files just cannot be
4743 # compiled with it enabled.
4744 for w in ${build_warnings}; do
4746 -Werr*) WERROR_CFLAGS=-Werror ;;
4747 *) # Check that GCC accepts it
4748 saved_CFLAGS="$CFLAGS"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h. */
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762 WARN_CFLAGS="${WARN_CFLAGS} $w"
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 CFLAGS="$saved_CFLAGS"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4769 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4776 for ac_func in dladdr
4778 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
4779 if test "x$ac_cv_func_dladdr" = x""yes; then :
4780 cat >>confdefs.h <<_ACEOF
4781 #define HAVE_DLADDR 1
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
4791 $as_echo_n "checking for errno... " >&6; }
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4801 static int x; x = errno;
4806 if ac_fn_c_try_link "$LINENO"; then :
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
4808 $as_echo "yes - in errno.h" >&6; };
4809 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4812 rm -f core conftest.err conftest.$ac_objext \
4813 conftest$ac_exeext conftest.$ac_ext
4814 if test $have_errno = no; then
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4824 extern int errno; static int x; x = errno;
4829 if ac_fn_c_try_link "$LINENO"; then :
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
4831 $as_echo "yes - must define" >&6; };
4832 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
4834 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838 $as_echo "no" >&6; }
4840 rm -f core conftest.err conftest.$ac_objext \
4841 conftest$ac_exeext conftest.$ac_ext
4844 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
4845 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
4851 cat >>confdefs.h <<_ACEOF
4852 #define HAVE_DECL_STRERROR $ac_have_decl
4854 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
4855 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
4861 cat >>confdefs.h <<_ACEOF
4862 #define HAVE_DECL_STRSTR $ac_have_decl
4864 ac_fn_c_check_decl "$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
4865 if test "x$ac_cv_have_decl_perror" = x""yes; then :
4871 cat >>confdefs.h <<_ACEOF
4872 #define HAVE_DECL_PERROR $ac_have_decl
4874 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
4875 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
4881 cat >>confdefs.h <<_ACEOF
4882 #define HAVE_DECL_VASPRINTF $ac_have_decl
4884 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
4885 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
4891 cat >>confdefs.h <<_ACEOF
4892 #define HAVE_DECL_VSNPRINTF $ac_have_decl
4896 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
4897 #include <sys/socket.h>
4900 if test "x$ac_cv_type_socklen_t" = x""yes; then :
4902 cat >>confdefs.h <<_ACEOF
4903 #define HAVE_SOCKLEN_T 1
4910 ac_fn_c_check_type "$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
4913 if test "x$ac_cv_type_Elf32_auxv_t" = x""yes; then :
4915 cat >>confdefs.h <<_ACEOF
4916 #define HAVE_ELF32_AUXV_T 1
4921 ac_fn_c_check_type "$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
4924 if test "x$ac_cv_type_Elf64_auxv_t" = x""yes; then :
4926 cat >>confdefs.h <<_ACEOF
4927 #define HAVE_ELF64_AUXV_T 1
4936 # Check whether --with-pkgversion was given.
4937 if test "${with_pkgversion+set}" = set; then :
4938 withval=$with_pkgversion; case "$withval" in
4939 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
4941 *) PKGVERSION="($withval) " ;;
4952 # Check whether --with-bugurl was given.
4953 if test "${with_bugurl+set}" = set; then :
4954 withval=$with_bugurl; case "$withval" in
4955 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
4958 *) BUGURL="$withval"
4962 BUGURL="http://www.gnu.org/software/gdb/bugs/"
4972 REPORT_BUGS_TO="<$BUGURL>"
4973 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
4980 cat >>confdefs.h <<_ACEOF
4981 #define PKGVERSION "$PKGVERSION"
4985 cat >>confdefs.h <<_ACEOF
4986 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
4990 # Check for various supplementary target information (beyond the
4991 # triplet) which might affect the choices in configure.srv.
4993 i[34567]86-*-linux*)
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
4995 $as_echo_n "checking if building for x86-64... " >&6; }
4996 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4999 save_CPPFLAGS="$CPPFLAGS"
5000 CPPFLAGS="$CPPFLAGS $CFLAGS"
5001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5010 $EGREP "got it" >/dev/null 2>&1; then :
5011 gdb_cv_i386_is_x86_64=yes
5013 gdb_cv_i386_is_x86_64=no
5017 CPPFLAGS="$save_CPPFLAGS"
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5020 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5024 $as_echo_n "checking if building for Coldfire... " >&6; }
5025 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5028 save_CPPFLAGS="$CPPFLAGS"
5029 CPPFLAGS="$CPPFLAGS $CFLAGS"
5030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5033 #ifdef __mcoldfire__
5038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5039 $EGREP "got it" >/dev/null 2>&1; then :
5040 gdb_cv_m68k_is_coldfire=yes
5042 gdb_cv_m68k_is_coldfire=no
5046 CPPFLAGS="$save_CPPFLAGS"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5049 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5053 . ${srcdir}/configure.srv
5055 if test "${srv_mingwce}" = "yes"; then
5057 elif test "${srv_mingw}" = "yes"; then
5058 LIBS="$LIBS -lws2_32"
5059 elif test "${srv_qnx}" = "yes"; then
5060 LIBS="$LIBS -lsocket"
5061 elif test "${srv_lynxos}" = "yes"; then
5062 LIBS="$LIBS -lnetinet"
5065 if test "${srv_mingw}" = "yes"; then
5067 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5071 if test "${srv_linux_usrregs}" = "yes"; then
5073 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5077 if test "${srv_linux_regsets}" = "yes"; then
5079 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5083 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5084 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 #include <sys/ptrace.h>
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 gdbsrv_cv_have_ptrace_getregs=yes
5101 gdbsrv_cv_have_ptrace_getregs=no
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5107 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5108 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5110 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5115 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5116 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 #include <sys/ptrace.h>
5130 if ac_fn_c_try_compile "$LINENO"; then :
5131 gdbsrv_cv_have_ptrace_getfpxregs=yes
5133 gdbsrv_cv_have_ptrace_getfpxregs=no
5135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5139 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5140 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5142 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5147 if test "$ac_cv_header_sys_procfs_h" = yes; then
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5149 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5150 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5157 /* Needed for new procfs interface on sparc-solaris. */
5158 #define _STRUCTURED_PROC 1
5159 #include <sys/procfs.h>
5168 if ac_fn_c_try_compile "$LINENO"; then :
5169 bfd_cv_have_sys_procfs_type_lwpid_t=yes
5171 bfd_cv_have_sys_procfs_type_lwpid_t=no
5174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5179 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5183 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5186 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5187 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 /* end confdefs.h. */
5194 /* Needed for new procfs interface on sparc-solaris. */
5195 #define _STRUCTURED_PROC 1
5196 #include <sys/procfs.h>
5205 if ac_fn_c_try_compile "$LINENO"; then :
5206 bfd_cv_have_sys_procfs_type_psaddr_t=yes
5208 bfd_cv_have_sys_procfs_type_psaddr_t=no
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5216 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5220 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5223 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5224 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5231 /* Needed for new procfs interface on sparc-solaris. */
5232 #define _STRUCTURED_PROC 1
5233 #include <sys/procfs.h>
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 bfd_cv_have_sys_procfs_type_prgregset_t=yes
5245 bfd_cv_have_sys_procfs_type_prgregset_t=no
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5253 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5257 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5260 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5261 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5268 /* Needed for new procfs interface on sparc-solaris. */
5269 #define _STRUCTURED_PROC 1
5270 #include <sys/procfs.h>
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
5282 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
5290 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5294 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
5298 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5300 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5301 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5307 #include <thread_db.h>
5316 if ac_fn_c_try_compile "$LINENO"; then :
5317 gdbserver_cv_have_thread_db_type_lwpid_t=yes
5319 gdbserver_cv_have_thread_db_type_lwpid_t=no
5322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5327 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5331 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
5335 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
5337 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
5338 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
5339 $as_echo_n "(cached) " >&6
5341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342 /* end confdefs.h. */
5344 #include <thread_db.h>
5353 if ac_fn_c_try_compile "$LINENO"; then :
5354 gdbserver_cv_have_thread_db_type_psaddr_t=yes
5356 gdbserver_cv_have_thread_db_type_psaddr_t=no
5359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
5364 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
5368 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5374 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5378 ac_check_lib_save_LIBS=$LIBS
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5383 /* Override any GCC internal prototype to avoid an error.
5384 Use char because int might match the return type of a GCC
5385 builtin and then its argument prototype would still apply. */
5398 if ac_fn_c_try_link "$LINENO"; then :
5399 ac_cv_lib_dl_dlopen=yes
5401 ac_cv_lib_dl_dlopen=no
5403 rm -f core conftest.err conftest.$ac_objext \
5404 conftest$ac_exeext conftest.$ac_ext
5405 LIBS=$ac_check_lib_save_LIBS
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5408 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5409 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define HAVE_LIBDL 1
5420 srv_thread_depfiles=
5424 if test "$srv_linux_thread_db" = "yes"; then
5425 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
5428 $as_echo_n "checking for the dynamic export flag... " >&6; }
5429 old_LDFLAGS="$LDFLAGS"
5430 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
5432 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
5433 LDFLAGS="$LDFLAGS $RDYNAMIC"
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5445 if ac_fn_c_try_link "$LINENO"; then :
5446 found="-Wl,--dynamic-list"
5447 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
5449 RDYNAMIC="-rdynamic"
5450 LDFLAGS="$old_LDFLAGS $RDYNAMIC"
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5462 if ac_fn_c_try_link "$LINENO"; then :
5468 rm -f core conftest.err conftest.$ac_objext \
5469 conftest$ac_exeext conftest.$ac_ext
5471 rm -f core conftest.err conftest.$ac_objext \
5472 conftest$ac_exeext conftest.$ac_ext
5474 LDFLAGS="$old_LDFLAGS"
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
5476 $as_echo "$found" >&6; }
5478 srv_libs="-lthread_db"
5481 srv_thread_depfiles="thread-db.o proc-service.o"
5482 USE_THREAD_DB="-DUSE_THREAD_DB"
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
5484 $as_echo_n "checking for TD_VERSION... " >&6; }
5485 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 #include <thread_db.h>
5499 if ac_fn_c_try_compile "$LINENO"; then :
5500 gdbsrv_cv_have_td_version=yes
5502 gdbsrv_cv_have_td_version=no
5504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
5507 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
5508 if test $gdbsrv_cv_have_td_version = yes; then
5510 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
5516 # Check whether --with-libthread-db was given.
5517 if test "${with_libthread_db+set}" = set; then :
5518 withval=$with_libthread_db; srv_libthread_db_path="${withval}"
5519 srv_libs="$srv_libthread_db_path"
5524 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
5526 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
5530 if test "$srv_xmlfiles" != ""; then
5531 srv_xmlbuiltin="xml-builtin.o"
5533 $as_echo "#define USE_XML 1" >>confdefs.h
5536 tmp_xmlfiles=$srv_xmlfiles
5538 for f in $tmp_xmlfiles; do
5539 srv_xmlfiles="$srv_xmlfiles \$(XML_DIR)/$f"
5543 GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
5544 GDBSERVER_LIBS="$srv_libs"
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5547 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5548 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5549 $as_echo_n "(cached) " >&6
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5558 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5563 if ac_fn_c_try_link "$LINENO"; then :
5564 gdbsrv_cv_have_sync_builtins=yes
5566 gdbsrv_cv_have_sync_builtins=no
5568 rm -f core conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5572 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5573 if test $gdbsrv_cv_have_sync_builtins = yes; then
5575 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
5579 saved_cflags="$CFLAGS"
5580 CFLAGS="$CFLAGS -fvisibility=hidden"
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5592 if ac_fn_c_try_compile "$LINENO"; then :
5593 gdbsrv_cv_have_visibility_hidden=yes
5595 gdbsrv_cv_have_visibility_hidden=no
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 CFLAGS="$saved_cflags"
5600 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5602 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
5608 cat >>confdefs.h <<_ACEOF
5609 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5613 if test "$cross_compiling" = yes; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615 /* end confdefs.h. */
5616 #include <sys/personality.h>
5621 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5622 # define ADDR_NO_RANDOMIZE 0x0040000
5624 /* Test the flag could be set and stays set. */
5625 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5626 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5632 if ac_fn_c_try_link "$LINENO"; then :
5633 gdbsrv_cv_have_personality=true
5635 gdbsrv_cv_have_personality=false
5637 rm -f core conftest.err conftest.$ac_objext \
5638 conftest$ac_exeext conftest.$ac_ext
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 #include <sys/personality.h>
5647 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5648 # define ADDR_NO_RANDOMIZE 0x0040000
5650 /* Test the flag could be set and stays set. */
5651 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5652 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5658 if ac_fn_c_try_run "$LINENO"; then :
5659 gdbsrv_cv_have_personality=true
5661 gdbsrv_cv_have_personality=false
5663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5664 conftest.$ac_objext conftest.beam conftest.$ac_ext
5667 if $gdbsrv_cv_have_personality
5670 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
5678 # check whether to enable the inprocess agent
5679 if test "$ipa_obj" != "" \
5680 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5681 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5687 # Check whether --enable-inprocess-agent was given.
5688 if test "${enable_inprocess_agent+set}" = set; then :
5689 enableval=$enable_inprocess_agent; case "$enableval" in
5690 yes) want_ipa=true ;;
5691 no) want_ipa=false ;;
5692 *) as_fn_error "bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5701 IPA_DEPFILES="$ipa_obj"
5702 extra_libraries="$extra_libraries libinproctrace.so"
5704 as_fn_error "inprocess agent not supported for this target" "$LINENO" 5
5716 GNULIB=build-gnulib-gdbserver/import
5719 if test x"$STDINT_H" != x; then
5720 GNULIB_STDINT_H=$GNULIB/$STDINT_H
5724 ac_config_files="$ac_config_files Makefile"
5726 ac_config_commands="$ac_config_commands default"
5728 cat >confcache <<\_ACEOF
5729 # This file is a shell script that caches the results of configure
5730 # tests run on this system so they can be shared between configure
5731 # scripts and configure runs, see configure's option --config-cache.
5732 # It is not useful on other systems. If it contains results you don't
5733 # want to keep, you may remove or edit it.
5735 # config.status only pays attention to the cache file if you give it
5736 # the --recheck option to rerun configure.
5738 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5739 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5744 # The following way of writing the cache mishandles newlines in values,
5745 # but we know of no workaround that is simple, portable, and efficient.
5746 # So, we kill variables containing newlines.
5747 # Ultrix sh set writes to stderr and can't be redirected directly,
5748 # and sets the high bit in the cache file unless we assign to the vars.
5750 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5751 eval ac_val=\$$ac_var
5755 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5756 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5759 _ | IFS | as_nl) ;; #(
5760 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5761 *) { eval $ac_var=; unset $ac_var;} ;;
5767 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5768 *${as_nl}ac_space=\ *)
5769 # `set' does not quote correctly, so add quotes: double-quote
5770 # substitution turns \\\\ into \\, and sed turns \\ into \.
5773 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5776 # `set' quotes correctly as required by POSIX, so do not add quotes.
5777 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5788 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5790 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5791 if test -w "$cache_file"; then
5792 test "x$cache_file" != "x/dev/null" &&
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5794 $as_echo "$as_me: updating cache $cache_file" >&6;}
5795 cat confcache >$cache_file
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5798 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5804 # Let make expand exec_prefix.
5805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5807 DEFS=-DHAVE_CONFIG_H
5811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5812 # 1. Remove the extension, and $U if already installed.
5813 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5814 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5815 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5816 # will be set to the directory where LIBOBJS objects are built.
5817 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5818 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5822 LTLIBOBJS=$ac_ltlibobjs
5825 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5826 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
5827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5829 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
5830 as_fn_error "conditional \"GMAKE\" was never defined.
5831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5834 : ${CONFIG_STATUS=./config.status}
5836 ac_clean_files_save=$ac_clean_files
5837 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5839 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5841 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5843 # Generated by $as_me.
5844 # Run this file to recreate the current configuration.
5845 # Compiler output produced by configure, useful for debugging
5846 # configure, is in config.log if it exists.
5852 SHELL=\${CONFIG_SHELL-$SHELL}
5855 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5856 ## -------------------- ##
5857 ## M4sh Initialization. ##
5858 ## -------------------- ##
5860 # Be more Bourne compatible
5861 DUALCASE=1; export DUALCASE # for MKS sh
5862 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5865 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5866 # is contrary to our usage. Disable this feature.
5867 alias -g '${1+"$@"}'='"$@"'
5868 setopt NO_GLOB_SUBST
5870 case `(set -o) 2>/dev/null` in #(
5882 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5883 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5884 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5885 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5886 # Prefer a ksh shell builtin over an external printf program on Solaris,
5887 # but without wasting forks for bash or zsh.
5888 if test -z "$BASH_VERSION$ZSH_VERSION" \
5889 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5890 as_echo='print -r --'
5891 as_echo_n='print -rn --'
5892 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5893 as_echo='printf %s\n'
5894 as_echo_n='printf %s'
5896 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5897 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5898 as_echo_n='/usr/ucb/echo -n'
5900 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5901 as_echo_n_body='eval
5905 expr "X$arg" : "X\\(.*\\)$as_nl";
5906 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5908 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5910 export as_echo_n_body
5911 as_echo_n='sh -c $as_echo_n_body as_echo'
5914 as_echo='sh -c $as_echo_body as_echo'
5917 # The user is always right.
5918 if test "${PATH_SEPARATOR+set}" != set; then
5920 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5921 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5928 # We need space, tab and new line, in precisely that order. Quoting is
5929 # there to prevent editors from complaining about space-tab.
5930 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5931 # splitting by setting IFS to empty value.)
5934 # Find who we are. Look in the path if we contain no directory separator.
5936 *[\\/]* ) as_myself=$0 ;;
5937 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5948 # We did not find ourselves, most probably we were run as `sh COMMAND'
5949 # in which case we are not to be found in the path.
5950 if test "x$as_myself" = x; then
5953 if test ! -f "$as_myself"; then
5954 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5958 # Unset variables that we do not need and which cause bugs (e.g. in
5959 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5960 # suppresses any "Segmentation fault" message there. '((' could
5961 # trigger a bug in pdksh 5.2.14.
5962 for as_var in BASH_ENV ENV MAIL MAILPATH
5963 do eval test x\${$as_var+set} = xset \
5964 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5977 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5980 # as_fn_error ERROR [LINENO LOG_FD]
5981 # ---------------------------------
5982 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5983 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5984 # script with status $?, using 1 if that was 0.
5987 as_status=$?; test $as_status -eq 0 && as_status=1
5989 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5990 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5992 $as_echo "$as_me: error: $1" >&2
5993 as_fn_exit $as_status
5997 # as_fn_set_status STATUS
5998 # -----------------------
5999 # Set $? to STATUS, without forking.
6003 } # as_fn_set_status
6007 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6017 # Portably unset VAR.
6020 { eval $1=; unset $1;}
6022 as_unset=as_fn_unset
6023 # as_fn_append VAR VALUE
6024 # ----------------------
6025 # Append the text in VALUE to the end of the definition contained in VAR. Take
6026 # advantage of any shell optimizations that allow amortized linear growth over
6027 # repeated appends, instead of the typical quadratic growth present in naive
6029 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6030 eval 'as_fn_append ()
6041 # as_fn_arith ARG...
6042 # ------------------
6043 # Perform arithmetic evaluation on the ARGs, and store the result in the
6044 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6045 # must be portable across $(()) and expr.
6046 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6047 eval 'as_fn_arith ()
6054 as_val=`expr "$@" || test $? -eq 1`
6059 if expr a : '\(a\)' >/dev/null 2>&1 &&
6060 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6066 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6067 as_basename=basename
6072 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6078 as_me=`$as_basename -- "$0" ||
6079 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6080 X"$0" : 'X\(//\)$' \| \
6081 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6083 sed '/^.*\/\([^/][^/]*\)\/*$/{
6097 # Avoid depending upon Character Ranges.
6098 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6101 as_cr_digits='0123456789'
6102 as_cr_alnum=$as_cr_Letters$as_cr_digits
6104 ECHO_C= ECHO_N= ECHO_T=
6105 case `echo -n x` in #(((((
6107 case `echo 'xy\c'` in
6108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6110 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6117 rm -f conf$$ conf$$.exe conf$$.file
6118 if test -d conf$$.dir; then
6119 rm -f conf$$.dir/conf$$.file
6122 mkdir conf$$.dir 2>/dev/null
6124 if (echo >conf$$.file) 2>/dev/null; then
6125 if ln -s conf$$.file conf$$ 2>/dev/null; then
6127 # ... but there are two gotchas:
6128 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6129 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6130 # In both cases, we have to default to `cp -p'.
6131 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6133 elif ln conf$$.file conf$$ 2>/dev/null; then
6141 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6142 rmdir conf$$.dir 2>/dev/null
6147 # Create "$as_dir" as a directory, including parents if necessary.
6152 -*) as_dir=./$as_dir;;
6154 test -d "$as_dir" || eval $as_mkdir_p || {
6158 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6159 *) as_qdir=$as_dir;;
6161 as_dirs="'$as_qdir' $as_dirs"
6162 as_dir=`$as_dirname -- "$as_dir" ||
6163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6164 X"$as_dir" : 'X\(//\)[^/]' \| \
6165 X"$as_dir" : 'X\(//\)$' \| \
6166 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6167 $as_echo X"$as_dir" |
6168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6185 test -d "$as_dir" && break
6187 test -z "$as_dirs" || eval "mkdir $as_dirs"
6188 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6192 if mkdir -p . 2>/dev/null; then
6193 as_mkdir_p='mkdir -p "$as_dir"'
6195 test -d ./-p && rmdir ./-p
6199 if test -x / >/dev/null 2>&1; then
6202 if ls -dL / >/dev/null 2>&1; then
6209 if test -d "$1"; then
6215 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6216 ???[sx]*):;;*)false;;esac;fi
6220 as_executable_p=$as_test_x
6222 # Sed expression to map a string onto a valid CPP name.
6223 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6225 # Sed expression to map a string onto a valid variable name.
6226 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6230 ## ----------------------------------- ##
6231 ## Main body of $CONFIG_STATUS script. ##
6232 ## ----------------------------------- ##
6234 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6237 # Save the log message, to keep $0 and so on meaningful, and to
6238 # report actual input values of CONFIG_FILES etc. instead of their
6239 # values after options handling.
6241 This file was extended by $as_me, which was
6242 generated by GNU Autoconf 2.64. Invocation command line was
6244 CONFIG_FILES = $CONFIG_FILES
6245 CONFIG_HEADERS = $CONFIG_HEADERS
6246 CONFIG_LINKS = $CONFIG_LINKS
6247 CONFIG_COMMANDS = $CONFIG_COMMANDS
6250 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6255 case $ac_config_files in *"
6256 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6259 case $ac_config_headers in *"
6260 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6265 # Files that config.status was made for.
6266 config_files="$ac_config_files"
6267 config_headers="$ac_config_headers"
6268 config_commands="$ac_config_commands"
6272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6274 \`$as_me' instantiates files and other configuration actions
6275 from templates according to the current configuration. Unless the files
6276 and actions are specified as TAGs, all are instantiated by default.
6278 Usage: $0 [OPTION]... [TAG]...
6280 -h, --help print this help, then exit
6281 -V, --version print version number and configuration settings, then exit
6282 -q, --quiet, --silent
6283 do not print progress messages
6284 -d, --debug don't remove temporary files
6285 --recheck update $as_me by reconfiguring in the same conditions
6286 --file=FILE[:TEMPLATE]
6287 instantiate the configuration file FILE
6288 --header=FILE[:TEMPLATE]
6289 instantiate the configuration header FILE
6291 Configuration files:
6294 Configuration headers:
6297 Configuration commands:
6300 Report bugs to the package provider."
6303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6306 configured by $0, generated by GNU Autoconf 2.64,
6307 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6309 Copyright (C) 2009 Free Software Foundation, Inc.
6310 This config.status script is free software; the Free Software Foundation
6311 gives unlimited permission to copy, distribute and modify it."
6316 test -n "\$AWK" || AWK=awk
6319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6320 # The default lists apply if the user does not specify any file.
6326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6327 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6338 # Handling of the options.
6339 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6341 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6342 $as_echo "$ac_cs_version"; exit ;;
6343 --debug | --debu | --deb | --de | --d | -d )
6345 --file | --fil | --fi | --f )
6348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6350 as_fn_append CONFIG_FILES " '$ac_optarg'"
6351 ac_need_defaults=false;;
6352 --header | --heade | --head | --hea )
6355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6357 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6358 ac_need_defaults=false;;
6360 # Conflict between --help and --header
6361 as_fn_error "ambiguous option: \`$1'
6362 Try \`$0 --help' for more information.";;
6363 --help | --hel | -h )
6364 $as_echo "$ac_cs_usage"; exit ;;
6365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6366 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6370 -*) as_fn_error "unrecognized option: \`$1'
6371 Try \`$0 --help' for more information." ;;
6373 *) as_fn_append ac_config_targets " $1"
6374 ac_need_defaults=false ;;
6380 ac_configure_extra_args=
6382 if $ac_cs_silent; then
6384 ac_configure_extra_args="$ac_configure_extra_args --silent"
6388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6389 if \$ac_cs_recheck; then
6390 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6392 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6393 CONFIG_SHELL='$SHELL'
6399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6403 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6404 ## Running $as_me. ##
6410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6414 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6420 # Handling of arguments.
6421 for ac_config_target in $ac_config_targets
6423 case $ac_config_target in
6424 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
6425 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6426 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6427 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6429 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6434 # If the user did not use the arguments to specify the items to instantiate,
6435 # then the envvar interface is used. Set only those that are not.
6436 # We use the long form for the default assignment because of an extremely
6437 # bizarre bug on SunOS 4.1.3.
6438 if $ac_need_defaults; then
6439 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6440 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6441 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6444 # Have a temporary directory for convenience. Make it in the build tree
6445 # simply because there is no reason against having it here, and in addition,
6446 # creating and moving files from /tmp can sometimes cause problems.
6447 # Hook for its removal unless debugging.
6448 # Note that there is a small window in which the directory will not be cleaned:
6449 # after its creation but before its name has been assigned to `$tmp'.
6453 trap 'exit_status=$?
6454 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6456 trap 'as_fn_exit 1' 1 2 13 15
6458 # Create a (secure) tmp directory for tmp files.
6461 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6462 test -n "$tmp" && test -d "$tmp"
6465 tmp=./conf$$-$RANDOM
6466 (umask 077 && mkdir "$tmp")
6467 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6469 # Set up the scripts for CONFIG_FILES section.
6470 # No need to generate them if there are no CONFIG_FILES.
6471 # This happens for instance with `./config.status config.h'.
6472 if test -n "$CONFIG_FILES"; then
6475 ac_cr=`echo X | tr X '\015'`
6476 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6477 # But we know of no other shell where ac_cr would be empty at this
6478 # point, so we can use a bashism as a fallback.
6479 if test "x$ac_cr" = x; then
6480 eval ac_cr=\$\'\\r\'
6482 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6483 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6489 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6494 echo "cat >conf$$subs.awk <<_ACEOF" &&
6495 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6498 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6499 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6501 for ac_last_try in false false false false false :; do
6502 . ./conf$$subs.sh ||
6503 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6505 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6506 if test $ac_delim_n = $ac_delim_num; then
6508 elif $ac_last_try; then
6509 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6511 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6517 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
6521 s/^/S["/; s/!.*/"]=/
6531 s/\(.\{148\}\).*/\1/
6533 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6545 s/\(.\{148\}\).*/\1/
6547 s/["\\]/\\&/g; s/^/"/; s/$/"/
6551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6556 ' <conf$$subs.awk | sed '
6561 ' >>$CONFIG_STATUS || ac_write_fail=1
6562 rm -f conf$$subs.awk
6563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6565 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
6566 for (key in S) S_is_set[key] = 1
6572 nfields = split(line, field, "@")
6574 len = length(field[1])
6575 for (i = 2; i < nfields; i++) {
6577 keylen = length(key)
6578 if (S_is_set[key]) {
6580 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6581 len += length(value) + length(field[++i])
6592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6593 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6594 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6597 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
6598 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6601 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6602 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6603 # trailing colons and then remove the whole line if VPATH becomes empty
6604 # (actually we leave an empty line to preserve line numbers).
6605 if test "x$srcdir" = x.; then
6606 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6610 s/^\([^=]*=[ ]*\):*/\1/
6616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6617 fi # test -n "$CONFIG_FILES"
6619 # Set up the scripts for CONFIG_HEADERS section.
6620 # No need to generate them if there are no CONFIG_HEADERS.
6621 # This happens for instance with `./config.status Makefile'.
6622 if test -n "$CONFIG_HEADERS"; then
6623 cat >"$tmp/defines.awk" <<\_ACAWK ||
6627 # Transform confdefs.h into an awk script `defines.awk', embedded as
6628 # here-document in config.status, that substitutes the proper values into
6629 # config.h.in to produce config.h.
6631 # Create a delimiter string that does not exist in confdefs.h, to ease
6632 # handling of long lines.
6634 for ac_last_try in false false :; do
6635 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
6636 if test -z "$ac_t"; then
6638 elif $ac_last_try; then
6639 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6641 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6645 # For the awk script, D is an array of macro values keyed by name,
6646 # likewise P contains macro parameters if any. Preserve backslash
6647 # newline sequences.
6649 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6651 s/.\{148\}/&'"$ac_delim"'/g
6654 s/^[ ]*#[ ]*define[ ][ ]*/ /
6661 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6663 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6667 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6668 D["\1"]=" \3\\\\\\n"\\/p
6670 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6675 s/.\{148\}/&'"$ac_delim"'/g
6680 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6683 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6685 ' <confdefs.h | sed '
6686 s/'"$ac_delim"'/"\\\
6687 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6690 for (key in D) D_is_set[key] = 1
6693 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6695 split(line, arg, " ")
6696 if (arg[1] == "#") {
6700 defundef = substr(arg[1], 2)
6703 split(mac1, mac2, "(") #)
6705 prefix = substr(line, 1, index(line, defundef) - 1)
6706 if (D_is_set[macro]) {
6707 # Preserve the white space surrounding the "#".
6708 print prefix "define", macro P[macro] D[macro]
6711 # Replace #undef with comments. This is necessary, for example,
6712 # in the case of _POSIX_SOURCE, which is predefined and required
6713 # on some systems where configure will not decide to define it.
6714 if (defundef == "undef") {
6715 print "/*", prefix defundef, macro, "*/"
6723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6724 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6725 fi # test -n "$CONFIG_HEADERS"
6728 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6733 :[FHLC]) ac_mode=$ac_tag; continue;;
6735 case $ac_mode$ac_tag in
6737 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6738 :[FH]-) ac_tag=-:-;;
6739 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6756 -) ac_f="$tmp/stdin";;
6757 *) # Look for the file first in the build tree, then in the source tree
6758 # (if the path is not absolute). The absolute path cannot be DOS-style,
6759 # because $ac_f cannot contain `:'.
6763 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6765 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6767 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6768 as_fn_append ac_file_inputs " '$ac_f'"
6771 # Let's still pretend it is `configure' which instantiates (i.e., don't
6772 # use $as_me), people would be surprised to read:
6773 # /* config.h. Generated by config.status. */
6774 configure_input='Generated from '`
6775 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6777 if test x"$ac_file" != x-; then
6778 configure_input="$ac_file. $configure_input"
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6780 $as_echo "$as_me: creating $ac_file" >&6;}
6782 # Neutralize special characters interpreted by sed in replacement strings.
6783 case $configure_input in #(
6784 *\&* | *\|* | *\\* )
6785 ac_sed_conf_input=`$as_echo "$configure_input" |
6786 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6787 *) ac_sed_conf_input=$configure_input;;
6791 *:-:* | *:-) cat >"$tmp/stdin" \
6792 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6797 ac_dir=`$as_dirname -- "$ac_file" ||
6798 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6799 X"$ac_file" : 'X\(//\)[^/]' \| \
6800 X"$ac_file" : 'X\(//\)$' \| \
6801 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6802 $as_echo X"$ac_file" |
6803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6820 as_dir="$ac_dir"; as_fn_mkdir_p
6824 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6826 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6827 # A ".." for each directory in $ac_dir_suffix.
6828 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6829 case $ac_top_builddir_sub in
6830 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6831 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6834 ac_abs_top_builddir=$ac_pwd
6835 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6836 # for backward compatibility:
6837 ac_top_builddir=$ac_top_build_prefix
6840 .) # We are building in place.
6842 ac_top_srcdir=$ac_top_builddir_sub
6843 ac_abs_top_srcdir=$ac_pwd ;;
6844 [\\/]* | ?:[\\/]* ) # Absolute name.
6845 ac_srcdir=$srcdir$ac_dir_suffix;
6846 ac_top_srcdir=$srcdir
6847 ac_abs_top_srcdir=$srcdir ;;
6849 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6850 ac_top_srcdir=$ac_top_build_prefix$srcdir
6851 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6853 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6863 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6864 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6869 # If the template does not know about datarootdir, expand it.
6870 # FIXME: This hack should be removed a few years after 2.60.
6871 ac_datarootdir_hack=; ac_datarootdir_seen=
6882 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6883 *datarootdir*) ac_datarootdir_seen=yes;;
6884 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6886 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6889 ac_datarootdir_hack='
6890 s&@datadir@&$datadir&g
6891 s&@docdir@&$docdir&g
6892 s&@infodir@&$infodir&g
6893 s&@localedir@&$localedir&g
6894 s&@mandir@&$mandir&g
6895 s&\\\${datarootdir}&$datarootdir&g' ;;
6899 # Neutralize VPATH when `$srcdir' = `.'.
6900 # Shell code in configure.ac might set extrasub.
6901 # FIXME: do we really want to maintain this feature?
6902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6903 ac_sed_extra="$ac_vpsub
6906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6908 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6909 s|@configure_input@|$ac_sed_conf_input|;t t
6910 s&@top_builddir@&$ac_top_builddir_sub&;t t
6911 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6912 s&@srcdir@&$ac_srcdir&;t t
6913 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6914 s&@top_srcdir@&$ac_top_srcdir&;t t
6915 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6916 s&@builddir@&$ac_builddir&;t t
6917 s&@abs_builddir@&$ac_abs_builddir&;t t
6918 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6919 s&@INSTALL@&$ac_INSTALL&;t t
6920 $ac_datarootdir_hack
6922 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
6923 || as_fn_error "could not create $ac_file" "$LINENO" 5
6925 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6926 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6927 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6929 which seems to be undefined. Please make sure it is defined." >&5
6930 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6931 which seems to be undefined. Please make sure it is defined." >&2;}
6935 -) cat "$tmp/out" && rm -f "$tmp/out";;
6936 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6938 || as_fn_error "could not create $ac_file" "$LINENO" 5
6944 if test x"$ac_file" != x-; then
6946 $as_echo "/* $configure_input */" \
6947 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6948 } >"$tmp/config.h" \
6949 || as_fn_error "could not create $ac_file" "$LINENO" 5
6950 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6952 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6955 mv "$tmp/config.h" "$ac_file" \
6956 || as_fn_error "could not create $ac_file" "$LINENO" 5
6959 $as_echo "/* $configure_input */" \
6960 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6961 || as_fn_error "could not create -" "$LINENO" 5
6965 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6966 $as_echo "$as_me: executing $ac_file commands" >&6;}
6971 case $ac_file$ac_mode in
6972 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6973 "default":C) case x$CONFIG_HEADERS in
6974 xconfig.h:config.in)
6985 ac_clean_files=$ac_clean_files_save
6987 test $ac_write_fail = 0 ||
6988 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6991 # configure is writing to config.log, and then calls config.status.
6992 # config.status does its own redirection, appending to config.log.
6993 # Unfortunately, on DOS this fails, as config.log is still kept open
6994 # by configure, so config.status won't be able to write to it; its
6995 # output is simply discarded. So we exec the FD to /dev/null,
6996 # effectively closing config.log, so it can be properly (re)opened and
6997 # appended to by config.status. When coming back to configure, we
6998 # need to make the FD available again.
6999 if test "$no_create" != yes; then
7001 ac_config_status_args=
7002 test "$silent" = yes &&
7003 ac_config_status_args="$ac_config_status_args --quiet"
7005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7008 # would make configure fail if this is the last instruction.
7009 $ac_cs_success || as_fn_exit $?
7011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7013 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}