2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x
; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var
in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\
${$as_var+set} = xset \
119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x
; then
135 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required
="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev
/null
; then :
178 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
183 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir
=.
190 for as_base
in sh bash ksh sh5
; do
191 # Try only shells that exist, to save several forks.
192 as_shell
=$as_dir/$as_base
193 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
195 CONFIG_SHELL
=$as_shell as_have_required
=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
204 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$SHELL as_have_required
=yes
211 if test "x$CONFIG_SHELL" != x
; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x
$as_have_required = xno
; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x
${ZSH_VERSION+set} = xset
; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL
=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE
= GREP_OPTIONS
=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir
=.
/$as_dir;;
283 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
287 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs
="'$as_qdir' $as_dirs"
291 as_dir
=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
317 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
352 as_val
=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status
=$?
; test $as_status -eq 0 && as_status
=1
366 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit
$as_status
373 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
380 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
392 as_me
=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits
='0123456789'
416 as_cr_alnum
=$as_cr_Letters$as_cr_digits
419 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
420 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x
"$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C
= ECHO_N
= ECHO_T
=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
463 rm -f conf$$ conf$$.exe conf$$.
file
464 if test -d conf$$.dir
; then
465 rm -f conf$$.dir
/conf$$.
file
468 mkdir conf$$.dir
2>/dev
/null
470 if (echo >conf$$.
file) 2>/dev
/null
; then
471 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
479 elif ln conf$$.
file conf$$
2>/dev
/null
; then
487 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
488 rmdir conf$$.dir
2>/dev
/null
490 if mkdir
-p .
2>/dev
/null
; then
491 as_mkdir_p
='mkdir -p "$as_dir"'
493 test -d .
/-p && rmdir .
/-p
497 if test -x / >/dev
/null
2>&1; then
500 if ls -dL / >/dev
/null
2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p
=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev
/null
6>&1
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
537 ac_default_prefix
=/usr
/local
539 ac_config_libobj_dir
=.
546 # Identity of this package.
554 ac_unique_file
="server.c"
555 ac_config_libobj_dir
=..
/gnulib
556 # Factoring default headers for most tests.
557 ac_includes_default
="\
559 #ifdef HAVE_SYS_TYPES_H
560 # include <sys/types.h>
562 #ifdef HAVE_SYS_STAT_H
563 # include <sys/stat.h>
569 # ifdef HAVE_STDLIB_H
574 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579 #ifdef HAVE_STRINGS_H
580 # include <strings.h>
582 #ifdef HAVE_INTTYPES_H
583 # include <inttypes.h>
592 ac_subst_vars
='LTLIBOBJS
657 program_transform_name
670 enable_option_checking
675 ac_precious_vars
='build_alias
686 # Initialize some variables set by options.
688 ac_init_version
=false
689 ac_unrecognized_opts
=
691 # The variables have the same names as the options, with
692 # dashes changed to underlines.
700 program_transform_name
=s
,x
,x
,
708 # Installation directory options.
709 # These are left unexpanded so users can "make install exec_prefix=/foo"
710 # and all the variables that are supposed to be based on exec_prefix
711 # by default will actually change.
712 # Use braces instead of parens because sh, perl, etc. also accept them.
713 # (The list follows the same order as the GNU Coding Standards.)
714 bindir
='${exec_prefix}/bin'
715 sbindir
='${exec_prefix}/sbin'
716 libexecdir
='${exec_prefix}/libexec'
717 datarootdir
='${prefix}/share'
718 datadir
='${datarootdir}'
719 sysconfdir
='${prefix}/etc'
720 sharedstatedir
='${prefix}/com'
721 localstatedir
='${prefix}/var'
722 includedir
='${prefix}/include'
723 oldincludedir
='/usr/include'
724 docdir
='${datarootdir}/doc/${PACKAGE}'
725 infodir
='${datarootdir}/info'
730 libdir
='${exec_prefix}/lib'
731 localedir
='${datarootdir}/locale'
732 mandir
='${datarootdir}/man'
738 # If the previous option needs an argument, assign it.
739 if test -n "$ac_prev"; then
740 eval $ac_prev=\
$ac_option
746 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
750 # Accept the important Cygnus configure options, so we can diagnose typos.
752 case $ac_dashdash$ac_option in
756 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
758 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
761 -build |
--build |
--buil |
--bui |
--bu)
762 ac_prev
=build_alias
;;
763 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
764 build_alias
=$ac_optarg ;;
766 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
767 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
768 ac_prev
=cache_file
;;
769 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
770 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
771 cache_file
=$ac_optarg ;;
774 cache_file
=config.cache
;;
776 -datadir |
--datadir |
--datadi |
--datad)
778 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
779 datadir
=$ac_optarg ;;
781 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
782 |
--dataroo |
--dataro |
--datar)
783 ac_prev
=datarootdir
;;
784 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
785 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
786 datarootdir
=$ac_optarg ;;
788 -disable-* |
--disable-*)
789 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
792 as_fn_error
"invalid feature name: $ac_useropt"
793 ac_useropt_orig
=$ac_useropt
794 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
795 case $ac_user_opts in
799 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
800 ac_unrecognized_sep
=', ';;
802 eval enable_
$ac_useropt=no
;;
804 -docdir |
--docdir |
--docdi |
--doc |
--do)
806 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
809 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
811 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
814 -enable-* |
--enable-*)
815 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
816 # Reject names that are not valid shell variable names.
817 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
818 as_fn_error
"invalid feature name: $ac_useropt"
819 ac_useropt_orig
=$ac_useropt
820 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
821 case $ac_user_opts in
825 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
826 ac_unrecognized_sep
=', ';;
828 eval enable_
$ac_useropt=\
$ac_optarg ;;
830 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
831 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
832 |
--exec |
--exe |
--ex)
833 ac_prev
=exec_prefix
;;
834 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
835 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
836 |
--exec=* |
--exe=* |
--ex=*)
837 exec_prefix
=$ac_optarg ;;
839 -gas |
--gas |
--ga |
--g)
840 # Obsolete; use --with-gas.
843 -help |
--help |
--hel |
--he |
-h)
845 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
846 ac_init_help
=recursive
;;
847 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
848 ac_init_help
=short
;;
850 -host |
--host |
--hos |
--ho)
851 ac_prev
=host_alias
;;
852 -host=* |
--host=* |
--hos=* |
--ho=*)
853 host_alias
=$ac_optarg ;;
855 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
857 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
859 htmldir
=$ac_optarg ;;
861 -includedir |
--includedir |
--includedi |
--included |
--include \
862 |
--includ |
--inclu |
--incl |
--inc)
863 ac_prev
=includedir
;;
864 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
865 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
866 includedir
=$ac_optarg ;;
868 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
870 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
871 infodir
=$ac_optarg ;;
873 -libdir |
--libdir |
--libdi |
--libd)
875 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
878 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
879 |
--libexe |
--libex |
--libe)
880 ac_prev
=libexecdir
;;
881 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
882 |
--libexe=* |
--libex=* |
--libe=*)
883 libexecdir
=$ac_optarg ;;
885 -localedir |
--localedir |
--localedi |
--localed |
--locale)
887 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
888 localedir
=$ac_optarg ;;
890 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
891 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
892 ac_prev
=localstatedir
;;
893 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
894 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
895 localstatedir
=$ac_optarg ;;
897 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
899 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
903 # Obsolete; use --without-fp.
906 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
907 |
--no-cr |
--no-c |
-n)
910 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
911 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
914 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
915 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
916 |
--oldin |
--oldi |
--old |
--ol |
--o)
917 ac_prev
=oldincludedir
;;
918 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
919 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
920 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
921 oldincludedir
=$ac_optarg ;;
923 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
925 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
928 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
929 |
--program-pre |
--program-pr |
--program-p)
930 ac_prev
=program_prefix
;;
931 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
932 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
933 program_prefix
=$ac_optarg ;;
935 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
936 |
--program-suf |
--program-su |
--program-s)
937 ac_prev
=program_suffix
;;
938 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
939 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
940 program_suffix
=$ac_optarg ;;
942 -program-transform-name |
--program-transform-name \
943 |
--program-transform-nam |
--program-transform-na \
944 |
--program-transform-n |
--program-transform- \
945 |
--program-transform |
--program-transfor \
946 |
--program-transfo |
--program-transf \
947 |
--program-trans |
--program-tran \
948 |
--progr-tra |
--program-tr |
--program-t)
949 ac_prev
=program_transform_name
;;
950 -program-transform-name=* |
--program-transform-name=* \
951 |
--program-transform-nam=* |
--program-transform-na=* \
952 |
--program-transform-n=* |
--program-transform-=* \
953 |
--program-transform=* |
--program-transfor=* \
954 |
--program-transfo=* |
--program-transf=* \
955 |
--program-trans=* |
--program-tran=* \
956 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
957 program_transform_name
=$ac_optarg ;;
959 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
961 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
964 -psdir |
--psdir |
--psdi |
--psd |
--ps)
966 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
969 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
970 |
-silent |
--silent |
--silen |
--sile |
--sil)
973 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
975 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
977 sbindir
=$ac_optarg ;;
979 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
980 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
981 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
983 ac_prev
=sharedstatedir
;;
984 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
985 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
986 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
988 sharedstatedir
=$ac_optarg ;;
990 -site |
--site |
--sit)
992 -site=* |
--site=* |
--sit=*)
995 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
997 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1000 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1001 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1002 ac_prev
=sysconfdir
;;
1003 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1004 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1005 sysconfdir
=$ac_optarg ;;
1007 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1008 ac_prev
=target_alias
;;
1009 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1010 target_alias
=$ac_optarg ;;
1012 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1015 -version |
--version |
--versio |
--versi |
--vers |
-V)
1016 ac_init_version
=: ;;
1019 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1022 as_fn_error
"invalid package name: $ac_useropt"
1023 ac_useropt_orig
=$ac_useropt
1024 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025 case $ac_user_opts in
1029 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1030 ac_unrecognized_sep
=', ';;
1032 eval with_
$ac_useropt=\
$ac_optarg ;;
1034 -without-* |
--without-*)
1035 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1038 as_fn_error
"invalid package name: $ac_useropt"
1039 ac_useropt_orig
=$ac_useropt
1040 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1045 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1046 ac_unrecognized_sep
=', ';;
1048 eval with_
$ac_useropt=no
;;
1051 # Obsolete; use --with-x.
1054 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1055 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1056 ac_prev
=x_includes
;;
1057 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1058 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1059 x_includes
=$ac_optarg ;;
1061 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1062 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1063 ac_prev
=x_libraries
;;
1064 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1065 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1066 x_libraries
=$ac_optarg ;;
1068 -*) as_fn_error
"unrecognized option: \`$ac_option'
1069 Try \`$0 --help' for more information."
1073 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1074 # Reject names that are not valid shell variable names.
1075 case $ac_envvar in #(
1076 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1077 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1079 eval $ac_envvar=\
$ac_optarg
1080 export $ac_envvar ;;
1083 # FIXME: should be removed in autoconf 3.0.
1084 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1085 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1086 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1087 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093 if test -n "$ac_prev"; then
1094 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1095 as_fn_error
"missing argument to $ac_option"
1098 if test -n "$ac_unrecognized_opts"; then
1099 case $enable_option_checking in
1101 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1102 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1106 # Check all directory arguments for consistency.
1107 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1108 datadir sysconfdir sharedstatedir localstatedir includedir \
1109 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1110 libdir localedir mandir
1112 eval ac_val
=\$
$ac_var
1113 # Remove trailing slashes.
1116 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1117 eval $ac_var=\
$ac_val;;
1119 # Be sure to have absolute directory names.
1121 [\\/$
]* | ?
:[\\/]* ) continue;;
1122 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1124 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1127 # There might be people who depend on the old broken behavior: `$host'
1128 # used to hold the argument of --host etc.
1129 # FIXME: To remove some day.
1132 target
=$target_alias
1134 # FIXME: To remove some day.
1135 if test "x$host_alias" != x
; then
1136 if test "x$build_alias" = x
; then
1137 cross_compiling
=maybe
1138 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1139 If a cross compiler is detected then cross compile mode will be used." >&2
1140 elif test "x$build_alias" != "x$host_alias"; then
1146 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1148 test "$silent" = yes && exec 6>/dev
/null
1151 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1152 ac_ls_di
=`ls -di .` &&
1153 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1154 as_fn_error
"working directory cannot be determined"
1155 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1156 as_fn_error
"pwd does not report name of working directory"
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161 ac_srcdir_defaulted
=yes
1162 # Try the directory containing this script, then the parent directory.
1163 ac_confdir
=`$as_dirname -- "$as_myself" ||
1164 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165 X"$as_myself" : 'X\(//\)[^/]' \| \
1166 X"$as_myself" : 'X\(//\)$' \| \
1167 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1168 $as_echo X"$as_myself" |
1169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 if test ! -r "$srcdir/$ac_unique_file"; then
1191 ac_srcdir_defaulted
=no
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1195 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1197 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1201 # When building in place, set srcdir=.
1202 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205 # Remove unnecessary trailing slashes from srcdir.
1206 # Double slashes in file names in object file debugging info
1207 # mess up M-x gdb in Emacs.
1209 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 for ac_var
in $ac_precious_vars; do
1212 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1214 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1219 # Report the --help message.
1221 if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1225 \`configure' configures this package to adapt to many kinds of systems.
1227 Usage: $0 [OPTION]... [VAR=VALUE]...
1229 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230 VAR=VALUE. See below for descriptions of some of the useful variables.
1232 Defaults for the options are specified in brackets.
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1245 Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1251 By default, \`make install' will install all the files in
1252 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254 for instance \`--prefix=\$HOME'.
1256 For better control, use the options below.
1258 Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1283 --program-prefix=PREFIX prepend PREFIX to installed program names
1284 --program-suffix=SUFFIX append SUFFIX to installed program names
1285 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1288 --build=BUILD configure
for building on BUILD
[guessed
]
1289 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1290 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1294 if test -n "$ac_init_help"; then
1299 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1300 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1301 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1302 --with-bugurl=URL Direct users to URL to report a bug
1303 --with-libthread-db=PATH
1304 use given libthread_db directly
1306 Some influential environment variables
:
1307 CC C compiler
command
1308 CFLAGS C compiler flags
1309 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1310 nonstandard directory
<lib dir
>
1311 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1312 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1313 you have headers
in a nonstandard directory
<include dir
>
1316 Use these variables to override the choices made by
`configure' or to help
1317 it to find libraries and programs with nonstandard names/locations.
1319 Report bugs to the package provider.
1324 if test "$ac_init_help" = "recursive"; then
1325 # If there are subdirs, report their specific --help.
1326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1327 test -d "$ac_dir" ||
1328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1335 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1336 # A ".." for each directory in $ac_dir_suffix.
1337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1338 case $ac_top_builddir_sub in
1339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1343 ac_abs_top_builddir=$ac_pwd
1344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1345 # for backward compatibility:
1346 ac_top_builddir=$ac_top_build_prefix
1349 .) # We are building in place.
1351 ac_top_srcdir=$ac_top_builddir_sub
1352 ac_abs_top_srcdir=$ac_pwd ;;
1353 [\\/]* | ?:[\\/]* ) # Absolute name.
1354 ac_srcdir=$srcdir$ac_dir_suffix;
1355 ac_top_srcdir=$srcdir
1356 ac_abs_top_srcdir=$srcdir ;;
1358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1359 ac_top_srcdir=$ac_top_build_prefix$srcdir
1360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1364 cd "$ac_dir" || { ac_status=$?; continue; }
1365 # Check for guested configure.
1366 if test -f "$ac_srcdir/configure.gnu"; then
1368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1369 elif test -f "$ac_srcdir/configure"; then
1371 $SHELL "$ac_srcdir/configure" --help=recursive
1373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1375 cd "$ac_pwd" || { ac_status=$?; break; }
1379 test -n "$ac_init_help" && exit $ac_status
1380 if $ac_init_version; then
1383 generated by GNU Autoconf 2.64
1385 Copyright (C) 2009 Free Software Foundation, Inc.
1386 This configure script is free software; the Free Software Foundation
1387 gives unlimited permission to copy, distribute and modify it.
1392 ## ------------------------ ##
1393 ## Autoconf initialization. ##
1394 ## ------------------------ ##
1396 # ac_fn_c_try_compile LINENO
1397 # --------------------------
1398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1399 ac_fn_c_try_compile ()
1401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1402 rm -f conftest.$ac_objext
1403 if { { ac_try="$ac_compile"
1405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1406 *) ac_try_echo
=$ac_try;;
1408 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1409 $as_echo "$ac_try_echo"; } >&5
1410 (eval "$ac_compile") 2>conftest.err
1412 if test -s conftest.err
; then
1413 grep -v '^ *+' conftest.err
>conftest.er1
1414 cat conftest.er1
>&5
1415 mv -f conftest.er1 conftest.err
1417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1418 test $ac_status = 0; } && {
1419 test -z "$ac_c_werror_flag" ||
1420 test ! -s conftest.err
1421 } && test -s conftest.
$ac_objext; then :
1424 $as_echo "$as_me: failed program was:" >&5
1425 sed 's/^/| /' conftest.
$ac_ext >&5
1429 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1432 } # ac_fn_c_try_compile
1434 # ac_fn_c_try_cpp LINENO
1435 # ----------------------
1436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1439 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1440 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1443 *) ac_try_echo=$ac_try;;
1445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1446 $as_echo "$ac_try_echo"; } >&5
1447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1449 if test -s conftest.err; then
1450 grep -v '^ *+' conftest.err >conftest.er1
1451 cat conftest.er1 >&5
1452 mv -f conftest.er1 conftest.err
1454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1455 test $ac_status = 0; } >/dev/null && {
1456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1457 test ! -s conftest.err
1461 $as_echo "$as_me: failed program was:" >&5
1462 sed 's/^/| /' conftest.$ac_ext >&5
1466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1471 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1472 # -------------------------------------------------------
1473 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1474 # the include files in INCLUDES and setting the cache variable VAR
1476 ac_fn_c_check_header_mongrel ()
1478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1481 $as_echo_n "checking for $2... " >&6; }
1482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1483 $as_echo_n "(cached) " >&6
1486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1487 $as_echo "$ac_res" >&6; }
1489 # Is the header compilable?
1490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1491 $as_echo_n "checking $2 usability... " >&6; }
1492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1493 /* end confdefs.h. */
1497 if ac_fn_c_try_compile "$LINENO"; then :
1498 ac_header_compiler=yes
1500 ac_header_compiler=no
1502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1504 $as_echo "$ac_header_compiler" >&6; }
1506 # Is the header present?
1507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1508 $as_echo_n "checking $2 presence... " >&6; }
1509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510 /* end confdefs.h. */
1513 if ac_fn_c_try_cpp "$LINENO"; then :
1514 ac_header_preproc=yes
1516 ac_header_preproc=no
1518 rm -f conftest.err conftest.$ac_ext
1519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1520 $as_echo "$ac_header_preproc" >&6; }
1522 # So? What about this header?
1523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1526 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1532 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1534 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1536 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1538 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1544 $as_echo_n "checking for $2... " >&6; }
1545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1546 $as_echo_n "(cached) " >&6
1548 eval "$3=\$ac_header_compiler"
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1552 $as_echo "$ac_res" >&6; }
1554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 } # ac_fn_c_check_header_mongrel
1558 # ac_fn_c_try_run LINENO
1559 # ----------------------
1560 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1561 # that executables *can* be run.
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 if { { ac_try="$ac_link"
1567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1568 *) ac_try_echo
=$ac_try;;
1570 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_link") 2>&5
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1576 { { case "(($ac_try" in
1577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_try") 2>&5
1584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585 test $ac_status = 0; }; }; then :
1588 $as_echo "$as_me: program exited with status $ac_status" >&5
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.$ac_ext >&5
1592 ac_retval=$ac_status
1594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1601 # -------------------------------------------------------
1602 # Tests whether HEADER exists and can be compiled using the include files in
1603 # INCLUDES, setting the cache variable VAR accordingly.
1604 ac_fn_c_check_header_compile ()
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1610 $as_echo_n "(cached) " >&6
1612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1613 /* end confdefs.h. */
1617 if ac_fn_c_try_compile "$LINENO"; then :
1622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1626 $as_echo "$ac_res" >&6; }
1627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 } # ac_fn_c_check_header_compile
1631 # ac_fn_c_try_link LINENO
1632 # -----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext conftest$ac_exeext
1638 if { { ac_try="$ac_link"
1640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1641 *) ac_try_echo
=$ac_try;;
1643 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_link") 2>conftest.err
1647 if test -s conftest.err
; then
1648 grep -v '^ *+' conftest.err
>conftest.er1
1649 cat conftest.er1
>&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest
$ac_exeext && {
1657 test "$cross_compiling" = yes ||
1658 $as_test_x conftest
$ac_exeext
1662 $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.
$ac_ext >&5
1667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1669 # interfere with the next link command; also delete a directory that is
1670 # left behind by Apple's compiler. We do this before executing the actions.
1671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1672 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1675 } # ac_fn_c_try_link
1677 # ac_fn_c_check_func LINENO FUNC VAR
1678 # ----------------------------------
1679 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1680 ac_fn_c_check_func
()
1682 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1684 $as_echo_n "checking for $2... " >&6; }
1685 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1686 $as_echo_n "(cached) " >&6
1688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1689 /* end confdefs.h. */
1690 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1692 #define $2 innocuous_$2
1694 /* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char $2 (); below.
1696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1697 <limits.h> exists even on freestanding compilers. */
1700 # include <limits.h>
1702 # include <assert.h>
1707 /* Override any GCC internal prototype to avoid an error.
1708 Use char because int might match the return type of a GCC
1709 builtin and then its argument prototype would still apply. */
1714 /* The GNU C library defines this for functions which it implements
1715 to always fail with ENOSYS. Some functions are actually named
1716 something starting with __ and the normal name is an alias. */
1717 #if defined __stub_$2 || defined __stub___$2
1729 if ac_fn_c_try_link
"$LINENO"; then :
1734 rm -f core conftest.err conftest.
$ac_objext \
1735 conftest
$ac_exeext conftest.
$ac_ext
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739 $as_echo "$ac_res" >&6; }
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1742 } # ac_fn_c_check_func
1744 # ac_fn_c_check_decl LINENO SYMBOL VAR
1745 # ------------------------------------
1746 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1747 ac_fn_c_check_decl
()
1749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1751 $as_echo_n "checking whether $2 is declared... " >&6; }
1752 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1753 $as_echo_n "(cached) " >&6
1755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1769 if ac_fn_c_try_compile
"$LINENO"; then :
1774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1781 } # ac_fn_c_check_decl
1783 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1784 # -------------------------------------------
1785 # Tests whether TYPE exists after having included INCLUDES, setting cache
1786 # variable VAR accordingly.
1787 ac_fn_c_check_type
()
1789 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1808 if ac_fn_c_try_compile
"$LINENO"; then :
1809 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1821 if ac_fn_c_try_compile
"$LINENO"; then :
1826 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1835 } # ac_fn_c_check_type
1836 cat >config.log
<<_ACEOF
1837 This file contains any messages produced by compilers while
1838 running configure, to aid debugging if configure makes a mistake.
1840 It was created by $as_me, which was
1841 generated by GNU Autoconf 2.64. Invocation command line was
1853 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1854 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1855 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1856 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1857 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1859 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1860 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1862 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1863 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1864 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1865 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1866 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1867 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1868 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1876 test -z "$as_dir" && as_dir
=.
1877 $as_echo "PATH: $as_dir"
1893 # Keep a trace of the command line.
1894 # Strip out --no-create and --no-recursion so they do not pile up.
1895 # Strip out --silent because we don't want to record it for future runs.
1896 # Also quote any args containing shell meta-characters.
1897 # Make two passes to allow for proper duplicate-argument suppression.
1901 ac_must_keep_next
=false
1907 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1908 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1909 |
-silent |
--silent |
--silen |
--sile |
--sil)
1912 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1915 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1917 as_fn_append ac_configure_args1
" '$ac_arg'"
1918 if test $ac_must_keep_next = true
; then
1919 ac_must_keep_next
=false
# Got value, back to normal.
1922 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1923 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1924 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1925 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1926 case "$ac_configure_args0 " in
1927 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1930 -* ) ac_must_keep_next
=true
;;
1933 as_fn_append ac_configure_args
" '$ac_arg'"
1938 { ac_configure_args0
=; unset ac_configure_args0
;}
1939 { ac_configure_args1
=; unset ac_configure_args1
;}
1941 # When interrupted or exit'd, cleanup temporary files, and complete
1942 # config.log. We remove comments because anyway the quotes in there
1943 # would cause problems or look ugly.
1944 # WARNING: Use '\'' to represent an apostrophe within the trap.
1945 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1946 trap 'exit_status=$?
1947 # Save into config.log some information that might help in debugging.
1952 ## ---------------- ##
1953 ## Cache variables. ##
1954 ## ---------------- ##
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970 *) { eval $ac_var=; unset $ac_var;} ;;
1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976 *${as_nl}ac_space=\ *)
1978 "s/'\''/'\''\\\\'\'''\''/g;
1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990 ## ----------------- ##
1991 ## Output variables. ##
1992 ## ----------------- ##
1995 for ac_var in $ac_subst_vars
1997 eval ac_val=\$$ac_var
1999 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2001 $as_echo "$ac_var='\''$ac_val'\''"
2005 if test -n "$ac_subst_files"; then
2007 ## ------------------- ##
2008 ## File substitutions. ##
2009 ## ------------------- ##
2012 for ac_var
in $ac_subst_files
2014 eval ac_val
=\$
$ac_var
2016 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018 $as_echo "$ac_var='\''$ac_val'\''"
2023 if test -s confdefs.h; then
2033 test "$ac_signal" != 0 &&
2034 $as_echo "$as_me: caught signal $ac_signal"
2035 $as_echo "$as_me: exit $exit_status"
2037 rm -f core *.core core.conftest.* &&
2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2041 for ac_signal
in 1 2 13 15; do
2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2046 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2047 rm -f -r conftest
* confdefs.h
2049 $as_echo "/* confdefs.h */" > confdefs.h
2051 # Predefined preprocessor variables.
2053 cat >>confdefs.h
<<_ACEOF
2054 #define PACKAGE_NAME "$PACKAGE_NAME"
2057 cat >>confdefs.h
<<_ACEOF
2058 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2061 cat >>confdefs.h
<<_ACEOF
2062 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2065 cat >>confdefs.h
<<_ACEOF
2066 #define PACKAGE_STRING "$PACKAGE_STRING"
2069 cat >>confdefs.h
<<_ACEOF
2070 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2073 cat >>confdefs.h
<<_ACEOF
2074 #define PACKAGE_URL "$PACKAGE_URL"
2078 # Let the site file select an alternate cache file if it wants to.
2079 # Prefer an explicitly selected file to automatically selected ones.
2082 if test -n "$CONFIG_SITE"; then
2083 ac_site_file1
=$CONFIG_SITE
2084 elif test "x$prefix" != xNONE
; then
2085 ac_site_file1
=$prefix/share
/config.site
2086 ac_site_file2
=$prefix/etc
/config.site
2088 ac_site_file1
=$ac_default_prefix/share
/config.site
2089 ac_site_file2
=$ac_default_prefix/etc
/config.site
2091 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2093 test "x$ac_site_file" = xNONE
&& continue
2094 if test -r "$ac_site_file"; then
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2096 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2097 sed 's/^/| /' "$ac_site_file" >&5
2102 if test -r "$cache_file"; then
2103 # Some versions of bash will fail to source /dev/null (special
2104 # files actually), so we avoid doing that.
2105 if test -f "$cache_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2109 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2110 *) .
"./$cache_file";;
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2119 # Check that the precious variables saved in the cache have kept the same
2121 ac_cache_corrupted
=false
2122 for ac_var
in $ac_precious_vars; do
2123 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2124 eval ac_new_set
=\
$ac_env_${ac_var}_set
2125 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2126 eval ac_new_val
=\
$ac_env_${ac_var}_value
2127 case $ac_old_set,$ac_new_set in
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131 ac_cache_corrupted
=: ;;
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135 ac_cache_corrupted
=: ;;
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
2139 # differences in whitespace do not lead to failure.
2140 ac_old_val_w
=`echo x $ac_old_val`
2141 ac_new_val_w
=`echo x $ac_new_val`
2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 ac_cache_corrupted
=:
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149 eval $ac_var=\
$ac_old_val
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2152 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2157 # Pass precious variables to config.status.
2158 if test "$ac_new_set" = set; then
2160 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 *) ac_arg
=$ac_var=$ac_new_val ;;
2163 case " $ac_configure_args " in
2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2165 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2169 if $ac_cache_corrupted; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2181 ac_cpp
='$CPP $CPPFLAGS'
2182 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2190 ac_config_headers
="$ac_config_headers config.h:config.in"
2195 ac_cpp
='$CPP $CPPFLAGS'
2196 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2197 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2198 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2199 if test -n "$ac_tool_prefix"; then
2200 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2201 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2203 $as_echo_n "checking for $ac_word... " >&6; }
2204 if test "${ac_cv_prog_CC+set}" = set; then :
2205 $as_echo_n "(cached) " >&6
2207 if test -n "$CC"; then
2208 ac_cv_prog_CC
="$CC" # Let the user override the test.
2210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2214 test -z "$as_dir" && as_dir
=.
2215 for ac_exec_ext
in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2217 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 if test -n "$CC"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2230 $as_echo "$CC" >&6; }
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2233 $as_echo "no" >&6; }
2238 if test -z "$ac_cv_prog_CC"; then
2240 # Extract the first word of "gcc", so it can be a program name with args.
2241 set dummy gcc
; ac_word
=$2
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2243 $as_echo_n "checking for $ac_word... " >&6; }
2244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2245 $as_echo_n "(cached) " >&6
2247 if test -n "$ac_ct_CC"; then
2248 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir
=.
2255 for ac_exec_ext
in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_ac_ct_CC
="gcc"
2258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2267 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2270 $as_echo "$ac_ct_CC" >&6; }
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2273 $as_echo "no" >&6; }
2276 if test "x$ac_ct_CC" = x
; then
2279 case $cross_compiling:$ac_tool_warned in
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2283 ac_tool_warned
=yes ;;
2291 if test -z "$CC"; then
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2294 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2296 $as_echo_n "checking for $ac_word... " >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then :
2298 $as_echo_n "(cached) " >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC
="$CC" # Let the user override the test.
2303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir
=.
2308 for ac_exec_ext
in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2323 $as_echo "$CC" >&6; }
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2326 $as_echo "no" >&6; }
2332 if test -z "$CC"; then
2333 # Extract the first word of "cc", so it can be a program name with args.
2334 set dummy cc
; ac_word
=$2
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2336 $as_echo_n "checking for $ac_word... " >&6; }
2337 if test "${ac_cv_prog_CC+set}" = set; then :
2338 $as_echo_n "(cached) " >&6
2340 if test -n "$CC"; then
2341 ac_cv_prog_CC
="$CC" # Let the user override the test.
2344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2348 test -z "$as_dir" && as_dir
=.
2349 for ac_exec_ext
in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2352 ac_prog_rejected
=yes
2356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2363 if test $ac_prog_rejected = yes; then
2364 # We found a bogon in the path, so make sure we never use it.
2365 set dummy
$ac_cv_prog_CC
2367 if test $# != 0; then
2368 # We chose a different compiler from the bogus one.
2369 # However, it has the same basename, so the bogon will be chosen
2370 # first if we set CC to just the basename; use the full file name.
2372 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2378 if test -n "$CC"; then
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2380 $as_echo "$CC" >&6; }
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2383 $as_echo "no" >&6; }
2388 if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
2390 for ac_prog
in cl.exe
2392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2393 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395 $as_echo_n "checking for $ac_word... " >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC
="$CC" # Let the user override the test.
2402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir
=.
2407 for ac_exec_ext
in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$CC"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2422 $as_echo "$CC" >&6; }
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425 $as_echo "no" >&6; }
2429 test -n "$CC" && break
2432 if test -z "$CC"; then
2434 for ac_prog
in cl.exe
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy
$ac_prog; ac_word
=$2
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2439 $as_echo_n "checking for $ac_word... " >&6; }
2440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2441 $as_echo_n "(cached) " >&6
2443 if test -n "$ac_ct_CC"; then
2444 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir
=.
2451 for ac_exec_ext
in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_ac_ct_CC
="$ac_prog"
2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2464 if test -n "$ac_ct_CC"; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2466 $as_echo "$ac_ct_CC" >&6; }
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2469 $as_echo "no" >&6; }
2473 test -n "$ac_ct_CC" && break
2476 if test "x$ac_ct_CC" = x
; then
2479 case $cross_compiling:$ac_tool_warned in
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2483 ac_tool_warned
=yes ;;
2492 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2494 as_fn_error
"no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." "$LINENO" 5; }
2497 # Provide some information about the compiler.
2498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2501 for ac_option
in --version -v -V -qversion; do
2502 { { ac_try
="$ac_compiler $ac_option >&5"
2504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2508 $as_echo "$ac_try_echo"; } >&5
2509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2511 if test -s conftest.err; then
2513 ... rest of stderr output deleted ...
2514 10q' conftest.err >conftest.er1
2515 cat conftest.er1 >&5
2516 rm -f conftest.er1 conftest.err
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; }
2522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h. */
2533 ac_clean_files_save=$ac_clean_files
2534 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2535 # Try to create an executable without -o first, disregard a.out.
2536 # It will help us diagnose broken compilers, and finding out an intuition
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2539 $as_echo_n "checking for C compiler default output file name... " >&6; }
2540 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2542 # The possible output files:
2543 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2546 for ac_file in $ac_files
2549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2555 if { { ac_try="$ac_link_default"
2557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2558 *) ac_try_echo
=$ac_try;;
2560 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2561 $as_echo "$ac_try_echo"; } >&5
2562 (eval "$ac_link_default") 2>&5
2564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2565 test $ac_status = 0; }; then :
2566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2567 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2568 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2569 # so that the user can short-circuit this test for compilers unknown to
2571 for ac_file
in $ac_files ''
2573 test -f "$ac_file" ||
continue
2575 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
2578 # We found the default executable, but exeext='' is most
2582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2584 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2586 # We set ac_cv_exeext here because the later test for it is not
2587 # safe: cross compilers may not add the suffix if given an `-o'
2588 # argument, so we may need to know it at that point already.
2589 # Even if this section looks crufty: it has the advantage of
2596 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2602 $as_echo "$ac_file" >&6; }
2603 if test -z "$ac_file"; then :
2604 $as_echo "$as_me: failed program was:" >&5
2605 sed 's/^/| /' conftest.
$ac_ext >&5
2607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { as_fn_set_status
77
2610 as_fn_error
"C compiler cannot create executables
2611 See \`config.log' for more details." "$LINENO" 5; }; }
2613 ac_exeext
=$ac_cv_exeext
2615 # Check that the compiler produces executables we can run. If not, either
2616 # the compiler is broken, or we cross compile.
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2618 $as_echo_n "checking whether the C compiler works... " >&6; }
2619 # If not cross compiling, check that we can run a simple program.
2620 if test "$cross_compiling" != yes; then
2621 if { ac_try
='./$ac_file'
2622 { { case "(($ac_try" in
2623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2627 $as_echo "$ac_try_echo"; } >&5
2628 (eval "$ac_try") 2>&5
2630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2631 test $ac_status = 0; }; }; then
2634 if test "$cross_compiling" = maybe; then
2637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2639 as_fn_error "cannot run C compiled programs.
2640 If you meant to cross compile
, use \
`--host'.
2641 See \`config.log
' for more details." "$LINENO" 5; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2648 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2649 ac_clean_files=$ac_clean_files_save
2650 # Check that the compiler produces executables we can run. If not, either
2651 # the compiler is broken, or we cross compile.
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2653 $as_echo_n "checking whether we are cross compiling... " >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2655 $as_echo "$cross_compiling" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2658 $as_echo_n "checking for suffix of executables... " >&6; }
2659 if { { ac_try="$ac_link"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2665 $as_echo "$ac_try_echo"; } >&5
2666 (eval "$ac_link") 2>&5
2668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2669 test $ac_status = 0; }; then :
2670 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2671 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2672 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2674 for ac_file
in conftest.exe conftest conftest.
*; do
2675 test -f "$ac_file" ||
continue
2677 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2678 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2687 See \`config.log' for more details." "$LINENO" 5; }
2689 rm -f conftest
$ac_cv_exeext
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2691 $as_echo "$ac_cv_exeext" >&6; }
2693 rm -f conftest.
$ac_ext
2694 EXEEXT
=$ac_cv_exeext
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2697 $as_echo_n "checking for suffix of object files... " >&6; }
2698 if test "${ac_cv_objext+set}" = set; then :
2699 $as_echo_n "(cached) " >&6
2701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h. */
2712 rm -f conftest.o conftest.obj
2713 if { { ac_try
="$ac_compile"
2715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2719 $as_echo "$ac_try_echo"; } >&5
2720 (eval "$ac_compile") 2>&5
2722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2723 test $ac_status = 0; }; then :
2724 for ac_file in conftest.o conftest.obj conftest.*; do
2725 test -f "$ac_file" || continue;
2727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2733 $as_echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2736 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2737 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2738 as_fn_error "cannot compute suffix of object files
: cannot compile
2739 See \
`config.log' for more details." "$LINENO" 5; }
2741 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2744 $as_echo "$ac_cv_objext" >&6; }
2745 OBJEXT=$ac_cv_objext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2748 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2749 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2750 $as_echo_n "(cached) " >&6
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2766 if ac_fn_c_try_compile "$LINENO"; then :
2771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2776 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2777 if test $ac_compiler_gnu = yes; then
2782 ac_test_CFLAGS=${CFLAGS+set}
2783 ac_save_CFLAGS=$CFLAGS
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2785 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2786 if test "${ac_cv_prog_cc_g+set}" = set; then :
2787 $as_echo_n "(cached) " >&6
2789 ac_save_c_werror_flag=$ac_c_werror_flag
2790 ac_c_werror_flag=yes
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2804 if ac_fn_c_try_compile "$LINENO"; then :
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2819 if ac_fn_c_try_compile "$LINENO"; then :
2822 ac_c_werror_flag=$ac_save_c_werror_flag
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2835 if ac_fn_c_try_compile "$LINENO"; then :
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2843 ac_c_werror_flag=$ac_save_c_werror_flag
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2846 $as_echo "$ac_cv_prog_cc_g" >&6; }
2847 if test "$ac_test_CFLAGS" = set; then
2848 CFLAGS=$ac_save_CFLAGS
2849 elif test $ac_cv_prog_cc_g = yes; then
2850 if test "$GCC" = yes; then
2856 if test "$GCC" = yes; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2863 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2864 if test "${ac_cv_prog_cc_c89+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2867 ac_cv_prog_cc_c89=no
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2889 s = g (p, va_arg (v,int));
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2904 inside strings and character constants. */
2906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2908 int test (int i, double x);
2909 struct s1 {int (*f) (int a);};
2910 struct s2 {int (*f) (double a);};
2911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 CC="$ac_save_CC $ac_arg"
2926 if ac_fn_c_try_compile "$LINENO"; then :
2927 ac_cv_prog_cc_c89=$ac_arg
2929 rm -f core conftest.err conftest.$ac_objext
2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
2932 rm -f conftest.$ac_ext
2937 case "x$ac_cv_prog_cc_c89" in
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2940 $as_echo "none needed" >&6; } ;;
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2943 $as_echo "unsupported" >&6; } ;;
2945 CC="$CC $ac_cv_prog_cc_c89"
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2949 if test "x$ac_cv_prog_cc_c89" != xno; then :
2954 ac_cpp='$CPP $CPPFLAGS'
2955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2967 # On Suns, sometimes $CPP names a directory.
2968 if test -n "$CPP" && test -d "$CPP"; then
2971 if test -z "$CPP"; then
2972 if test "${ac_cv_prog_CPP+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2975 # Double quotes because CPP needs to be expanded
2976 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2979 for ac_c_preproc_warn_flag in '' yes
2981 # Use a header file that comes with gcc, so configuring glibc
2982 # with a fresh cross-compiler works.
2983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2984 # <limits.h> exists even on freestanding compilers.
2985 # On the NeXT, cc -E runs the code through the compiler's parser,
2986 # not just through cpp. "Syntax error" is here to catch this case.
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2990 # include <limits.h>
2992 # include <assert.h>
2996 if ac_fn_c_try_cpp "$LINENO"; then :
2999 # Broken: fails on valid input.
3002 rm -f conftest.err conftest.$ac_ext
3004 # OK, works on sane cases. Now check whether nonexistent headers
3005 # can be detected and how.
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h. */
3008 #include <ac_nonexistent.h>
3010 if ac_fn_c_try_cpp "$LINENO"; then :
3011 # Broken: success on invalid input.
3014 # Passes both tests.
3018 rm -f conftest.err conftest.$ac_ext
3021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3022 rm -f conftest.err conftest.
$ac_ext
3023 if $ac_preproc_ok; then :
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3036 $as_echo "$CPP" >&6; }
3038 for ac_c_preproc_warn_flag
in '' yes
3040 # Use a header file that comes with gcc, so configuring glibc
3041 # with a fresh cross-compiler works.
3042 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3043 # <limits.h> exists even on freestanding compilers.
3044 # On the NeXT, cc -E runs the code through the compiler's parser,
3045 # not just through cpp. "Syntax error" is here to catch this case.
3046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3049 # include <limits.h>
3051 # include <assert.h>
3055 if ac_fn_c_try_cpp
"$LINENO"; then :
3058 # Broken: fails on valid input.
3061 rm -f conftest.err conftest.
$ac_ext
3063 # OK, works on sane cases. Now check whether nonexistent headers
3064 # can be detected and how.
3065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3067 #include <ac_nonexistent.h>
3069 if ac_fn_c_try_cpp
"$LINENO"; then :
3070 # Broken: success on invalid input.
3073 # Passes both tests.
3077 rm -f conftest.err conftest.
$ac_ext
3080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081 rm -f conftest.err conftest.
$ac_ext
3082 if $ac_preproc_ok; then :
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3088 See \`config.log' for more details." "$LINENO" 5; }
3092 ac_cpp
='$CPP $CPPFLAGS'
3093 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3100 if test "${ac_cv_path_GREP+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 if test -z "$GREP"; then
3104 ac_path_GREP_found
=false
3105 # Loop through the user's path and test for each of PROGNAME-LIST
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3107 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_prog
in grep ggrep
; do
3112 for ac_exec_ext
in '' $ac_executable_extensions; do
3113 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3114 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3115 # Check for GNU ac_path_GREP and select it if it is found.
3116 # Check for GNU $ac_path_GREP
3117 case `"$ac_path_GREP" --version 2>&1` in
3119 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3122 $as_echo_n 0123456789 >"conftest.in"
3125 cat "conftest.in" "conftest.in" >"conftest.tmp"
3126 mv "conftest.tmp" "conftest.in"
3127 cp "conftest.in" "conftest.nl"
3128 $as_echo 'GREP' >> "conftest.nl"
3129 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3130 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3131 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3132 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3133 # Best one so far, save it but keep looking for a better one
3134 ac_cv_path_GREP
="$ac_path_GREP"
3135 ac_path_GREP_max
=$ac_count
3137 # 10*(2^10) chars as input seems more than enough
3138 test $ac_count -gt 10 && break
3140 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3143 $ac_path_GREP_found && break 3
3148 if test -z "$ac_cv_path_GREP"; then
3149 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3152 ac_cv_path_GREP
=$GREP
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3157 $as_echo "$ac_cv_path_GREP" >&6; }
3158 GREP
="$ac_cv_path_GREP"
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3162 $as_echo_n "checking for egrep... " >&6; }
3163 if test "${ac_cv_path_EGREP+set}" = set; then :
3164 $as_echo_n "(cached) " >&6
3166 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3167 then ac_cv_path_EGREP
="$GREP -E"
3169 if test -z "$EGREP"; then
3170 ac_path_EGREP_found
=false
3171 # Loop through the user's path and test for each of PROGNAME-LIST
3172 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3173 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3176 test -z "$as_dir" && as_dir
=.
3177 for ac_prog
in egrep; do
3178 for ac_exec_ext
in '' $ac_executable_extensions; do
3179 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3180 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3181 # Check for GNU ac_path_EGREP and select it if it is found.
3182 # Check for GNU $ac_path_EGREP
3183 case `"$ac_path_EGREP" --version 2>&1` in
3185 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3188 $as_echo_n 0123456789 >"conftest.in"
3191 cat "conftest.in" "conftest.in" >"conftest.tmp"
3192 mv "conftest.tmp" "conftest.in"
3193 cp "conftest.in" "conftest.nl"
3194 $as_echo 'EGREP' >> "conftest.nl"
3195 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3196 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3197 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3198 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3199 # Best one so far, save it but keep looking for a better one
3200 ac_cv_path_EGREP
="$ac_path_EGREP"
3201 ac_path_EGREP_max
=$ac_count
3203 # 10*(2^10) chars as input seems more than enough
3204 test $ac_count -gt 10 && break
3206 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3209 $ac_path_EGREP_found && break 3
3214 if test -z "$ac_cv_path_EGREP"; then
3215 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3218 ac_cv_path_EGREP
=$EGREP
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3224 $as_echo "$ac_cv_path_EGREP" >&6; }
3225 EGREP
="$ac_cv_path_EGREP"
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3229 $as_echo_n "checking for ANSI C header files... " >&6; }
3230 if test "${ac_cv_header_stdc+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3234 /* end confdefs.h. */
3248 if ac_fn_c_try_compile
"$LINENO"; then :
3249 ac_cv_header_stdc
=yes
3251 ac_cv_header_stdc
=no
3253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3255 if test $ac_cv_header_stdc = yes; then
3256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3263 $EGREP "memchr" >/dev
/null
2>&1; then :
3266 ac_cv_header_stdc
=no
3272 if test $ac_cv_header_stdc = yes; then
3273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3275 /* end confdefs.h. */
3279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3280 $EGREP "free" >/dev
/null
2>&1; then :
3283 ac_cv_header_stdc
=no
3289 if test $ac_cv_header_stdc = yes; then
3290 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3291 if test "$cross_compiling" = yes; then :
3294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3298 #if ((' ' & 0x0FF) == 0x020)
3299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3302 # define ISLOWER(c) \
3303 (('a' <= (c) && (c) <= 'i') \
3304 || ('j' <= (c) && (c) <= 'r') \
3305 || ('s' <= (c) && (c) <= 'z'))
3306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3314 for (i = 0; i < 256; i++)
3315 if (XOR (islower (i), ISLOWER (i))
3316 || toupper (i) != TOUPPER (i))
3321 if ac_fn_c_try_run
"$LINENO"; then :
3324 ac_cv_header_stdc
=no
3326 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3327 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3333 $as_echo "$ac_cv_header_stdc" >&6; }
3334 if test $ac_cv_header_stdc = yes; then
3336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3341 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3342 inttypes.h stdint.h unistd.h
3344 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3345 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3347 eval as_val
=\$
$as_ac_Header
3348 if test "x$as_val" = x
""yes; then :
3349 cat >>confdefs.h
<<_ACEOF
3350 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3359 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3360 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3367 if test "$MINIX" = yes; then
3369 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3372 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3375 $as_echo "#define _MINIX 1" >>confdefs.h
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3381 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3382 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3383 $as_echo_n "(cached) " >&6
3385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3388 # define __EXTENSIONS__ 1
3389 $ac_includes_default
3398 if ac_fn_c_try_compile
"$LINENO"; then :
3399 ac_cv_safe_to_define___extensions__
=yes
3401 ac_cv_safe_to_define___extensions__
=no
3403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3406 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3407 test $ac_cv_safe_to_define___extensions__ = yes &&
3408 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3410 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3412 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3414 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3416 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3422 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3423 for ac_t
in install-sh
install.sh shtool
; do
3424 if test -f "$ac_dir/$ac_t"; then
3426 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3431 if test -z "$ac_aux_dir"; then
3432 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3435 # These three variables are undocumented and unsupported,
3436 # and are intended to be withdrawn in a future Autoconf release.
3437 # They can cause serious problems if a builder's source tree is in a directory
3438 # whose full name contains unusual characters.
3439 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3440 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3441 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3444 # Make sure we can run config.sub.
3445 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
3446 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3449 $as_echo_n "checking build system type... " >&6; }
3450 if test "${ac_cv_build+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3453 ac_build_alias
=$build_alias
3454 test "x$ac_build_alias" = x
&&
3455 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
3456 test "x$ac_build_alias" = x
&&
3457 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
3458 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3459 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3463 $as_echo "$ac_cv_build" >&6; }
3464 case $ac_cv_build in
3466 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
3469 ac_save_IFS
=$IFS; IFS
='-'
3475 # Remember, the first character of IFS is used to create $*,
3476 # except with old shells:
3479 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3483 $as_echo_n "checking host system type... " >&6; }
3484 if test "${ac_cv_host+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3487 if test "x$host_alias" = x
; then
3488 ac_cv_host
=$ac_cv_build
3490 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3491 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3496 $as_echo "$ac_cv_host" >&6; }
3499 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
3502 ac_save_IFS
=$IFS; IFS
='-'
3508 # Remember, the first character of IFS is used to create $*,
3509 # except with old shells:
3512 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3516 $as_echo_n "checking target system type... " >&6; }
3517 if test "${ac_cv_target+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3520 if test "x$target_alias" = x
; then
3521 ac_cv_target
=$ac_cv_host
3523 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3524 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3529 $as_echo "$ac_cv_target" >&6; }
3530 case $ac_cv_target in
3532 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
3534 target
=$ac_cv_target
3535 ac_save_IFS
=$IFS; IFS
='-'
3541 # Remember, the first character of IFS is used to create $*,
3542 # except with old shells:
3545 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
3548 # The aliases save the names the user supplied, while $host etc.
3549 # will get canonicalized.
3550 test -n "$target_alias" &&
3551 test "$program_prefix$program_suffix$program_transform_name" = \
3553 program_prefix
=${target_alias}-
3556 # Find a good install program. We prefer a C program (faster),
3557 # so one script is as good as another. But avoid the broken or
3558 # incompatible versions:
3559 # SysV /etc/install, /usr/sbin/install
3560 # SunOS /usr/etc/install
3561 # IRIX /sbin/install
3563 # AmigaOS /C/install, which installs bootblocks on floppy discs
3564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3567 # OS/2's system install, which has a completely different semantic
3568 # ./install, which can be erroneously created by make from ./install.sh.
3569 # Reject install programs that cannot install multiple files.
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3571 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3572 if test -z "$INSTALL"; then
3573 if test "${ac_cv_path_install+set}" = set; then :
3574 $as_echo_n "(cached) " >&6
3576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir
=.
3581 # Account for people who put trailing slashes in PATH elements.
3582 case $as_dir/ in #((
3583 .
/ | .
// |
/[cC
]/* | \
3584 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3585 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3588 # OSF1 and SCO ODT 3.0 have their own names for install.
3589 # Don't use installbsd from OSF since it installs stuff as root
3591 for ac_prog
in ginstall scoinst
install; do
3592 for ac_exec_ext
in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3594 if test $ac_prog = install &&
3595 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3596 # AIX install. It has an incompatible calling convention.
3598 elif test $ac_prog = install &&
3599 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3600 # program-specific install script used by HP pwplus--don't use.
3603 rm -rf conftest.one conftest.two conftest.dir
3604 echo one
> conftest.one
3605 echo two
> conftest.two
3607 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3608 test -s conftest.one
&& test -s conftest.two
&&
3609 test -s conftest.dir
/conftest.one
&&
3610 test -s conftest.dir
/conftest.two
3612 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3625 rm -rf conftest.one conftest.two conftest.dir
3628 if test "${ac_cv_path_install+set}" = set; then
3629 INSTALL
=$ac_cv_path_install
3631 # As a last resort, use the slow shell script. Don't cache a
3632 # value for INSTALL within a source directory, because that will
3633 # break other packages using the cache if that directory is
3634 # removed, or if the value is a relative name.
3635 INSTALL
=$ac_install_sh
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3639 $as_echo "$INSTALL" >&6; }
3641 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3642 # It thinks the first close brace ends the variable substitution.
3643 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3645 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3647 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3650 test "$program_prefix" != NONE
&&
3651 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
3652 # Use a double $ so make ignores it.
3653 test "$program_suffix" != NONE
&&
3654 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
3655 # Double any \ or $.
3656 # By default was `s,x,x', remove it if useless.
3657 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
3658 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3662 $as_echo_n "checking for ANSI C header files... " >&6; }
3663 if test "${ac_cv_header_stdc+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3681 if ac_fn_c_try_compile
"$LINENO"; then :
3682 ac_cv_header_stdc
=yes
3684 ac_cv_header_stdc
=no
3686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3688 if test $ac_cv_header_stdc = yes; then
3689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3695 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3696 $EGREP "memchr" >/dev
/null
2>&1; then :
3699 ac_cv_header_stdc
=no
3705 if test $ac_cv_header_stdc = yes; then
3706 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "free" >/dev
/null
2>&1; then :
3716 ac_cv_header_stdc
=no
3722 if test $ac_cv_header_stdc = yes; then
3723 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3724 if test "$cross_compiling" = yes; then :
3727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 #if ((' ' & 0x0FF) == 0x020)
3732 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3733 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3735 # define ISLOWER(c) \
3736 (('a' <= (c) && (c) <= 'i') \
3737 || ('j' <= (c) && (c) <= 'r') \
3738 || ('s' <= (c) && (c) <= 'z'))
3739 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3742 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3747 for (i = 0; i < 256; i++)
3748 if (XOR (islower (i), ISLOWER (i))
3749 || toupper (i) != TOUPPER (i))
3754 if ac_fn_c_try_run
"$LINENO"; then :
3757 ac_cv_header_stdc
=no
3759 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3760 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3766 $as_echo "$ac_cv_header_stdc" >&6; }
3767 if test $ac_cv_header_stdc = yes; then
3769 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3774 for ac_header
in sgtty.h termio.h termios.h sys
/reg.h string.h proc_service.h sys
/procfs.h thread_db.h linux
/elf.h stdlib.h unistd.h errno.h fcntl.h signal.h sys
/file.h malloc.h sys
/ioctl.h netinet
/in.h sys
/socket.h netdb.h netinet
/tcp.h arpa
/inet.h sys
/wait.h
3776 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3777 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3778 eval as_val
=\$
$as_ac_Header
3779 if test "x$as_val" = x
""yes; then :
3780 cat >>confdefs.h
<<_ACEOF
3781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3788 for ac_func
in pread pwrite pread64
3790 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3791 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
3792 eval as_val
=\$
$as_ac_var
3793 if test "x$as_val" = x
""yes; then :
3794 cat >>confdefs.h
<<_ACEOF
3795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3801 for ac_func
in memmem
3803 ac_fn_c_check_func
"$LINENO" "memmem" "ac_cv_func_memmem"
3804 if test "x$ac_cv_func_memmem" = x
""yes; then :
3805 cat >>confdefs.h
<<_ACEOF
3806 #define HAVE_MEMMEM 1
3810 case " $LIBOBJS " in
3811 *" $ac_func.$ac_objext "* ) ;;
3812 *) LIBOBJS
="$LIBOBJS $ac_func.$ac_objext"
3823 for ac_func
in dladdr
3825 ac_fn_c_check_func
"$LINENO" "dladdr" "ac_cv_func_dladdr"
3826 if test "x$ac_cv_func_dladdr" = x
""yes; then :
3827 cat >>confdefs.h
<<_ACEOF
3828 #define HAVE_DLADDR 1
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for errno" >&5
3838 $as_echo_n "checking for errno... " >&6; }
3839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3848 static int x; x = errno;
3853 if ac_fn_c_try_link
"$LINENO"; then :
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - in errno.h" >&5
3855 $as_echo "yes - in errno.h" >&6; };
3856 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
3859 rm -f core conftest.err conftest.
$ac_objext \
3860 conftest
$ac_exeext conftest.
$ac_ext
3861 if test $have_errno = no
; then
3862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3871 extern int errno; static int x; x = errno;
3876 if ac_fn_c_try_link
"$LINENO"; then :
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - must define" >&5
3878 $as_echo "yes - must define" >&6; };
3879 $as_echo "#define HAVE_ERRNO 1" >>confdefs.h
3881 $as_echo "#define MUST_DEFINE_ERRNO 1" >>confdefs.h
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885 $as_echo "no" >&6; }
3887 rm -f core conftest.err conftest.
$ac_objext \
3888 conftest
$ac_exeext conftest.
$ac_ext
3891 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
3892 if test "x$ac_cv_have_decl_strerror" = x
""yes; then :
3898 cat >>confdefs.h
<<_ACEOF
3899 #define HAVE_DECL_STRERROR $ac_have_decl
3901 ac_fn_c_check_decl
"$LINENO" "perror" "ac_cv_have_decl_perror" "$ac_includes_default"
3902 if test "x$ac_cv_have_decl_perror" = x
""yes; then :
3908 cat >>confdefs.h
<<_ACEOF
3909 #define HAVE_DECL_PERROR $ac_have_decl
3911 ac_fn_c_check_decl
"$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
3912 if test "x$ac_cv_have_decl_memmem" = x
""yes; then :
3918 cat >>confdefs.h
<<_ACEOF
3919 #define HAVE_DECL_MEMMEM $ac_have_decl
3923 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
3924 #include <sys/socket.h>
3927 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
3929 cat >>confdefs.h
<<_ACEOF
3930 #define HAVE_SOCKLEN_T 1
3939 # Check whether --with-pkgversion was given.
3940 if test "${with_pkgversion+set}" = set; then :
3941 withval
=$with_pkgversion; case "$withval" in
3942 yes) as_fn_error
"package version not specified" "$LINENO" 5 ;;
3944 *) PKGVERSION
="($withval) " ;;
3955 # Check whether --with-bugurl was given.
3956 if test "${with_bugurl+set}" = set; then :
3957 withval
=$with_bugurl; case "$withval" in
3958 yes) as_fn_error
"bug URL not specified" "$LINENO" 5 ;;
3961 *) BUGURL
="$withval"
3965 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
3975 REPORT_BUGS_TO
="<$BUGURL>"
3976 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
3983 cat >>confdefs.h
<<_ACEOF
3984 #define PKGVERSION "$PKGVERSION"
3988 cat >>confdefs.h
<<_ACEOF
3989 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
3993 # Check for various supplementary target information (beyond the
3994 # triplet) which might affect the choices in configure.srv.
3996 i
[34567]86-*-linux*)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for x86-64" >&5
3998 $as_echo_n "checking if building for x86-64... " >&6; }
3999 if test "${gdb_cv_i386_is_x86_64+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4002 save_CPPFLAGS
="$CPPFLAGS"
4003 CPPFLAGS
="$CPPFLAGS $CFLAGS"
4004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "got it" >/dev
/null
2>&1; then :
4014 gdb_cv_i386_is_x86_64
=yes
4016 gdb_cv_i386_is_x86_64
=no
4020 CPPFLAGS
="$save_CPPFLAGS"
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_i386_is_x86_64" >&5
4023 $as_echo "$gdb_cv_i386_is_x86_64" >&6; }
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for Coldfire" >&5
4027 $as_echo_n "checking if building for Coldfire... " >&6; }
4028 if test "${gdb_cv_m68k_is_coldfire+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4031 save_CPPFLAGS
="$CPPFLAGS"
4032 CPPFLAGS
="$CPPFLAGS $CFLAGS"
4033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4036 #ifdef __mcoldfire__
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "got it" >/dev
/null
2>&1; then :
4043 gdb_cv_m68k_is_coldfire
=yes
4045 gdb_cv_m68k_is_coldfire
=no
4049 CPPFLAGS
="$save_CPPFLAGS"
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_m68k_is_coldfire" >&5
4052 $as_echo "$gdb_cv_m68k_is_coldfire" >&6; }
4056 .
${srcdir}/configure.srv
4058 if test "${srv_mingwce}" = "yes"; then
4060 elif test "${srv_mingw}" = "yes"; then
4061 LIBS
="$LIBS -lws2_32"
4062 elif test "${srv_qnx}" = "yes"; then
4063 LIBS
="$LIBS -lsocket"
4066 if test "${srv_mingw}" = "yes"; then
4068 $as_echo "#define USE_WIN32API 1" >>confdefs.h
4072 if test "${srv_linux_usrregs}" = "yes"; then
4074 $as_echo "#define HAVE_LINUX_USRREGS 1" >>confdefs.h
4078 if test "${srv_linux_regsets}" = "yes"; then
4080 $as_echo "#define HAVE_LINUX_REGSETS 1" >>confdefs.h
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
4084 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
4085 if test "${gdbsrv_cv_have_ptrace_getregs+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #include <sys/ptrace.h>
4099 if ac_fn_c_try_compile
"$LINENO"; then :
4100 gdbsrv_cv_have_ptrace_getregs
=yes
4102 gdbsrv_cv_have_ptrace_getregs
=no
4104 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getregs" >&5
4108 $as_echo "$gdbsrv_cv_have_ptrace_getregs" >&6; }
4109 if test "${gdbsrv_cv_have_ptrace_getregs}" = "yes"; then
4111 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
4116 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
4117 if test "${gdbsrv_cv_have_ptrace_getfpxregs+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
4120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <sys/ptrace.h>
4131 if ac_fn_c_try_compile
"$LINENO"; then :
4132 gdbsrv_cv_have_ptrace_getfpxregs
=yes
4134 gdbsrv_cv_have_ptrace_getfpxregs
=no
4136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_ptrace_getfpxregs" >&5
4140 $as_echo "$gdbsrv_cv_have_ptrace_getfpxregs" >&6; }
4141 if test "${gdbsrv_cv_have_ptrace_getfpxregs}" = "yes"; then
4143 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
4148 if test "$ac_cv_header_sys_procfs_h" = yes; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
4150 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
4151 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4158 /* Needed for new procfs interface on sparc-solaris. */
4159 #define _STRUCTURED_PROC 1
4160 #include <sys/procfs.h>
4169 if ac_fn_c_try_compile
"$LINENO"; then :
4170 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
4172 bfd_cv_have_sys_procfs_type_lwpid_t
=no
4175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4178 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
4180 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
4184 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
4187 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
4188 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
4189 $as_echo_n "(cached) " >&6
4191 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4192 /* end confdefs.h. */
4195 /* Needed for new procfs interface on sparc-solaris. */
4196 #define _STRUCTURED_PROC 1
4197 #include <sys/procfs.h>
4206 if ac_fn_c_try_compile
"$LINENO"; then :
4207 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
4209 bfd_cv_have_sys_procfs_type_psaddr_t
=no
4212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4215 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
4217 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
4221 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
4224 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
4225 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
4226 $as_echo_n "(cached) " >&6
4228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4232 /* Needed for new procfs interface on sparc-solaris. */
4233 #define _STRUCTURED_PROC 1
4234 #include <sys/procfs.h>
4243 if ac_fn_c_try_compile
"$LINENO"; then :
4244 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
4246 bfd_cv_have_sys_procfs_type_prgregset_t
=no
4249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4252 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
4254 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
4258 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
4261 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
4262 if test "${bfd_cv_have_sys_procfs_type_elf_fpregset_t+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 /* Needed for new procfs interface on sparc-solaris. */
4270 #define _STRUCTURED_PROC 1
4271 #include <sys/procfs.h>
4280 if ac_fn_c_try_compile
"$LINENO"; then :
4281 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
4283 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
4286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4289 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
4291 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
4295 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4301 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4302 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4305 ac_check_lib_save_LIBS
=$LIBS
4307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4310 /* Override any GCC internal prototype to avoid an error.
4311 Use char because int might match the return type of a GCC
4312 builtin and then its argument prototype would still apply. */
4325 if ac_fn_c_try_link
"$LINENO"; then :
4326 ac_cv_lib_dl_dlopen
=yes
4328 ac_cv_lib_dl_dlopen
=no
4330 rm -f core conftest.err conftest.
$ac_objext \
4331 conftest
$ac_exeext conftest.
$ac_ext
4332 LIBS
=$ac_check_lib_save_LIBS
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4335 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4336 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
4337 cat >>confdefs.h
<<_ACEOF
4338 #define HAVE_LIBDL 1
4347 srv_thread_depfiles
=
4351 if test "$srv_linux_thread_db" = "yes"; then
4352 if test "$ac_cv_lib_dl_dlopen" = "yes"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
4355 $as_echo_n "checking for the dynamic export flag... " >&6; }
4356 old_LDFLAGS
="$LDFLAGS"
4357 # Older GNU ld supports --export-dynamic but --dynamic-list may not be
4359 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
4360 LDFLAGS
="$LDFLAGS $RDYNAMIC"
4361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4372 if ac_fn_c_try_link
"$LINENO"; then :
4373 found
="-Wl,--dynamic-list"
4374 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
4376 RDYNAMIC
="-rdynamic"
4377 LDFLAGS
="$old_LDFLAGS $RDYNAMIC"
4378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4389 if ac_fn_c_try_link
"$LINENO"; then :
4395 rm -f core conftest.err conftest.
$ac_objext \
4396 conftest
$ac_exeext conftest.
$ac_ext
4398 rm -f core conftest.err conftest.
$ac_objext \
4399 conftest
$ac_exeext conftest.
$ac_ext
4401 LDFLAGS
="$old_LDFLAGS"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
4403 $as_echo "$found" >&6; }
4405 srv_libs
="-lthread_db"
4408 srv_thread_depfiles
="thread-db.o proc-service.o"
4409 USE_THREAD_DB
="-DUSE_THREAD_DB"
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TD_VERSION" >&5
4411 $as_echo_n "checking for TD_VERSION... " >&6; }
4412 if test "${gdbsrv_cv_have_td_version+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <thread_db.h>
4426 if ac_fn_c_try_compile
"$LINENO"; then :
4427 gdbsrv_cv_have_td_version
=yes
4429 gdbsrv_cv_have_td_version
=no
4431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_td_version" >&5
4434 $as_echo "$gdbsrv_cv_have_td_version" >&6; }
4435 if test $gdbsrv_cv_have_td_version = yes; then
4437 $as_echo "#define HAVE_TD_VERSION 1" >>confdefs.h
4443 # Check whether --with-libthread-db was given.
4444 if test "${with_libthread_db+set}" = set; then :
4445 withval
=$with_libthread_db; srv_libthread_db_path
="${withval}"
4446 srv_libs
="$srv_libthread_db_path"
4451 if test "$srv_libs" != "" -a "$srv_libs" != "-ldl"; then
4453 $as_echo "#define USE_LIBTHREAD_DB_DIRECTLY 1" >>confdefs.h
4457 if test "$srv_xmlfiles" != ""; then
4458 srv_xmlbuiltin
="xml-builtin.o"
4460 $as_echo "#define USE_XML 1" >>confdefs.h
4463 tmp_xmlfiles
=$srv_xmlfiles
4465 for f
in $tmp_xmlfiles; do
4466 srv_xmlfiles
="$srv_xmlfiles \$(XML_DIR)/$f"
4470 GDBSERVER_DEPFILES
="$srv_regobj $srv_tgtobj $srv_hostio_err_objs $srv_thread_depfiles"
4471 GDBSERVER_LIBS
="$srv_libs"
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
4474 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
4475 if test "${gdbsrv_cv_have_sync_builtins+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
4479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4485 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
4490 if ac_fn_c_try_link
"$LINENO"; then :
4491 gdbsrv_cv_have_sync_builtins
=yes
4493 gdbsrv_cv_have_sync_builtins
=no
4495 rm -f core conftest.err conftest.
$ac_objext \
4496 conftest
$ac_exeext conftest.
$ac_ext
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdbsrv_cv_have_sync_builtins" >&5
4499 $as_echo "$gdbsrv_cv_have_sync_builtins" >&6; }
4500 if test $gdbsrv_cv_have_sync_builtins = yes; then
4502 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
4506 saved_cflags
="$CFLAGS"
4507 CFLAGS
="$CFLAGS -fvisibility=hidden"
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4519 if ac_fn_c_try_compile
"$LINENO"; then :
4520 gdbsrv_cv_have_visibility_hidden
=yes
4522 gdbsrv_cv_have_visibility_hidden
=no
4524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4525 CFLAGS
="$saved_cflags"
4529 # Rather than allowing to build a broken IPA, we simply disable it if
4530 # we don't find a compiler supporting all the features we need.
4531 if test "$ipa_obj" != "" \
4532 -a "$gdbsrv_cv_have_sync_builtins" = yes \
4533 -a "$gdbsrv_cv_have_visibility_hidden" = yes; then
4534 IPA_DEPFILES
="$ipa_obj"
4535 extra_libraries
="libinproctrace.so"
4546 ac_config_files
="$ac_config_files Makefile"
4548 ac_config_commands
="$ac_config_commands default"
4550 cat >confcache
<<\_ACEOF
4551 # This file is a shell script that caches the results of configure
4552 # tests run on this system so they can be shared between configure
4553 # scripts and configure runs, see configure's option --config-cache.
4554 # It is not useful on other systems. If it contains results you don't
4555 # want to keep, you may remove or edit it.
4557 # config.status only pays attention to the cache file if you give it
4558 # the --recheck option to rerun configure.
4560 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4561 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4566 # The following way of writing the cache mishandles newlines in values,
4567 # but we know of no workaround that is simple, portable, and efficient.
4568 # So, we kill variables containing newlines.
4569 # Ultrix sh set writes to stderr and can't be redirected directly,
4570 # and sets the high bit in the cache file unless we assign to the vars.
4572 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4573 eval ac_val
=\$
$ac_var
4577 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4581 _ | IFS | as_nl
) ;; #(
4582 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
4583 *) { eval $ac_var=; unset $ac_var;} ;;
4589 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4590 *${as_nl}ac_space
=\
*)
4591 # `set' does not quote correctly, so add quotes: double-quote
4592 # substitution turns \\\\ into \\, and sed turns \\ into \.
4595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4598 # `set' quotes correctly as required by POSIX, so do not add quotes.
4599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4608 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4610 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4612 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
4613 if test -w "$cache_file"; then
4614 test "x$cache_file" != "x/dev/null" &&
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4616 $as_echo "$as_me: updating cache $cache_file" >&6;}
4617 cat confcache
>$cache_file
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4620 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4625 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4626 # Let make expand exec_prefix.
4627 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4629 DEFS
=-DHAVE_CONFIG_H
4633 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
4634 # 1. Remove the extension, and $U if already installed.
4635 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
4636 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
4637 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4638 # will be set to the directory where LIBOBJS objects are built.
4639 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4640 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
4644 LTLIBOBJS
=$ac_ltlibobjs
4648 : ${CONFIG_STATUS=./config.status}
4650 ac_clean_files_save
=$ac_clean_files
4651 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4657 # Generated by $as_me.
4658 # Run this file to recreate the current configuration.
4659 # Compiler output produced by configure, useful for debugging
4660 # configure, is in config.log if it exists.
4666 SHELL=\${CONFIG_SHELL-$SHELL}
4669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
4670 ## -------------------- ##
4671 ## M4sh Initialization. ##
4672 ## -------------------- ##
4674 # Be more Bourne compatible
4675 DUALCASE
=1; export DUALCASE
# for MKS sh
4676 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
4679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4680 # is contrary to our usage. Disable this feature.
4681 alias -g '${1+"$@"}'='"$@"'
4682 setopt NO_GLOB_SUBST
4684 case `(set -o) 2>/dev/null` in #(
4696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4697 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4700 # Prefer a ksh shell builtin over an external printf program on Solaris,
4701 # but without wasting forks for bash or zsh.
4702 if test -z "$BASH_VERSION$ZSH_VERSION" \
4703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4704 as_echo='print
-r --'
4705 as_echo_n='print
-rn --'
4706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4707 as_echo='printf %s
\n'
4708 as_echo_n='printf %s
'
4710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4711 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
4712 as_echo_n='/usr
/ucb
/echo -n'
4714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4715 as_echo_n_body='eval
4719 expr "X$arg" : "X\\(.*\\)$as_nl";
4720 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4722 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
4724 export as_echo_n_body
4725 as_echo_n='sh
-c $as_echo_n_body as_echo
'
4728 as_echo='sh
-c $as_echo_body as_echo
'
4731 # The user is always right.
4732 if test "${PATH_SEPARATOR+set}" != set; then
4734 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4735 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4742 # We need space, tab and new line, in precisely that order. Quoting is
4743 # there to prevent editors from complaining about space-tab.
4744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4745 # splitting by setting IFS to empty value.)
4748 # Find who we are. Look in the path if we contain no directory separator.
4750 *[\\/]* ) as_myself=$0 ;;
4751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 test -z "$as_dir" && as_dir=.
4756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4762 # We did not find ourselves, most probably we were run as `sh COMMAND'
4763 # in which case we are not to be found in the path.
4764 if test "x$as_myself" = x
; then
4767 if test ! -f "$as_myself"; then
4768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4772 # Unset variables that we do not need and which cause bugs (e.g. in
4773 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4774 # suppresses any "Segmentation fault" message there. '((' could
4775 # trigger a bug in pdksh 5.2.14.
4776 for as_var
in BASH_ENV ENV MAIL MAILPATH
4777 do eval test x\
${$as_var+set} = xset \
4778 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
4791 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
4794 # as_fn_error ERROR [LINENO LOG_FD]
4795 # ---------------------------------
4796 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4797 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4798 # script with status $?, using 1 if that was 0.
4801 as_status
=$?
; test $as_status -eq 0 && as_status
=1
4803 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
4804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4806 $as_echo "$as_me: error: $1" >&2
4807 as_fn_exit
$as_status
4811 # as_fn_set_status STATUS
4812 # -----------------------
4813 # Set $? to STATUS, without forking.
4817 } # as_fn_set_status
4821 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4831 # Portably unset VAR.
4834 { eval $1=; unset $1;}
4836 as_unset
=as_fn_unset
4837 # as_fn_append VAR VALUE
4838 # ----------------------
4839 # Append the text in VALUE to the end of the definition contained in VAR. Take
4840 # advantage of any shell optimizations that allow amortized linear growth over
4841 # repeated appends, instead of the typical quadratic growth present in naive
4843 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
4844 eval 'as_fn_append ()
4855 # as_fn_arith ARG...
4856 # ------------------
4857 # Perform arithmetic evaluation on the ARGs, and store the result in the
4858 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4859 # must be portable across $(()) and expr.
4860 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
4861 eval 'as_fn_arith ()
4868 as_val
=`expr "$@" || test $? -eq 1`
4873 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
4874 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
4880 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4881 as_basename
=basename
4886 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
4892 as_me
=`$as_basename -- "$0" ||
4893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4894 X"$0" : 'X\(//\)$' \| \
4895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4897 sed '/^.*\/\([^/][^/]*\)\/*$/{
4911 # Avoid depending upon Character Ranges.
4912 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
4913 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4914 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
4915 as_cr_digits
='0123456789'
4916 as_cr_alnum
=$as_cr_Letters$as_cr_digits
4918 ECHO_C
= ECHO_N
= ECHO_T
=
4919 case `echo -n x` in #(((((
4921 case `echo 'xy\c'` in
4922 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
4924 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
4931 rm -f conf$$ conf$$.exe conf$$.
file
4932 if test -d conf$$.dir
; then
4933 rm -f conf$$.dir
/conf$$.
file
4936 mkdir conf$$.dir
2>/dev
/null
4938 if (echo >conf$$.
file) 2>/dev
/null
; then
4939 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
4941 # ... but there are two gotchas:
4942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4944 # In both cases, we have to default to `cp -p'.
4945 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
4947 elif ln conf$$.
file conf$$
2>/dev
/null
; then
4955 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
4956 rmdir conf$$.dir
2>/dev
/null
4961 # Create "$as_dir" as a directory, including parents if necessary.
4966 -*) as_dir
=.
/$as_dir;;
4968 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
4972 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4973 *) as_qdir
=$as_dir;;
4975 as_dirs
="'$as_qdir' $as_dirs"
4976 as_dir
=`$as_dirname -- "$as_dir" ||
4977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4978 X"$as_dir" : 'X\(//\)[^/]' \| \
4979 X"$as_dir" : 'X\(//\)$' \| \
4980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4981 $as_echo X"$as_dir" |
4982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4999 test -d "$as_dir" && break
5001 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
5002 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
5006 if mkdir
-p .
2>/dev
/null
; then
5007 as_mkdir_p
='mkdir -p "$as_dir"'
5009 test -d .
/-p && rmdir .
/-p
5013 if test -x / >/dev
/null
2>&1; then
5016 if ls -dL / >/dev
/null
2>&1; then
5023 if test -d "$1"; then
5029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5030 ???[sx]*):;;*)false;;esac;fi
5034 as_executable_p
=$as_test_x
5036 # Sed expression to map a string onto a valid CPP name.
5037 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5039 # Sed expression to map a string onto a valid variable name.
5040 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5044 ## ----------------------------------- ##
5045 ## Main body of $CONFIG_STATUS script. ##
5046 ## ----------------------------------- ##
5048 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
5050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5051 # Save the log message, to keep $0 and so on meaningful, and to
5052 # report actual input values of CONFIG_FILES etc. instead of their
5053 # values after options handling.
5055 This file was extended by $as_me, which was
5056 generated by GNU Autoconf 2.64. Invocation command line was
5058 CONFIG_FILES = $CONFIG_FILES
5059 CONFIG_HEADERS = $CONFIG_HEADERS
5060 CONFIG_LINKS = $CONFIG_LINKS
5061 CONFIG_COMMANDS = $CONFIG_COMMANDS
5064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5069 case $ac_config_files in *"
5070 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
5073 case $ac_config_headers in *"
5074 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
5078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5079 # Files that config.status was made for.
5080 config_files="$ac_config_files"
5081 config_headers="$ac_config_headers"
5082 config_commands="$ac_config_commands"
5086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5088 \`$as_me' instantiates files and other configuration actions
5089 from templates according to the current configuration. Unless the files
5090 and actions are specified as TAGs, all are instantiated by default.
5092 Usage: $0 [OPTION]... [TAG]...
5094 -h, --help print this help, then exit
5095 -V, --version print version number and configuration settings, then exit
5096 -q, --quiet, --silent
5097 do not print progress messages
5098 -d, --debug don't remove temporary files
5099 --recheck update $as_me by reconfiguring in the same conditions
5100 --file=FILE[:TEMPLATE]
5101 instantiate the configuration file FILE
5102 --header=FILE[:TEMPLATE]
5103 instantiate the configuration header FILE
5105 Configuration files:
5108 Configuration headers:
5111 Configuration commands:
5114 Report bugs to the package provider."
5117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5120 configured by $0, generated by GNU Autoconf 2.64,
5121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5123 Copyright (C) 2009 Free Software Foundation, Inc.
5124 This config.status script is free software; the Free Software Foundation
5125 gives unlimited permission to copy, distribute and modify it."
5130 test -n "\$AWK" || AWK=awk
5133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5134 # The default lists apply if the user does not specify any file.
5140 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
5141 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
5152 # Handling of the options.
5153 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
5155 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
5156 $as_echo "$ac_cs_version"; exit ;;
5157 --debug |
--debu |
--deb |
--de |
--d |
-d )
5159 --file |
--fil |
--fi |
--f )
5162 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5164 as_fn_append CONFIG_FILES
" '$ac_optarg'"
5165 ac_need_defaults
=false
;;
5166 --header |
--heade |
--head |
--hea )
5169 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5171 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
5172 ac_need_defaults
=false
;;
5174 # Conflict between --help and --header
5175 as_fn_error
"ambiguous option: \`$1'
5176 Try \`$0 --help' for more information.";;
5177 --help |
--hel |
-h )
5178 $as_echo "$ac_cs_usage"; exit ;;
5179 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
5180 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
5184 -*) as_fn_error
"unrecognized option: \`$1'
5185 Try \`$0 --help' for more information." ;;
5187 *) as_fn_append ac_config_targets
" $1"
5188 ac_need_defaults
=false
;;
5194 ac_configure_extra_args
=
5196 if $ac_cs_silent; then
5198 ac_configure_extra_args
="$ac_configure_extra_args --silent"
5202 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5203 if \$ac_cs_recheck; then
5204 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5206 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5207 CONFIG_SHELL='$SHELL'
5213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5217 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5218 ## Running $as_me. ##
5224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5229 # Handling of arguments.
5230 for ac_config_target
in $ac_config_targets
5232 case $ac_config_target in
5233 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
5234 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
5235 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
5237 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5242 # If the user did not use the arguments to specify the items to instantiate,
5243 # then the envvar interface is used. Set only those that are not.
5244 # We use the long form for the default assignment because of an extremely
5245 # bizarre bug on SunOS 4.1.3.
5246 if $ac_need_defaults; then
5247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
5248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
5249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
5252 # Have a temporary directory for convenience. Make it in the build tree
5253 # simply because there is no reason against having it here, and in addition,
5254 # creating and moving files from /tmp can sometimes cause problems.
5255 # Hook for its removal unless debugging.
5256 # Note that there is a small window in which the directory will not be cleaned:
5257 # after its creation but before its name has been assigned to `$tmp'.
5261 trap 'exit_status=$?
5262 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5264 trap 'as_fn_exit 1' 1 2 13 15
5266 # Create a (secure) tmp directory for tmp files.
5269 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5270 test -n "$tmp" && test -d "$tmp"
5273 tmp
=.
/conf$$
-$RANDOM
5274 (umask 077 && mkdir
"$tmp")
5275 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
5277 # Set up the scripts for CONFIG_FILES section.
5278 # No need to generate them if there are no CONFIG_FILES.
5279 # This happens for instance with `./config.status config.h'.
5280 if test -n "$CONFIG_FILES"; then
5283 ac_cr
=`echo X | tr X '\015'`
5284 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5285 # But we know of no other shell where ac_cr would be empty at this
5286 # point, so we can use a bashism as a fallback.
5287 if test "x$ac_cr" = x
; then
5288 eval ac_cr
=\$
\'\\r
\'
5290 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5291 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5297 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5302 echo "cat >conf$$subs.awk <<_ACEOF" &&
5303 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5306 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5307 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5309 for ac_last_try in false false false false false :; do
5310 . ./conf$$subs.sh ||
5311 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5313 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
5314 if test $ac_delim_n = $ac_delim_num; then
5316 elif $ac_last_try; then
5317 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
5319 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5325 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
5329 s/^/S["/; s
/!.
*/"]=/
5339 s/\(.\{148\}\).*/\1/
5341 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
5346 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5353 s/\(.\{148\}\).*/\1/
5355 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
5359 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
5364 ' <conf$$subs.awk | sed '
5369 ' >>$CONFIG_STATUS || ac_write_fail=1
5370 rm -f conf$$subs.awk
5371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5373 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
5374 for (key in S) S_is_set[key] = 1
5380 nfields = split(line, field, "@
")
5382 len = length(field[1])
5383 for (i = 2; i < nfields; i++) {
5385 keylen = length(key)
5386 if (S_is_set[key]) {
5388 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5389 len += length(value) + length(field[++i])
5400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5401 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5402 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
5405 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
5406 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
5409 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5410 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
5411 # trailing colons and then remove the whole line if VPATH becomes empty
5412 # (actually we leave an empty line to preserve line numbers).
5413 if test "x
$srcdir" = x.; then
5414 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5418 s/^\([^=]*=[ ]*\):*/\1/
5424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5425 fi # test -n "$CONFIG_FILES"
5427 # Set up the scripts for CONFIG_HEADERS section.
5428 # No need to generate them if there are no CONFIG_HEADERS.
5429 # This happens for instance with `./config.status Makefile'.
5430 if test -n "$CONFIG_HEADERS"; then
5431 cat >"$tmp/defines.
awk" <<\_ACAWK ||
5435 # Transform confdefs.h into an awk script `defines.awk', embedded as
5436 # here-document in config.status, that substitutes the proper values into
5437 # config.h.in to produce config.h.
5439 # Create a delimiter string that does not exist in confdefs.h, to ease
5440 # handling of long lines.
5442 for ac_last_try in false false :; do
5443 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
5444 if test -z "$ac_t"; then
5446 elif $ac_last_try; then
5447 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
5449 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
5453 # For the awk script, D is an array of macro values keyed by name,
5454 # likewise P contains macro parameters if any. Preserve backslash
5455 # newline sequences.
5457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5459 s/.\{148\}/&'"$ac_delim"'/g
5462 s/^[ ]*#[ ]*define[ ][ ]*/ /
5469 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
5471 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
5475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
5476 D["\
1"]=" \
3\\\\\\n
"\\/p
5478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
5483 s/.\{148\}/&'"$ac_delim"'/g
5488 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
5491 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
5493 ' <confdefs.h | sed '
5494 s/'"$ac_delim"'/"\\\
5495 "/g' >>$CONFIG_STATUS || ac_write_fail=1
5497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5498 for (key in D) D_is_set[key] = 1
5501 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5503 split(line, arg, " ")
5504 if (arg[1] == "#") {
5508 defundef
= substr
(arg
[1], 2)
5511 split(mac1
, mac2
, "(") #)
5513 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
5514 if (D_is_set
[macro
]) {
5515 # Preserve the white space surrounding the "#".
5516 print prefix
"define", macro P
[macro
] D
[macro
]
5519 # Replace #undef with comments. This is necessary, for example,
5520 # in the case of _POSIX_SOURCE, which is predefined and required
5521 # on some systems where configure will not decide to define it.
5522 if (defundef
== "undef") {
5523 print
"/*", prefix defundef
, macro
, "*/"
5531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5532 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
5533 fi # test -n "$CONFIG_HEADERS"
5536 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
5541 :[FHLC
]) ac_mode
=$ac_tag; continue;;
5543 case $ac_mode$ac_tag in
5545 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
5546 :[FH
]-) ac_tag
=-:-;;
5547 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
5564 -) ac_f
="$tmp/stdin";;
5565 *) # Look for the file first in the build tree, then in the source tree
5566 # (if the path is not absolute). The absolute path cannot be DOS-style,
5567 # because $ac_f cannot contain `:'.
5571 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
5573 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
5575 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5576 as_fn_append ac_file_inputs
" '$ac_f'"
5579 # Let's still pretend it is `configure' which instantiates (i.e., don't
5580 # use $as_me), people would be surprised to read:
5581 # /* config.h. Generated by config.status. */
5582 configure_input
='Generated from '`
5583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5585 if test x
"$ac_file" != x-
; then
5586 configure_input
="$ac_file. $configure_input"
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5588 $as_echo "$as_me: creating $ac_file" >&6;}
5590 # Neutralize special characters interpreted by sed in replacement strings.
5591 case $configure_input in #(
5592 *\
&* |
*\|
* |
*\\* )
5593 ac_sed_conf_input
=`$as_echo "$configure_input" |
5594 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5595 *) ac_sed_conf_input
=$configure_input;;
5599 *:-:* |
*:-) cat >"$tmp/stdin" \
5600 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
5605 ac_dir
=`$as_dirname -- "$ac_file" ||
5606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5607 X"$ac_file" : 'X\(//\)[^/]' \| \
5608 X"$ac_file" : 'X\(//\)$' \| \
5609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5610 $as_echo X"$ac_file" |
5611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5628 as_dir
="$ac_dir"; as_fn_mkdir_p
5632 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5634 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5635 # A ".." for each directory in $ac_dir_suffix.
5636 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5637 case $ac_top_builddir_sub in
5638 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
5639 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
5642 ac_abs_top_builddir
=$ac_pwd
5643 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
5644 # for backward compatibility:
5645 ac_top_builddir
=$ac_top_build_prefix
5648 .
) # We are building in place.
5650 ac_top_srcdir
=$ac_top_builddir_sub
5651 ac_abs_top_srcdir
=$ac_pwd ;;
5652 [\\/]* | ?
:[\\/]* ) # Absolute name.
5653 ac_srcdir
=$srcdir$ac_dir_suffix;
5654 ac_top_srcdir
=$srcdir
5655 ac_abs_top_srcdir
=$srcdir ;;
5657 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
5658 ac_top_srcdir
=$ac_top_build_prefix$srcdir
5659 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
5661 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
5671 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
5672 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
5676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5677 # If the template does not know about datarootdir, expand it.
5678 # FIXME: This hack should be removed a few years after 2.60.
5679 ac_datarootdir_hack
=; ac_datarootdir_seen
=
5690 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5691 *datarootdir
*) ac_datarootdir_seen
=yes;;
5692 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5694 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5697 ac_datarootdir_hack='
5698 s&@datadir@&$datadir&g
5699 s&@docdir@&$docdir&g
5700 s&@infodir@&$infodir&g
5701 s&@localedir@&$localedir&g
5702 s&@mandir@&$mandir&g
5703 s&\\\${datarootdir}&$datarootdir&g' ;;
5707 # Neutralize VPATH when `$srcdir' = `.'.
5708 # Shell code in configure.ac might set extrasub.
5709 # FIXME: do we really want to maintain this feature?
5710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5711 ac_sed_extra="$ac_vpsub
5714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
5716 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
5717 s|@configure_input@|
$ac_sed_conf_input|
;t t
5718 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
5719 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
5720 s
&@srcdir@
&$ac_srcdir&;t t
5721 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
5722 s
&@top_srcdir@
&$ac_top_srcdir&;t t
5723 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
5724 s
&@builddir@
&$ac_builddir&;t t
5725 s
&@abs_builddir@
&$ac_abs_builddir&;t t
5726 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
5727 s
&@INSTALL@
&$ac_INSTALL&;t t
5728 $ac_datarootdir_hack
5730 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
5731 || as_fn_error "could not create
$ac_file" "$LINENO" 5
5733 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5734 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
5735 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
5737 which seems to be undefined. Please make sure it is defined." >&5
5738 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
5739 which seems to be undefined. Please make sure it is defined." >&2;}
5743 -) cat "$tmp/out" && rm -f "$tmp/out";;
5744 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5746 || as_fn_error "could not create $ac_file" "$LINENO" 5
5752 if test x"$ac_file" != x-; then
5754 $as_echo "/* $configure_input */" \
5755 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5756 } >"$tmp/config.h" \
5757 || as_fn_error "could not create $ac_file" "$LINENO" 5
5758 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5760 $as_echo "$as_me: $ac_file is unchanged" >&6;}
5763 mv "$tmp/config.h" "$ac_file" \
5764 || as_fn_error "could not create $ac_file" "$LINENO" 5
5767 $as_echo "/* $configure_input */" \
5768 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5769 || as_fn_error "could not create -" "$LINENO" 5
5773 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5774 $as_echo "$as_me: executing $ac_file commands" >&6;}
5779 case $ac_file$ac_mode in
5780 "default":C) case x$CONFIG_HEADERS in
5781 xconfig.h:config.in)
5792 ac_clean_files=$ac_clean_files_save
5794 test $ac_write_fail = 0 ||
5795 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5798 # configure is writing to config.log, and then calls config.status.
5799 # config.status does its own redirection, appending to config.log.
5800 # Unfortunately, on DOS this fails, as config.log is still kept open
5801 # by configure, so config.status won't be able to
write to it
; its
5802 # output is simply discarded. So we exec the FD to /dev/null,
5803 # effectively closing config.log, so it can be properly (re)opened and
5804 # appended to by config.status. When coming back to configure, we
5805 # need to make the FD available again.
5806 if test "$no_create" != yes; then
5808 ac_config_status_args
=
5809 test "$silent" = yes &&
5810 ac_config_status_args
="$ac_config_status_args --quiet"
5812 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
5814 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5815 # would make configure fail if this is the last instruction.
5816 $ac_cs_success || as_fn_exit $?
5818 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5820 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}