2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="server.c"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
645 MAINTAINER_MODE_FALSE
674 program_transform_name
687 enable_option_checking
688 enable_maintainer_mode
698 enable_inprocess_agent
700 ac_precious_vars
='build_alias
711 # Initialize some variables set by options.
713 ac_init_version
=false
714 ac_unrecognized_opts
=
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
725 program_transform_name
=s
,x
,x
,
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir
='${exec_prefix}/bin'
740 sbindir
='${exec_prefix}/sbin'
741 libexecdir
='${exec_prefix}/libexec'
742 datarootdir
='${prefix}/share'
743 datadir
='${datarootdir}'
744 sysconfdir
='${prefix}/etc'
745 sharedstatedir
='${prefix}/com'
746 localstatedir
='${prefix}/var'
747 includedir
='${prefix}/include'
748 oldincludedir
='/usr/include'
749 docdir
='${datarootdir}/doc/${PACKAGE}'
750 infodir
='${datarootdir}/info'
755 libdir
='${exec_prefix}/lib'
756 localedir
='${datarootdir}/locale'
757 mandir
='${datarootdir}/man'
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\
$ac_option
771 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 # Accept the important Cygnus configure options, so we can diagnose typos.
777 case $ac_dashdash$ac_option in
781 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
783 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
786 -build |
--build |
--buil |
--bui |
--bu)
787 ac_prev
=build_alias
;;
788 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
789 build_alias
=$ac_optarg ;;
791 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
792 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
793 ac_prev
=cache_file
;;
794 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
795 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
796 cache_file
=$ac_optarg ;;
799 cache_file
=config.cache
;;
801 -datadir |
--datadir |
--datadi |
--datad)
803 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
804 datadir
=$ac_optarg ;;
806 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
807 |
--dataroo |
--dataro |
--datar)
808 ac_prev
=datarootdir
;;
809 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
810 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
811 datarootdir
=$ac_optarg ;;
813 -disable-* |
--disable-*)
814 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
817 as_fn_error
"invalid feature name: $ac_useropt"
818 ac_useropt_orig
=$ac_useropt
819 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
820 case $ac_user_opts in
824 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
825 ac_unrecognized_sep
=', ';;
827 eval enable_
$ac_useropt=no
;;
829 -docdir |
--docdir |
--docdi |
--doc |
--do)
831 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
834 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
836 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
839 -enable-* |
--enable-*)
840 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
843 as_fn_error
"invalid feature name: $ac_useropt"
844 ac_useropt_orig
=$ac_useropt
845 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
846 case $ac_user_opts in
850 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
851 ac_unrecognized_sep
=', ';;
853 eval enable_
$ac_useropt=\
$ac_optarg ;;
855 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
856 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
857 |
--exec |
--exe |
--ex)
858 ac_prev
=exec_prefix
;;
859 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
860 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
861 |
--exec=* |
--exe=* |
--ex=*)
862 exec_prefix
=$ac_optarg ;;
864 -gas |
--gas |
--ga |
--g)
865 # Obsolete; use --with-gas.
868 -help |
--help |
--hel |
--he |
-h)
870 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
871 ac_init_help
=recursive
;;
872 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
873 ac_init_help
=short
;;
875 -host |
--host |
--hos |
--ho)
876 ac_prev
=host_alias
;;
877 -host=* |
--host=* |
--hos=* |
--ho=*)
878 host_alias
=$ac_optarg ;;
880 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
882 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
884 htmldir
=$ac_optarg ;;
886 -includedir |
--includedir |
--includedi |
--included |
--include \
887 |
--includ |
--inclu |
--incl |
--inc)
888 ac_prev
=includedir
;;
889 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
890 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
891 includedir
=$ac_optarg ;;
893 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
895 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
896 infodir
=$ac_optarg ;;
898 -libdir |
--libdir |
--libdi |
--libd)
900 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
903 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
904 |
--libexe |
--libex |
--libe)
905 ac_prev
=libexecdir
;;
906 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
907 |
--libexe=* |
--libex=* |
--libe=*)
908 libexecdir
=$ac_optarg ;;
910 -localedir |
--localedir |
--localedi |
--localed |
--locale)
912 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
913 localedir
=$ac_optarg ;;
915 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
916 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
917 ac_prev
=localstatedir
;;
918 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
919 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
920 localstatedir
=$ac_optarg ;;
922 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
924 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
928 # Obsolete; use --without-fp.
931 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
932 |
--no-cr |
--no-c |
-n)
935 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
936 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
939 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
940 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
941 |
--oldin |
--oldi |
--old |
--ol |
--o)
942 ac_prev
=oldincludedir
;;
943 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
944 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
945 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
946 oldincludedir
=$ac_optarg ;;
948 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
950 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
953 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
954 |
--program-pre |
--program-pr |
--program-p)
955 ac_prev
=program_prefix
;;
956 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
957 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
958 program_prefix
=$ac_optarg ;;
960 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
961 |
--program-suf |
--program-su |
--program-s)
962 ac_prev
=program_suffix
;;
963 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
964 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
965 program_suffix
=$ac_optarg ;;
967 -program-transform-name |
--program-transform-name \
968 |
--program-transform-nam |
--program-transform-na \
969 |
--program-transform-n |
--program-transform- \
970 |
--program-transform |
--program-transfor \
971 |
--program-transfo |
--program-transf \
972 |
--program-trans |
--program-tran \
973 |
--progr-tra |
--program-tr |
--program-t)
974 ac_prev
=program_transform_name
;;
975 -program-transform-name=* |
--program-transform-name=* \
976 |
--program-transform-nam=* |
--program-transform-na=* \
977 |
--program-transform-n=* |
--program-transform-=* \
978 |
--program-transform=* |
--program-transfor=* \
979 |
--program-transfo=* |
--program-transf=* \
980 |
--program-trans=* |
--program-tran=* \
981 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
982 program_transform_name
=$ac_optarg ;;
984 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
986 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
989 -psdir |
--psdir |
--psdi |
--psd |
--ps)
991 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
994 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
995 |
-silent |
--silent |
--silen |
--sile |
--sil)
998 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1000 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1002 sbindir
=$ac_optarg ;;
1004 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1005 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1006 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1008 ac_prev
=sharedstatedir
;;
1009 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1010 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1011 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1013 sharedstatedir
=$ac_optarg ;;
1015 -site |
--site |
--sit)
1017 -site=* |
--site=* |
--sit=*)
1020 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1022 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1023 srcdir
=$ac_optarg ;;
1025 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1026 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1027 ac_prev
=sysconfdir
;;
1028 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1029 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1030 sysconfdir
=$ac_optarg ;;
1032 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1033 ac_prev
=target_alias
;;
1034 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1035 target_alias
=$ac_optarg ;;
1037 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1040 -version |
--version |
--versio |
--versi |
--vers |
-V)
1041 ac_init_version
=: ;;
1044 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error
"invalid package name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval with_
$ac_useropt=\
$ac_optarg ;;
1059 -without-* |
--without-*)
1060 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1063 as_fn_error
"invalid package name: $ac_useropt"
1064 ac_useropt_orig
=$ac_useropt
1065 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1070 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1071 ac_unrecognized_sep
=', ';;
1073 eval with_
$ac_useropt=no
;;
1076 # Obsolete; use --with-x.
1079 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1080 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1081 ac_prev
=x_includes
;;
1082 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1083 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1084 x_includes
=$ac_optarg ;;
1086 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1087 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1088 ac_prev
=x_libraries
;;
1089 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1090 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1091 x_libraries
=$ac_optarg ;;
1093 -*) as_fn_error
"unrecognized option: \`$ac_option'
1094 Try \`$0 --help' for more information."
1098 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 case $ac_envvar in #(
1101 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1102 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1104 eval $ac_envvar=\
$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1111 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 if test -n "$ac_prev"; then
1119 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1120 as_fn_error
"missing argument to $ac_option"
1123 if test -n "$ac_unrecognized_opts"; then
1124 case $enable_option_checking in
1126 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1127 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1131 # Check all directory arguments for consistency.
1132 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val
=\$
$ac_var
1138 # Remove trailing slashes.
1141 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1142 eval $ac_var=\
$ac_val;;
1144 # Be sure to have absolute directory names.
1146 [\\/$
]* | ?
:[\\/]* ) continue;;
1147 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1149 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1152 # There might be people who depend on the old broken behavior: `$host'
1153 # used to hold the argument of --host etc.
1154 # FIXME: To remove some day.
1157 target
=$target_alias
1159 # FIXME: To remove some day.
1160 if test "x$host_alias" != x
; then
1161 if test "x$build_alias" = x
; then
1162 cross_compiling
=maybe
1163 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1164 If a cross compiler is detected then cross compile mode will be used." >&2
1165 elif test "x$build_alias" != "x$host_alias"; then
1171 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1173 test "$silent" = yes && exec 6>/dev
/null
1176 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1177 ac_ls_di
=`ls -di .` &&
1178 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1179 as_fn_error
"working directory cannot be determined"
1180 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1181 as_fn_error
"pwd does not report name of working directory"
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted
=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir
=`$as_dirname -- "$as_myself" ||
1189 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$as_myself" : 'X\(//\)[^/]' \| \
1191 X"$as_myself" : 'X\(//\)$' \| \
1192 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1193 $as_echo X"$as_myself" |
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted
=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1220 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1226 # When building in place, set srcdir=.
1227 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230 # Remove unnecessary trailing slashes from srcdir.
1231 # Double slashes in file names in object file debugging info
1232 # mess up M-x gdb in Emacs.
1234 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 for ac_var
in $ac_precious_vars; do
1237 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1239 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1244 # Report the --help message.
1246 if test "$ac_init_help" = "long"; then
1247 # Omit some internal or obsolete options to make the list less imposing.
1248 # This message is too long to be a string in the A/UX 3.1 sh.
1250 \`configure' configures this package to adapt to many kinds of systems.
1252 Usage: $0 [OPTION]... [VAR=VALUE]...
1254 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1255 VAR=VALUE. See below for descriptions of some of the useful variables.
1257 Defaults for the options are specified in brackets.
1260 -h, --help display this help and exit
1261 --help=short display options specific to this package
1262 --help=recursive display the short help of all the included packages
1263 -V, --version display version information and exit
1264 -q, --quiet, --silent do not print \`checking...' messages
1265 --cache-file=FILE cache test results in FILE [disabled]
1266 -C, --config-cache alias for \`--cache-file=config.cache'
1267 -n, --no-create do not create output files
1268 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1270 Installation directories:
1271 --prefix=PREFIX install architecture-independent files in PREFIX
1272 [$ac_default_prefix]
1273 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1276 By default, \`make install' will install all the files in
1277 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1278 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1279 for instance \`--prefix=\$HOME'.
1281 For better control, use the options below.
1283 Fine tuning of the installation directories:
1284 --bindir=DIR user executables [EPREFIX/bin]
1285 --sbindir=DIR system admin executables [EPREFIX/sbin]
1286 --libexecdir=DIR program executables [EPREFIX/libexec]
1287 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1288 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1289 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1290 --libdir=DIR object code libraries [EPREFIX/lib]
1291 --includedir=DIR C header files [PREFIX/include]
1292 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1293 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1294 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1295 --infodir=DIR info documentation [DATAROOTDIR/info]
1296 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1297 --mandir=DIR man documentation [DATAROOTDIR/man]
1298 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1299 --htmldir=DIR html documentation [DOCDIR]
1300 --dvidir=DIR dvi documentation [DOCDIR]
1301 --pdfdir=DIR pdf documentation [DOCDIR]
1302 --psdir=DIR ps documentation [DOCDIR]
1308 --program-prefix=PREFIX prepend PREFIX to installed program names
1309 --program-suffix=SUFFIX append SUFFIX to installed program names
1310 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1313 --build=BUILD configure
for building on BUILD
[guessed
]
1314 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1315 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1319 if test -n "$ac_init_help"; then
1324 --disable-option-checking ignore unrecognized
--enable/--with options
1325 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1326 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1327 --enable-maintainer-mode enable make rules and dependencies not useful
1328 (and sometimes confusing
) to the casual installer
1329 --disable-largefile omit support
for large files
1330 --enable-libmcheck Try linking with
-lmcheck if available
1331 --enable-werror treat compile warnings as errors
1332 --enable-inprocess-agent
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --with-ust=PATH Specify prefix directory
for the installed UST package
1339 Equivalent to
--with-ust-include=PATH
/include
1340 plus
--with-ust-lib=PATH
/lib
1341 --with-ust-include=PATH Specify directory
for installed UST include files
1342 --with-ust-lib=PATH Specify the directory
for the installed UST library
1343 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1344 --with-bugurl=URL Direct users to URL to report a bug
1345 --with-libthread-db=PATH
1346 use given libthread_db directly
1348 Some influential environment variables
:
1349 CC C compiler
command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1352 nonstandard directory
<lib dir
>
1353 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1354 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1355 you have headers
in a nonstandard directory
<include dir
>
1358 Use these variables to override the choices made by
`configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1361 Report bugs to the package provider.
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" ||
1370 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1391 .) # We are building in place.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1415 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1425 generated by GNU Autoconf 2.64
1427 Copyright (C) 2009 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1434 ## ------------------------ ##
1435 ## Autoconf initialization. ##
1436 ## ------------------------ ##
1438 # ac_fn_c_try_compile LINENO
1439 # --------------------------
1440 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_c_try_compile ()
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 rm -f conftest.$ac_objext
1445 if { { ac_try="$ac_compile"
1447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1448 *) ac_try_echo
=$ac_try;;
1450 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1451 $as_echo "$ac_try_echo"; } >&5
1452 (eval "$ac_compile") 2>conftest.err
1454 if test -s conftest.err
; then
1455 grep -v '^ *+' conftest.err
>conftest.er1
1456 cat conftest.er1
>&5
1457 mv -f conftest.er1 conftest.err
1459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1460 test $ac_status = 0; } && {
1461 test -z "$ac_c_werror_flag" ||
1462 test ! -s conftest.err
1463 } && test -s conftest.
$ac_objext; then :
1466 $as_echo "$as_me: failed program was:" >&5
1467 sed 's/^/| /' conftest.
$ac_ext >&5
1471 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1474 } # ac_fn_c_try_compile
1476 # ac_fn_c_try_cpp LINENO
1477 # ----------------------
1478 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1481 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1482 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1491 if test -s conftest.err; then
1492 grep -v '^ *+' conftest.err >conftest.er1
1493 cat conftest.er1 >&5
1494 mv -f conftest.er1 conftest.err
1496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1497 test $ac_status = 0; } >/dev/null && {
1498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1499 test ! -s conftest.err
1503 $as_echo "$as_me: failed program was:" >&5
1504 sed 's/^/| /' conftest.$ac_ext >&5
1508 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1514 # -------------------------------------------------------
1515 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1516 # the include files in INCLUDES and setting the cache variable VAR
1518 ac_fn_c_check_header_mongrel ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1523 $as_echo_n "checking for $2... " >&6; }
1524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1525 $as_echo_n "(cached) " >&6
1528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1529 $as_echo "$ac_res" >&6; }
1531 # Is the header compilable?
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1533 $as_echo_n "checking $2 usability... " >&6; }
1534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535 /* end confdefs.h. */
1539 if ac_fn_c_try_compile "$LINENO"; then :
1540 ac_header_compiler=yes
1542 ac_header_compiler=no
1544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1546 $as_echo "$ac_header_compiler" >&6; }
1548 # Is the header present?
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1550 $as_echo_n "checking $2 presence... " >&6; }
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552 /* end confdefs.h. */
1555 if ac_fn_c_try_cpp "$LINENO"; then :
1556 ac_header_preproc=yes
1558 ac_header_preproc=no
1560 rm -f conftest.err conftest.$ac_ext
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1562 $as_echo "$ac_header_preproc" >&6; }
1564 # So? What about this header?
1565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1568 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1570 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1574 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1576 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1578 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1580 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1582 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1586 $as_echo_n "checking for $2... " >&6; }
1587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1588 $as_echo_n "(cached) " >&6
1590 eval "$3=\$ac_header_compiler"
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 } # ac_fn_c_check_header_mongrel
1600 # ac_fn_c_try_run LINENO
1601 # ----------------------
1602 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1603 # that executables *can* be run.
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_link"
1609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1610 *) ac_try_echo
=$ac_try;;
1612 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_link") 2>&5
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1618 { { case "(($ac_try" in
1619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623 $as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_try") 2>&5
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; }; }; then :
1630 $as_echo "$as_me: program exited with status $ac_status" >&5
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=$ac_status
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1659 if ac_fn_c_try_compile "$LINENO"; then :
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 } # ac_fn_c_check_header_compile
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1683 *) ac_try_echo
=$ac_try;;
1685 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1689 if test -s conftest.err
; then
1690 grep -v '^ *+' conftest.err
>conftest.er1
1691 cat conftest.er1
>&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest
$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 $as_test_x conftest
$ac_exeext
1704 $as_echo "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.
$ac_ext >&5
1709 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1710 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1711 # interfere with the next link command; also delete a directory that is
1712 # left behind by Apple's compiler. We do this before executing the actions.
1713 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1717 } # ac_fn_c_try_link
1719 # ac_fn_c_check_func LINENO FUNC VAR
1720 # ----------------------------------
1721 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1722 ac_fn_c_check_func
()
1724 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728 $as_echo_n "(cached) " >&6
1730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1734 #define $2 innocuous_$2
1736 /* System header to define __stub macros and hopefully few prototypes,
1737 which can conflict with char $2 (); below.
1738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1739 <limits.h> exists even on freestanding compilers. */
1742 # include <limits.h>
1744 # include <assert.h>
1749 /* Override any GCC internal prototype to avoid an error.
1750 Use char because int might match the return type of a GCC
1751 builtin and then its argument prototype would still apply. */
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined __stub_$2 || defined __stub___$2
1771 if ac_fn_c_try_link
"$LINENO"; then :
1776 rm -f core conftest.err conftest.
$ac_objext \
1777 conftest
$ac_exeext conftest.
$ac_ext
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1784 } # ac_fn_c_check_func
1786 # ac_fn_c_check_decl LINENO SYMBOL VAR
1787 # ------------------------------------
1788 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1789 ac_fn_c_check_decl
()
1791 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1792 as_decl_name
=`echo $2|sed 's/ *(.*//'`
1793 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1795 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1796 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1800 /* end confdefs.h. */
1805 #ifndef $as_decl_name
1807 (void) $as_decl_use;
1809 (void) $as_decl_name;
1817 if ac_fn_c_try_compile
"$LINENO"; then :
1822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1829 } # ac_fn_c_check_decl
1831 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1832 # -------------------------------------------
1833 # Tests whether TYPE exists after having included INCLUDES, setting cache
1834 # variable VAR accordingly.
1835 ac_fn_c_check_type
()
1837 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1856 if ac_fn_c_try_compile
"$LINENO"; then :
1857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1869 if ac_fn_c_try_compile
"$LINENO"; then :
1874 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1883 } # ac_fn_c_check_type
1884 cat >config.log
<<_ACEOF
1885 This file contains any messages produced by compilers while
1886 running configure, to aid debugging if configure makes a mistake.
1888 It was created by $as_me, which was
1889 generated by GNU Autoconf 2.64. Invocation command line was
1901 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1902 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1903 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1904 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1905 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1907 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1908 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1910 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1911 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1912 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1913 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1914 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1915 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1916 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir
=.
1925 $as_echo "PATH: $as_dir"
1941 # Keep a trace of the command line.
1942 # Strip out --no-create and --no-recursion so they do not pile up.
1943 # Strip out --silent because we don't want to record it for future runs.
1944 # Also quote any args containing shell meta-characters.
1945 # Make two passes to allow for proper duplicate-argument suppression.
1949 ac_must_keep_next
=false
1955 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1956 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1957 |
-silent |
--silent |
--silen |
--sile |
--sil)
1960 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1965 as_fn_append ac_configure_args1
" '$ac_arg'"
1966 if test $ac_must_keep_next = true
; then
1967 ac_must_keep_next
=false
# Got value, back to normal.
1970 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1971 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1972 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1973 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1974 case "$ac_configure_args0 " in
1975 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978 -* ) ac_must_keep_next
=true
;;
1981 as_fn_append ac_configure_args
" '$ac_arg'"
1986 { ac_configure_args0
=; unset ac_configure_args0
;}
1987 { ac_configure_args1
=; unset ac_configure_args1
;}
1989 # When interrupted or exit'd, cleanup temporary files, and complete
1990 # config.log. We remove comments because anyway the quotes in there
1991 # would cause problems or look ugly.
1992 # WARNING: Use '\'' to represent an apostrophe within the trap.
1993 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1994 trap 'exit_status=$?
1995 # Save into config.log some information that might help in debugging.
2000 ## ---------------- ##
2001 ## Cache variables. ##
2002 ## ---------------- ##
2005 # The following way of writing the cache mishandles newlines in values,
2007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2008 eval ac_val=\$$ac_var
2012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016 _ | IFS | as_nl) ;; #(
2017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2018 *) { eval $ac_var=; unset $ac_var;} ;;
2023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2024 *${as_nl}ac_space=\ *)
2026 "s/'\''/'\''\\\\'\'''\''/g;
2027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2038 ## ----------------- ##
2039 ## Output variables. ##
2040 ## ----------------- ##
2043 for ac_var in $ac_subst_vars
2045 eval ac_val=\$$ac_var
2047 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 $as_echo "$ac_var='\''$ac_val'\''"
2053 if test -n "$ac_subst_files"; then
2055 ## ------------------- ##
2056 ## File substitutions. ##
2057 ## ------------------- ##
2060 for ac_var
in $ac_subst_files
2062 eval ac_val
=\$
$ac_var
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2066 $as_echo "$ac_var='\''$ac_val'\''"
2071 if test -s confdefs.h; then
2081 test "$ac_signal" != 0 &&
2082 $as_echo "$as_me: caught signal $ac_signal"
2083 $as_echo "$as_me: exit $exit_status"
2085 rm -f core *.core core.conftest.* &&
2086 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2089 for ac_signal
in 1 2 13 15; do
2090 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest
* confdefs.h
2097 $as_echo "/* confdefs.h */" > confdefs.h
2099 # Predefined preprocessor variables.
2101 cat >>confdefs.h
<<_ACEOF
2102 #define PACKAGE_NAME "$PACKAGE_NAME"
2105 cat >>confdefs.h
<<_ACEOF
2106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2109 cat >>confdefs.h
<<_ACEOF
2110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2113 cat >>confdefs.h
<<_ACEOF
2114 #define PACKAGE_STRING "$PACKAGE_STRING"
2117 cat >>confdefs.h
<<_ACEOF
2118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2121 cat >>confdefs.h
<<_ACEOF
2122 #define PACKAGE_URL "$PACKAGE_URL"
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2130 if test -n "$CONFIG_SITE"; then
2131 ac_site_file1
=$CONFIG_SITE
2132 elif test "x$prefix" != xNONE
; then
2133 ac_site_file1
=$prefix/share
/config.site
2134 ac_site_file2
=$prefix/etc
/config.site
2136 ac_site_file1
=$ac_default_prefix/share
/config.site
2137 ac_site_file2
=$ac_default_prefix/etc
/config.site
2139 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2141 test "x$ac_site_file" = xNONE
&& continue
2142 if test -r "$ac_site_file"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2144 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2145 sed 's/^/| /' "$ac_site_file" >&5
2150 if test -r "$cache_file"; then
2151 # Some versions of bash will fail to source /dev/null (special
2152 # files actually), so we avoid doing that.
2153 if test -f "$cache_file"; then
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2155 $as_echo "$as_me: loading cache $cache_file" >&6;}
2157 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2158 *) .
"./$cache_file";;
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2163 $as_echo "$as_me: creating cache $cache_file" >&6;}
2167 # Check that the precious variables saved in the cache have kept the same
2169 ac_cache_corrupted
=false
2170 for ac_var
in $ac_precious_vars; do
2171 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2172 eval ac_new_set
=\
$ac_env_${ac_var}_set
2173 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2174 eval ac_new_val
=\
$ac_env_${ac_var}_value
2175 case $ac_old_set,$ac_new_set in
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2179 ac_cache_corrupted
=: ;;
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2182 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2183 ac_cache_corrupted
=: ;;
2186 if test "x$ac_old_val" != "x$ac_new_val"; then
2187 # differences in whitespace do not lead to failure.
2188 ac_old_val_w
=`echo x $ac_old_val`
2189 ac_new_val_w
=`echo x $ac_new_val`
2190 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2192 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2193 ac_cache_corrupted
=:
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2196 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2197 eval $ac_var=\
$ac_old_val
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2200 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2202 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2205 # Pass precious variables to config.status.
2206 if test "$ac_new_set" = set; then
2208 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 *) ac_arg
=$ac_var=$ac_new_val ;;
2211 case " $ac_configure_args " in
2212 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2213 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2217 if $ac_cache_corrupted; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2221 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2222 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2224 ## -------------------- ##
2225 ## Main body of script. ##
2226 ## -------------------- ##
2229 ac_cpp
='$CPP $CPPFLAGS'
2230 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2231 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2232 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2238 ac_config_headers
="$ac_config_headers config.h:config.in"
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2243 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2244 # Check whether --enable-maintainer-mode was given.
2245 if test "${enable_maintainer_mode+set}" = set; then :
2246 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2248 USE_MAINTAINER_MODE
=no
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2252 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2253 if test $USE_MAINTAINER_MODE = yes; then
2254 MAINTAINER_MODE_TRUE
=
2255 MAINTAINER_MODE_FALSE
='#'
2257 MAINTAINER_MODE_TRUE
='#'
2258 MAINTAINER_MODE_FALSE
=
2261 MAINT
=$MAINTAINER_MODE_TRUE
2266 ac_cpp
='$CPP $CPPFLAGS'
2267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2270 if test -n "$ac_tool_prefix"; then
2271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2272 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2274 $as_echo_n "checking for $ac_word... " >&6; }
2275 if test "${ac_cv_prog_CC+set}" = set; then :
2276 $as_echo_n "(cached) " >&6
2278 if test -n "$CC"; then
2279 ac_cv_prog_CC
="$CC" # Let the user override the test.
2281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2285 test -z "$as_dir" && as_dir
=.
2286 for ac_exec_ext
in '' $ac_executable_extensions; do
2287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2288 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 if test -n "$CC"; then
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2301 $as_echo "$CC" >&6; }
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2304 $as_echo "no" >&6; }
2309 if test -z "$ac_cv_prog_CC"; then
2311 # Extract the first word of "gcc", so it can be a program name with args.
2312 set dummy gcc
; ac_word
=$2
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2314 $as_echo_n "checking for $ac_word... " >&6; }
2315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2316 $as_echo_n "(cached) " >&6
2318 if test -n "$ac_ct_CC"; then
2319 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2325 test -z "$as_dir" && as_dir
=.
2326 for ac_exec_ext
in '' $ac_executable_extensions; do
2327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2328 ac_cv_prog_ac_ct_CC
="gcc"
2329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2339 if test -n "$ac_ct_CC"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2341 $as_echo "$ac_ct_CC" >&6; }
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2344 $as_echo "no" >&6; }
2347 if test "x$ac_ct_CC" = x
; then
2350 case $cross_compiling:$ac_tool_warned in
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2354 ac_tool_warned
=yes ;;
2362 if test -z "$CC"; then
2363 if test -n "$ac_tool_prefix"; then
2364 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2365 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2367 $as_echo_n "checking for $ac_word... " >&6; }
2368 if test "${ac_cv_prog_CC+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
2371 if test -n "$CC"; then
2372 ac_cv_prog_CC
="$CC" # Let the user override the test.
2374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2378 test -z "$as_dir" && as_dir
=.
2379 for ac_exec_ext
in '' $ac_executable_extensions; do
2380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2381 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2392 if test -n "$CC"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2394 $as_echo "$CC" >&6; }
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2397 $as_echo "no" >&6; }
2403 if test -z "$CC"; then
2404 # Extract the first word of "cc", so it can be a program name with args.
2405 set dummy cc
; ac_word
=$2
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2407 $as_echo_n "checking for $ac_word... " >&6; }
2408 if test "${ac_cv_prog_CC+set}" = set; then :
2409 $as_echo_n "(cached) " >&6
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC
="$CC" # Let the user override the test.
2415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir
=.
2420 for ac_exec_ext
in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2423 ac_prog_rejected
=yes
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test $ac_prog_rejected = yes; then
2435 # We found a bogon in the path, so make sure we never use it.
2436 set dummy
$ac_cv_prog_CC
2438 if test $# != 0; then
2439 # We chose a different compiler from the bogus one.
2440 # However, it has the same basename, so the bogon will be chosen
2441 # first if we set CC to just the basename; use the full file name.
2443 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2449 if test -n "$CC"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2451 $as_echo "$CC" >&6; }
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2454 $as_echo "no" >&6; }
2459 if test -z "$CC"; then
2460 if test -n "$ac_tool_prefix"; then
2461 for ac_prog
in cl.exe
2463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2464 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if test "${ac_cv_prog_CC+set}" = set; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC
="$CC" # Let the user override the test.
2473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir
=.
2478 for ac_exec_ext
in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2491 if test -n "$CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2493 $as_echo "$CC" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2500 test -n "$CC" && break
2503 if test -z "$CC"; then
2505 for ac_prog
in cl.exe
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508 set dummy
$ac_prog; ac_word
=$2
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2510 $as_echo_n "checking for $ac_word... " >&6; }
2511 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2512 $as_echo_n "(cached) " >&6
2514 if test -n "$ac_ct_CC"; then
2515 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir
=.
2522 for ac_exec_ext
in '' $ac_executable_extensions; do
2523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2524 ac_cv_prog_ac_ct_CC
="$ac_prog"
2525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2535 if test -n "$ac_ct_CC"; then
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2537 $as_echo "$ac_ct_CC" >&6; }
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2540 $as_echo "no" >&6; }
2544 test -n "$ac_ct_CC" && break
2547 if test "x$ac_ct_CC" = x
; then
2550 case $cross_compiling:$ac_tool_warned in
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2554 ac_tool_warned
=yes ;;
2563 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 as_fn_error
"no acceptable C compiler found in \$PATH
2566 See \`config.log' for more details." "$LINENO" 5; }
2568 # Provide some information about the compiler.
2569 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2572 for ac_option
in --version -v -V -qversion; do
2573 { { ac_try
="$ac_compiler $ac_option >&5"
2575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2579 $as_echo "$ac_try_echo"; } >&5
2580 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2582 if test -s conftest.err; then
2584 ... rest of stderr output deleted ...
2585 10q' conftest.err >conftest.er1
2586 cat conftest.er1 >&5
2587 rm -f conftest.er1 conftest.err
2589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2590 test $ac_status = 0; }
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2604 ac_clean_files_save=$ac_clean_files
2605 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2606 # Try to create an executable without -o first, disregard a.out.
2607 # It will help us diagnose broken compilers, and finding out an intuition
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2610 $as_echo_n "checking for C compiler default output file name... " >&6; }
2611 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2613 # The possible output files:
2614 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2617 for ac_file in $ac_files
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2626 if { { ac_try="$ac_link_default"
2628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2629 *) ac_try_echo
=$ac_try;;
2631 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 $as_echo "$ac_try_echo"; } >&5
2633 (eval "$ac_link_default") 2>&5
2635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636 test $ac_status = 0; }; then :
2637 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2638 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2639 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2640 # so that the user can short-circuit this test for compilers unknown to
2642 for ac_file
in $ac_files ''
2644 test -f "$ac_file" ||
continue
2646 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2649 # We found the default executable, but exeext='' is most
2653 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2655 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2657 # We set ac_cv_exeext here because the later test for it is not
2658 # safe: cross compilers may not add the suffix if given an `-o'
2659 # argument, so we may need to know it at that point already.
2660 # Even if this section looks crufty: it has the advantage of
2667 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2673 $as_echo "$ac_file" >&6; }
2674 if test -z "$ac_file"; then :
2675 $as_echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.
$ac_ext >&5
2678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680 { as_fn_set_status
77
2681 as_fn_error
"C compiler cannot create executables
2682 See \`config.log' for more details." "$LINENO" 5; }; }
2684 ac_exeext
=$ac_cv_exeext
2686 # Check that the compiler produces executables we can run. If not, either
2687 # the compiler is broken, or we cross compile.
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2689 $as_echo_n "checking whether the C compiler works... " >&6; }
2690 # If not cross compiling, check that we can run a simple program.
2691 if test "$cross_compiling" != yes; then
2692 if { ac_try
='./$ac_file'
2693 { { case "(($ac_try" in
2694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2698 $as_echo "$ac_try_echo"; } >&5
2699 (eval "$ac_try") 2>&5
2701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702 test $ac_status = 0; }; }; then
2705 if test "$cross_compiling" = maybe; then
2708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2710 as_fn_error "cannot run C compiled programs.
2711 If you meant to cross compile
, use \
`--host'.
2712 See \`config.log
' for more details." "$LINENO" 5; }
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717 $as_echo "yes" >&6; }
2719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2720 ac_clean_files=$ac_clean_files_save
2721 # Check that the compiler produces executables we can run. If not, either
2722 # the compiler is broken, or we cross compile.
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2724 $as_echo_n "checking whether we are cross compiling... " >&6; }
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2726 $as_echo "$cross_compiling" >&6; }
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2729 $as_echo_n "checking for suffix of executables... " >&6; }
2730 if { { ac_try="$ac_link"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2736 $as_echo "$ac_try_echo"; } >&5
2737 (eval "$ac_link") 2>&5
2739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2740 test $ac_status = 0; }; then :
2741 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2742 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2743 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2745 for ac_file
in conftest.exe conftest conftest.
*; do
2746 test -f "$ac_file" ||
continue
2748 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2749 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2758 See \`config.log' for more details." "$LINENO" 5; }
2760 rm -f conftest
$ac_cv_exeext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2762 $as_echo "$ac_cv_exeext" >&6; }
2764 rm -f conftest.
$ac_ext
2765 EXEEXT
=$ac_cv_exeext
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2768 $as_echo_n "checking for suffix of object files... " >&6; }
2769 if test "${ac_cv_objext+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2773 /* end confdefs.h. */
2783 rm -f conftest.o conftest.obj
2784 if { { ac_try
="$ac_compile"
2786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2790 $as_echo "$ac_try_echo"; } >&5
2791 (eval "$ac_compile") 2>&5
2793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2794 test $ac_status = 0; }; then :
2795 for ac_file in conftest.o conftest.obj conftest.*; do
2796 test -f "$ac_file" || continue;
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2799 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2804 $as_echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809 as_fn_error "cannot compute suffix of object files
: cannot compile
2810 See \
`config.log' for more details." "$LINENO" 5; }
2812 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2815 $as_echo "$ac_cv_objext" >&6; }
2816 OBJEXT=$ac_cv_objext
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2819 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2820 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2837 if ac_fn_c_try_compile "$LINENO"; then :
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2847 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2848 if test $ac_compiler_gnu = yes; then
2853 ac_test_CFLAGS=${CFLAGS+set}
2854 ac_save_CFLAGS=$CFLAGS
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2856 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2857 if test "${ac_cv_prog_cc_g+set}" = set; then :
2858 $as_echo_n "(cached) " >&6
2860 ac_save_c_werror_flag=$ac_c_werror_flag
2861 ac_c_werror_flag=yes
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865 /* end confdefs.h. */
2875 if ac_fn_c_try_compile "$LINENO"; then :
2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2880 /* end confdefs.h. */
2890 if ac_fn_c_try_compile "$LINENO"; then :
2893 ac_c_werror_flag=$ac_save_c_werror_flag
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2906 if ac_fn_c_try_compile "$LINENO"; then :
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 ac_c_werror_flag=$ac_save_c_werror_flag
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2917 $as_echo "$ac_cv_prog_cc_g" >&6; }
2918 if test "$ac_test_CFLAGS" = set; then
2919 CFLAGS=$ac_save_CFLAGS
2920 elif test $ac_cv_prog_cc_g = yes; then
2921 if test "$GCC" = yes; then
2927 if test "$GCC" = yes; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2934 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2935 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2938 ac_cv_prog_cc_c89=no
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2944 #include <sys/types.h>
2945 #include <sys/stat.h>
2946 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2947 struct buf { int x; };
2948 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2949 static char *e (p, i)
2955 static char *f (char * (*g) (char **, int), char **p, ...)
2960 s = g (p, va_arg (v,int));
2965 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2966 function prototypes and stuff, but not '\xHH' hex character constants.
2967 These don't provoke an error unfortunately, instead are silently treated
2968 as 'x'. The following induces an error, until -std is added to get
2969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2970 array size at least. It's necessary to write '\x00'==0 to get something
2971 that's true only with -std. */
2972 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2974 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2975 inside strings and character constants. */
2977 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2979 int test (int i, double x);
2980 struct s1 {int (*f) (int a);};
2981 struct s2 {int (*f) (double a);};
2982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2993 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2996 CC="$ac_save_CC $ac_arg"
2997 if ac_fn_c_try_compile "$LINENO"; then :
2998 ac_cv_prog_cc_c89=$ac_arg
3000 rm -f core conftest.err conftest.$ac_objext
3001 test "x$ac_cv_prog_cc_c89" != "xno" && break
3003 rm -f conftest.$ac_ext
3008 case "x$ac_cv_prog_cc_c89" in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3011 $as_echo "none needed" >&6; } ;;
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3014 $as_echo "unsupported" >&6; } ;;
3016 CC="$CC $ac_cv_prog_cc_c89"
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3020 if test "x$ac_cv_prog_cc_c89" != xno; then :
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3038 # On Suns, sometimes $CPP names a directory.
3039 if test -n "$CPP" && test -d "$CPP"; then
3042 if test -z "$CPP"; then
3043 if test "${ac_cv_prog_CPP+set}" = set; then :
3044 $as_echo_n "(cached) " >&6
3046 # Double quotes because CPP needs to be expanded
3047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3050 for ac_c_preproc_warn_flag in '' yes
3052 # Use a header file that comes with gcc, so configuring glibc
3053 # with a fresh cross-compiler works.
3054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3055 # <limits.h> exists even on freestanding compilers.
3056 # On the NeXT, cc -E runs the code through the compiler's parser,
3057 # not just through cpp. "Syntax error" is here to catch this case.
3058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3059 /* end confdefs.h. */
3061 # include <limits.h>
3063 # include <assert.h>
3067 if ac_fn_c_try_cpp "$LINENO"; then :
3070 # Broken: fails on valid input.
3073 rm -f conftest.err conftest.$ac_ext
3075 # OK, works on sane cases. Now check whether nonexistent headers
3076 # can be detected and how.
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079 #include <ac_nonexistent.h>
3081 if ac_fn_c_try_cpp "$LINENO"; then :
3082 # Broken: success on invalid input.
3085 # Passes both tests.
3089 rm -f conftest.err conftest.$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.
$ac_ext
3094 if $ac_preproc_ok; then :
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3107 $as_echo "$CPP" >&6; }
3109 for ac_c_preproc_warn_flag
in '' yes
3111 # Use a header file that comes with gcc, so configuring glibc
3112 # with a fresh cross-compiler works.
3113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3114 # <limits.h> exists even on freestanding compilers.
3115 # On the NeXT, cc -E runs the code through the compiler's parser,
3116 # not just through cpp. "Syntax error" is here to catch this case.
3117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3120 # include <limits.h>
3122 # include <assert.h>
3126 if ac_fn_c_try_cpp
"$LINENO"; then :
3129 # Broken: fails on valid input.
3132 rm -f conftest.err conftest.
$ac_ext
3134 # OK, works on sane cases. Now check whether nonexistent headers
3135 # can be detected and how.
3136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3137 /* end confdefs.h. */
3138 #include <ac_nonexistent.h>
3140 if ac_fn_c_try_cpp
"$LINENO"; then :
3141 # Broken: success on invalid input.
3144 # Passes both tests.
3148 rm -f conftest.err conftest.
$ac_ext
3151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3152 rm -f conftest.err conftest.
$ac_ext
3153 if $ac_preproc_ok; then :
3156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3159 See \`config.log' for more details." "$LINENO" 5; }
3163 ac_cpp
='$CPP $CPPFLAGS'
3164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3170 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3171 if test "${ac_cv_path_GREP+set}" = set; then :
3172 $as_echo_n "(cached) " >&6
3174 if test -z "$GREP"; then
3175 ac_path_GREP_found
=false
3176 # Loop through the user's path and test for each of PROGNAME-LIST
3177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3178 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3181 test -z "$as_dir" && as_dir
=.
3182 for ac_prog
in grep ggrep
; do
3183 for ac_exec_ext
in '' $ac_executable_extensions; do
3184 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3185 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3186 # Check for GNU ac_path_GREP and select it if it is found.
3187 # Check for GNU $ac_path_GREP
3188 case `"$ac_path_GREP" --version 2>&1` in
3190 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3193 $as_echo_n 0123456789 >"conftest.in"
3196 cat "conftest.in" "conftest.in" >"conftest.tmp"
3197 mv "conftest.tmp" "conftest.in"
3198 cp "conftest.in" "conftest.nl"
3199 $as_echo 'GREP' >> "conftest.nl"
3200 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3201 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3202 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3203 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3204 # Best one so far, save it but keep looking for a better one
3205 ac_cv_path_GREP
="$ac_path_GREP"
3206 ac_path_GREP_max
=$ac_count
3208 # 10*(2^10) chars as input seems more than enough
3209 test $ac_count -gt 10 && break
3211 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3214 $ac_path_GREP_found && break 3
3219 if test -z "$ac_cv_path_GREP"; then
3220 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3223 ac_cv_path_GREP
=$GREP
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3228 $as_echo "$ac_cv_path_GREP" >&6; }
3229 GREP
="$ac_cv_path_GREP"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3233 $as_echo_n "checking for egrep... " >&6; }
3234 if test "${ac_cv_path_EGREP+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3237 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3238 then ac_cv_path_EGREP
="$GREP -E"
3240 if test -z "$EGREP"; then
3241 ac_path_EGREP_found
=false
3242 # Loop through the user's path and test for each of PROGNAME-LIST
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3244 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_prog
in egrep; do
3249 for ac_exec_ext
in '' $ac_executable_extensions; do
3250 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3251 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3252 # Check for GNU ac_path_EGREP and select it if it is found.
3253 # Check for GNU $ac_path_EGREP
3254 case `"$ac_path_EGREP" --version 2>&1` in
3256 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3259 $as_echo_n 0123456789 >"conftest.in"
3262 cat "conftest.in" "conftest.in" >"conftest.tmp"
3263 mv "conftest.tmp" "conftest.in"
3264 cp "conftest.in" "conftest.nl"
3265 $as_echo 'EGREP' >> "conftest.nl"
3266 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3267 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3268 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3269 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3270 # Best one so far, save it but keep looking for a better one
3271 ac_cv_path_EGREP
="$ac_path_EGREP"
3272 ac_path_EGREP_max
=$ac_count
3274 # 10*(2^10) chars as input seems more than enough
3275 test $ac_count -gt 10 && break
3277 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3280 $ac_path_EGREP_found && break 3
3285 if test -z "$ac_cv_path_EGREP"; then
3286 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3289 ac_cv_path_EGREP
=$EGREP
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3295 $as_echo "$ac_cv_path_EGREP" >&6; }
3296 EGREP
="$ac_cv_path_EGREP"
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3300 $as_echo_n "checking for ANSI C header files... " >&6; }
3301 if test "${ac_cv_header_stdc+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3319 if ac_fn_c_try_compile
"$LINENO"; then :
3320 ac_cv_header_stdc
=yes
3322 ac_cv_header_stdc
=no
3324 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3326 if test $ac_cv_header_stdc = yes; then
3327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3328 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h. */
3333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3334 $EGREP "memchr" >/dev
/null
2>&1; then :
3337 ac_cv_header_stdc
=no
3343 if test $ac_cv_header_stdc = yes; then
3344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3351 $EGREP "free" >/dev
/null
2>&1; then :
3354 ac_cv_header_stdc
=no
3360 if test $ac_cv_header_stdc = yes; then
3361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3362 if test "$cross_compiling" = yes; then :
3365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 #if ((' ' & 0x0FF) == 0x020)
3370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3373 # define ISLOWER(c) \
3374 (('a' <= (c) && (c) <= 'i') \
3375 || ('j' <= (c) && (c) <= 'r') \
3376 || ('s' <= (c) && (c) <= 'z'))
3377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3385 for (i = 0; i < 256; i++)
3386 if (XOR (islower (i), ISLOWER (i))
3387 || toupper (i) != TOUPPER (i))
3392 if ac_fn_c_try_run
"$LINENO"; then :
3395 ac_cv_header_stdc
=no
3397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3404 $as_echo "$ac_cv_header_stdc" >&6; }
3405 if test $ac_cv_header_stdc = yes; then
3407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3412 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3413 inttypes.h stdint.h unistd.h
3415 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3416 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3418 eval as_val
=\$
$as_ac_Header
3419 if test "x$as_val" = x
""yes; then :
3420 cat >>confdefs.h
<<_ACEOF
3421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3430 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3431 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3438 if test "$MINIX" = yes; then
3440 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3443 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3446 $as_echo "#define _MINIX 1" >>confdefs.h
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3452 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3453 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3454 $as_echo_n "(cached) " >&6
3456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3459 # define __EXTENSIONS__ 1
3460 $ac_includes_default
3469 if ac_fn_c_try_compile
"$LINENO"; then :
3470 ac_cv_safe_to_define___extensions__
=yes
3472 ac_cv_safe_to_define___extensions__
=no
3474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3477 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3478 test $ac_cv_safe_to_define___extensions__ = yes &&
3479 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3481 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3483 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3485 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3487 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3491 # Check whether --enable-largefile was given.
3492 if test "${enable_largefile+set}" = set; then :
3493 enableval
=$enable_largefile;
3496 if test "$enable_largefile" != no
; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3499 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3500 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 ac_cv_sys_largefile_CC
=no
3504 if test "$GCC" != yes; then
3507 # IRIX 6.2 and later do not support large files by default,
3508 # so use the C compiler's -n32 option if that helps.
3509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <sys/types.h>
3512 /* Check that off_t can represent 2**63 - 1 correctly.
3513 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3514 since some C++ compilers masquerading as C compilers
3515 incorrectly reject 9223372036854775807. */
3516 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3517 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3518 && LARGE_OFF_T % 2147483647 == 1)
3528 if ac_fn_c_try_compile
"$LINENO"; then :
3531 rm -f core conftest.err conftest.
$ac_objext
3533 if ac_fn_c_try_compile
"$LINENO"; then :
3534 ac_cv_sys_largefile_CC
=' -n32'; break
3536 rm -f core conftest.err conftest.
$ac_objext
3540 rm -f conftest.
$ac_ext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3544 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3545 if test "$ac_cv_sys_largefile_CC" != no
; then
3546 CC
=$CC$ac_cv_sys_largefile_CC
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3550 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3551 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 #include <sys/types.h>
3558 /* Check that off_t can represent 2**63 - 1 correctly.
3559 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3560 since some C++ compilers masquerading as C compilers
3561 incorrectly reject 9223372036854775807. */
3562 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3563 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3564 && LARGE_OFF_T % 2147483647 == 1)
3574 if ac_fn_c_try_compile
"$LINENO"; then :
3575 ac_cv_sys_file_offset_bits
=no
; break
3577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #define _FILE_OFFSET_BITS 64
3581 #include <sys/types.h>
3582 /* Check that off_t can represent 2**63 - 1 correctly.
3583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3584 since some C++ compilers masquerading as C compilers
3585 incorrectly reject 9223372036854775807. */
3586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3588 && LARGE_OFF_T % 2147483647 == 1)
3598 if ac_fn_c_try_compile
"$LINENO"; then :
3599 ac_cv_sys_file_offset_bits
=64; break
3601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3602 ac_cv_sys_file_offset_bits
=unknown
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3607 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3608 case $ac_cv_sys_file_offset_bits in #(
3611 cat >>confdefs.h
<<_ACEOF
3612 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3617 if test $ac_cv_sys_file_offset_bits = unknown
; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3619 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3620 if test "${ac_cv_sys_large_files+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h. */
3626 #include <sys/types.h>
3627 /* Check that off_t can represent 2**63 - 1 correctly.
3628 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3629 since some C++ compilers masquerading as C compilers
3630 incorrectly reject 9223372036854775807. */
3631 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3632 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3633 && LARGE_OFF_T % 2147483647 == 1)
3643 if ac_fn_c_try_compile
"$LINENO"; then :
3644 ac_cv_sys_large_files
=no
; break
3646 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3647 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #define _LARGE_FILES 1
3650 #include <sys/types.h>
3651 /* Check that off_t can represent 2**63 - 1 correctly.
3652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3653 since some C++ compilers masquerading as C compilers
3654 incorrectly reject 9223372036854775807. */
3655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3657 && LARGE_OFF_T % 2147483647 == 1)
3667 if ac_fn_c_try_compile
"$LINENO"; then :
3668 ac_cv_sys_large_files
=1; break
3670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3671 ac_cv_sys_large_files
=unknown
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3676 $as_echo "$ac_cv_sys_large_files" >&6; }
3677 case $ac_cv_sys_large_files in #(
3680 cat >>confdefs.h
<<_ACEOF
3681 #define _LARGE_FILES $ac_cv_sys_large_files
3691 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3692 for ac_t
in install-sh
install.sh shtool
; do
3693 if test -f "$ac_dir/$ac_t"; then
3695 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3700 if test -z "$ac_aux_dir"; then
3701 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3704 # These three variables are undocumented and unsupported,
3705 # and are intended to be withdrawn in a future Autoconf release.
3706 # They can cause serious problems if a builder's source tree is in a directory
3707 # whose full name contains unusual characters.
3708 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3709 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3710 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3713 # Make sure we can run config.sub.
3714 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3715 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3718 $as_echo_n "checking build system type... " >&6; }
3719 if test "${ac_cv_build+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3722 ac_build_alias
=$build_alias
3723 test "x$ac_build_alias" = x
&&
3724 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3725 test "x$ac_build_alias" = x
&&
3726 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3727 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3728 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3732 $as_echo "$ac_cv_build" >&6; }
3733 case $ac_cv_build in
3735 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3738 ac_save_IFS
=$IFS; IFS
='-'
3744 # Remember, the first character of IFS is used to create $*,
3745 # except with old shells:
3748 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3752 $as_echo_n "checking host system type... " >&6; }
3753 if test "${ac_cv_host+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3756 if test "x$host_alias" = x
; then
3757 ac_cv_host
=$ac_cv_build
3759 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3760 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3765 $as_echo "$ac_cv_host" >&6; }
3768 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3771 ac_save_IFS
=$IFS; IFS
='-'
3777 # Remember, the first character of IFS is used to create $*,
3778 # except with old shells:
3781 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3785 $as_echo_n "checking target system type... " >&6; }
3786 if test "${ac_cv_target+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3789 if test "x$target_alias" = x
; then
3790 ac_cv_target
=$ac_cv_host
3792 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3793 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3798 $as_echo "$ac_cv_target" >&6; }
3799 case $ac_cv_target in
3801 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3803 target
=$ac_cv_target
3804 ac_save_IFS
=$IFS; IFS
='-'
3810 # Remember, the first character of IFS is used to create $*,
3811 # except with old shells:
3814 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3817 # The aliases save the names the user supplied, while $host etc.
3818 # will get canonicalized.
3819 test -n "$target_alias" &&
3820 test "$program_prefix$program_suffix$program_transform_name" = \
3822 program_prefix
=${target_alias}-
3825 # Find a good install program. We prefer a C program (faster),
3826 # so one script is as good as another. But avoid the broken or
3827 # incompatible versions:
3828 # SysV /etc/install, /usr/sbin/install
3829 # SunOS /usr/etc/install
3830 # IRIX /sbin/install
3832 # AmigaOS /C/install, which installs bootblocks on floppy discs
3833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3836 # OS/2's system install, which has a completely different semantic
3837 # ./install, which can be erroneously created by make from ./install.sh.
3838 # Reject install programs that cannot install multiple files.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3840 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3841 if test -z "$INSTALL"; then
3842 if test "${ac_cv_path_install+set}" = set; then :
3843 $as_echo_n "(cached) " >&6
3845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir
=.
3850 # Account for people who put trailing slashes in PATH elements.
3851 case $as_dir/ in #((
3852 .
/ | .
// |
/[cC
]/* | \
3853 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3854 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3857 # OSF1 and SCO ODT 3.0 have their own names for install.
3858 # Don't use installbsd from OSF since it installs stuff as root
3860 for ac_prog
in ginstall scoinst
install; do
3861 for ac_exec_ext
in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3863 if test $ac_prog = install &&
3864 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3865 # AIX install. It has an incompatible calling convention.
3867 elif test $ac_prog = install &&
3868 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3869 # program-specific install script used by HP pwplus--don't use.
3872 rm -rf conftest.one conftest.two conftest.dir
3873 echo one
> conftest.one
3874 echo two
> conftest.two
3876 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3877 test -s conftest.one
&& test -s conftest.two
&&
3878 test -s conftest.dir
/conftest.one
&&
3879 test -s conftest.dir
/conftest.two
3881 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3894 rm -rf conftest.one conftest.two conftest.dir
3897 if test "${ac_cv_path_install+set}" = set; then
3898 INSTALL
=$ac_cv_path_install
3900 # As a last resort, use the slow shell script. Don't cache a
3901 # value for INSTALL within a source directory, because that will
3902 # break other packages using the cache if that directory is
3903 # removed, or if the value is a relative name.
3904 INSTALL
=$ac_install_sh
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3908 $as_echo "$INSTALL" >&6; }
3910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3911 # It thinks the first close brace ends the variable substitution.
3912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3916 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3918 if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3920 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3926 if test -n "$RANLIB"; then
3927 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir
=.
3934 for ac_exec_ext
in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 RANLIB
=$ac_cv_prog_RANLIB
3947 if test -n "$RANLIB"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3949 $as_echo "$RANLIB" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3957 if test -z "$ac_cv_prog_RANLIB"; then
3958 ac_ct_RANLIB
=$RANLIB
3959 # Extract the first word of "ranlib", so it can be a program name with args.
3960 set dummy ranlib
; ac_word
=$2
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3962 $as_echo_n "checking for $ac_word... " >&6; }
3963 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3966 if test -n "$ac_ct_RANLIB"; then
3967 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir
=.
3974 for ac_exec_ext
in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3987 if test -n "$ac_ct_RANLIB"; then
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3989 $as_echo "$ac_ct_RANLIB" >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 $as_echo "no" >&6; }
3995 if test "x$ac_ct_RANLIB" = x
; then
3998 case $cross_compiling:$ac_tool_warned in
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned
=yes ;;
4004 RANLIB
=$ac_ct_RANLIB
4007 RANLIB
="$ac_cv_prog_RANLIB"
4011 test "$program_prefix" != NONE
&&
4012 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
4013 # Use a double $ so make ignores it.
4014 test "$program_suffix" != NONE
&&
4015 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
4016 # Double any \ or $.
4017 # By default was `s,x,x', remove it if useless.
4018 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
4019 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4023 $as_echo_n "checking for ANSI C header files... " >&6; }
4024 if test "${ac_cv_header_stdc+set}" = set; then :
4025 $as_echo_n "(cached) " >&6
4027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4042 if ac_fn_c_try_compile
"$LINENO"; then :
4043 ac_cv_header_stdc
=yes
4045 ac_cv_header_stdc
=no
4047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4049 if test $ac_cv_header_stdc = yes; then
4050 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4057 $EGREP "memchr" >/dev
/null
2>&1; then :
4060 ac_cv_header_stdc
=no
4066 if test $ac_cv_header_stdc = yes; then
4067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4069 /* end confdefs.h. */
4073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4074 $EGREP "free" >/dev
/null
2>&1; then :
4077 ac_cv_header_stdc
=no
4083 if test $ac_cv_header_stdc = yes; then
4084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4085 if test "$cross_compiling" = yes; then :
4088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 #if ((' ' & 0x0FF) == 0x020)
4093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4096 # define ISLOWER(c) \
4097 (('a' <= (c) && (c) <= 'i') \
4098 || ('j' <= (c) && (c) <= 'r') \
4099 || ('s' <= (c) && (c) <= 'z'))
4100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4108 for (i = 0; i < 256; i++)
4109 if (XOR (islower (i), ISLOWER (i))
4110 || toupper (i) != TOUPPER (i))
4115 if ac_fn_c_try_run
"$LINENO"; then :
4118 ac_cv_header_stdc
=no
4120 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4121 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4127 $as_echo "$ac_cv_header_stdc" >&6; }
4128 if test $ac_cv_header_stdc = yes; then
4130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4135 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4136 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4138 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4139 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4140 $as_echo_n "(cached) " >&6
4142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h. */
4144 #include <sys/types.h>
4156 if ac_fn_c_try_compile
"$LINENO"; then :
4157 eval "$as_ac_Header=yes"
4159 eval "$as_ac_Header=no"
4161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4163 eval ac_res
=\$
$as_ac_Header
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4165 $as_echo "$ac_res" >&6; }
4166 eval as_val
=\$
$as_ac_Header
4167 if test "x$as_val" = x
""yes; then :
4168 cat >>confdefs.h
<<_ACEOF
4169 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4172 ac_header_dirent
=$ac_hdr; break
4176 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4177 if test $ac_header_dirent = dirent.h
; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4179 $as_echo_n "checking for library containing opendir... " >&6; }
4180 if test "${ac_cv_search_opendir+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4183 ac_func_search_save_LIBS
=$LIBS
4184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4187 /* Override any GCC internal prototype to avoid an error.
4188 Use char because int might match the return type of a GCC
4189 builtin and then its argument prototype would still apply. */
4202 for ac_lib
in '' dir
; do
4203 if test -z "$ac_lib"; then
4204 ac_res
="none required"
4207 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4209 if ac_fn_c_try_link
"$LINENO"; then :
4210 ac_cv_search_opendir
=$ac_res
4212 rm -f core conftest.err conftest.
$ac_objext \
4214 if test "${ac_cv_search_opendir+set}" = set; then :
4218 if test "${ac_cv_search_opendir+set}" = set; then :
4221 ac_cv_search_opendir
=no
4224 LIBS
=$ac_func_search_save_LIBS
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4227 $as_echo "$ac_cv_search_opendir" >&6; }
4228 ac_res
=$ac_cv_search_opendir
4229 if test "$ac_res" != no
; then :
4230 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4236 $as_echo_n "checking for library containing opendir... " >&6; }
4237 if test "${ac_cv_search_opendir+set}" = set; then :
4238 $as_echo_n "(cached) " >&6
4240 ac_func_search_save_LIBS
=$LIBS
4241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4244 /* Override any GCC internal prototype to avoid an error.
4245 Use char because int might match the return type of a GCC
4246 builtin and then its argument prototype would still apply. */
4259 for ac_lib
in '' x
; do
4260 if test -z "$ac_lib"; then
4261 ac_res
="none required"
4264 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4266 if ac_fn_c_try_link
"$LINENO"; then :
4267 ac_cv_search_opendir
=$ac_res
4269 rm -f core conftest.err conftest.
$ac_objext \
4271 if test "${ac_cv_search_opendir+set}" = set; then :
4275 if test "${ac_cv_search_opendir+set}" = set; then :
4278 ac_cv_search_opendir
=no
4281 LIBS
=$ac_func_search_save_LIBS
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4284 $as_echo "$ac_cv_search_opendir" >&6; }
4285 ac_res
=$ac_cv_search_opendir
4286 if test "$ac_res" != no
; then :
4287 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4294 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4295 # for constant arguments. Useless!
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4297 $as_echo_n "checking for working alloca.h... " >&6; }
4298 if test "${ac_cv_working_alloca_h+set}" = set; then :
4299 $as_echo_n "(cached) " >&6
4301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4307 char *p = (char *) alloca (2 * sizeof (int));
4313 if ac_fn_c_try_link
"$LINENO"; then :
4314 ac_cv_working_alloca_h
=yes
4316 ac_cv_working_alloca_h
=no
4318 rm -f core conftest.err conftest.
$ac_objext \
4319 conftest
$ac_exeext conftest.
$ac_ext
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4322 $as_echo "$ac_cv_working_alloca_h" >&6; }
4323 if test $ac_cv_working_alloca_h = yes; then
4325 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4330 $as_echo_n "checking for alloca... " >&6; }
4331 if test "${ac_cv_func_alloca_works+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4337 # define alloca __builtin_alloca
4340 # include <malloc.h>
4341 # define alloca _alloca
4343 # ifdef HAVE_ALLOCA_H
4344 # include <alloca.h>
4349 # ifndef alloca /* predefined by HP cc +Olibcalls */
4360 char *p = (char *) alloca (1);
4366 if ac_fn_c_try_link
"$LINENO"; then :
4367 ac_cv_func_alloca_works
=yes
4369 ac_cv_func_alloca_works
=no
4371 rm -f core conftest.err conftest.
$ac_objext \
4372 conftest
$ac_exeext conftest.
$ac_ext
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4375 $as_echo "$ac_cv_func_alloca_works" >&6; }
4377 if test $ac_cv_func_alloca_works = yes; then
4379 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4382 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4383 # that cause trouble. Some versions do not even contain alloca or
4384 # contain a buggy version. If you still want to use their alloca,
4385 # use ar to extract alloca.o from them instead of compiling alloca.c.
4387 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
4389 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4393 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4394 if test "${ac_cv_os_cray+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4399 #if defined CRAY && ! defined CRAY2
4406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4407 $EGREP "webecray" >/dev
/null
2>&1; then :
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4416 $as_echo "$ac_cv_os_cray" >&6; }
4417 if test $ac_cv_os_cray = yes; then
4418 for ac_func
in _getb67 GETB67 getb67
; do
4419 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4420 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4421 eval as_val
=\$
$as_ac_var
4422 if test "x$as_val" = x
""yes; then :
4424 cat >>confdefs.h
<<_ACEOF
4425 #define CRAY_STACKSEG_END $ac_func
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4435 $as_echo_n "checking stack direction for C alloca... " >&6; }
4436 if test "${ac_cv_c_stack_direction+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4439 if test "$cross_compiling" = yes; then :
4440 ac_cv_c_stack_direction
=0
4442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4443 /* end confdefs.h. */
4444 $ac_includes_default
4446 find_stack_direction ()
4448 static char *addr = 0;
4453 return find_stack_direction ();
4456 return (&dummy > addr) ? 1 : -1;
4462 return find_stack_direction () < 0;
4465 if ac_fn_c_try_run
"$LINENO"; then :
4466 ac_cv_c_stack_direction
=1
4468 ac_cv_c_stack_direction
=-1
4470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4476 $as_echo "$ac_cv_c_stack_direction" >&6; }
4477 cat >>confdefs.h
<<_ACEOF
4478 #define STACK_DIRECTION $ac_cv_c_stack_direction
4485 # Set the 'development' global.
4486 .
$srcdir/..
/development.sh
4488 # Enable -lmcheck by default (it provides cheap-enough memory
4489 # mangling), but turn it off for releases.
4490 if $development; then
4491 libmcheck_default
=yes
4493 libmcheck_default
=no
4496 # Check whether --enable-libmcheck was given.
4497 if test "${enable_libmcheck+set}" = set; then :
4498 enableval
=$enable_libmcheck; case "${enableval}" in
4499 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
4500 no | n
) ENABLE_LIBMCHECK
="no" ;;
4501 *) as_fn_error
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
4506 if test -z "${ENABLE_LIBMCHECK}"; then
4507 ENABLE_LIBMCHECK
=${libmcheck_default}
4510 if test "$ENABLE_LIBMCHECK" = "yes" ; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
4512 $as_echo_n "checking for main in -lmcheck... " >&6; }
4513 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
4516 ac_check_lib_save_LIBS
=$LIBS
4517 LIBS
="-lmcheck $LIBS"
4518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4530 if ac_fn_c_try_link
"$LINENO"; then :
4531 ac_cv_lib_mcheck_main
=yes
4533 ac_cv_lib_mcheck_main
=no
4535 rm -f core conftest.err conftest.
$ac_objext \
4536 conftest
$ac_exeext conftest.
$ac_ext
4537 LIBS
=$ac_check_lib_save_LIBS
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
4540 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
4541 if test "x$ac_cv_lib_mcheck_main" = x
""yes; then :
4542 cat >>confdefs.h
<<_ACEOF
4543 #define HAVE_LIBMCHECK 1
4546 LIBS
="-lmcheck $LIBS"
4553 case ${build_alias} in
4554 "") build_noncanonical
=${build} ;;
4555 *) build_noncanonical
=${build_alias} ;;
4558 case ${host_alias} in
4559 "") host_noncanonical
=${build_noncanonical} ;;
4560 *) host_noncanonical
=${host_alias} ;;
4563 case ${target_alias} in
4564 "") target_noncanonical
=${host_noncanonical} ;;
4565 *) target_noncanonical
=${target_alias} ;;
4573 # Dependency checking.
4574 rm -rf .tst
2>/dev
/null
4575 mkdir .tst
2>/dev
/null
4576 if test -d .tst
; then
4581 rmdir .tst
2>/dev
/null
4583 DEPDIR
="${am__leading_dot}deps"
4585 ac_config_commands
="$ac_config_commands depdir"
4588 depcc
="$CC" am_compiler_list
=
4590 am_depcomp
=$ac_aux_dir/depcomp
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4592 $as_echo_n "checking dependency style of $depcc... " >&6; }
4593 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -f "$am_depcomp"; then
4597 # We make a subdir and do the tests there. Otherwise we can end up
4598 # making bogus files that we don't know about and never remove. For
4599 # instance it was reported that on HP-UX the gcc test will end up
4600 # making a dummy file named `D' -- because `-MD' means `put the output
4603 # Copy depcomp to subdir because otherwise we won't find it if we're
4604 # using a relative directory.
4605 cp "$am_depcomp" conftest.dir
4607 # We will build objects and dependencies in a subdirectory because
4608 # it helps to detect inapplicable dependency modes. For instance
4609 # both Tru64's cc and ICC support -MD to output dependencies as a
4610 # side effect of compilation, but ICC will put the dependencies in
4611 # the current directory while Tru64 will put them in the object
4615 am_cv_CC_dependencies_compiler_type
=none
4616 if test "$am_compiler_list" = ""; then
4617 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4619 for depmode
in $am_compiler_list; do
4620 if test $depmode = none
; then break; fi
4622 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4623 # Setup a source with many dependencies, because some compilers
4624 # like to wrap large dependency lists on column 80 (with \), and
4625 # we should not choose a depcomp mode which is confused by this.
4627 # We need to recreate these files for each test, as the compiler may
4628 # overwrite some of them when testing with obscure command lines.
4629 # This happens at least with the AIX C compiler.
4631 for i
in 1 2 3 4 5 6; do
4632 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4633 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4634 # Solaris 8's {/usr,}/bin/sh.
4635 touch sub
/conftst
$i.h
4637 echo "include sub/conftest.Po" > confmf
4639 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4640 # mode. It turns out that the SunPro C++ compiler does not properly
4641 # handle `-M -o', and we need to detect this.
4642 depcmd
="depmode=$depmode \
4643 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4644 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4645 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4646 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
4647 if env
$depcmd > conftest.err
2>&1 &&
4648 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
4649 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
4650 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
4651 # icc doesn't choke on unknown options, it will just issue warnings
4652 # or remarks (even with -Werror). So we grep stderr for any message
4653 # that says an option was ignored or not supported.
4654 # When given -MP, icc 7.0 and 7.1 complain thusly:
4655 # icc: Command line warning: ignoring option '-M'; no argument required
4656 # The diagnosis changed in icc 8.0:
4657 # icc: Command line remark: option '-MP' not supported
4658 if (grep 'ignoring option' conftest.err ||
4659 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4660 am_cv_CC_dependencies_compiler_type
=$depmode
4661 $as_echo "$as_me:$LINENO: success" >&5
4665 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4666 sed -e 's/^/| /' < conftest.err
>&5
4672 am_cv_CC_dependencies_compiler_type
=none
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4677 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4678 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
4679 then as_fn_error
"no usable dependency style found" "$LINENO" 5
4680 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4685 # Check for the 'make' the user wants to use.
4688 # Extract the first word of "$ac_prog", so it can be a program name with args.
4689 set dummy
$ac_prog; ac_word
=$2
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691 $as_echo_n "checking for $ac_word... " >&6; }
4692 if test "${ac_cv_prog_MAKE+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4695 if test -n "$MAKE"; then
4696 ac_cv_prog_MAKE
="$MAKE" # Let the user override the test.
4698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4702 test -z "$as_dir" && as_dir
=.
4703 for ac_exec_ext
in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705 ac_cv_prog_MAKE
="$ac_prog"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 MAKE
=$ac_cv_prog_MAKE
4716 if test -n "$MAKE"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4718 $as_echo "$MAKE" >&6; }
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 $as_echo "no" >&6; }
4725 test -n "$MAKE" && break
4729 case "`$MAKE --version 2>&1 | sed 1q`" in
4734 if test "$MAKE_IS_GNU" = yes; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4743 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4745 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4746 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4747 $as_echo_n "(cached) " >&6
4749 cat >conftest.
make <<\_ACEOF
4752 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4755 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4757 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4759 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4763 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4765 $as_echo "yes" >&6; }
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 SET_MAKE
="MAKE=${MAKE-make}"
4774 # Configure gnulib. We can't use AC_CONFIG_SUBDIRS as that'd expect
4775 # to find the the source subdir to be configured directly under
4776 # gdbserver/. We need to build gnulib under some other directory not
4777 # "gnulib", to avoid the problem of both GDB and GDBserver wanting to
4778 # build it in the same directory, when building in the source dir.
4781 in_build
="build-gnulib-gdbserver"
4783 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4784 # so they do not pile up.
4785 ac_sub_configure_args
=
4787 eval "set x $ac_configure_args"
4791 if test -n "$ac_prev"; then
4796 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
4797 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
4798 ac_prev
=cache_file
;;
4799 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
4800 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
4803 --config-cache |
-C)
4805 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
4807 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
4809 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
4811 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
4813 --disable-option-checking)
4817 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4819 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
4823 # Always prepend --prefix to ensure using the same prefix
4824 # in subdir configurations.
4825 ac_arg
="--prefix=$prefix"
4827 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4829 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
4832 if test "$silent" = yes; then
4833 ac_sub_configure_args
="--silent $ac_sub_configure_args"
4836 # Always prepend --disable-option-checking to silence warnings, since
4837 # different subdirs can have different --enable and --with options.
4838 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
4843 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4845 $as_echo "$ac_msg" >&6
4846 as_dir
="$ac_dir"; as_fn_mkdir_p
4850 ac_srcdir
=$srcdir/$in_src ;;
4852 ac_srcdir
=..
/$srcdir/$in_src ;;
4857 ac_sub_configure
=$ac_srcdir/configure
4859 # Make the cache file name correct relative to the subdirectory.
4861 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
4863 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
4866 { $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
4867 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4868 # The eval makes quoting arguments work.
4869 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4870 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4871 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4876 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h thread_db.h linux
/elf.h stdlib.h errno.h fcntl.h signal.h sys
/file.h malloc.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h sys
/wait.h
wait.h sys
/un.h linux
/perf_event.h
4878 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4879 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4880 eval as_val
=\$
$as_ac_Header
4881 if test "x$as_val" = x
""yes; then :
4882 cat >>confdefs.h
<<_ACEOF
4883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4890 for ac_func
in pread pwrite pread64 readlink fdwalk pipe2
4892 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4893 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4894 eval as_val
=\$
$as_ac_var
4895 if test "x$as_val" = x
""yes; then :
4896 cat >>confdefs.h
<<_ACEOF
4897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4903 for ac_func
in vasprintf vsnprintf
4905 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4906 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
4907 eval as_val
=\$
$as_ac_var
4908 if test "x$as_val" = x
""yes; then :
4909 cat >>confdefs.h
<<_ACEOF
4910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4914 case " $LIBOBJS " in
4915 *" $ac_func.$ac_objext "* ) ;;
4916 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
4930 # Check whether --with-ust was given.
4931 if test "${with_ust+set}" = set; then :
4936 # Check whether --with-ust_include was given.
4937 if test "${with_ust_include+set}" = set; then :
4938 withval
=$with_ust_include;
4942 # Check whether --with-ust_lib was given.
4943 if test "${with_ust_lib+set}" = set; then :
4944 withval
=$with_ust_lib;
4958 ustlibs
="-L$with_ust/lib -lust"
4959 ustinc
="-I$with_ust/include "
4962 if test "x$with_ust_include" != x
; then
4963 ustinc
="-I$with_ust_include "
4965 if test "x$with_ust_lib" != x
; then
4966 ustlibs
="-L$with_ust_lib -lust"
4969 if test "x$with_ust" != "xno"; then
4970 saved_CFLAGS
="$CFLAGS"
4971 CFLAGS
="$CFLAGS $ustinc"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ust" >&5
4973 $as_echo_n "checking for ust... " >&6; }
4974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4977 #define CONFIG_UST_GDB_INTEGRATION
4978 #include <ust/ust.h>
4988 if ac_fn_c_try_compile
"$LINENO"; then :
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4990 $as_echo "yes" >&6; };
4991 $as_echo "#define HAVE_UST 1" >>confdefs.h
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }; ustlibs
= ; ustinc
=
4997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4998 CFLAGS
="$saved_CFLAGS"
5001 # Flags needed for UST
5005 # Check whether --enable-werror was given.
5006 if test "${enable_werror+set}" = set; then :
5007 enableval
=$enable_werror; case "${enableval}" in
5008 yes | y
) ERROR_ON_WARNING
="yes" ;;
5009 no | n
) ERROR_ON_WARNING
="no" ;;
5010 *) as_fn_error
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
5015 # Enable -Werror by default when using gcc
5016 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
5017 ERROR_ON_WARNING
=yes
5021 if test "${ERROR_ON_WARNING}" = yes ; then
5022 WERROR_CFLAGS
="-Werror"
5025 build_warnings
="-Wall -Wdeclaration-after-statement -Wpointer-arith \
5026 -Wformat-nonliteral -Wno-char-subscripts -Wempty-body"
5029 if test "x$GCC" = xyes
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
5032 $as_echo_n "checking compiler warning flags... " >&6; }
5033 # Separate out the -Werror flag as some files just cannot be
5034 # compiled with it enabled.
5035 for w
in ${build_warnings}; do
5037 -Werr*) WERROR_CFLAGS
=-Werror ;;
5038 *) # Check that GCC accepts it
5039 saved_CFLAGS
="$CFLAGS"
5041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5042 /* end confdefs.h. */
5052 if ac_fn_c_try_compile
"$LINENO"; then :
5053 WARN_CFLAGS
="${WARN_CFLAGS} $w"
5055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5056 CFLAGS
="$saved_CFLAGS"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
5060 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
5067 for ac_func in dladdr
5069 ac_fn_c_check_func "$LINENO" "dladdr
" "ac_cv_func_dladdr
"
5070 if test "x
$ac_cv_func_dladdr" = x""yes; then :
5071 cat >>confdefs.h <<_ACEOF
5072 #define HAVE_DLADDR 1
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for errno
" >&5
5082 $as_echo_n "checking
for errno...
" >&6; }
5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h. */
5092 static int x; x = errno;
5097 if ac_fn_c_try_link "$LINENO"; then :
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes - in errno.h
" >&5
5099 $as_echo "yes - in errno.h
" >&6; };
5100 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5103 rm -f core conftest.err conftest.
$ac_objext \
5104 conftest
$ac_exeext conftest.
$ac_ext
5105 if test $have_errno = no
; then
5106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5115 extern int errno; static int x; x = errno;
5120 if ac_fn_c_try_link
"$LINENO"; then :
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
5122 $as_echo "yes - must define" >&6; };
5123 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
5125 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5131 rm -f core conftest.err conftest.
$ac_objext \
5132 conftest
$ac_exeext conftest.
$ac_ext
5135 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
5136 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
5142 cat >>confdefs.h
<<_ACEOF
5143 #define HAVE_DECL_STRERROR $ac_have_decl
5145 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
5146 if test "x$ac_cv_have_decl_strstr" = x
""yes; then :
5152 cat >>confdefs.h
<<_ACEOF
5153 #define HAVE_DECL_STRSTR $ac_have_decl
5155 ac_fn_c_check_decl
"$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
5156 if test "x$ac_cv_have_decl_perror" = x
""yes; then :
5162 cat >>confdefs.h
<<_ACEOF
5163 #define HAVE_DECL_PERROR $ac_have_decl
5165 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
5166 if test "x$ac_cv_have_decl_vasprintf" = x
""yes; then :
5172 cat >>confdefs.h
<<_ACEOF
5173 #define HAVE_DECL_VASPRINTF $ac_have_decl
5175 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
5176 if test "x$ac_cv_have_decl_vsnprintf" = x
""yes; then :
5182 cat >>confdefs.h
<<_ACEOF
5183 #define HAVE_DECL_VSNPRINTF $ac_have_decl
5187 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
5188 #include <sys/socket.h>
5191 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
5193 cat >>confdefs.h
<<_ACEOF
5194 #define HAVE_SOCKLEN_T 1
5201 ac_fn_c_check_type
"$LINENO" "Elf32_auxv_t" "ac_cv_type_Elf32_auxv_t" "#include <elf.h>
5204 if test "x$ac_cv_type_Elf32_auxv_t" = x
""yes; then :
5206 cat >>confdefs.h
<<_ACEOF
5207 #define HAVE_ELF32_AUXV_T 1
5212 ac_fn_c_check_type
"$LINENO" "Elf64_auxv_t" "ac_cv_type_Elf64_auxv_t" "#include <elf.h>
5215 if test "x$ac_cv_type_Elf64_auxv_t" = x
""yes; then :
5217 cat >>confdefs.h
<<_ACEOF
5218 #define HAVE_ELF64_AUXV_T 1
5227 # Check whether --with-pkgversion was given.
5228 if test "${with_pkgversion+set}" = set; then :
5229 withval
=$with_pkgversion; case "$withval" in
5230 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
5232 *) PKGVERSION
="($withval) " ;;
5243 # Check whether --with-bugurl was given.
5244 if test "${with_bugurl+set}" = set; then :
5245 withval
=$with_bugurl; case "$withval" in
5246 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
5249 *) BUGURL
="$withval"
5253 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
5263 REPORT_BUGS_TO
="<$BUGURL>"
5264 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
5271 cat >>confdefs.h
<<_ACEOF
5272 #define PKGVERSION "$PKGVERSION"
5276 cat >>confdefs.h
<<_ACEOF
5277 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5281 # Check for various supplementary target information (beyond the
5282 # triplet) which might affect the choices in configure.srv.
5284 i
[34567]86-*-linux*)
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
5286 $as_echo_n "checking if building for x86-64... " >&6; }
5287 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
5288 $as_echo_n "(cached) " >&6
5290 save_CPPFLAGS
="$CPPFLAGS"
5291 CPPFLAGS
="$CPPFLAGS $CFLAGS"
5292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5301 $EGREP "got it" >/dev
/null
2>&1; then :
5302 gdb_cv_i386_is_x86_64
=yes
5304 gdb_cv_i386_is_x86_64
=no
5308 CPPFLAGS
="$save_CPPFLAGS"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
5311 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
5315 $as_echo_n "checking if building for Coldfire... " >&6; }
5316 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
5317 $as_echo_n "(cached) " >&6
5319 save_CPPFLAGS
="$CPPFLAGS"
5320 CPPFLAGS
="$CPPFLAGS $CFLAGS"
5321 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5324 #ifdef __mcoldfire__
5329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5330 $EGREP "got it" >/dev
/null
2>&1; then :
5331 gdb_cv_m68k_is_coldfire
=yes
5333 gdb_cv_m68k_is_coldfire
=no
5337 CPPFLAGS
="$save_CPPFLAGS"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
5340 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
5344 .
${srcdir}/configure.srv
5346 if test "${srv_mingwce}" = "yes"; then
5348 elif test "${srv_mingw}" = "yes"; then
5349 LIBS
="$LIBS -lws2_32"
5350 elif test "${srv_qnx}" = "yes"; then
5351 LIBS
="$LIBS -lsocket"
5352 elif test "${srv_lynxos}" = "yes"; then
5353 LIBS
="$LIBS -lnetinet"
5356 if test "${srv_mingw}" = "yes"; then
5358 $as_echo "#define USE_WIN32API 1" >>confdefs.h
5362 if test "${srv_linux_usrregs}" = "yes"; then
5364 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
5368 if test "${srv_linux_regsets}" = "yes"; then
5370 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
5374 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
5375 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380 #include <sys/ptrace.h>
5389 if ac_fn_c_try_compile
"$LINENO"; then :
5390 gdbsrv_cv_have_ptrace_getregs
=yes
5392 gdbsrv_cv_have_ptrace_getregs
=no
5394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
5398 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
5399 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
5401 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
5406 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
5407 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 #include <sys/ptrace.h>
5421 if ac_fn_c_try_compile
"$LINENO"; then :
5422 gdbsrv_cv_have_ptrace_getfpxregs
=yes
5424 gdbsrv_cv_have_ptrace_getfpxregs
=no
5426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
5430 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
5431 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
5433 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
5438 if test "${srv_linux_btrace}" = "yes"; then
5440 $as_echo "#define HAVE_LINUX_BTRACE 1" >>confdefs.h
5444 if test "$ac_cv_header_sys_procfs_h" = yes; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
5446 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
5447 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
5448 $as_echo_n "(cached) " >&6
5450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5454 /* Needed for new procfs interface on sparc-solaris. */
5455 #define _STRUCTURED_PROC 1
5456 #include <sys/procfs.h>
5465 if ac_fn_c_try_compile
"$LINENO"; then :
5466 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
5468 bfd_cv_have_sys_procfs_type_lwpid_t
=no
5471 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5474 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
5476 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
5480 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
5483 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
5484 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5491 /* Needed for new procfs interface on sparc-solaris. */
5492 #define _STRUCTURED_PROC 1
5493 #include <sys/procfs.h>
5502 if ac_fn_c_try_compile
"$LINENO"; then :
5503 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
5505 bfd_cv_have_sys_procfs_type_psaddr_t
=no
5508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
5513 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
5517 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
5520 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
5521 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5528 /* Needed for new procfs interface on sparc-solaris. */
5529 #define _STRUCTURED_PROC 1
5530 #include <sys/procfs.h>
5539 if ac_fn_c_try_compile
"$LINENO"; then :
5540 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
5542 bfd_cv_have_sys_procfs_type_prgregset_t
=no
5545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5548 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
5550 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
5554 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
5557 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
5558 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5561 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5565 /* Needed for new procfs interface on sparc-solaris. */
5566 #define _STRUCTURED_PROC 1
5567 #include <sys/procfs.h>
5576 if ac_fn_c_try_compile
"$LINENO"; then :
5577 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
5579 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
5582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
5587 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
5591 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
5595 if test "$bfd_cv_have_sys_procfs_type_lwpid_t" != yes; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in thread_db.h" >&5
5597 $as_echo_n "checking for lwpid_t in thread_db.h... " >&6; }
5598 if test "${gdbserver_cv_have_thread_db_type_lwpid_t+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5602 /* end confdefs.h. */
5604 #include <thread_db.h>
5613 if ac_fn_c_try_compile
"$LINENO"; then :
5614 gdbserver_cv_have_thread_db_type_lwpid_t
=yes
5616 gdbserver_cv_have_thread_db_type_lwpid_t
=no
5619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5622 if test $gdbserver_cv_have_thread_db_type_lwpid_t = yes; then
5624 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_lwpid_t" >&5
5628 $as_echo "$gdbserver_cv_have_thread_db_type_lwpid_t" >&6; }
5632 if test "$bfd_cv_have_sys_procfs_type_psaddr_t" != yes; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in thread_db.h" >&5
5634 $as_echo_n "checking for psaddr_t in thread_db.h... " >&6; }
5635 if test "${gdbserver_cv_have_thread_db_type_psaddr_t+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5641 #include <thread_db.h>
5650 if ac_fn_c_try_compile
"$LINENO"; then :
5651 gdbserver_cv_have_thread_db_type_psaddr_t
=yes
5653 gdbserver_cv_have_thread_db_type_psaddr_t
=no
5656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5659 if test $gdbserver_cv_have_thread_db_type_psaddr_t = yes; then
5661 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbserver_cv_have_thread_db_type_psaddr_t" >&5
5665 $as_echo "$gdbserver_cv_have_thread_db_type_psaddr_t" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
5671 $as_echo_n "checking for dlopen in -ldl... " >&6; }
5672 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
5673 $as_echo_n "(cached) " >&6
5675 ac_check_lib_save_LIBS
=$LIBS
5677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5680 /* Override any GCC internal prototype to avoid an error.
5681 Use char because int might match the return type of a GCC
5682 builtin and then its argument prototype would still apply. */
5695 if ac_fn_c_try_link
"$LINENO"; then :
5696 ac_cv_lib_dl_dlopen
=yes
5698 ac_cv_lib_dl_dlopen
=no
5700 rm -f core conftest.err conftest.
$ac_objext \
5701 conftest
$ac_exeext conftest.
$ac_ext
5702 LIBS
=$ac_check_lib_save_LIBS
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
5705 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
5706 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
5707 cat >>confdefs.h
<<_ACEOF
5708 #define HAVE_LIBDL 1
5717 srv_thread_depfiles
=
5720 if test "$srv_linux_thread_db" = "yes"; then
5721 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
5724 $as_echo_n "checking for the dynamic export flag... " >&6; }
5725 old_LDFLAGS
="$LDFLAGS"
5726 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
5728 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
5729 LDFLAGS
="$LDFLAGS $RDYNAMIC"
5730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5741 if ac_fn_c_try_link
"$LINENO"; then :
5742 found
="-Wl,--dynamic-list"
5743 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
5745 RDYNAMIC
="-rdynamic"
5746 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
5747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5758 if ac_fn_c_try_link
"$LINENO"; then :
5764 rm -f core conftest.err conftest.
$ac_objext \
5765 conftest
$ac_exeext conftest.
$ac_ext
5767 rm -f core conftest.err conftest.
$ac_objext \
5768 conftest
$ac_exeext conftest.
$ac_ext
5770 LDFLAGS
="$old_LDFLAGS"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
5772 $as_echo "$found" >&6; }
5774 srv_libs
="-lthread_db"
5777 srv_thread_depfiles
="thread-db.o proc-service.o"
5779 $as_echo "#define USE_THREAD_DB 1" >>confdefs.h
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
5782 $as_echo_n "checking for TD_VERSION... " >&6; }
5783 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
5784 $as_echo_n "(cached) " >&6
5786 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #include <thread_db.h>
5797 if ac_fn_c_try_compile
"$LINENO"; then :
5798 gdbsrv_cv_have_td_version
=yes
5800 gdbsrv_cv_have_td_version
=no
5802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
5805 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
5806 if test $gdbsrv_cv_have_td_version = yes; then
5808 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
5814 # Check whether --with-libthread-db was given.
5815 if test "${with_libthread_db+set}" = set; then :
5816 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
5817 srv_libs
="$srv_libthread_db_path"
5822 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
5824 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
5828 if test "$srv_xmlfiles" != ""; then
5829 srv_xmlbuiltin
="xml-builtin.o"
5831 $as_echo "#define USE_XML 1" >>confdefs.h
5834 tmp_xmlfiles
=$srv_xmlfiles
5836 for f
in $tmp_xmlfiles; do
5837 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
5841 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
5842 GDBSERVER_LIBS
="$srv_libs"
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
5845 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
5846 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5856 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
5861 if ac_fn_c_try_link
"$LINENO"; then :
5862 gdbsrv_cv_have_sync_builtins
=yes
5864 gdbsrv_cv_have_sync_builtins
=no
5866 rm -f core conftest.err conftest.
$ac_objext \
5867 conftest
$ac_exeext conftest.
$ac_ext
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
5870 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
5871 if test $gdbsrv_cv_have_sync_builtins = yes; then
5873 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
5877 saved_cflags
="$CFLAGS"
5878 CFLAGS
="$CFLAGS -fvisibility=hidden"
5879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5890 if ac_fn_c_try_compile
"$LINENO"; then :
5891 gdbsrv_cv_have_visibility_hidden
=yes
5893 gdbsrv_cv_have_visibility_hidden
=no
5895 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5896 CFLAGS
="$saved_cflags"
5898 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
5900 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x
""yes; then :
5906 cat >>confdefs.h
<<_ACEOF
5907 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
5911 if test "$cross_compiling" = yes; then :
5912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 #include <sys/personality.h>
5919 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5920 # define ADDR_NO_RANDOMIZE 0x0040000
5922 /* Test the flag could be set and stays set. */
5923 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5924 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5930 if ac_fn_c_try_link
"$LINENO"; then :
5931 gdbsrv_cv_have_personality
=true
5933 gdbsrv_cv_have_personality
=false
5935 rm -f core conftest.err conftest.
$ac_objext \
5936 conftest
$ac_exeext conftest.
$ac_ext
5938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5939 /* end confdefs.h. */
5940 #include <sys/personality.h>
5945 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
5946 # define ADDR_NO_RANDOMIZE 0x0040000
5948 /* Test the flag could be set and stays set. */
5949 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
5950 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
5956 if ac_fn_c_try_run
"$LINENO"; then :
5957 gdbsrv_cv_have_personality
=true
5959 gdbsrv_cv_have_personality
=false
5961 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5962 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5965 if $gdbsrv_cv_have_personality
5968 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
5976 # check whether to enable the inprocess agent
5977 if test "$ipa_obj" != "" \
5978 -a "$gdbsrv_cv_have_sync_builtins" = yes \
5979 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
5985 # Check whether --enable-inprocess-agent was given.
5986 if test "${enable_inprocess_agent+set}" = set; then :
5987 enableval
=$enable_inprocess_agent; case "$enableval" in
5988 yes) want_ipa
=true
;;
5989 no
) want_ipa
=false
;;
5990 *) as_fn_error
"bad value $enableval for inprocess-agent" "$LINENO" 5 ;;
5999 IPA_DEPFILES
="$ipa_obj"
6000 extra_libraries
="$extra_libraries libinproctrace.so"
6002 as_fn_error
"inprocess agent not supported for this target" "$LINENO" 5
6013 GNULIB
=build-gnulib-gdbserver
/import
6016 if test x
"$STDINT_H" != x
; then
6017 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6021 ac_config_files
="$ac_config_files Makefile"
6023 ac_config_commands
="$ac_config_commands default"
6025 cat >confcache
<<\_ACEOF
6026 # This file is a shell script that caches the results of configure
6027 # tests run on this system so they can be shared between configure
6028 # scripts and configure runs, see configure's option --config-cache.
6029 # It is not useful on other systems. If it contains results you don't
6030 # want to keep, you may remove or edit it.
6032 # config.status only pays attention to the cache file if you give it
6033 # the --recheck option to rerun configure.
6035 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6036 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6041 # The following way of writing the cache mishandles newlines in values,
6042 # but we know of no workaround that is simple, portable, and efficient.
6043 # So, we kill variables containing newlines.
6044 # Ultrix sh set writes to stderr and can't be redirected directly,
6045 # and sets the high bit in the cache file unless we assign to the vars.
6047 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6048 eval ac_val
=\$
$ac_var
6052 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6053 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6056 _ | IFS | as_nl
) ;; #(
6057 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6058 *) { eval $ac_var=; unset $ac_var;} ;;
6064 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6065 *${as_nl}ac_space
=\
*)
6066 # `set' does not quote correctly, so add quotes: double-quote
6067 # substitution turns \\\\ into \\, and sed turns \\ into \.
6070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6073 # `set' quotes correctly as required by POSIX, so do not add quotes.
6074 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6083 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6085 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6087 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6088 if test -w "$cache_file"; then
6089 test "x$cache_file" != "x/dev/null" &&
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6091 $as_echo "$as_me: updating cache $cache_file" >&6;}
6092 cat confcache
>$cache_file
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6095 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6100 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6101 # Let make expand exec_prefix.
6102 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6104 DEFS
=-DHAVE_CONFIG_H
6108 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6109 # 1. Remove the extension, and $U if already installed.
6110 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6111 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6112 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6113 # will be set to the directory where LIBOBJS objects are built.
6114 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6115 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6119 LTLIBOBJS
=$ac_ltlibobjs
6122 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6123 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
6124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6126 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
6127 as_fn_error
"conditional \"GMAKE\" was never defined.
6128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6131 : ${CONFIG_STATUS=./config.status}
6133 ac_clean_files_save
=$ac_clean_files
6134 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6136 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6140 # Generated by $as_me.
6141 # Run this file to recreate the current configuration.
6142 # Compiler output produced by configure, useful for debugging
6143 # configure, is in config.log if it exists.
6149 SHELL=\${CONFIG_SHELL-$SHELL}
6152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6153 ## -------------------- ##
6154 ## M4sh Initialization. ##
6155 ## -------------------- ##
6157 # Be more Bourne compatible
6158 DUALCASE
=1; export DUALCASE
# for MKS sh
6159 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6163 # is contrary to our usage. Disable this feature.
6164 alias -g '${1+"$@"}'='"$@"'
6165 setopt NO_GLOB_SUBST
6167 case `(set -o) 2>/dev/null` in #(
6179 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6180 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6183 # Prefer a ksh shell builtin over an external printf program on Solaris,
6184 # but without wasting forks for bash or zsh.
6185 if test -z "$BASH_VERSION$ZSH_VERSION" \
6186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6187 as_echo='print
-r --'
6188 as_echo_n='print
-rn --'
6189 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6190 as_echo='printf %s
\n'
6191 as_echo_n='printf %s
'
6193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6194 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6195 as_echo_n='/usr
/ucb
/echo -n'
6197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6198 as_echo_n_body='eval
6202 expr "X$arg" : "X\\(.*\\)$as_nl";
6203 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6205 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6207 export as_echo_n_body
6208 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6211 as_echo='sh
-c $as_echo_body as_echo
'
6214 # The user is always right.
6215 if test "${PATH_SEPARATOR+set}" != set; then
6217 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6218 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6225 # We need space, tab and new line, in precisely that order. Quoting is
6226 # there to prevent editors from complaining about space-tab.
6227 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6228 # splitting by setting IFS to empty value.)
6231 # Find who we are. Look in the path if we contain no directory separator.
6233 *[\\/]* ) as_myself=$0 ;;
6234 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 test -z "$as_dir" && as_dir=.
6239 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6245 # We did not find ourselves, most probably we were run as `sh COMMAND'
6246 # in which case we are not to be found in the path.
6247 if test "x$as_myself" = x
; then
6250 if test ! -f "$as_myself"; then
6251 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6255 # Unset variables that we do not need and which cause bugs (e.g. in
6256 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6257 # suppresses any "Segmentation fault" message there. '((' could
6258 # trigger a bug in pdksh 5.2.14.
6259 for as_var
in BASH_ENV ENV MAIL MAILPATH
6260 do eval test x\
${$as_var+set} = xset \
6261 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6274 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6277 # as_fn_error ERROR [LINENO LOG_FD]
6278 # ---------------------------------
6279 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6280 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6281 # script with status $?, using 1 if that was 0.
6284 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6286 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6287 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6289 $as_echo "$as_me: error: $1" >&2
6290 as_fn_exit
$as_status
6294 # as_fn_set_status STATUS
6295 # -----------------------
6296 # Set $? to STATUS, without forking.
6300 } # as_fn_set_status
6304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6314 # Portably unset VAR.
6317 { eval $1=; unset $1;}
6319 as_unset
=as_fn_unset
6320 # as_fn_append VAR VALUE
6321 # ----------------------
6322 # Append the text in VALUE to the end of the definition contained in VAR. Take
6323 # advantage of any shell optimizations that allow amortized linear growth over
6324 # repeated appends, instead of the typical quadratic growth present in naive
6326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6327 eval 'as_fn_append ()
6338 # as_fn_arith ARG...
6339 # ------------------
6340 # Perform arithmetic evaluation on the ARGs, and store the result in the
6341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6342 # must be portable across $(()) and expr.
6343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6344 eval 'as_fn_arith ()
6351 as_val
=`expr "$@" || test $? -eq 1`
6356 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6357 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6363 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6364 as_basename
=basename
6369 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6375 as_me
=`$as_basename -- "$0" ||
6376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6377 X"$0" : 'X\(//\)$' \| \
6378 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6380 sed '/^.*\/\([^/][^/]*\)\/*$/{
6394 # Avoid depending upon Character Ranges.
6395 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6396 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6397 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6398 as_cr_digits
='0123456789'
6399 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6401 ECHO_C
= ECHO_N
= ECHO_T
=
6402 case `echo -n x` in #(((((
6404 case `echo 'xy\c'` in
6405 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6407 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6414 rm -f conf$$ conf$$.exe conf$$.
file
6415 if test -d conf$$.dir
; then
6416 rm -f conf$$.dir
/conf$$.
file
6419 mkdir conf$$.dir
2>/dev
/null
6421 if (echo >conf$$.
file) 2>/dev
/null
; then
6422 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6424 # ... but there are two gotchas:
6425 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6426 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6427 # In both cases, we have to default to `cp -p'.
6428 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6430 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6438 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6439 rmdir conf$$.dir
2>/dev
/null
6444 # Create "$as_dir" as a directory, including parents if necessary.
6449 -*) as_dir
=.
/$as_dir;;
6451 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6455 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6456 *) as_qdir
=$as_dir;;
6458 as_dirs
="'$as_qdir' $as_dirs"
6459 as_dir
=`$as_dirname -- "$as_dir" ||
6460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6461 X"$as_dir" : 'X\(//\)[^/]' \| \
6462 X"$as_dir" : 'X\(//\)$' \| \
6463 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6464 $as_echo X"$as_dir" |
6465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6482 test -d "$as_dir" && break
6484 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6485 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6489 if mkdir
-p .
2>/dev
/null
; then
6490 as_mkdir_p
='mkdir -p "$as_dir"'
6492 test -d .
/-p && rmdir .
/-p
6496 if test -x / >/dev
/null
2>&1; then
6499 if ls -dL / >/dev
/null
2>&1; then
6506 if test -d "$1"; then
6512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6513 ???[sx]*):;;*)false;;esac;fi
6517 as_executable_p
=$as_test_x
6519 # Sed expression to map a string onto a valid CPP name.
6520 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6522 # Sed expression to map a string onto a valid variable name.
6523 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6527 ## ----------------------------------- ##
6528 ## Main body of $CONFIG_STATUS script. ##
6529 ## ----------------------------------- ##
6531 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6534 # Save the log message, to keep $0 and so on meaningful, and to
6535 # report actual input values of CONFIG_FILES etc. instead of their
6536 # values after options handling.
6538 This file was extended by $as_me, which was
6539 generated by GNU Autoconf 2.64. Invocation command line was
6541 CONFIG_FILES = $CONFIG_FILES
6542 CONFIG_HEADERS = $CONFIG_HEADERS
6543 CONFIG_LINKS = $CONFIG_LINKS
6544 CONFIG_COMMANDS = $CONFIG_COMMANDS
6547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6552 case $ac_config_files in *"
6553 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6556 case $ac_config_headers in *"
6557 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6562 # Files that config.status was made for.
6563 config_files="$ac_config_files"
6564 config_headers="$ac_config_headers"
6565 config_commands="$ac_config_commands"
6569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6571 \`$as_me' instantiates files and other configuration actions
6572 from templates according to the current configuration. Unless the files
6573 and actions are specified as TAGs, all are instantiated by default.
6575 Usage: $0 [OPTION]... [TAG]...
6577 -h, --help print this help, then exit
6578 -V, --version print version number and configuration settings, then exit
6579 -q, --quiet, --silent
6580 do not print progress messages
6581 -d, --debug don't remove temporary files
6582 --recheck update $as_me by reconfiguring in the same conditions
6583 --file=FILE[:TEMPLATE]
6584 instantiate the configuration file FILE
6585 --header=FILE[:TEMPLATE]
6586 instantiate the configuration header FILE
6588 Configuration files:
6591 Configuration headers:
6594 Configuration commands:
6597 Report bugs to the package provider."
6600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6603 configured by $0, generated by GNU Autoconf 2.64,
6604 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6606 Copyright (C) 2009 Free Software Foundation, Inc.
6607 This config.status script is free software; the Free Software Foundation
6608 gives unlimited permission to copy, distribute and modify it."
6613 test -n "\$AWK" || AWK=awk
6616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6617 # The default lists apply if the user does not specify any file.
6623 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6624 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6635 # Handling of the options.
6636 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6638 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6639 $as_echo "$ac_cs_version"; exit ;;
6640 --debug |
--debu |
--deb |
--de |
--d |
-d )
6642 --file |
--fil |
--fi |
--f )
6645 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6647 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6648 ac_need_defaults
=false
;;
6649 --header |
--heade |
--head |
--hea )
6652 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6654 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6655 ac_need_defaults
=false
;;
6657 # Conflict between --help and --header
6658 as_fn_error
"ambiguous option: \`$1'
6659 Try \`$0 --help' for more information.";;
6660 --help |
--hel |
-h )
6661 $as_echo "$ac_cs_usage"; exit ;;
6662 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6663 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6667 -*) as_fn_error
"unrecognized option: \`$1'
6668 Try \`$0 --help' for more information." ;;
6670 *) as_fn_append ac_config_targets
" $1"
6671 ac_need_defaults
=false
;;
6677 ac_configure_extra_args
=
6679 if $ac_cs_silent; then
6681 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6686 if \$ac_cs_recheck; then
6687 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6689 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6690 CONFIG_SHELL='$SHELL'
6696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6700 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6701 ## Running $as_me. ##
6707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6711 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
6715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6717 # Handling of arguments.
6718 for ac_config_target
in $ac_config_targets
6720 case $ac_config_target in
6721 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6722 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
6723 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6724 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6726 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6731 # If the user did not use the arguments to specify the items to instantiate,
6732 # then the envvar interface is used. Set only those that are not.
6733 # We use the long form for the default assignment because of an extremely
6734 # bizarre bug on SunOS 4.1.3.
6735 if $ac_need_defaults; then
6736 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6737 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6741 # Have a temporary directory for convenience. Make it in the build tree
6742 # simply because there is no reason against having it here, and in addition,
6743 # creating and moving files from /tmp can sometimes cause problems.
6744 # Hook for its removal unless debugging.
6745 # Note that there is a small window in which the directory will not be cleaned:
6746 # after its creation but before its name has been assigned to `$tmp'.
6750 trap 'exit_status=$?
6751 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6753 trap 'as_fn_exit 1' 1 2 13 15
6755 # Create a (secure) tmp directory for tmp files.
6758 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6759 test -n "$tmp" && test -d "$tmp"
6762 tmp
=.
/conf$$
-$RANDOM
6763 (umask 077 && mkdir
"$tmp")
6764 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6766 # Set up the scripts for CONFIG_FILES section.
6767 # No need to generate them if there are no CONFIG_FILES.
6768 # This happens for instance with `./config.status config.h'.
6769 if test -n "$CONFIG_FILES"; then
6772 ac_cr
=`echo X | tr X '\015'`
6773 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6774 # But we know of no other shell where ac_cr would be empty at this
6775 # point, so we can use a bashism as a fallback.
6776 if test "x$ac_cr" = x
; then
6777 eval ac_cr
=\$
\'\\r
\'
6779 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6780 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6786 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6791 echo "cat >conf$$subs.awk <<_ACEOF" &&
6792 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6795 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6796 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6798 for ac_last_try in false false false false false :; do
6799 . ./conf$$subs.sh ||
6800 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6802 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6803 if test $ac_delim_n = $ac_delim_num; then
6805 elif $ac_last_try; then
6806 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6808 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6814 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6818 s/^/S["/; s
/!.
*/"]=/
6828 s/\(.\{148\}\).*/\1/
6830 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6835 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6842 s/\(.\{148\}\).*/\1/
6844 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6848 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6853 ' <conf$$subs.awk | sed '
6858 ' >>$CONFIG_STATUS || ac_write_fail=1
6859 rm -f conf$$subs.awk
6860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6862 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6863 for (key in S) S_is_set[key] = 1
6869 nfields = split(line, field, "@
")
6871 len = length(field[1])
6872 for (i = 2; i < nfields; i++) {
6874 keylen = length(key)
6875 if (S_is_set[key]) {
6877 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6878 len += length(value) + length(field[++i])
6889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6890 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6891 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6894 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6895 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6898 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6899 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6900 # trailing colons and then remove the whole line if VPATH becomes empty
6901 # (actually we leave an empty line to preserve line numbers).
6902 if test "x
$srcdir" = x.; then
6903 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6907 s/^\([^=]*=[ ]*\):*/\1/
6913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6914 fi # test -n "$CONFIG_FILES"
6916 # Set up the scripts for CONFIG_HEADERS section.
6917 # No need to generate them if there are no CONFIG_HEADERS.
6918 # This happens for instance with `./config.status Makefile'.
6919 if test -n "$CONFIG_HEADERS"; then
6920 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6924 # Transform confdefs.h into an awk script `defines.awk', embedded as
6925 # here-document in config.status, that substitutes the proper values into
6926 # config.h.in to produce config.h.
6928 # Create a delimiter string that does not exist in confdefs.h, to ease
6929 # handling of long lines.
6931 for ac_last_try in false false :; do
6932 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6933 if test -z "$ac_t"; then
6935 elif $ac_last_try; then
6936 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6938 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6942 # For the awk script, D is an array of macro values keyed by name,
6943 # likewise P contains macro parameters if any. Preserve backslash
6944 # newline sequences.
6946 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6948 s/.\{148\}/&'"$ac_delim"'/g
6951 s/^[ ]*#[ ]*define[ ][ ]*/ /
6958 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6960 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6965 D["\
1"]=" \
3\\\\\\n
"\\/p
6967 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6972 s/.\{148\}/&'"$ac_delim"'/g
6977 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6980 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6982 ' <confdefs.h | sed '
6983 s/'"$ac_delim"'/"\\\
6984 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6987 for (key in D) D_is_set[key] = 1
6990 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6992 split(line, arg, " ")
6993 if (arg[1] == "#") {
6997 defundef
= substr
(arg
[1], 2)
7000 split(mac1
, mac2
, "(") #)
7002 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7003 if (D_is_set
[macro
]) {
7004 # Preserve the white space surrounding the "#".
7005 print prefix
"define", macro P
[macro
] D
[macro
]
7008 # Replace #undef with comments. This is necessary, for example,
7009 # in the case of _POSIX_SOURCE, which is predefined and required
7010 # on some systems where configure will not decide to define it.
7011 if (defundef
== "undef") {
7012 print
"/*", prefix defundef
, macro
, "*/"
7020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7021 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7022 fi # test -n "$CONFIG_HEADERS"
7025 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7030 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7032 case $ac_mode$ac_tag in
7034 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7035 :[FH
]-) ac_tag
=-:-;;
7036 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7053 -) ac_f
="$tmp/stdin";;
7054 *) # Look for the file first in the build tree, then in the source tree
7055 # (if the path is not absolute). The absolute path cannot be DOS-style,
7056 # because $ac_f cannot contain `:'.
7060 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7062 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7064 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7065 as_fn_append ac_file_inputs
" '$ac_f'"
7068 # Let's still pretend it is `configure' which instantiates (i.e., don't
7069 # use $as_me), people would be surprised to read:
7070 # /* config.h. Generated by config.status. */
7071 configure_input
='Generated from '`
7072 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7074 if test x
"$ac_file" != x-
; then
7075 configure_input
="$ac_file. $configure_input"
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7077 $as_echo "$as_me: creating $ac_file" >&6;}
7079 # Neutralize special characters interpreted by sed in replacement strings.
7080 case $configure_input in #(
7081 *\
&* |
*\|
* |
*\\* )
7082 ac_sed_conf_input
=`$as_echo "$configure_input" |
7083 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7084 *) ac_sed_conf_input
=$configure_input;;
7088 *:-:* |
*:-) cat >"$tmp/stdin" \
7089 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7094 ac_dir
=`$as_dirname -- "$ac_file" ||
7095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7096 X"$ac_file" : 'X\(//\)[^/]' \| \
7097 X"$ac_file" : 'X\(//\)$' \| \
7098 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7099 $as_echo X"$ac_file" |
7100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7117 as_dir
="$ac_dir"; as_fn_mkdir_p
7121 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7123 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7124 # A ".." for each directory in $ac_dir_suffix.
7125 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7126 case $ac_top_builddir_sub in
7127 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7128 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7131 ac_abs_top_builddir
=$ac_pwd
7132 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7133 # for backward compatibility:
7134 ac_top_builddir
=$ac_top_build_prefix
7137 .
) # We are building in place.
7139 ac_top_srcdir
=$ac_top_builddir_sub
7140 ac_abs_top_srcdir
=$ac_pwd ;;
7141 [\\/]* | ?
:[\\/]* ) # Absolute name.
7142 ac_srcdir
=$srcdir$ac_dir_suffix;
7143 ac_top_srcdir
=$srcdir
7144 ac_abs_top_srcdir
=$srcdir ;;
7146 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7147 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7148 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7150 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7160 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7161 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7166 # If the template does not know about datarootdir, expand it.
7167 # FIXME: This hack should be removed a few years after 2.60.
7168 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7179 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7180 *datarootdir
*) ac_datarootdir_seen
=yes;;
7181 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7183 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7185 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7186 ac_datarootdir_hack='
7187 s&@datadir@&$datadir&g
7188 s&@docdir@&$docdir&g
7189 s&@infodir@&$infodir&g
7190 s&@localedir@&$localedir&g
7191 s&@mandir@&$mandir&g
7192 s&\\\${datarootdir}&$datarootdir&g' ;;
7196 # Neutralize VPATH when `$srcdir' = `.'.
7197 # Shell code in configure.ac might set extrasub.
7198 # FIXME: do we really want to maintain this feature?
7199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7200 ac_sed_extra="$ac_vpsub
7203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7205 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7206 s|@configure_input@|
$ac_sed_conf_input|
;t t
7207 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7208 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7209 s
&@srcdir@
&$ac_srcdir&;t t
7210 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7211 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7212 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7213 s
&@builddir@
&$ac_builddir&;t t
7214 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7215 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7216 s
&@INSTALL@
&$ac_INSTALL&;t t
7217 $ac_datarootdir_hack
7219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7220 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7223 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7224 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7226 which seems to be undefined. Please make sure it is defined." >&5
7227 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7228 which seems to be undefined. Please make sure it is defined." >&2;}
7232 -) cat "$tmp/out" && rm -f "$tmp/out";;
7233 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7235 || as_fn_error "could not create $ac_file" "$LINENO" 5
7241 if test x"$ac_file" != x-; then
7243 $as_echo "/* $configure_input */" \
7244 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7245 } >"$tmp/config.h" \
7246 || as_fn_error "could not create $ac_file" "$LINENO" 5
7247 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7249 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7252 mv "$tmp/config.h" "$ac_file" \
7253 || as_fn_error "could not create $ac_file" "$LINENO" 5
7256 $as_echo "/* $configure_input */" \
7257 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7258 || as_fn_error "could not create -" "$LINENO" 5
7262 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7263 $as_echo "$as_me: executing $ac_file commands" >&6;}
7268 case $ac_file$ac_mode in
7269 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
7270 "default":C) case x$CONFIG_HEADERS in
7271 xconfig.h:config.in)
7282 ac_clean_files=$ac_clean_files_save
7284 test $ac_write_fail = 0 ||
7285 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7288 # configure is writing to config.log, and then calls config.status.
7289 # config.status does its own redirection, appending to config.log.
7290 # Unfortunately, on DOS this fails, as config.log is still kept open
7291 # by configure, so config.status won't be able to
write to it
; its
7292 # output is simply discarded. So we exec the FD to /dev/null,
7293 # effectively closing config.log, so it can be properly (re)opened and
7294 # appended to by config.status. When coming back to configure, we
7295 # need to make the FD available again.
7296 if test "$no_create" != yes; then
7298 ac_config_status_args
=
7299 test "$silent" = yes &&
7300 ac_config_status_args
="$ac_config_status_args --quiet"
7302 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7304 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7305 # would make configure fail if this is the last instruction.
7306 $ac_cs_success || as_fn_exit $?
7308 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7310 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}