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
="table.h"
555 # Factoring default headers for most tests.
556 ac_includes_default
="\
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
568 # ifdef HAVE_STDLIB_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
591 ac_subst_vars
='LTLIBOBJS
673 program_transform_name
686 enable_option_checking
688 enable_build_warnings
689 enable_sim_build_warnings
691 ac_precious_vars
='build_alias
702 # Initialize some variables set by options.
704 ac_init_version
=false
705 ac_unrecognized_opts
=
707 # The variables have the same names as the options, with
708 # dashes changed to underlines.
716 program_transform_name
=s
,x
,x
,
724 # Installation directory options.
725 # These are left unexpanded so users can "make install exec_prefix=/foo"
726 # and all the variables that are supposed to be based on exec_prefix
727 # by default will actually change.
728 # Use braces instead of parens because sh, perl, etc. also accept them.
729 # (The list follows the same order as the GNU Coding Standards.)
730 bindir
='${exec_prefix}/bin'
731 sbindir
='${exec_prefix}/sbin'
732 libexecdir
='${exec_prefix}/libexec'
733 datarootdir
='${prefix}/share'
734 datadir
='${datarootdir}'
735 sysconfdir
='${prefix}/etc'
736 sharedstatedir
='${prefix}/com'
737 localstatedir
='${prefix}/var'
738 includedir
='${prefix}/include'
739 oldincludedir
='/usr/include'
740 docdir
='${datarootdir}/doc/${PACKAGE}'
741 infodir
='${datarootdir}/info'
746 libdir
='${exec_prefix}/lib'
747 localedir
='${datarootdir}/locale'
748 mandir
='${datarootdir}/man'
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\
$ac_option
762 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
766 # Accept the important Cygnus configure options, so we can diagnose typos.
768 case $ac_dashdash$ac_option in
772 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
774 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
777 -build |
--build |
--buil |
--bui |
--bu)
778 ac_prev
=build_alias
;;
779 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
780 build_alias
=$ac_optarg ;;
782 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
783 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
784 ac_prev
=cache_file
;;
785 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
786 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
787 cache_file
=$ac_optarg ;;
790 cache_file
=config.cache
;;
792 -datadir |
--datadir |
--datadi |
--datad)
794 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
795 datadir
=$ac_optarg ;;
797 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
798 |
--dataroo |
--dataro |
--datar)
799 ac_prev
=datarootdir
;;
800 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
801 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
802 datarootdir
=$ac_optarg ;;
804 -disable-* |
--disable-*)
805 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
806 # Reject names that are not valid shell variable names.
807 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
808 as_fn_error
"invalid feature name: $ac_useropt"
809 ac_useropt_orig
=$ac_useropt
810 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
811 case $ac_user_opts in
815 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
816 ac_unrecognized_sep
=', ';;
818 eval enable_
$ac_useropt=no
;;
820 -docdir |
--docdir |
--docdi |
--doc |
--do)
822 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
825 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
827 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
830 -enable-* |
--enable-*)
831 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
832 # Reject names that are not valid shell variable names.
833 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
834 as_fn_error
"invalid feature name: $ac_useropt"
835 ac_useropt_orig
=$ac_useropt
836 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
837 case $ac_user_opts in
841 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
842 ac_unrecognized_sep
=', ';;
844 eval enable_
$ac_useropt=\
$ac_optarg ;;
846 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
847 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
848 |
--exec |
--exe |
--ex)
849 ac_prev
=exec_prefix
;;
850 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
851 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
852 |
--exec=* |
--exe=* |
--ex=*)
853 exec_prefix
=$ac_optarg ;;
855 -gas |
--gas |
--ga |
--g)
856 # Obsolete; use --with-gas.
859 -help |
--help |
--hel |
--he |
-h)
861 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
862 ac_init_help
=recursive
;;
863 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
864 ac_init_help
=short
;;
866 -host |
--host |
--hos |
--ho)
867 ac_prev
=host_alias
;;
868 -host=* |
--host=* |
--hos=* |
--ho=*)
869 host_alias
=$ac_optarg ;;
871 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
873 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
875 htmldir
=$ac_optarg ;;
877 -includedir |
--includedir |
--includedi |
--included |
--include \
878 |
--includ |
--inclu |
--incl |
--inc)
879 ac_prev
=includedir
;;
880 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
881 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
882 includedir
=$ac_optarg ;;
884 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
886 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
887 infodir
=$ac_optarg ;;
889 -libdir |
--libdir |
--libdi |
--libd)
891 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
894 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
895 |
--libexe |
--libex |
--libe)
896 ac_prev
=libexecdir
;;
897 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
898 |
--libexe=* |
--libex=* |
--libe=*)
899 libexecdir
=$ac_optarg ;;
901 -localedir |
--localedir |
--localedi |
--localed |
--locale)
903 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
904 localedir
=$ac_optarg ;;
906 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
907 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
908 ac_prev
=localstatedir
;;
909 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
910 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
911 localstatedir
=$ac_optarg ;;
913 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
915 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
919 # Obsolete; use --without-fp.
922 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
923 |
--no-cr |
--no-c |
-n)
926 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
927 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
930 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
931 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
932 |
--oldin |
--oldi |
--old |
--ol |
--o)
933 ac_prev
=oldincludedir
;;
934 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
935 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
936 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
937 oldincludedir
=$ac_optarg ;;
939 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
941 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
944 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
945 |
--program-pre |
--program-pr |
--program-p)
946 ac_prev
=program_prefix
;;
947 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
948 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
949 program_prefix
=$ac_optarg ;;
951 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
952 |
--program-suf |
--program-su |
--program-s)
953 ac_prev
=program_suffix
;;
954 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
955 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
956 program_suffix
=$ac_optarg ;;
958 -program-transform-name |
--program-transform-name \
959 |
--program-transform-nam |
--program-transform-na \
960 |
--program-transform-n |
--program-transform- \
961 |
--program-transform |
--program-transfor \
962 |
--program-transfo |
--program-transf \
963 |
--program-trans |
--program-tran \
964 |
--progr-tra |
--program-tr |
--program-t)
965 ac_prev
=program_transform_name
;;
966 -program-transform-name=* |
--program-transform-name=* \
967 |
--program-transform-nam=* |
--program-transform-na=* \
968 |
--program-transform-n=* |
--program-transform-=* \
969 |
--program-transform=* |
--program-transfor=* \
970 |
--program-transfo=* |
--program-transf=* \
971 |
--program-trans=* |
--program-tran=* \
972 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
973 program_transform_name
=$ac_optarg ;;
975 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
977 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
980 -psdir |
--psdir |
--psdi |
--psd |
--ps)
982 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
985 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
986 |
-silent |
--silent |
--silen |
--sile |
--sil)
989 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
991 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
993 sbindir
=$ac_optarg ;;
995 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
996 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
997 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
999 ac_prev
=sharedstatedir
;;
1000 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1001 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1002 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1004 sharedstatedir
=$ac_optarg ;;
1006 -site |
--site |
--sit)
1008 -site=* |
--site=* |
--sit=*)
1011 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1013 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1014 srcdir
=$ac_optarg ;;
1016 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1017 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1018 ac_prev
=sysconfdir
;;
1019 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1020 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1021 sysconfdir
=$ac_optarg ;;
1023 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1024 ac_prev
=target_alias
;;
1025 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1026 target_alias
=$ac_optarg ;;
1028 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1031 -version |
--version |
--versio |
--versi |
--vers |
-V)
1032 ac_init_version
=: ;;
1035 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1046 ac_unrecognized_sep
=', ';;
1048 eval with_
$ac_useropt=\
$ac_optarg ;;
1050 -without-* |
--without-*)
1051 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1054 as_fn_error
"invalid package name: $ac_useropt"
1055 ac_useropt_orig
=$ac_useropt
1056 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1061 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1062 ac_unrecognized_sep
=', ';;
1064 eval with_
$ac_useropt=no
;;
1067 # Obsolete; use --with-x.
1070 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1071 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1072 ac_prev
=x_includes
;;
1073 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1074 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1075 x_includes
=$ac_optarg ;;
1077 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1078 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1079 ac_prev
=x_libraries
;;
1080 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1081 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1082 x_libraries
=$ac_optarg ;;
1084 -*) as_fn_error
"unrecognized option: \`$ac_option'
1085 Try \`$0 --help' for more information."
1089 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1090 # Reject names that are not valid shell variable names.
1091 case $ac_envvar in #(
1092 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1093 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1095 eval $ac_envvar=\
$ac_optarg
1096 export $ac_envvar ;;
1099 # FIXME: should be removed in autoconf 3.0.
1100 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1101 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1102 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1103 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1109 if test -n "$ac_prev"; then
1110 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1111 as_fn_error
"missing argument to $ac_option"
1114 if test -n "$ac_unrecognized_opts"; then
1115 case $enable_option_checking in
1117 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1118 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1122 # Check all directory arguments for consistency.
1123 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1128 eval ac_val
=\$
$ac_var
1129 # Remove trailing slashes.
1132 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1133 eval $ac_var=\
$ac_val;;
1135 # Be sure to have absolute directory names.
1137 [\\/$
]* | ?
:[\\/]* ) continue;;
1138 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1140 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 as_fn_error
"working directory cannot be determined"
1171 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1172 as_fn_error
"pwd does not report name of working directory"
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted
=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir
=`$as_dirname -- "$as_myself" ||
1180 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$as_myself" : 'X\(//\)[^/]' \| \
1182 X"$as_myself" : 'X\(//\)$' \| \
1183 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1184 $as_echo X"$as_myself" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1207 ac_srcdir_defaulted
=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1211 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1213 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1225 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 for ac_var
in $ac_precious_vars; do
1228 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1230 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1235 # Report the --help message.
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1241 \`configure' configures this package to adapt to many kinds of systems.
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1248 Defaults for the options are specified in brackets.
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1272 For better control, use the options below.
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1304 --build=BUILD configure
for building on BUILD
[guessed
]
1305 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1306 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1310 if test -n "$ac_init_help"; then
1315 --disable-option-checking ignore unrecognized
--enable/--with options
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-werror treat compile warnings as errors
1319 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1320 --enable-sim-build-warnings
1321 enable SIM specific build-time compiler warnings
if
1324 Some influential environment variables
:
1325 CC C compiler
command
1326 CFLAGS C compiler flags
1327 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1328 nonstandard directory
<lib dir
>
1329 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1330 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1331 you have headers
in a nonstandard directory
<include dir
>
1334 Use these variables to override the choices made by
`configure' or to help
1335 it to find libraries and programs with nonstandard names/locations.
1337 Report bugs to the package provider.
1342 if test "$ac_init_help" = "recursive"; then
1343 # If there are subdirs, report their specific --help.
1344 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1345 test -d "$ac_dir" ||
1346 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1353 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1367 .) # We are building in place.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1401 generated by GNU Autoconf 2.64
1403 Copyright (C) 2009 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1410 ## ------------------------ ##
1411 ## Autoconf initialization. ##
1412 ## ------------------------ ##
1414 # ac_fn_c_try_compile LINENO
1415 # --------------------------
1416 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1417 ac_fn_c_try_compile ()
1419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420 rm -f conftest.$ac_objext
1421 if { { ac_try="$ac_compile"
1423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1424 *) ac_try_echo
=$ac_try;;
1426 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427 $as_echo "$ac_try_echo"; } >&5
1428 (eval "$ac_compile") 2>conftest.err
1430 if test -s conftest.err
; then
1431 grep -v '^ *+' conftest.err
>conftest.er1
1432 cat conftest.er1
>&5
1433 mv -f conftest.er1 conftest.err
1435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436 test $ac_status = 0; } && {
1437 test -z "$ac_c_werror_flag" ||
1438 test ! -s conftest.err
1439 } && test -s conftest.
$ac_objext; then :
1442 $as_echo "$as_me: failed program was:" >&5
1443 sed 's/^/| /' conftest.
$ac_ext >&5
1447 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1450 } # ac_fn_c_try_compile
1452 # ac_fn_c_try_cpp LINENO
1453 # ----------------------
1454 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1457 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1458 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1461 *) ac_try_echo=$ac_try;;
1463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1464 $as_echo "$ac_try_echo"; } >&5
1465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1467 if test -s conftest.err; then
1468 grep -v '^ *+' conftest.err >conftest.er1
1469 cat conftest.er1 >&5
1470 mv -f conftest.er1 conftest.err
1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1473 test $ac_status = 0; } >/dev/null && {
1474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1475 test ! -s conftest.err
1479 $as_echo "$as_me: failed program was:" >&5
1480 sed 's/^/| /' conftest.$ac_ext >&5
1484 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1489 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1490 # -------------------------------------------------------
1491 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1492 # the include files in INCLUDES and setting the cache variable VAR
1494 ac_fn_c_check_header_mongrel ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1499 $as_echo_n "checking for $2... " >&6; }
1500 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1501 $as_echo_n "(cached) " >&6
1504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1505 $as_echo "$ac_res" >&6; }
1507 # Is the header compilable?
1508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1509 $as_echo_n "checking $2 usability... " >&6; }
1510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1511 /* end confdefs.h. */
1515 if ac_fn_c_try_compile "$LINENO"; then :
1516 ac_header_compiler=yes
1518 ac_header_compiler=no
1520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1522 $as_echo "$ac_header_compiler" >&6; }
1524 # Is the header present?
1525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1526 $as_echo_n "checking $2 presence... " >&6; }
1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1528 /* end confdefs.h. */
1531 if ac_fn_c_try_cpp "$LINENO"; then :
1532 ac_header_preproc=yes
1534 ac_header_preproc=no
1536 rm -f conftest.err conftest.$ac_ext
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1538 $as_echo "$ac_header_preproc" >&6; }
1540 # So? What about this header?
1541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1544 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1546 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1550 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1552 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1554 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1556 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1558 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1562 $as_echo_n "checking for $2... " >&6; }
1563 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1564 $as_echo_n "(cached) " >&6
1566 eval "$3=\$ac_header_compiler"
1569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1570 $as_echo "$ac_res" >&6; }
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574 } # ac_fn_c_check_header_mongrel
1576 # ac_fn_c_try_run LINENO
1577 # ----------------------
1578 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1579 # that executables *can* be run.
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 if { { ac_try="$ac_link"
1585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1586 *) ac_try_echo
=$ac_try;;
1588 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589 $as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_link") 2>&5
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1594 { { case "(($ac_try" in
1595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_try") 2>&5
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; }; }; then :
1606 $as_echo "$as_me: program exited with status $ac_status" >&5
1607 $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1610 ac_retval=$ac_status
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1628 $as_echo_n "(cached) " >&6
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1635 if ac_fn_c_try_compile "$LINENO"; then :
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647 } # ac_fn_c_check_header_compile
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1659 *) ac_try_echo
=$ac_try;;
1661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1665 if test -s conftest.err
; then
1666 grep -v '^ *+' conftest.err
>conftest.er1
1667 cat conftest.er1
>&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest
$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 $as_test_x conftest
$ac_exeext
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.
$ac_ext >&5
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1693 } # ac_fn_c_try_link
1694 cat >config.log
<<_ACEOF
1695 This file contains any messages produced by compilers while
1696 running configure, to aid debugging if configure makes a mistake.
1698 It was created by $as_me, which was
1699 generated by GNU Autoconf 2.64. Invocation command line was
1711 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1717 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1720 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1723 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1724 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1734 test -z "$as_dir" && as_dir
=.
1735 $as_echo "PATH: $as_dir"
1751 # Keep a trace of the command line.
1752 # Strip out --no-create and --no-recursion so they do not pile up.
1753 # Strip out --silent because we don't want to record it for future runs.
1754 # Also quote any args containing shell meta-characters.
1755 # Make two passes to allow for proper duplicate-argument suppression.
1759 ac_must_keep_next
=false
1765 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1766 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1767 |
-silent |
--silent |
--silen |
--sile |
--sil)
1770 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
1775 as_fn_append ac_configure_args1
" '$ac_arg'"
1776 if test $ac_must_keep_next = true
; then
1777 ac_must_keep_next
=false
# Got value, back to normal.
1780 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1781 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1782 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1783 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1788 -* ) ac_must_keep_next
=true
;;
1791 as_fn_append ac_configure_args
" '$ac_arg'"
1796 { ac_configure_args0
=; unset ac_configure_args0
;}
1797 { ac_configure_args1
=; unset ac_configure_args1
;}
1799 # When interrupted or exit'd, cleanup temporary files, and complete
1800 # config.log. We remove comments because anyway the quotes in there
1801 # would cause problems or look ugly.
1802 # WARNING: Use '\'' to represent an apostrophe within the trap.
1803 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1804 trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1810 ## ---------------- ##
1811 ## Cache variables. ##
1812 ## ---------------- ##
1815 # The following way of writing the cache mishandles newlines in values,
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1823 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1826 _ | IFS | as_nl) ;; #(
1827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1828 *) { eval $ac_var=; unset $ac_var;} ;;
1833 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1834 *${as_nl}ac_space=\ *)
1836 "s/'\''/'\''\\\\'\'''\''/g;
1837 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1840 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1848 ## ----------------- ##
1849 ## Output variables. ##
1850 ## ----------------- ##
1853 for ac_var in $ac_subst_vars
1855 eval ac_val=\$$ac_var
1857 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 $as_echo "$ac_var='\''$ac_val'\''"
1863 if test -n "$ac_subst_files"; then
1865 ## ------------------- ##
1866 ## File substitutions. ##
1867 ## ------------------- ##
1870 for ac_var
in $ac_subst_files
1872 eval ac_val
=\$
$ac_var
1874 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1876 $as_echo "$ac_var='\''$ac_val'\''"
1881 if test -s confdefs.h; then
1891 test "$ac_signal" != 0 &&
1892 $as_echo "$as_me: caught signal $ac_signal"
1893 $as_echo "$as_me: exit $exit_status"
1895 rm -f core *.core core.conftest.* &&
1896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1899 for ac_signal
in 1 2 13 15; do
1900 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1905 rm -f -r conftest
* confdefs.h
1907 $as_echo "/* confdefs.h */" > confdefs.h
1909 # Predefined preprocessor variables.
1911 cat >>confdefs.h
<<_ACEOF
1912 #define PACKAGE_NAME "$PACKAGE_NAME"
1915 cat >>confdefs.h
<<_ACEOF
1916 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1919 cat >>confdefs.h
<<_ACEOF
1920 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1923 cat >>confdefs.h
<<_ACEOF
1924 #define PACKAGE_STRING "$PACKAGE_STRING"
1927 cat >>confdefs.h
<<_ACEOF
1928 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1931 cat >>confdefs.h
<<_ACEOF
1932 #define PACKAGE_URL "$PACKAGE_URL"
1936 # Let the site file select an alternate cache file if it wants to.
1937 # Prefer an explicitly selected file to automatically selected ones.
1940 if test -n "$CONFIG_SITE"; then
1941 ac_site_file1
=$CONFIG_SITE
1942 elif test "x$prefix" != xNONE
; then
1943 ac_site_file1
=$prefix/share
/config.site
1944 ac_site_file2
=$prefix/etc
/config.site
1946 ac_site_file1
=$ac_default_prefix/share
/config.site
1947 ac_site_file2
=$ac_default_prefix/etc
/config.site
1949 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
1951 test "x$ac_site_file" = xNONE
&& continue
1952 if test -r "$ac_site_file"; then
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1954 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1955 sed 's/^/| /' "$ac_site_file" >&5
1960 if test -r "$cache_file"; then
1961 # Some versions of bash will fail to source /dev/null (special
1962 # files actually), so we avoid doing that.
1963 if test -f "$cache_file"; then
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1965 $as_echo "$as_me: loading cache $cache_file" >&6;}
1967 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1968 *) .
"./$cache_file";;
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1973 $as_echo "$as_me: creating cache $cache_file" >&6;}
1977 # Check that the precious variables saved in the cache have kept the same
1979 ac_cache_corrupted
=false
1980 for ac_var
in $ac_precious_vars; do
1981 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1982 eval ac_new_set
=\
$ac_env_${ac_var}_set
1983 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1984 eval ac_new_val
=\
$ac_env_${ac_var}_value
1985 case $ac_old_set,$ac_new_set in
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1988 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1989 ac_cache_corrupted
=: ;;
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1992 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1993 ac_cache_corrupted
=: ;;
1996 if test "x$ac_old_val" != "x$ac_new_val"; then
1997 # differences in whitespace do not lead to failure.
1998 ac_old_val_w
=`echo x $ac_old_val`
1999 ac_new_val_w
=`echo x $ac_new_val`
2000 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2002 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2003 ac_cache_corrupted
=:
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2006 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2007 eval $ac_var=\
$ac_old_val
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2010 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2012 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2015 # Pass precious variables to config.status.
2016 if test "$ac_new_set" = set; then
2018 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2019 *) ac_arg
=$ac_var=$ac_new_val ;;
2021 case " $ac_configure_args " in
2022 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2023 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2027 if $ac_cache_corrupted; then
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2031 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2032 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2034 ## -------------------- ##
2035 ## Main body of script. ##
2036 ## -------------------- ##
2039 ac_cpp
='$CPP $CPPFLAGS'
2040 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2045 # This file contains common code used by all simulators.
2047 # SIM_AC_COMMON invokes AC macros used by all simulators and by the common
2048 # directory. It is intended to be invoked before any target specific stuff.
2049 # SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate the Makefile.
2050 # It is intended to be invoked last.
2052 # The simulator's configure.ac should look like:
2054 # dnl Process this file with autoconf to produce a configure script.
2055 # AC_PREREQ(2.64)dnl
2056 # AC_INIT(Makefile.in)
2057 # sinclude(../common/aclocal.m4)
2061 # ... target specific stuff ...
2065 # Include global overrides and fixes for Autoconf.
2092 # _AC_CHECK_DECL_BODY
2093 # -------------------
2094 # Shell function body for AC_CHECK_DECL.
2095 # _AC_CHECK_DECL_BODY
2097 # _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND,
2099 # -------------------------------------------------------------
2100 # Helper to AC_CHECK_DECLS, which generates the check for a single
2101 # SYMBOL with INCLUDES, performs the AC_DEFINE, then expands
2102 # ACTION-IF-FOUND or ACTION-IF-NOT-FOUND.
2114 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2116 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
2117 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
2118 # Written by Gordon Matzigkeit, 1996
2120 # This file is free software; the Free Software Foundation gives
2121 # unlimited permission to copy and/or distribute it, with or without
2122 # modifications, as long as this notice is preserved.
2129 # LT_PREREQ(VERSION)
2130 # ------------------
2131 # Complain and exit if this libtool version is less that VERSION.
2135 # _LT_CHECK_BUILDDIR
2136 # ------------------
2137 # Complain if the absolute build directory name contains unusual characters
2141 # LT_INIT([OPTIONS])
2142 # ------------------
2146 # This is what autoupdate's m4 run will expand. It fires
2147 # the warning (with _au_warn_XXX), outputs it into the
2148 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2149 # the replacement expansion.
2152 # This is an auxiliary macro that is also run when
2153 # autoupdate runs m4. It simply calls m4_warning, but
2154 # we need a wrapper so that each warning is emitted only
2155 # once. We break the quoting in m4_warning's argument in
2156 # order to expand this macro's arguments, not AU_DEFUN's.
2159 # Finally, this is the expansion that is picked up by
2160 # autoconf. It tells the user to run autoupdate, and
2161 # then outputs the replacement expansion. We do not care
2162 # about autoupdate's warning because that contains
2163 # information on what to do *after* running autoupdate.
2165 # This is what autoupdate's m4 run will expand. It fires
2166 # the warning (with _au_warn_XXX), outputs it into the
2167 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2168 # the replacement expansion.
2171 # This is an auxiliary macro that is also run when
2172 # autoupdate runs m4. It simply calls m4_warning, but
2173 # we need a wrapper so that each warning is emitted only
2174 # once. We break the quoting in m4_warning's argument in
2175 # order to expand this macro's arguments, not AU_DEFUN's.
2178 # Finally, this is the expansion that is picked up by
2179 # autoconf. It tells the user to run autoupdate, and
2180 # then outputs the replacement expansion. We do not care
2181 # about autoupdate's warning because that contains
2182 # information on what to do *after* running autoupdate.
2186 # _LT_CC_BASENAME(CC)
2187 # -------------------
2188 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
2192 # _LT_FILEUTILS_DEFAULTS
2193 # ----------------------
2194 # It is okay to use these file commands and assume they have been set
2195 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
2196 # _LT_FILEUTILS_DEFAULTS
2204 # _LT_PREPARE_SED_QUOTE_VARS
2205 # --------------------------
2206 # Define a few sed substitution that help us do robust quoting.
2211 # Note that this code is called both from `configure', and `config.status'
2212 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
2213 # `config.status' has no value for ac_aux_dir unless we are using Automake,
2214 # so we pass a copy along to make sure it has a sensible value anyway.
2218 ## ------------------------------------- ##
2219 ## Accumulate code for creating libtool. ##
2220 ## ------------------------------------- ##
2222 # So that we can recreate a full libtool script including additional
2223 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2224 # in macros and then make a single call at the end using the `libtool'
2228 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2229 # ----------------------------------------
2230 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2237 # _LT_CONFIG_LIBTOOL([COMMANDS])
2238 # ------------------------------
2239 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2246 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
2247 # -----------------------------------------------------
2251 # _LT_FORMAT_COMMENT([COMMENT])
2252 # -----------------------------
2253 # Add leading comment marks to the start of each line, and a trailing
2254 # full-stop to the whole comment if one is not present already.
2259 ## ------------------------ ##
2260 ## FIXME: Eliminate VARNAME ##
2261 ## ------------------------ ##
2264 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
2265 # -------------------------------------------------------------------
2266 # CONFIGNAME is the name given to the value in the libtool script.
2267 # VARNAME is the (base) name used in the configure script.
2268 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
2269 # VARNAME. Any other value will be used directly.
2273 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
2274 # --------------------------------------------------------
2278 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
2279 # ------------------------------------------------
2283 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
2284 # ---------------------------------------------------------
2288 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
2289 # --------------------------------------------------
2293 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
2294 # ---------------------------------------------------
2298 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
2299 # ---------------------------------------------------
2304 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
2305 # ------------------------------------------------
2310 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
2311 # ------------------------------------
2312 # Quote a variable value, and forward it to `config.status' so that its
2313 # declaration there will have the same value as in `configure'. VARNAME
2314 # must have a single quote delimited value for this to work.
2318 # _LT_CONFIG_STATUS_DECLARATIONS
2319 # ------------------------------
2320 # We delimit libtool config variables with single quotes, so when
2321 # we write them to config.status, we have to be sure to quote all
2322 # embedded single quotes properly. In configure, this macro expands
2323 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
2325 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
2331 # Output comment and list of tags supported by the script
2335 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
2336 # -----------------------------------
2337 # Extract the dictionary values for VARNAME (optionally with TAG) and
2338 # expand to a commented shell variable setting:
2340 # # Some comment about what VAR is for.
2341 # visible_name=$lt_internal_name
2345 # _LT_LIBTOOL_CONFIG_VARS
2346 # -----------------------
2347 # Produce commented declarations of non-tagged libtool config variables
2348 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
2349 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
2350 # section) are produced by _LT_LIBTOOL_TAG_VARS.
2354 # _LT_LIBTOOL_TAG_VARS(TAG)
2355 # -------------------------
2359 # _LT_TAGVAR(VARNAME, [TAGNAME])
2360 # ------------------------------
2364 # _LT_CONFIG_COMMANDS
2365 # -------------------
2366 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
2367 # variables for single and double quote escaping we saved from calls
2368 # to _LT_DECL, we can put quote escaped variables declarations
2369 # into `config.status', and then the shell code to quote escape them in
2370 # for loops in `config.status'. Finally, any additional code accumulated
2371 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
2372 #_LT_CONFIG_COMMANDS
2378 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2379 # ------------------------------------
2380 # Generate a child script FILE with all initialization necessary to
2381 # reuse the environment learned by the parent script, and make the
2382 # file executable. If COMMENT is supplied, it is inserted after the
2383 # `#!' sequence but before initialization text begins. After this
2384 # macro, additional text can be appended to FILE to form the body of
2385 # the child script. The macro ends with non-zero status if the
2386 # file could not be fully written (such as if the disk is full).
2387 # _LT_GENERATED_FILE_INIT
2391 # This macro allows early generation of the libtool script (before
2392 # AC_OUTPUT is called), incase it is used in configure for compilation
2399 # If TAG is the built-in tag, create an initial libtool script with a
2400 # default configuration from the untagged config vars. Otherwise add code
2401 # to config.status for appending the configuration named by TAG from the
2402 # matching tagged config vars.
2406 # LT_SUPPORTED_TAG(TAG)
2407 # ---------------------
2408 # Trace this macro to discover what tags are supported by the libtool
2409 # --tag option, using:
2410 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
2414 # C support is built-in for now
2421 # Enable libtool support for the given language if not already enabled.
2425 # _LT_LANG(LANGNAME)
2426 # ------------------
2430 # _LT_LANG_DEFAULT_CONFIG
2431 # -----------------------
2432 # _LT_LANG_DEFAULT_CONFIG
2435 # This is what autoupdate's m4 run will expand. It fires
2436 # the warning (with _au_warn_XXX), outputs it into the
2437 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2438 # the replacement expansion.
2441 # This is an auxiliary macro that is also run when
2442 # autoupdate runs m4. It simply calls m4_warning, but
2443 # we need a wrapper so that each warning is emitted only
2444 # once. We break the quoting in m4_warning's argument in
2445 # order to expand this macro's arguments, not AU_DEFUN's.
2448 # Finally, this is the expansion that is picked up by
2449 # autoconf. It tells the user to run autoupdate, and
2450 # then outputs the replacement expansion. We do not care
2451 # about autoupdate's warning because that contains
2452 # information on what to do *after* running autoupdate.
2454 # This is what autoupdate's m4 run will expand. It fires
2455 # the warning (with _au_warn_XXX), outputs it into the
2456 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2457 # the replacement expansion.
2460 # This is an auxiliary macro that is also run when
2461 # autoupdate runs m4. It simply calls m4_warning, but
2462 # we need a wrapper so that each warning is emitted only
2463 # once. We break the quoting in m4_warning's argument in
2464 # order to expand this macro's arguments, not AU_DEFUN's.
2467 # Finally, this is the expansion that is picked up by
2468 # autoconf. It tells the user to run autoupdate, and
2469 # then outputs the replacement expansion. We do not care
2470 # about autoupdate's warning because that contains
2471 # information on what to do *after* running autoupdate.
2473 # This is what autoupdate's m4 run will expand. It fires
2474 # the warning (with _au_warn_XXX), outputs it into the
2475 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2476 # the replacement expansion.
2479 # This is an auxiliary macro that is also run when
2480 # autoupdate runs m4. It simply calls m4_warning, but
2481 # we need a wrapper so that each warning is emitted only
2482 # once. We break the quoting in m4_warning's argument in
2483 # order to expand this macro's arguments, not AU_DEFUN's.
2486 # Finally, this is the expansion that is picked up by
2487 # autoconf. It tells the user to run autoupdate, and
2488 # then outputs the replacement expansion. We do not care
2489 # about autoupdate's warning because that contains
2490 # information on what to do *after* running autoupdate.
2492 # This is what autoupdate's m4 run will expand. It fires
2493 # the warning (with _au_warn_XXX), outputs it into the
2494 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2495 # the replacement expansion.
2498 # This is an auxiliary macro that is also run when
2499 # autoupdate runs m4. It simply calls m4_warning, but
2500 # we need a wrapper so that each warning is emitted only
2501 # once. We break the quoting in m4_warning's argument in
2502 # order to expand this macro's arguments, not AU_DEFUN's.
2505 # Finally, this is the expansion that is picked up by
2506 # autoconf. It tells the user to run autoupdate, and
2507 # then outputs the replacement expansion. We do not care
2508 # about autoupdate's warning because that contains
2509 # information on what to do *after* running autoupdate.
2511 # This is what autoupdate's m4 run will expand. It fires
2512 # the warning (with _au_warn_XXX), outputs it into the
2513 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2514 # the replacement expansion.
2517 # This is an auxiliary macro that is also run when
2518 # autoupdate runs m4. It simply calls m4_warning, but
2519 # we need a wrapper so that each warning is emitted only
2520 # once. We break the quoting in m4_warning's argument in
2521 # order to expand this macro's arguments, not AU_DEFUN's.
2524 # Finally, this is the expansion that is picked up by
2525 # autoconf. It tells the user to run autoupdate, and
2526 # then outputs the replacement expansion. We do not care
2527 # about autoupdate's warning because that contains
2528 # information on what to do *after* running autoupdate.
2537 # _LT_COMPILER_BOILERPLATE
2538 # ------------------------
2539 # Check for compiler boilerplate output or warnings with
2540 # the simple compiler test code.
2541 # _LT_COMPILER_BOILERPLATE
2544 # _LT_LINKER_BOILERPLATE
2545 # ----------------------
2546 # Check for linker boilerplate output or warnings with
2547 # the simple link test code.
2548 # _LT_LINKER_BOILERPLATE
2550 # _LT_REQUIRED_DARWIN_CHECKS
2551 # -------------------------
2555 # _LT_DARWIN_LINKER_FEATURES
2556 # --------------------------
2557 # Checks for linker and compiler features on darwin
2560 # _LT_SYS_MODULE_PATH_AIX
2561 # -----------------------
2562 # Links a minimal program and checks the executable
2563 # for the system default hardcoded library path. In most cases,
2564 # this is /usr/lib:/lib, but when the MPI compilers are used
2565 # the location of the communication and MPI libs are included too.
2566 # If we don't find anything, use the default library path according
2567 # to the aix ld manual.
2568 # _LT_SYS_MODULE_PATH_AIX
2571 # _LT_SHELL_INIT(ARG)
2572 # -------------------
2577 # _LT_PROG_ECHO_BACKSLASH
2578 # -----------------------
2579 # Find how we can fake an echo command that does not interpret backslash.
2580 # In particular, with Autoconf 2.60 or later we add some code to the start
2581 # of the generated configure script which will find a shell with a builtin
2582 # printf (which we can use as an echo command).
2583 # _LT_PROG_ECHO_BACKSLASH
2591 # _LT_CMD_OLD_ARCHIVE
2592 # -------------------
2593 # _LT_CMD_OLD_ARCHIVE
2596 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2597 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2598 # ----------------------------------------------------------------
2599 # Check whether the given compiler option works
2600 # _LT_COMPILER_OPTION
2603 # This is what autoupdate's m4 run will expand. It fires
2604 # the warning (with _au_warn_XXX), outputs it into the
2605 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2606 # the replacement expansion.
2609 # This is an auxiliary macro that is also run when
2610 # autoupdate runs m4. It simply calls m4_warning, but
2611 # we need a wrapper so that each warning is emitted only
2612 # once. We break the quoting in m4_warning's argument in
2613 # order to expand this macro's arguments, not AU_DEFUN's.
2616 # Finally, this is the expansion that is picked up by
2617 # autoconf. It tells the user to run autoupdate, and
2618 # then outputs the replacement expansion. We do not care
2619 # about autoupdate's warning because that contains
2620 # information on what to do *after* running autoupdate.
2624 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2625 # [ACTION-SUCCESS], [ACTION-FAILURE])
2626 # ----------------------------------------------------
2627 # Check whether the given linker option works
2631 # This is what autoupdate's m4 run will expand. It fires
2632 # the warning (with _au_warn_XXX), outputs it into the
2633 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2634 # the replacement expansion.
2637 # This is an auxiliary macro that is also run when
2638 # autoupdate runs m4. It simply calls m4_warning, but
2639 # we need a wrapper so that each warning is emitted only
2640 # once. We break the quoting in m4_warning's argument in
2641 # order to expand this macro's arguments, not AU_DEFUN's.
2644 # Finally, this is the expansion that is picked up by
2645 # autoconf. It tells the user to run autoupdate, and
2646 # then outputs the replacement expansion. We do not care
2647 # about autoupdate's warning because that contains
2648 # information on what to do *after* running autoupdate.
2657 # This is what autoupdate's m4 run will expand. It fires
2658 # the warning (with _au_warn_XXX), outputs it into the
2659 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2660 # the replacement expansion.
2663 # This is an auxiliary macro that is also run when
2664 # autoupdate runs m4. It simply calls m4_warning, but
2665 # we need a wrapper so that each warning is emitted only
2666 # once. We break the quoting in m4_warning's argument in
2667 # order to expand this macro's arguments, not AU_DEFUN's.
2670 # Finally, this is the expansion that is picked up by
2671 # autoconf. It tells the user to run autoupdate, and
2672 # then outputs the replacement expansion. We do not care
2673 # about autoupdate's warning because that contains
2674 # information on what to do *after* running autoupdate.
2683 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2684 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2685 # ----------------------------------------------------------------
2686 # _LT_TRY_DLOPEN_SELF
2689 # LT_SYS_DLOPEN_SELF
2690 # ------------------
2691 # LT_SYS_DLOPEN_SELF
2694 # This is what autoupdate's m4 run will expand. It fires
2695 # the warning (with _au_warn_XXX), outputs it into the
2696 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2697 # the replacement expansion.
2700 # This is an auxiliary macro that is also run when
2701 # autoupdate runs m4. It simply calls m4_warning, but
2702 # we need a wrapper so that each warning is emitted only
2703 # once. We break the quoting in m4_warning's argument in
2704 # order to expand this macro's arguments, not AU_DEFUN's.
2707 # Finally, this is the expansion that is picked up by
2708 # autoconf. It tells the user to run autoupdate, and
2709 # then outputs the replacement expansion. We do not care
2710 # about autoupdate's warning because that contains
2711 # information on what to do *after* running autoupdate.
2715 # _LT_COMPILER_C_O([TAGNAME])
2716 # ---------------------------
2717 # Check to see if options -c and -o are simultaneously supported by compiler.
2718 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2722 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2723 # ----------------------------------
2724 # Check to see if we can do hard links to lock some files if needed
2725 # _LT_COMPILER_FILE_LOCKS
2733 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2734 # --------------------------------------
2735 # Check hardcoding attributes.
2736 # _LT_LINKER_HARDCODE_LIBPATH
2744 # _LT_SYS_DYNAMIC_LINKER([TAG])
2745 # -----------------------------
2746 # PORTME Fill in your ld.so characteristics
2747 # _LT_SYS_DYNAMIC_LINKER
2750 # _LT_PATH_TOOL_PREFIX(TOOL)
2751 # --------------------------
2752 # find a file program which can recognize shared library
2753 # _LT_PATH_TOOL_PREFIX
2756 # This is what autoupdate's m4 run will expand. It fires
2757 # the warning (with _au_warn_XXX), outputs it into the
2758 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2759 # the replacement expansion.
2762 # This is an auxiliary macro that is also run when
2763 # autoupdate runs m4. It simply calls m4_warning, but
2764 # we need a wrapper so that each warning is emitted only
2765 # once. We break the quoting in m4_warning's argument in
2766 # order to expand this macro's arguments, not AU_DEFUN's.
2769 # Finally, this is the expansion that is picked up by
2770 # autoconf. It tells the user to run autoupdate, and
2771 # then outputs the replacement expansion. We do not care
2772 # about autoupdate's warning because that contains
2773 # information on what to do *after* running autoupdate.
2779 # find a file program which can recognize a shared library
2785 # find the pathname to the GNU or non-GNU linker
2789 # This is what autoupdate's m4 run will expand. It fires
2790 # the warning (with _au_warn_XXX), outputs it into the
2791 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2792 # the replacement expansion.
2795 # This is an auxiliary macro that is also run when
2796 # autoupdate runs m4. It simply calls m4_warning, but
2797 # we need a wrapper so that each warning is emitted only
2798 # once. We break the quoting in m4_warning's argument in
2799 # order to expand this macro's arguments, not AU_DEFUN's.
2802 # Finally, this is the expansion that is picked up by
2803 # autoconf. It tells the user to run autoupdate, and
2804 # then outputs the replacement expansion. We do not care
2805 # about autoupdate's warning because that contains
2806 # information on what to do *after* running autoupdate.
2808 # This is what autoupdate's m4 run will expand. It fires
2809 # the warning (with _au_warn_XXX), outputs it into the
2810 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2811 # the replacement expansion.
2814 # This is an auxiliary macro that is also run when
2815 # autoupdate runs m4. It simply calls m4_warning, but
2816 # we need a wrapper so that each warning is emitted only
2817 # once. We break the quoting in m4_warning's argument in
2818 # order to expand this macro's arguments, not AU_DEFUN's.
2821 # Finally, this is the expansion that is picked up by
2822 # autoconf. It tells the user to run autoupdate, and
2823 # then outputs the replacement expansion. We do not care
2824 # about autoupdate's warning because that contains
2825 # information on what to do *after* running autoupdate.
2836 # find reload flag for linker
2837 # -- PORTME Some linkers may need a different reload flag.
2841 # _LT_CHECK_MAGIC_METHOD
2842 # ----------------------
2843 # how to check for library dependencies
2844 # -- PORTME fill in with the dynamic library characteristics
2845 # _LT_CHECK_MAGIC_METHOD
2850 # find the pathname to a BSD- or MS-compatible name lister
2854 # This is what autoupdate's m4 run will expand. It fires
2855 # the warning (with _au_warn_XXX), outputs it into the
2856 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2857 # the replacement expansion.
2860 # This is an auxiliary macro that is also run when
2861 # autoupdate runs m4. It simply calls m4_warning, but
2862 # we need a wrapper so that each warning is emitted only
2863 # once. We break the quoting in m4_warning's argument in
2864 # order to expand this macro's arguments, not AU_DEFUN's.
2867 # Finally, this is the expansion that is picked up by
2868 # autoconf. It tells the user to run autoupdate, and
2869 # then outputs the replacement expansion. We do not care
2870 # about autoupdate's warning because that contains
2871 # information on what to do *after* running autoupdate.
2873 # This is what autoupdate's m4 run will expand. It fires
2874 # the warning (with _au_warn_XXX), outputs it into the
2875 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2876 # the replacement expansion.
2879 # This is an auxiliary macro that is also run when
2880 # autoupdate runs m4. It simply calls m4_warning, but
2881 # we need a wrapper so that each warning is emitted only
2882 # once. We break the quoting in m4_warning's argument in
2883 # order to expand this macro's arguments, not AU_DEFUN's.
2886 # Finally, this is the expansion that is picked up by
2887 # autoconf. It tells the user to run autoupdate, and
2888 # then outputs the replacement expansion. We do not care
2889 # about autoupdate's warning because that contains
2890 # information on what to do *after* running autoupdate.
2896 # check for math library
2900 # This is what autoupdate's m4 run will expand. It fires
2901 # the warning (with _au_warn_XXX), outputs it into the
2902 # updated configure.ac (with AC_DIAGNOSE), and then outputs
2903 # the replacement expansion.
2906 # This is an auxiliary macro that is also run when
2907 # autoupdate runs m4. It simply calls m4_warning, but
2908 # we need a wrapper so that each warning is emitted only
2909 # once. We break the quoting in m4_warning's argument in
2910 # order to expand this macro's arguments, not AU_DEFUN's.
2913 # Finally, this is the expansion that is picked up by
2914 # autoconf. It tells the user to run autoupdate, and
2915 # then outputs the replacement expansion. We do not care
2916 # about autoupdate's warning because that contains
2917 # information on what to do *after* running autoupdate.
2921 # _LT_COMPILER_NO_RTTI([TAGNAME])
2922 # -------------------------------
2923 # _LT_COMPILER_NO_RTTI
2926 # _LT_CMD_GLOBAL_SYMBOLS
2927 # ----------------------
2928 # _LT_CMD_GLOBAL_SYMBOLS
2931 # _LT_COMPILER_PIC([TAGNAME])
2932 # ---------------------------
2936 # _LT_LINKER_SHLIBS([TAGNAME])
2937 # ----------------------------
2938 # See if the linker supports building shared libraries.
2942 # _LT_LANG_C_CONFIG([TAG])
2943 # ------------------------
2944 # Ensure that the configuration variables for a C compiler are suitably
2945 # defined. These variables are subsequently used by _LT_CONFIG to write
2946 # the compiler configuration to `libtool'.
2950 # _LT_LANG_CXX_CONFIG([TAG])
2951 # --------------------------
2952 # Ensure that the configuration variables for a C++ compiler are suitably
2953 # defined. These variables are subsequently used by _LT_CONFIG to write
2954 # the compiler configuration to `libtool'.
2955 # _LT_LANG_CXX_CONFIG
2958 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
2959 # ---------------------------------
2960 # Figure out "hidden" library dependencies from verbose
2961 # compiler output when linking a shared library.
2962 # Parse the compiler output and extract the necessary
2963 # objects, libraries and library flags.
2964 # _LT_SYS_HIDDEN_LIBDEPS
2967 # _LT_LANG_F77_CONFIG([TAG])
2968 # --------------------------
2969 # Ensure that the configuration variables for a Fortran 77 compiler are
2970 # suitably defined. These variables are subsequently used by _LT_CONFIG
2971 # to write the compiler configuration to `libtool'.
2972 # _LT_LANG_F77_CONFIG
2975 # _LT_LANG_FC_CONFIG([TAG])
2976 # -------------------------
2977 # Ensure that the configuration variables for a Fortran compiler are
2978 # suitably defined. These variables are subsequently used by _LT_CONFIG
2979 # to write the compiler configuration to `libtool'.
2980 # _LT_LANG_FC_CONFIG
2983 # _LT_LANG_GCJ_CONFIG([TAG])
2984 # --------------------------
2985 # Ensure that the configuration variables for the GNU Java Compiler compiler
2986 # are suitably defined. These variables are subsequently used by _LT_CONFIG
2987 # to write the compiler configuration to `libtool'.
2988 # _LT_LANG_GCJ_CONFIG
2991 # _LT_LANG_RC_CONFIG([TAG])
2992 # -------------------------
2993 # Ensure that the configuration variables for the Windows resource compiler
2994 # are suitably defined. These variables are subsequently used by _LT_CONFIG
2995 # to write the compiler configuration to `libtool'.
2996 # _LT_LANG_RC_CONFIG
3004 # This is what autoupdate's m4 run will expand. It fires
3005 # the warning (with _au_warn_XXX), outputs it into the
3006 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3007 # the replacement expansion.
3010 # This is an auxiliary macro that is also run when
3011 # autoupdate runs m4. It simply calls m4_warning, but
3012 # we need a wrapper so that each warning is emitted only
3013 # once. We break the quoting in m4_warning's argument in
3014 # order to expand this macro's arguments, not AU_DEFUN's.
3017 # Finally, this is the expansion that is picked up by
3018 # autoconf. It tells the user to run autoupdate, and
3019 # then outputs the replacement expansion. We do not care
3020 # about autoupdate's warning because that contains
3021 # information on what to do *after* running autoupdate.
3030 # This is what autoupdate's m4 run will expand. It fires
3031 # the warning (with _au_warn_XXX), outputs it into the
3032 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3033 # the replacement expansion.
3036 # This is an auxiliary macro that is also run when
3037 # autoupdate runs m4. It simply calls m4_warning, but
3038 # we need a wrapper so that each warning is emitted only
3039 # once. We break the quoting in m4_warning's argument in
3040 # order to expand this macro's arguments, not AU_DEFUN's.
3043 # Finally, this is the expansion that is picked up by
3044 # autoconf. It tells the user to run autoupdate, and
3045 # then outputs the replacement expansion. We do not care
3046 # about autoupdate's warning because that contains
3047 # information on what to do *after* running autoupdate.
3053 # If we don't have a new enough Autoconf to choose the best grep
3054 # available, choose the one first in the user's PATH.
3060 # If we don't have a new enough Autoconf to choose the best objdump
3061 # available, choose the one first in the user's PATH.
3067 # Check for a fully-functional sed program, that truncates
3068 # as few characters as possible. Prefer GNU sed if found.
3074 # This is what autoupdate's m4 run will expand. It fires
3075 # the warning (with _au_warn_XXX), outputs it into the
3076 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3077 # the replacement expansion.
3080 # This is an auxiliary macro that is also run when
3081 # autoupdate runs m4. It simply calls m4_warning, but
3082 # we need a wrapper so that each warning is emitted only
3083 # once. We break the quoting in m4_warning's argument in
3084 # order to expand this macro's arguments, not AU_DEFUN's.
3087 # Finally, this is the expansion that is picked up by
3088 # autoconf. It tells the user to run autoupdate, and
3089 # then outputs the replacement expansion. We do not care
3090 # about autoupdate's warning because that contains
3091 # information on what to do *after* running autoupdate.
3095 # _LT_CHECK_SHELL_FEATURES
3096 # ------------------------
3097 # Find out whether the shell is Bourne or XSI compatible,
3098 # or has some other useful features.
3099 # _LT_CHECK_SHELL_FEATURES
3102 # _LT_PROG_XSI_SHELLFNS
3103 # ---------------------
3104 # Bourne and XSI compatible variants of some useful shell functions.
3107 # Helper functions for option handling. -*- Autoconf -*-
3109 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
3111 # Written by Gary V. Vaughan, 2004
3113 # This file is free software; the Free Software Foundation gives
3114 # unlimited permission to copy and/or distribute it, with or without
3115 # modifications, as long as this notice is preserved.
3117 # serial 6 ltoptions.m4
3119 # This is to help aclocal find these macros, as it can't see m4_define.
3123 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
3124 # ------------------------------------------
3128 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
3129 # ---------------------------------------
3130 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
3131 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
3136 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
3137 # ------------------------------------------------------------
3138 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
3142 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
3143 # -------------------------------------------------------
3144 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
3149 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
3150 # ----------------------------------------
3151 # OPTION-LIST is a space-separated list of Libtool options associated
3152 # with MACRO-NAME. If any OPTION has a matching handler declared with
3153 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
3154 # the unknown option and exit.
3158 ## --------------------------------- ##
3159 ## Macros to handle LT_INIT options. ##
3160 ## --------------------------------- ##
3162 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
3163 # -----------------------------------------
3167 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
3168 # -----------------------------------------------
3176 # This is what autoupdate's m4 run will expand. It fires
3177 # the warning (with _au_warn_XXX), outputs it into the
3178 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3179 # the replacement expansion.
3182 # This is an auxiliary macro that is also run when
3183 # autoupdate runs m4. It simply calls m4_warning, but
3184 # we need a wrapper so that each warning is emitted only
3185 # once. We break the quoting in m4_warning's argument in
3186 # order to expand this macro's arguments, not AU_DEFUN's.
3189 # Finally, this is the expansion that is picked up by
3190 # autoconf. It tells the user to run autoupdate, and
3191 # then outputs the replacement expansion. We do not care
3192 # about autoupdate's warning because that contains
3193 # information on what to do *after* running autoupdate.
3200 # Declare package support for building win32 dll's.
3203 # This is what autoupdate's m4 run will expand. It fires
3204 # the warning (with _au_warn_XXX), outputs it into the
3205 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3206 # the replacement expansion.
3209 # This is an auxiliary macro that is also run when
3210 # autoupdate runs m4. It simply calls m4_warning, but
3211 # we need a wrapper so that each warning is emitted only
3212 # once. We break the quoting in m4_warning's argument in
3213 # order to expand this macro's arguments, not AU_DEFUN's.
3216 # Finally, this is the expansion that is picked up by
3217 # autoconf. It tells the user to run autoupdate, and
3218 # then outputs the replacement expansion. We do not care
3219 # about autoupdate's warning because that contains
3220 # information on what to do *after* running autoupdate.
3225 # _LT_ENABLE_SHARED([DEFAULT])
3226 # ----------------------------
3227 # implement the --enable-shared flag, and supports the `shared' and
3228 # `disable-shared' LT_INIT options.
3229 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3240 # This is what autoupdate's m4 run will expand. It fires
3241 # the warning (with _au_warn_XXX), outputs it into the
3242 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3243 # the replacement expansion.
3246 # This is an auxiliary macro that is also run when
3247 # autoupdate runs m4. It simply calls m4_warning, but
3248 # we need a wrapper so that each warning is emitted only
3249 # once. We break the quoting in m4_warning's argument in
3250 # order to expand this macro's arguments, not AU_DEFUN's.
3253 # Finally, this is the expansion that is picked up by
3254 # autoconf. It tells the user to run autoupdate, and
3255 # then outputs the replacement expansion. We do not care
3256 # about autoupdate's warning because that contains
3257 # information on what to do *after* running autoupdate.
3259 # This is what autoupdate's m4 run will expand. It fires
3260 # the warning (with _au_warn_XXX), outputs it into the
3261 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3262 # the replacement expansion.
3265 # This is an auxiliary macro that is also run when
3266 # autoupdate runs m4. It simply calls m4_warning, but
3267 # we need a wrapper so that each warning is emitted only
3268 # once. We break the quoting in m4_warning's argument in
3269 # order to expand this macro's arguments, not AU_DEFUN's.
3272 # Finally, this is the expansion that is picked up by
3273 # autoconf. It tells the user to run autoupdate, and
3274 # then outputs the replacement expansion. We do not care
3275 # about autoupdate's warning because that contains
3276 # information on what to do *after* running autoupdate.
3282 # _LT_ENABLE_STATIC([DEFAULT])
3283 # ----------------------------
3284 # implement the --enable-static flag, and support the `static' and
3285 # `disable-static' LT_INIT options.
3286 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3297 # This is what autoupdate's m4 run will expand. It fires
3298 # the warning (with _au_warn_XXX), outputs it into the
3299 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3300 # the replacement expansion.
3303 # This is an auxiliary macro that is also run when
3304 # autoupdate runs m4. It simply calls m4_warning, but
3305 # we need a wrapper so that each warning is emitted only
3306 # once. We break the quoting in m4_warning's argument in
3307 # order to expand this macro's arguments, not AU_DEFUN's.
3310 # Finally, this is the expansion that is picked up by
3311 # autoconf. It tells the user to run autoupdate, and
3312 # then outputs the replacement expansion. We do not care
3313 # about autoupdate's warning because that contains
3314 # information on what to do *after* running autoupdate.
3316 # This is what autoupdate's m4 run will expand. It fires
3317 # the warning (with _au_warn_XXX), outputs it into the
3318 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3319 # the replacement expansion.
3322 # This is an auxiliary macro that is also run when
3323 # autoupdate runs m4. It simply calls m4_warning, but
3324 # we need a wrapper so that each warning is emitted only
3325 # once. We break the quoting in m4_warning's argument in
3326 # order to expand this macro's arguments, not AU_DEFUN's.
3329 # Finally, this is the expansion that is picked up by
3330 # autoconf. It tells the user to run autoupdate, and
3331 # then outputs the replacement expansion. We do not care
3332 # about autoupdate's warning because that contains
3333 # information on what to do *after* running autoupdate.
3339 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
3340 # ----------------------------------
3341 # implement the --enable-fast-install flag, and support the `fast-install'
3342 # and `disable-fast-install' LT_INIT options.
3343 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3344 # _LT_ENABLE_FAST_INSTALL
3350 # This is what autoupdate's m4 run will expand. It fires
3351 # the warning (with _au_warn_XXX), outputs it into the
3352 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3353 # the replacement expansion.
3356 # This is an auxiliary macro that is also run when
3357 # autoupdate runs m4. It simply calls m4_warning, but
3358 # we need a wrapper so that each warning is emitted only
3359 # once. We break the quoting in m4_warning's argument in
3360 # order to expand this macro's arguments, not AU_DEFUN's.
3363 # Finally, this is the expansion that is picked up by
3364 # autoconf. It tells the user to run autoupdate, and
3365 # then outputs the replacement expansion. We do not care
3366 # about autoupdate's warning because that contains
3367 # information on what to do *after* running autoupdate.
3370 # This is what autoupdate's m4 run will expand. It fires
3371 # the warning (with _au_warn_XXX), outputs it into the
3372 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3373 # the replacement expansion.
3376 # This is an auxiliary macro that is also run when
3377 # autoupdate runs m4. It simply calls m4_warning, but
3378 # we need a wrapper so that each warning is emitted only
3379 # once. We break the quoting in m4_warning's argument in
3380 # order to expand this macro's arguments, not AU_DEFUN's.
3383 # Finally, this is the expansion that is picked up by
3384 # autoconf. It tells the user to run autoupdate, and
3385 # then outputs the replacement expansion. We do not care
3386 # about autoupdate's warning because that contains
3387 # information on what to do *after* running autoupdate.
3392 # _LT_WITH_PIC([MODE])
3393 # --------------------
3394 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
3396 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3403 # This is what autoupdate's m4 run will expand. It fires
3404 # the warning (with _au_warn_XXX), outputs it into the
3405 # updated configure.ac (with AC_DIAGNOSE), and then outputs
3406 # the replacement expansion.
3409 # This is an auxiliary macro that is also run when
3410 # autoupdate runs m4. It simply calls m4_warning, but
3411 # we need a wrapper so that each warning is emitted only
3412 # once. We break the quoting in m4_warning's argument in
3413 # order to expand this macro's arguments, not AU_DEFUN's.
3416 # Finally, this is the expansion that is picked up by
3417 # autoconf. It tells the user to run autoupdate, and
3418 # then outputs the replacement expansion. We do not care
3419 # about autoupdate's warning because that contains
3420 # information on what to do *after* running autoupdate.
3424 ## ----------------- ##
3425 ## LTDL_INIT Options ##
3426 ## ----------------- ##
3437 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
3439 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
3440 # Written by Gary V. Vaughan, 2004
3442 # This file is free software; the Free Software Foundation gives
3443 # unlimited permission to copy and/or distribute it, with or without
3444 # modifications, as long as this notice is preserved.
3446 # serial 6 ltsugar.m4
3448 # This is to help aclocal find these macros, as it can't see m4_define.
3452 # lt_join(SEP, ARG1, [ARG2...])
3453 # -----------------------------
3454 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
3455 # associated separator.
3456 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
3457 # versions in m4sugar had bugs.
3465 # Manipulate m4 lists.
3466 # These macros are necessary as long as will still need to support
3467 # Autoconf-2.59 which quotes differently.
3473 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
3474 # ------------------------------------------
3475 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
3476 # Note that neither SEPARATOR nor STRING are expanded; they are appended
3477 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
3478 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
3479 # than defined and empty).
3481 # This macro is needed until we can rely on Autoconf 2.62, since earlier
3482 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
3487 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
3488 # ----------------------------------------------------------
3489 # Produce a SEP delimited list of all paired combinations of elements of
3490 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
3491 # has the form PREFIXmINFIXSUFFIXn.
3492 # Needed until we can rely on m4_combine added in Autoconf 2.62.
3496 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
3497 # -----------------------------------------------------------------------
3498 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
3499 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
3503 # lt_dict_add(DICT, KEY, VALUE)
3504 # -----------------------------
3508 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
3509 # --------------------------------------------
3513 # lt_dict_fetch(DICT, KEY, [SUBKEY])
3514 # ----------------------------------
3518 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
3519 # -----------------------------------------------------------------
3523 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
3524 # --------------------------------------------------------------
3527 # ltversion.m4 -- version numbers -*- Autoconf -*-
3529 # Copyright (C) 2004 Free Software Foundation, Inc.
3530 # Written by Scott James Remnant, 2004
3532 # This file is free software; the Free Software Foundation gives
3533 # unlimited permission to copy and/or distribute it, with or without
3534 # modifications, as long as this notice is preserved.
3536 # Generated from ltversion.in.
3538 # serial 3134 ltversion.m4
3539 # This file is part of GNU Libtool
3546 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
3548 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
3549 # Written by Scott James Remnant, 2004.
3551 # This file is free software; the Free Software Foundation gives
3552 # unlimited permission to copy and/or distribute it, with or without
3553 # modifications, as long as this notice is preserved.
3555 # serial 4 lt~obsolete.m4
3557 # These exist entirely to fool aclocal when bootstrapping libtool.
3559 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
3560 # which have later been changed to m4_define as they aren't part of the
3561 # exported API, or moved to Autoconf or Automake where they belong.
3563 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
3564 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
3565 # using a macro with the same name in our local m4/libtool.m4 it'll
3566 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
3567 # and doesn't know about Autoconf macros at all.)
3569 # So we provide this file, which has a silly filename so it's always
3570 # included after everything else. This provides aclocal with the
3571 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
3572 # because those macros already exist, or will be overwritten later.
3573 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
3575 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
3576 # Yes, that means every name once taken will need to remain here until
3577 # we give up compatibility with versions before 1.7, at which point
3578 # we need to keep only those names which we still refer to.
3580 # This is to help aclocal find these macros, as it can't see m4_define.
3647 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007
3648 # Free Software Foundation, Inc.
3650 # This file is free software; the Free Software Foundation
3651 # gives unlimited permission to copy and/or distribute it,
3652 # with or without modifications, as long as this notice is preserved.
3656 # Based on depend.m4 from automake 1.9, modified for standalone use in
3657 # an environment where GNU make is required.
3659 # ZW_PROG_COMPILER_DEPENDENCIES
3660 # -----------------------------
3661 # Variant of _AM_DEPENDENCIES which just does the dependency probe and
3662 # sets fooDEPMODE accordingly. Cache-variable compatible with
3663 # original; not side-effect compatible. As the users of this macro
3664 # may require accurate dependencies for correct builds, it does *not*
3665 # honor --disable-dependency-checking, and failure to detect a usable
3666 # method is an error. depcomp is assumed to be located in
3669 # FIXME: Should use the Autoconf 2.5x language-selection mechanism.
3675 # Choose a directory name for dependency files.
3680 # As AM_SET_DEPDIR, but also create the directory at config.status time.
3727 sim_inline
="-DDEFAULT_INLINE=0"
3764 # intl sister-directory configuration rules.
3767 # The idea behind this macro is that there's no need to repeat all the
3768 # autoconf probes done by the intl directory - it's already done them
3769 # for us. In fact, there's no need even to look at the cache for the
3770 # answers. All we need to do is nab a few pieces of information.
3771 # The intl directory is set up to make this easy, by generating a
3772 # small file which can be sourced as a shell script; then we produce
3773 # the necessary substitutions and definitions for this directory.
3777 # Autoconf M4 include file defining utility macros for complex Canadian
3789 # _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
3791 # These demand that AC_CANONICAL_SYSTEM be called beforehand.
3794 # NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3795 # Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
3799 # NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
3800 # Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
3804 # Backported from Autoconf 2.5x; can go away when and if
3805 # we switch. Put the OS path separator in $PATH_SEPARATOR.
3810 # ACX_HAVE_GCC_FOR_TARGET
3811 # Check if the variable GCC_FOR_TARGET really points to a GCC binary.
3814 # ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
3815 # Searching for installed target binutils. We need to take extra care,
3816 # else we may find the wrong assembler, linker, etc., and lose.
3818 # First try --with-build-time-tools, if specified.
3820 # For build != host, we ask the installed GCC for the name of the tool it
3821 # uses, and accept it if it is an absolute path. This is because the
3822 # only good choice for a compiler is the same GCC version that is being
3823 # installed (or we couldn't make target libraries), and we assume that
3824 # on the host system we'll have not only the same GCC version, but also
3825 # the same binutils version.
3827 # For build == host, search the same directories that the installed
3828 # compiler will search. We used to do this for the assembler, linker,
3829 # and nm only; for simplicity of configuration, however, we extend this
3830 # criterion to tools (such as ar and ranlib) that are never invoked by
3831 # the compiler, to avoid mismatches.
3833 # Also note we have to check MD_EXEC_PREFIX before checking the user's path
3834 # if build == target. This makes the most sense only when bootstrapping,
3835 # but we also do so when build != host. In this case, we hope that the
3836 # build and host systems will have similar contents of MD_EXEC_PREFIX.
3838 # If we do not find a suitable binary, then try the user's path.
3842 # AC_PROG_CPP_WERROR
3843 # Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
3844 # triggers warnings from the preprocessor. Will be in autoconf 2.58.
3845 # For now, using this also overrides header checks to use only the
3846 # preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
3847 # bit harder from here).
3848 # Eventually autoconf will default to checking headers with the compiler
3849 # instead, and we'll have to do this differently.
3851 # AC_PROG_CPP_WERROR
3854 # We require the gnatbind & gnatmake programs, as well as a compiler driver
3855 # that understands Ada. We use the user's CC setting, already found, and
3856 # possibly add $1 to the command-line parameters.
3858 # Sets the shell variable have_gnat to yes or no as appropriate, and
3859 # substitutes GNATBIND and GNATMAKE.
3886 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3887 for ac_t
in install-sh
install.sh shtool
; do
3888 if test -f "$ac_dir/$ac_t"; then
3890 ac_install_sh
="$ac_aux_dir/$ac_t -c"
3895 if test -z "$ac_aux_dir"; then
3896 as_fn_error
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3899 # These three variables are undocumented and unsupported,
3900 # and are intended to be withdrawn in a future Autoconf release.
3901 # They can cause serious problems if a builder's source tree is in a directory
3902 # whose full name contains unusual characters.
3903 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3904 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3905 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3908 # Find a good install program. We prefer a C program (faster),
3909 # so one script is as good as another. But avoid the broken or
3910 # incompatible versions:
3911 # SysV /etc/install, /usr/sbin/install
3912 # SunOS /usr/etc/install
3913 # IRIX /sbin/install
3915 # AmigaOS /C/install, which installs bootblocks on floppy discs
3916 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3917 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3918 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3919 # OS/2's system install, which has a completely different semantic
3920 # ./install, which can be erroneously created by make from ./install.sh.
3921 # Reject install programs that cannot install multiple files.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3923 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3924 if test -z "$INSTALL"; then
3925 if test "${ac_cv_path_install+set}" = set; then :
3926 $as_echo_n "(cached) " >&6
3928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3932 test -z "$as_dir" && as_dir
=.
3933 # Account for people who put trailing slashes in PATH elements.
3934 case $as_dir/ in #((
3935 .
/ | .
// |
/[cC
]/* | \
3936 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3937 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3940 # OSF1 and SCO ODT 3.0 have their own names for install.
3941 # Don't use installbsd from OSF since it installs stuff as root
3943 for ac_prog
in ginstall scoinst
install; do
3944 for ac_exec_ext
in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3946 if test $ac_prog = install &&
3947 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3948 # AIX install. It has an incompatible calling convention.
3950 elif test $ac_prog = install &&
3951 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3952 # program-specific install script used by HP pwplus--don't use.
3955 rm -rf conftest.one conftest.two conftest.dir
3956 echo one
> conftest.one
3957 echo two
> conftest.two
3959 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3960 test -s conftest.one
&& test -s conftest.two
&&
3961 test -s conftest.dir
/conftest.one
&&
3962 test -s conftest.dir
/conftest.two
3964 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3977 rm -rf conftest.one conftest.two conftest.dir
3980 if test "${ac_cv_path_install+set}" = set; then
3981 INSTALL
=$ac_cv_path_install
3983 # As a last resort, use the slow shell script. Don't cache a
3984 # value for INSTALL within a source directory, because that will
3985 # break other packages using the cache if that directory is
3986 # removed, or if the value is a relative name.
3987 INSTALL
=$ac_install_sh
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3991 $as_echo "$INSTALL" >&6; }
3993 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3994 # It thinks the first close brace ends the variable substitution.
3995 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3997 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3999 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4002 ac_cpp
='$CPP $CPPFLAGS'
4003 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4004 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4005 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4006 if test -n "$ac_tool_prefix"; then
4007 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4008 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4010 $as_echo_n "checking for $ac_word... " >&6; }
4011 if test "${ac_cv_prog_CC+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4014 if test -n "$CC"; then
4015 ac_cv_prog_CC
="$CC" # Let the user override the test.
4017 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir
=.
4022 for ac_exec_ext
in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$CC"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4037 $as_echo "$CC" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4045 if test -z "$ac_cv_prog_CC"; then
4047 # Extract the first word of "gcc", so it can be a program name with args.
4048 set dummy gcc
; ac_word
=$2
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4050 $as_echo_n "checking for $ac_word... " >&6; }
4051 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4054 if test -n "$ac_ct_CC"; then
4055 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir
=.
4062 for ac_exec_ext
in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_prog_ac_ct_CC
="gcc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4075 if test -n "$ac_ct_CC"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4077 $as_echo "$ac_ct_CC" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4083 if test "x$ac_ct_CC" = x
; then
4086 case $cross_compiling:$ac_tool_warned in
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4090 ac_tool_warned
=yes ;;
4098 if test -z "$CC"; then
4099 if test -n "$ac_tool_prefix"; then
4100 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4101 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_CC+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
4107 if test -n "$CC"; then
4108 ac_cv_prog_CC
="$CC" # Let the user override the test.
4110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4114 test -z "$as_dir" && as_dir
=.
4115 for ac_exec_ext
in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 if test -n "$CC"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4130 $as_echo "$CC" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4139 if test -z "$CC"; then
4140 # Extract the first word of "cc", so it can be a program name with args.
4141 set dummy cc
; ac_word
=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if test "${ac_cv_prog_CC+set}" = set; then :
4145 $as_echo_n "(cached) " >&6
4147 if test -n "$CC"; then
4148 ac_cv_prog_CC
="$CC" # Let the user override the test.
4151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir
=.
4156 for ac_exec_ext
in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4159 ac_prog_rejected
=yes
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 if test $ac_prog_rejected = yes; then
4171 # We found a bogon in the path, so make sure we never use it.
4172 set dummy
$ac_cv_prog_CC
4174 if test $# != 0; then
4175 # We chose a different compiler from the bogus one.
4176 # However, it has the same basename, so the bogon will be chosen
4177 # first if we set CC to just the basename; use the full file name.
4179 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4195 if test -z "$CC"; then
4196 if test -n "$ac_tool_prefix"; then
4197 for ac_prog
in cl.exe
4199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4200 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_CC+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4206 if test -n "$CC"; then
4207 ac_cv_prog_CC
="$CC" # Let the user override the test.
4209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir
=.
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 if test -n "$CC"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4229 $as_echo "$CC" >&6; }
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$CC" && break
4239 if test -z "$CC"; then
4241 for ac_prog
in cl.exe
4243 # Extract the first word of "$ac_prog", so it can be a program name with args.
4244 set dummy
$ac_prog; ac_word
=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4250 if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 test -z "$as_dir" && as_dir
=.
4258 for ac_exec_ext
in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_ac_ct_CC
="$ac_prog"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4271 if test -n "$ac_ct_CC"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4273 $as_echo "$ac_ct_CC" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 test -n "$ac_ct_CC" && break
4283 if test "x$ac_ct_CC" = x
; then
4286 case $cross_compiling:$ac_tool_warned in
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned
=yes ;;
4299 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4301 as_fn_error
"no acceptable C compiler found in \$PATH
4302 See \`config.log' for more details." "$LINENO" 5; }
4304 # Provide some information about the compiler.
4305 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4308 for ac_option
in --version -v -V -qversion; do
4309 { { ac_try
="$ac_compiler $ac_option >&5"
4311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4315 $as_echo "$ac_try_echo"; } >&5
4316 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4318 if test -s conftest.err; then
4320 ... rest of stderr output deleted ...
4321 10q' conftest.err >conftest.er1
4322 cat conftest.er1 >&5
4323 rm -f conftest.er1 conftest.err
4325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4326 test $ac_status = 0; }
4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h. */
4340 ac_clean_files_save=$ac_clean_files
4341 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4342 # Try to create an executable without -o first, disregard a.out.
4343 # It will help us diagnose broken compilers, and finding out an intuition
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4346 $as_echo_n "checking for C compiler default output file name... " >&6; }
4347 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4349 # The possible output files:
4350 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4353 for ac_file in $ac_files
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4357 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4362 if { { ac_try="$ac_link_default"
4364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4365 *) ac_try_echo
=$ac_try;;
4367 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369 (eval "$ac_link_default") 2>&5
4371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372 test $ac_status = 0; }; then :
4373 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4374 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4375 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4376 # so that the user can short-circuit this test for compilers unknown to
4378 for ac_file
in $ac_files ''
4380 test -f "$ac_file" ||
continue
4382 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4385 # We found the default executable, but exeext='' is most
4389 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4391 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4393 # We set ac_cv_exeext here because the later test for it is not
4394 # safe: cross compilers may not add the suffix if given an `-o'
4395 # argument, so we may need to know it at that point already.
4396 # Even if this section looks crufty: it has the advantage of
4403 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4409 $as_echo "$ac_file" >&6; }
4410 if test -z "$ac_file"; then :
4411 $as_echo "$as_me: failed program was:" >&5
4412 sed 's/^/| /' conftest.
$ac_ext >&5
4414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4416 { as_fn_set_status
77
4417 as_fn_error
"C compiler cannot create executables
4418 See \`config.log' for more details." "$LINENO" 5; }; }
4420 ac_exeext
=$ac_cv_exeext
4422 # Check that the compiler produces executables we can run. If not, either
4423 # the compiler is broken, or we cross compile.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4425 $as_echo_n "checking whether the C compiler works... " >&6; }
4426 # If not cross compiling, check that we can run a simple program.
4427 if test "$cross_compiling" != yes; then
4428 if { ac_try
='./$ac_file'
4429 { { case "(($ac_try" in
4430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_try") 2>&5
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; }; then
4441 if test "$cross_compiling" = maybe; then
4444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4446 as_fn_error "cannot run C compiled programs.
4447 If you meant to cross compile
, use \
`--host'.
4448 See \`config.log
' for more details." "$LINENO" 5; }
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4453 $as_echo "yes" >&6; }
4455 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4456 ac_clean_files=$ac_clean_files_save
4457 # Check that the compiler produces executables we can run. If not, either
4458 # the compiler is broken, or we cross compile.
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4460 $as_echo_n "checking whether we are cross compiling... " >&6; }
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4462 $as_echo "$cross_compiling" >&6; }
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4465 $as_echo_n "checking for suffix of executables... " >&6; }
4466 if { { ac_try="$ac_link"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }; then :
4477 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
4478 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
4479 # work properly (i.e., refer to `conftest.exe
'), while it won't with
4481 for ac_file
in conftest.exe conftest conftest.
*; do
4482 test -f "$ac_file" ||
continue
4484 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4485 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4493 as_fn_error
"cannot compute suffix of executables: cannot compile and link
4494 See \`config.log' for more details." "$LINENO" 5; }
4496 rm -f conftest
$ac_cv_exeext
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4498 $as_echo "$ac_cv_exeext" >&6; }
4500 rm -f conftest.
$ac_ext
4501 EXEEXT
=$ac_cv_exeext
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4504 $as_echo_n "checking for suffix of object files... " >&6; }
4505 if test "${ac_cv_objext+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4519 rm -f conftest.o conftest.obj
4520 if { { ac_try
="$ac_compile"
4522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4526 $as_echo "$ac_try_echo"; } >&5
4527 (eval "$ac_compile") 2>&5
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }; then :
4531 for ac_file in conftest.o conftest.obj conftest.*; do
4532 test -f "$ac_file" || continue;
4534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4535 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4540 $as_echo "$as_me: failed program was:" >&5
4541 sed 's/^/| /' conftest.$ac_ext >&5
4543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4545 as_fn_error "cannot compute suffix of object files
: cannot compile
4546 See \
`config.log' for more details." "$LINENO" 5; }
4548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4551 $as_echo "$ac_cv_objext" >&6; }
4552 OBJEXT=$ac_cv_objext
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4555 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4556 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4573 if ac_fn_c_try_compile "$LINENO"; then :
4578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4583 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4584 if test $ac_compiler_gnu = yes; then
4589 ac_test_CFLAGS=${CFLAGS+set}
4590 ac_save_CFLAGS=$CFLAGS
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4592 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4593 if test "${ac_cv_prog_cc_g+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 ac_save_c_werror_flag=$ac_c_werror_flag
4597 ac_c_werror_flag=yes
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4611 if ac_fn_c_try_compile "$LINENO"; then :
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4626 if ac_fn_c_try_compile "$LINENO"; then :
4629 ac_c_werror_flag=$ac_save_c_werror_flag
4631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4632 /* end confdefs.h. */
4642 if ac_fn_c_try_compile "$LINENO"; then :
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4653 $as_echo "$ac_cv_prog_cc_g" >&6; }
4654 if test "$ac_test_CFLAGS" = set; then
4655 CFLAGS=$ac_save_CFLAGS
4656 elif test $ac_cv_prog_cc_g = yes; then
4657 if test "$GCC" = yes; then
4663 if test "$GCC" = yes; then
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4670 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4671 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 ac_cv_prog_cc_c89=no
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4680 #include <sys/types.h>
4681 #include <sys/stat.h>
4682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4683 struct buf { int x; };
4684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4685 static char *e (p, i)
4691 static char *f (char * (*g) (char **, int), char **p, ...)
4696 s = g (p, va_arg (v,int));
4701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4702 function prototypes and stuff, but not '\xHH' hex character constants.
4703 These don't provoke an error unfortunately, instead are silently treated
4704 as 'x'. The following induces an error, until -std is added to get
4705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4706 array size at least. It's necessary to write '\x00'==0 to get something
4707 that's true only with -std. */
4708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4711 inside strings and character constants. */
4713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4715 int test (int i, double x);
4716 struct s1 {int (*f) (int a);};
4717 struct s2 {int (*f) (double a);};
4718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4732 CC="$ac_save_CC $ac_arg"
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_prog_cc_c89=$ac_arg
4736 rm -f core conftest.err conftest.$ac_objext
4737 test "x$ac_cv_prog_cc_c89" != "xno" && break
4739 rm -f conftest.$ac_ext
4744 case "x$ac_cv_prog_cc_c89" in
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4747 $as_echo "none needed" >&6; } ;;
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4750 $as_echo "unsupported" >&6; } ;;
4752 CC="$CC $ac_cv_prog_cc_c89"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4756 if test "x$ac_cv_prog_cc_c89" != xno; then :
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769 # Check whether --enable-werror was given.
4770 if test "${enable_werror+set}" = set; then :
4771 enableval=$enable_werror; case "${enableval}" in
4772 yes | y) ERROR_ON_WARNING="yes" ;;
4773 no | n) ERROR_ON_WARNING="no" ;;
4774 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
4779 # Enable -Werror by default when using gcc
4780 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
4781 ERROR_ON_WARNING=yes
4785 if test "${ERROR_ON_WARNING}" = yes ; then
4786 # NOTE: Disabled in the sim dir due to most sims generating warnings.
4787 # WERROR_CFLAGS="-Werror"
4791 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
4793 -Wno-unused -Wunused-value -Wunused-function \
4794 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes
4795 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
4796 -Wold-style-declaration -Wold-style-definition"
4798 # Enable -Wno-format by default when using gcc on mingw since many
4799 # GCC versions complain about %I64.
4801 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
4802 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
4805 # Check whether --enable-build-warnings was given.
4806 if test "${enable_build_warnings+set}" = set; then :
4807 enableval=$enable_build_warnings; case "${enableval}" in
4809 no) build_warnings="-w";;
4810 ,*) t=`echo "${enableval}" |
sed -e "s/,/ /g"`
4811 build_warnings="${build_warnings} ${t}";;
4812 *,) t=`echo "${enableval}" |
sed -e "s/,/ /g"`
4813 build_warnings="${t} ${build_warnings}";;
4814 *) build_warnings=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
4816 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4817 echo "Setting compiler warning flags = $build_warnings" 6>&1
4820 # Check whether --enable-sim-build-warnings was given.
4821 if test "${enable_sim_build_warnings+set}" = set; then :
4822 enableval=$enable_sim_build_warnings; case "${enableval}" in
4824 no) build_warnings="-w";;
4825 ,*) t=`echo "${enableval}" |
sed -e "s/,/ /g"`
4826 build_warnings="${build_warnings} ${t}";;
4827 *,) t=`echo "${enableval}" |
sed -e "s/,/ /g"`
4828 build_warnings="${t} ${build_warnings}";;
4829 *) build_warnings=`echo "${enableval}" |
sed -e "s/,/ /g"`;;
4831 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
4832 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
4836 if test "x${build_warnings}" != x -a "x$GCC" = xyes
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
4839 $as_echo_n "checking compiler warning flags... " >&6; }
4840 # Separate out the -Werror flag as some files just cannot be
4841 # compiled with it enabled.
4842 for w in ${build_warnings}; do
4844 -Werr*) WERROR_CFLAGS=-Werror ;;
4845 *) # Check that GCC accepts it
4846 saved_CFLAGS="$CFLAGS"
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 WARN_CFLAGS="${WARN_CFLAGS} $w"
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 CFLAGS="$saved_CFLAGS"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
4867 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
4871 # Put a plausible default for CC_FOR_BUILD in Makefile.
4872 if test "x$cross_compiling" = "xno" -a "x$host" != "xi386-windows"; then
4873 AR_FOR_BUILD='$(AR)'
4874 AR_FLAGS_FOR_BUILD='$(AR_FLAGS)'
4875 CC_FOR_BUILD='$(CC)'
4876 CFLAGS_FOR_BUILD='$(CFLAGS)'
4877 RANLIB_FOR_BUILD='$(RANLIB)'
4878 LIBIBERTY_LIB=../../libiberty/libiberty.a
4880 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4881 AR_FLAGS_FOR_BUILD=${AR_FLAGS_FOR_BUILD-rc}
4882 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4883 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-"-g"}
4884 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4889 # Make sure we can run config.sub.
4890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4891 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4894 $as_echo_n "checking build system type... " >&6; }
4895 if test "${ac_cv_build+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
4898 ac_build_alias=$build_alias
4899 test "x$ac_build_alias" = x &&
4900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4901 test "x$ac_build_alias" = x &&
4902 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4904 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4908 $as_echo "$ac_cv_build" >&6; }
4909 case $ac_cv_build in
4911 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4914 ac_save_IFS=$IFS; IFS='-'
4920 # Remember, the first character of IFS is used to create $*,
4921 # except with old shells:
4924 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4928 $as_echo_n "checking host system type... " >&6; }
4929 if test "${ac_cv_host+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 if test "x$host_alias" = x; then
4933 ac_cv_host=$ac_cv_build
4935 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4936 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4941 $as_echo "$ac_cv_host" >&6; }
4944 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4947 ac_save_IFS=$IFS; IFS='-'
4953 # Remember, the first character of IFS is used to create $*,
4954 # except with old shells:
4957 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4961 $as_echo_n "checking target system type... " >&6; }
4962 if test "${ac_cv_target+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4965 if test "x$target_alias" = x; then
4966 ac_cv_target=$ac_cv_host
4968 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4969 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4974 $as_echo "$ac_cv_target" >&6; }
4975 case $ac_cv_target in
4977 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4979 target=$ac_cv_target
4980 ac_save_IFS=$IFS; IFS='-'
4986 # Remember, the first character of IFS is used to create $*,
4987 # except with old shells:
4990 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
4993 # The aliases save the names the user supplied, while $host etc.
4994 # will get canonicalized.
4995 test -n "$target_alias" &&
4996 test "$program_prefix$program_suffix$program_transform_name" = \
4998 program_prefix=${target_alias}-
5000 test "$program_prefix" != NONE &&
5001 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5002 # Use a double $ so make ignores it.
5003 test "$program_suffix" != NONE &&
5004 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5005 # Double any \ or $.
5006 # By default was `s
,x
,x
', remove it if useless.
5007 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
5008 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5011 . ${srcdir}/../../bfd/configure.host
5013 ac_config_headers="$ac_config_headers config.h:config.in"
5017 ac_cpp='$CPP $CPPFLAGS'
5018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
5019 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
5020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5022 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5023 # On Suns, sometimes $CPP names a directory.
5024 if test -n "$CPP" && test -d "$CPP"; then
5027 if test -z "$CPP"; then
5028 if test "${ac_cv_prog_CPP+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5031 # Double quotes because CPP needs to be expanded
5032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5035 for ac_c_preproc_warn_flag in '' yes
5037 # Use a header file that comes with gcc, so configuring glibc
5038 # with a fresh cross-compiler works.
5039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5040 # <limits.h> exists even on freestanding compilers.
5041 # On the NeXT, cc -E runs the code through the compiler's parser
,
5042 # not just through cpp. "Syntax error" is here to catch this case.
5043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5046 # include <limits.h>
5048 # include <assert.h>
5052 if ac_fn_c_try_cpp
"$LINENO"; then :
5055 # Broken: fails on valid input.
5058 rm -f conftest.err conftest.
$ac_ext
5060 # OK, works on sane cases. Now check whether nonexistent headers
5061 # can be detected and how.
5062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5063 /* end confdefs.h. */
5064 #include <ac_nonexistent.h>
5066 if ac_fn_c_try_cpp
"$LINENO"; then :
5067 # Broken: success on invalid input.
5070 # Passes both tests.
5074 rm -f conftest.err conftest.
$ac_ext
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.
$ac_ext
5079 if $ac_preproc_ok; then :
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5092 $as_echo "$CPP" >&6; }
5094 for ac_c_preproc_warn_flag
in '' yes
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5105 # include <limits.h>
5107 # include <assert.h>
5111 if ac_fn_c_try_cpp
"$LINENO"; then :
5114 # Broken: fails on valid input.
5117 rm -f conftest.err conftest.
$ac_ext
5119 # OK, works on sane cases. Now check whether nonexistent headers
5120 # can be detected and how.
5121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <ac_nonexistent.h>
5125 if ac_fn_c_try_cpp
"$LINENO"; then :
5126 # Broken: success on invalid input.
5129 # Passes both tests.
5133 rm -f conftest.err conftest.
$ac_ext
5136 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5137 rm -f conftest.err conftest.
$ac_ext
5138 if $ac_preproc_ok; then :
5141 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5144 See \`config.log' for more details." "$LINENO" 5; }
5148 ac_cpp
='$CPP $CPPFLAGS'
5149 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5155 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5156 if test "${ac_cv_path_GREP+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5159 if test -z "$GREP"; then
5160 ac_path_GREP_found
=false
5161 # Loop through the user's path and test for each of PROGNAME-LIST
5162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5163 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5166 test -z "$as_dir" && as_dir
=.
5167 for ac_prog
in grep ggrep
; do
5168 for ac_exec_ext
in '' $ac_executable_extensions; do
5169 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
5170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
5171 # Check for GNU ac_path_GREP and select it if it is found.
5172 # Check for GNU $ac_path_GREP
5173 case `"$ac_path_GREP" --version 2>&1` in
5175 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5178 $as_echo_n 0123456789 >"conftest.in"
5181 cat "conftest.in" "conftest.in" >"conftest.tmp"
5182 mv "conftest.tmp" "conftest.in"
5183 cp "conftest.in" "conftest.nl"
5184 $as_echo 'GREP' >> "conftest.nl"
5185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5186 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5187 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5189 # Best one so far, save it but keep looking for a better one
5190 ac_cv_path_GREP
="$ac_path_GREP"
5191 ac_path_GREP_max
=$ac_count
5193 # 10*(2^10) chars as input seems more than enough
5194 test $ac_count -gt 10 && break
5196 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5199 $ac_path_GREP_found && break 3
5204 if test -z "$ac_cv_path_GREP"; then
5205 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5208 ac_cv_path_GREP
=$GREP
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5213 $as_echo "$ac_cv_path_GREP" >&6; }
5214 GREP
="$ac_cv_path_GREP"
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5218 $as_echo_n "checking for egrep... " >&6; }
5219 if test "${ac_cv_path_EGREP+set}" = set; then :
5220 $as_echo_n "(cached) " >&6
5222 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
5223 then ac_cv_path_EGREP
="$GREP -E"
5225 if test -z "$EGREP"; then
5226 ac_path_EGREP_found
=false
5227 # Loop through the user's path and test for each of PROGNAME-LIST
5228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5229 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5232 test -z "$as_dir" && as_dir
=.
5233 for ac_prog
in egrep; do
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
5236 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
5237 # Check for GNU ac_path_EGREP and select it if it is found.
5238 # Check for GNU $ac_path_EGREP
5239 case `"$ac_path_EGREP" --version 2>&1` in
5241 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
5244 $as_echo_n 0123456789 >"conftest.in"
5247 cat "conftest.in" "conftest.in" >"conftest.tmp"
5248 mv "conftest.tmp" "conftest.in"
5249 cp "conftest.in" "conftest.nl"
5250 $as_echo 'EGREP' >> "conftest.nl"
5251 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5252 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5253 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5254 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5255 # Best one so far, save it but keep looking for a better one
5256 ac_cv_path_EGREP
="$ac_path_EGREP"
5257 ac_path_EGREP_max
=$ac_count
5259 # 10*(2^10) chars as input seems more than enough
5260 test $ac_count -gt 10 && break
5262 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5265 $ac_path_EGREP_found && break 3
5270 if test -z "$ac_cv_path_EGREP"; then
5271 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5274 ac_cv_path_EGREP
=$EGREP
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5280 $as_echo "$ac_cv_path_EGREP" >&6; }
5281 EGREP
="$ac_cv_path_EGREP"
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5285 $as_echo_n "checking for ANSI C header files... " >&6; }
5286 if test "${ac_cv_header_stdc+set}" = set; then :
5287 $as_echo_n "(cached) " >&6
5289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5304 if ac_fn_c_try_compile
"$LINENO"; then :
5305 ac_cv_header_stdc
=yes
5307 ac_cv_header_stdc
=no
5309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5311 if test $ac_cv_header_stdc = yes; then
5312 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5319 $EGREP "memchr" >/dev
/null
2>&1; then :
5322 ac_cv_header_stdc
=no
5328 if test $ac_cv_header_stdc = yes; then
5329 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5336 $EGREP "free" >/dev
/null
2>&1; then :
5339 ac_cv_header_stdc
=no
5345 if test $ac_cv_header_stdc = yes; then
5346 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5347 if test "$cross_compiling" = yes; then :
5350 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5351 /* end confdefs.h. */
5354 #if ((' ' & 0x0FF) == 0x020)
5355 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5356 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5358 # define ISLOWER(c) \
5359 (('a' <= (c) && (c) <= 'i') \
5360 || ('j' <= (c) && (c) <= 'r') \
5361 || ('s' <= (c) && (c) <= 'z'))
5362 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5365 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5370 for (i = 0; i < 256; i++)
5371 if (XOR (islower (i), ISLOWER (i))
5372 || toupper (i) != TOUPPER (i))
5377 if ac_fn_c_try_run
"$LINENO"; then :
5380 ac_cv_header_stdc
=no
5382 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5383 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5389 $as_echo "$ac_cv_header_stdc" >&6; }
5390 if test $ac_cv_header_stdc = yes; then
5392 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5396 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5397 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5398 inttypes.h stdint.h unistd.h
5400 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5401 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5403 eval as_val
=\$
$as_ac_Header
5404 if test "x$as_val" = x
""yes; then :
5405 cat >>confdefs.h
<<_ACEOF
5406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5414 for ac_header
in stdlib.h string.h
strings.h sys
/stat.h sys
/types.h unistd.h
5416 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5418 eval as_val
=\$
$as_ac_Header
5419 if test "x$as_val" = x
""yes; then :
5420 cat >>confdefs.h
<<_ACEOF
5421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5429 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
5430 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5432 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5434 $as_echo_n "(cached) " >&6
5436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5450 if ac_fn_c_try_compile
"$LINENO"; then :
5451 eval "$as_ac_Header=yes"
5453 eval "$as_ac_Header=no"
5455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5457 eval ac_res
=\$
$as_ac_Header
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5459 $as_echo "$ac_res" >&6; }
5460 eval as_val
=\$
$as_ac_Header
5461 if test "x$as_val" = x
""yes; then :
5462 cat >>confdefs.h
<<_ACEOF
5463 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5466 ac_header_dirent
=$ac_hdr; break
5470 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5471 if test $ac_header_dirent = dirent.h
; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5473 $as_echo_n "checking for library containing opendir... " >&6; }
5474 if test "${ac_cv_search_opendir+set}" = set; then :
5475 $as_echo_n "(cached) " >&6
5477 ac_func_search_save_LIBS
=$LIBS
5478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5479 /* end confdefs.h. */
5481 /* Override any GCC internal prototype to avoid an error.
5482 Use char because int might match the return type of a GCC
5483 builtin and then its argument prototype would still apply. */
5496 for ac_lib
in '' dir
; do
5497 if test -z "$ac_lib"; then
5498 ac_res
="none required"
5501 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5503 if ac_fn_c_try_link
"$LINENO"; then :
5504 ac_cv_search_opendir
=$ac_res
5506 rm -f core conftest.err conftest.
$ac_objext \
5508 if test "${ac_cv_search_opendir+set}" = set; then :
5512 if test "${ac_cv_search_opendir+set}" = set; then :
5515 ac_cv_search_opendir
=no
5518 LIBS
=$ac_func_search_save_LIBS
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5521 $as_echo "$ac_cv_search_opendir" >&6; }
5522 ac_res
=$ac_cv_search_opendir
5523 if test "$ac_res" != no
; then :
5524 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5530 $as_echo_n "checking for library containing opendir... " >&6; }
5531 if test "${ac_cv_search_opendir+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 ac_func_search_save_LIBS
=$LIBS
5535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5538 /* Override any GCC internal prototype to avoid an error.
5539 Use char because int might match the return type of a GCC
5540 builtin and then its argument prototype would still apply. */
5553 for ac_lib
in '' x
; do
5554 if test -z "$ac_lib"; then
5555 ac_res
="none required"
5558 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5560 if ac_fn_c_try_link
"$LINENO"; then :
5561 ac_cv_search_opendir
=$ac_res
5563 rm -f core conftest.err conftest.
$ac_objext \
5565 if test "${ac_cv_search_opendir+set}" = set; then :
5569 if test "${ac_cv_search_opendir+set}" = set; then :
5572 ac_cv_search_opendir
=no
5575 LIBS
=$ac_func_search_save_LIBS
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5578 $as_echo "$ac_cv_search_opendir" >&6; }
5579 ac_res
=$ac_cv_search_opendir
5580 if test "$ac_res" != no
; then :
5581 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5597 if test -n "$ac_tool_prefix"; then
5598 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5599 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5603 $as_echo_n "(cached) " >&6
5605 if test -n "$RANLIB"; then
5606 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5612 test -z "$as_dir" && as_dir
=.
5613 for ac_exec_ext
in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 RANLIB
=$ac_cv_prog_RANLIB
5626 if test -n "$RANLIB"; then
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5628 $as_echo "$RANLIB" >&6; }
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5636 if test -z "$ac_cv_prog_RANLIB"; then
5637 ac_ct_RANLIB
=$RANLIB
5638 # Extract the first word of "ranlib", so it can be a program name with args.
5639 set dummy ranlib
; ac_word
=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$ac_ct_RANLIB"; then
5646 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir
=.
5653 for ac_exec_ext
in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5666 if test -n "$ac_ct_RANLIB"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5668 $as_echo "$ac_ct_RANLIB" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5674 if test "x$ac_ct_RANLIB" = x
; then
5677 case $cross_compiling:$ac_tool_warned in
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5681 ac_tool_warned
=yes ;;
5683 RANLIB
=$ac_ct_RANLIB
5686 RANLIB
="$ac_cv_prog_RANLIB"
5690 ac_config_files
="$ac_config_files Makefile"
5692 ac_config_commands
="$ac_config_commands default"
5694 cat >confcache
<<\_ACEOF
5695 # This file is a shell script that caches the results of configure
5696 # tests run on this system so they can be shared between configure
5697 # scripts and configure runs, see configure's option --config-cache.
5698 # It is not useful on other systems. If it contains results you don't
5699 # want to keep, you may remove or edit it.
5701 # config.status only pays attention to the cache file if you give it
5702 # the --recheck option to rerun configure.
5704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5710 # The following way of writing the cache mishandles newlines in values,
5711 # but we know of no workaround that is simple, portable, and efficient.
5712 # So, we kill variables containing newlines.
5713 # Ultrix sh set writes to stderr and can't be redirected directly,
5714 # and sets the high bit in the cache file unless we assign to the vars.
5716 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5717 eval ac_val
=\$
$ac_var
5721 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5725 _ | IFS | as_nl
) ;; #(
5726 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5727 *) { eval $ac_var=; unset $ac_var;} ;;
5733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5734 *${as_nl}ac_space
=\
*)
5735 # `set' does not quote correctly, so add quotes: double-quote
5736 # substitution turns \\\\ into \\, and sed turns \\ into \.
5739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5742 # `set' quotes correctly as required by POSIX, so do not add quotes.
5743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5756 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5757 if test -w "$cache_file"; then
5758 test "x$cache_file" != "x/dev/null" &&
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5760 $as_echo "$as_me: updating cache $cache_file" >&6;}
5761 cat confcache
>$cache_file
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5764 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5769 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5770 # Let make expand exec_prefix.
5771 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5773 DEFS
=-DHAVE_CONFIG_H
5777 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5778 # 1. Remove the extension, and $U if already installed.
5779 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5780 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5782 # will be set to the directory where LIBOBJS objects are built.
5783 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5784 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5788 LTLIBOBJS
=$ac_ltlibobjs
5792 : ${CONFIG_STATUS=./config.status}
5794 ac_clean_files_save
=$ac_clean_files
5795 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5797 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5799 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5801 # Generated by $as_me.
5802 # Run this file to recreate the current configuration.
5803 # Compiler output produced by configure, useful for debugging
5804 # configure, is in config.log if it exists.
5810 SHELL=\${CONFIG_SHELL-$SHELL}
5813 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5814 ## -------------------- ##
5815 ## M4sh Initialization. ##
5816 ## -------------------- ##
5818 # Be more Bourne compatible
5819 DUALCASE
=1; export DUALCASE
# for MKS sh
5820 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5824 # is contrary to our usage. Disable this feature.
5825 alias -g '${1+"$@"}'='"$@"'
5826 setopt NO_GLOB_SUBST
5828 case `(set -o) 2>/dev/null` in #(
5840 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5841 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5842 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5843 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5844 # Prefer a ksh shell builtin over an external printf program on Solaris,
5845 # but without wasting forks for bash or zsh.
5846 if test -z "$BASH_VERSION$ZSH_VERSION" \
5847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5848 as_echo='print
-r --'
5849 as_echo_n='print
-rn --'
5850 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5851 as_echo='printf %s
\n'
5852 as_echo_n='printf %s
'
5854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5855 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5856 as_echo_n='/usr
/ucb
/echo -n'
5858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5859 as_echo_n_body='eval
5863 expr "X$arg" : "X\\(.*\\)$as_nl";
5864 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5866 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5868 export as_echo_n_body
5869 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5872 as_echo='sh
-c $as_echo_body as_echo
'
5875 # The user is always right.
5876 if test "${PATH_SEPARATOR+set}" != set; then
5878 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5879 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5886 # We need space, tab and new line, in precisely that order. Quoting is
5887 # there to prevent editors from complaining about space-tab.
5888 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5889 # splitting by setting IFS to empty value.)
5892 # Find who we are. Look in the path if we contain no directory separator.
5894 *[\\/]* ) as_myself=$0 ;;
5895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5906 # We did not find ourselves, most probably we were run as `sh COMMAND'
5907 # in which case we are not to be found in the path.
5908 if test "x$as_myself" = x
; then
5911 if test ! -f "$as_myself"; then
5912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5916 # Unset variables that we do not need and which cause bugs (e.g. in
5917 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5918 # suppresses any "Segmentation fault" message there. '((' could
5919 # trigger a bug in pdksh 5.2.14.
5920 for as_var
in BASH_ENV ENV MAIL MAILPATH
5921 do eval test x\
${$as_var+set} = xset \
5922 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5935 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5938 # as_fn_error ERROR [LINENO LOG_FD]
5939 # ---------------------------------
5940 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5941 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5942 # script with status $?, using 1 if that was 0.
5945 as_status
=$?
; test $as_status -eq 0 && as_status
=1
5947 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5950 $as_echo "$as_me: error: $1" >&2
5951 as_fn_exit
$as_status
5955 # as_fn_set_status STATUS
5956 # -----------------------
5957 # Set $? to STATUS, without forking.
5961 } # as_fn_set_status
5965 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5975 # Portably unset VAR.
5978 { eval $1=; unset $1;}
5980 as_unset
=as_fn_unset
5981 # as_fn_append VAR VALUE
5982 # ----------------------
5983 # Append the text in VALUE to the end of the definition contained in VAR. Take
5984 # advantage of any shell optimizations that allow amortized linear growth over
5985 # repeated appends, instead of the typical quadratic growth present in naive
5987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5988 eval 'as_fn_append ()
5999 # as_fn_arith ARG...
6000 # ------------------
6001 # Perform arithmetic evaluation on the ARGs, and store the result in the
6002 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6003 # must be portable across $(()) and expr.
6004 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6005 eval 'as_fn_arith ()
6012 as_val
=`expr "$@" || test $? -eq 1`
6017 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6018 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6024 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6025 as_basename
=basename
6030 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6036 as_me
=`$as_basename -- "$0" ||
6037 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6038 X"$0" : 'X\(//\)$' \| \
6039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6041 sed '/^.*\/\([^/][^/]*\)\/*$/{
6055 # Avoid depending upon Character Ranges.
6056 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6057 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6058 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6059 as_cr_digits
='0123456789'
6060 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6062 ECHO_C
= ECHO_N
= ECHO_T
=
6063 case `echo -n x` in #(((((
6065 case `echo 'xy\c'` in
6066 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6068 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6075 rm -f conf$$ conf$$.exe conf$$.
file
6076 if test -d conf$$.dir
; then
6077 rm -f conf$$.dir
/conf$$.
file
6080 mkdir conf$$.dir
2>/dev
/null
6082 if (echo >conf$$.
file) 2>/dev
/null
; then
6083 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6085 # ... but there are two gotchas:
6086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6088 # In both cases, we have to default to `cp -p'.
6089 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6091 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6099 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6100 rmdir conf$$.dir
2>/dev
/null
6105 # Create "$as_dir" as a directory, including parents if necessary.
6110 -*) as_dir
=.
/$as_dir;;
6112 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6116 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6117 *) as_qdir
=$as_dir;;
6119 as_dirs
="'$as_qdir' $as_dirs"
6120 as_dir
=`$as_dirname -- "$as_dir" ||
6121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6122 X"$as_dir" : 'X\(//\)[^/]' \| \
6123 X"$as_dir" : 'X\(//\)$' \| \
6124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6125 $as_echo X"$as_dir" |
6126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6143 test -d "$as_dir" && break
6145 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6146 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6150 if mkdir
-p .
2>/dev
/null
; then
6151 as_mkdir_p
='mkdir -p "$as_dir"'
6153 test -d .
/-p && rmdir .
/-p
6157 if test -x / >/dev
/null
2>&1; then
6160 if ls -dL / >/dev
/null
2>&1; then
6167 if test -d "$1"; then
6173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6174 ???[sx]*):;;*)false;;esac;fi
6178 as_executable_p
=$as_test_x
6180 # Sed expression to map a string onto a valid CPP name.
6181 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6183 # Sed expression to map a string onto a valid variable name.
6184 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6188 ## ----------------------------------- ##
6189 ## Main body of $CONFIG_STATUS script. ##
6190 ## ----------------------------------- ##
6192 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6195 # Save the log message, to keep $0 and so on meaningful, and to
6196 # report actual input values of CONFIG_FILES etc. instead of their
6197 # values after options handling.
6199 This file was extended by $as_me, which was
6200 generated by GNU Autoconf 2.64. Invocation command line was
6202 CONFIG_FILES = $CONFIG_FILES
6203 CONFIG_HEADERS = $CONFIG_HEADERS
6204 CONFIG_LINKS = $CONFIG_LINKS
6205 CONFIG_COMMANDS = $CONFIG_COMMANDS
6208 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6213 case $ac_config_files in *"
6214 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6217 case $ac_config_headers in *"
6218 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6223 # Files that config.status was made for.
6224 config_files="$ac_config_files"
6225 config_headers="$ac_config_headers"
6226 config_commands="$ac_config_commands"
6230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6232 \`$as_me' instantiates files and other configuration actions
6233 from templates according to the current configuration. Unless the files
6234 and actions are specified as TAGs, all are instantiated by default.
6236 Usage: $0 [OPTION]... [TAG]...
6238 -h, --help print this help, then exit
6239 -V, --version print version number and configuration settings, then exit
6240 -q, --quiet, --silent
6241 do not print progress messages
6242 -d, --debug don't remove temporary files
6243 --recheck update $as_me by reconfiguring in the same conditions
6244 --file=FILE[:TEMPLATE]
6245 instantiate the configuration file FILE
6246 --header=FILE[:TEMPLATE]
6247 instantiate the configuration header FILE
6249 Configuration files:
6252 Configuration headers:
6255 Configuration commands:
6258 Report bugs to the package provider."
6261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6264 configured by $0, generated by GNU Autoconf 2.64,
6265 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6267 Copyright (C) 2009 Free Software Foundation, Inc.
6268 This config.status script is free software; the Free Software Foundation
6269 gives unlimited permission to copy, distribute and modify it."
6274 test -n "\$AWK" || AWK=awk
6277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6278 # The default lists apply if the user does not specify any file.
6284 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6285 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6296 # Handling of the options.
6297 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6299 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6300 $as_echo "$ac_cs_version"; exit ;;
6301 --debug |
--debu |
--deb |
--de |
--d |
-d )
6303 --file |
--fil |
--fi |
--f )
6306 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6308 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6309 ac_need_defaults
=false
;;
6310 --header |
--heade |
--head |
--hea )
6313 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6315 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6316 ac_need_defaults
=false
;;
6318 # Conflict between --help and --header
6319 as_fn_error
"ambiguous option: \`$1'
6320 Try \`$0 --help' for more information.";;
6321 --help |
--hel |
-h )
6322 $as_echo "$ac_cs_usage"; exit ;;
6323 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6324 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6328 -*) as_fn_error
"unrecognized option: \`$1'
6329 Try \`$0 --help' for more information." ;;
6331 *) as_fn_append ac_config_targets
" $1"
6332 ac_need_defaults
=false
;;
6338 ac_configure_extra_args
=
6340 if $ac_cs_silent; then
6342 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6347 if \$ac_cs_recheck; then
6348 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6350 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6351 CONFIG_SHELL='$SHELL'
6357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6361 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6362 ## Running $as_me. ##
6368 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6373 # Handling of arguments.
6374 for ac_config_target
in $ac_config_targets
6376 case $ac_config_target in
6377 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
6378 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6379 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
6381 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6386 # If the user did not use the arguments to specify the items to instantiate,
6387 # then the envvar interface is used. Set only those that are not.
6388 # We use the long form for the default assignment because of an extremely
6389 # bizarre bug on SunOS 4.1.3.
6390 if $ac_need_defaults; then
6391 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6392 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6393 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6396 # Have a temporary directory for convenience. Make it in the build tree
6397 # simply because there is no reason against having it here, and in addition,
6398 # creating and moving files from /tmp can sometimes cause problems.
6399 # Hook for its removal unless debugging.
6400 # Note that there is a small window in which the directory will not be cleaned:
6401 # after its creation but before its name has been assigned to `$tmp'.
6405 trap 'exit_status=$?
6406 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6408 trap 'as_fn_exit 1' 1 2 13 15
6410 # Create a (secure) tmp directory for tmp files.
6413 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6414 test -n "$tmp" && test -d "$tmp"
6417 tmp
=.
/conf$$
-$RANDOM
6418 (umask 077 && mkdir
"$tmp")
6419 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6421 # Set up the scripts for CONFIG_FILES section.
6422 # No need to generate them if there are no CONFIG_FILES.
6423 # This happens for instance with `./config.status config.h'.
6424 if test -n "$CONFIG_FILES"; then
6427 ac_cr
=`echo X | tr X '\015'`
6428 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6429 # But we know of no other shell where ac_cr would be empty at this
6430 # point, so we can use a bashism as a fallback.
6431 if test "x$ac_cr" = x
; then
6432 eval ac_cr
=\$
\'\\r
\'
6434 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6435 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6441 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6446 echo "cat >conf$$subs.awk <<_ACEOF" &&
6447 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6450 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6451 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6453 for ac_last_try in false false false false false :; do
6454 . ./conf$$subs.sh ||
6455 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6457 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6458 if test $ac_delim_n = $ac_delim_num; then
6460 elif $ac_last_try; then
6461 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6463 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6469 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6473 s/^/S["/; s
/!.
*/"]=/
6483 s/\(.\{148\}\).*/\1/
6485 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6490 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6497 s/\(.\{148\}\).*/\1/
6499 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6503 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6508 ' <conf$$subs.awk | sed '
6513 ' >>$CONFIG_STATUS || ac_write_fail=1
6514 rm -f conf$$subs.awk
6515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6517 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6518 for (key in S) S_is_set[key] = 1
6524 nfields = split(line, field, "@
")
6526 len = length(field[1])
6527 for (i = 2; i < nfields; i++) {
6529 keylen = length(key)
6530 if (S_is_set[key]) {
6532 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6533 len += length(value) + length(field[++i])
6544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6545 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6546 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6549 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6550 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6553 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6554 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6555 # trailing colons and then remove the whole line if VPATH becomes empty
6556 # (actually we leave an empty line to preserve line numbers).
6557 if test "x
$srcdir" = x.; then
6558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6562 s/^\([^=]*=[ ]*\):*/\1/
6568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6569 fi # test -n "$CONFIG_FILES"
6571 # Set up the scripts for CONFIG_HEADERS section.
6572 # No need to generate them if there are no CONFIG_HEADERS.
6573 # This happens for instance with `./config.status Makefile'.
6574 if test -n "$CONFIG_HEADERS"; then
6575 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6579 # Transform confdefs.h into an awk script `defines.awk', embedded as
6580 # here-document in config.status, that substitutes the proper values into
6581 # config.h.in to produce config.h.
6583 # Create a delimiter string that does not exist in confdefs.h, to ease
6584 # handling of long lines.
6586 for ac_last_try in false false :; do
6587 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6588 if test -z "$ac_t"; then
6590 elif $ac_last_try; then
6591 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6593 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6597 # For the awk script, D is an array of macro values keyed by name,
6598 # likewise P contains macro parameters if any. Preserve backslash
6599 # newline sequences.
6601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6603 s/.\{148\}/&'"$ac_delim"'/g
6606 s/^[ ]*#[ ]*define[ ][ ]*/ /
6613 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6615 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6620 D["\
1"]=" \
3\\\\\\n
"\\/p
6622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6627 s/.\{148\}/&'"$ac_delim"'/g
6632 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6635 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6637 ' <confdefs.h | sed '
6638 s/'"$ac_delim"'/"\\\
6639 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6642 for (key in D) D_is_set[key] = 1
6645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6647 split(line, arg, " ")
6648 if (arg[1] == "#") {
6652 defundef
= substr
(arg
[1], 2)
6655 split(mac1
, mac2
, "(") #)
6657 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6658 if (D_is_set
[macro
]) {
6659 # Preserve the white space surrounding the "#".
6660 print prefix
"define", macro P
[macro
] D
[macro
]
6663 # Replace #undef with comments. This is necessary, for example,
6664 # in the case of _POSIX_SOURCE, which is predefined and required
6665 # on some systems where configure will not decide to define it.
6666 if (defundef
== "undef") {
6667 print
"/*", prefix defundef
, macro
, "*/"
6675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6676 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
6677 fi # test -n "$CONFIG_HEADERS"
6680 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6685 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6687 case $ac_mode$ac_tag in
6689 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6690 :[FH
]-) ac_tag
=-:-;;
6691 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6708 -) ac_f
="$tmp/stdin";;
6709 *) # Look for the file first in the build tree, then in the source tree
6710 # (if the path is not absolute). The absolute path cannot be DOS-style,
6711 # because $ac_f cannot contain `:'.
6715 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6717 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
6719 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6720 as_fn_append ac_file_inputs
" '$ac_f'"
6723 # Let's still pretend it is `configure' which instantiates (i.e., don't
6724 # use $as_me), people would be surprised to read:
6725 # /* config.h. Generated by config.status. */
6726 configure_input
='Generated from '`
6727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6729 if test x
"$ac_file" != x-
; then
6730 configure_input
="$ac_file. $configure_input"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6732 $as_echo "$as_me: creating $ac_file" >&6;}
6734 # Neutralize special characters interpreted by sed in replacement strings.
6735 case $configure_input in #(
6736 *\
&* |
*\|
* |
*\\* )
6737 ac_sed_conf_input
=`$as_echo "$configure_input" |
6738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6739 *) ac_sed_conf_input
=$configure_input;;
6743 *:-:* |
*:-) cat >"$tmp/stdin" \
6744 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
6749 ac_dir
=`$as_dirname -- "$ac_file" ||
6750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6751 X"$ac_file" : 'X\(//\)[^/]' \| \
6752 X"$ac_file" : 'X\(//\)$' \| \
6753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6754 $as_echo X"$ac_file" |
6755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6772 as_dir
="$ac_dir"; as_fn_mkdir_p
6776 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6778 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6779 # A ".." for each directory in $ac_dir_suffix.
6780 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6781 case $ac_top_builddir_sub in
6782 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6783 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6786 ac_abs_top_builddir
=$ac_pwd
6787 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6788 # for backward compatibility:
6789 ac_top_builddir
=$ac_top_build_prefix
6792 .
) # We are building in place.
6794 ac_top_srcdir
=$ac_top_builddir_sub
6795 ac_abs_top_srcdir
=$ac_pwd ;;
6796 [\\/]* | ?
:[\\/]* ) # Absolute name.
6797 ac_srcdir
=$srcdir$ac_dir_suffix;
6798 ac_top_srcdir
=$srcdir
6799 ac_abs_top_srcdir
=$srcdir ;;
6801 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6802 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6803 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6805 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6815 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
6816 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
6820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6821 # If the template does not know about datarootdir, expand it.
6822 # FIXME: This hack should be removed a few years after 2.60.
6823 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6834 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6835 *datarootdir
*) ac_datarootdir_seen
=yes;;
6836 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6838 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6841 ac_datarootdir_hack='
6842 s&@datadir@&$datadir&g
6843 s&@docdir@&$docdir&g
6844 s&@infodir@&$infodir&g
6845 s&@localedir@&$localedir&g
6846 s&@mandir@&$mandir&g
6847 s&\\\${datarootdir}&$datarootdir&g' ;;
6851 # Neutralize VPATH when `$srcdir' = `.'.
6852 # Shell code in configure.ac might set extrasub.
6853 # FIXME: do we really want to maintain this feature?
6854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6855 ac_sed_extra="$ac_vpsub
6858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6860 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6861 s|@configure_input@|
$ac_sed_conf_input|
;t t
6862 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6863 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6864 s
&@srcdir@
&$ac_srcdir&;t t
6865 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6866 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6867 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6868 s
&@builddir@
&$ac_builddir&;t t
6869 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6870 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6871 s
&@INSTALL@
&$ac_INSTALL&;t t
6872 $ac_datarootdir_hack
6874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
6875 || as_fn_error "could not create
$ac_file" "$LINENO" 5
6877 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
6879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6881 which seems to be undefined. Please make sure it is defined." >&5
6882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6883 which seems to be undefined. Please make sure it is defined." >&2;}
6887 -) cat "$tmp/out" && rm -f "$tmp/out";;
6888 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
6890 || as_fn_error "could not create $ac_file" "$LINENO" 5
6896 if test x"$ac_file" != x-; then
6898 $as_echo "/* $configure_input */" \
6899 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
6900 } >"$tmp/config.h" \
6901 || as_fn_error "could not create $ac_file" "$LINENO" 5
6902 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6907 mv "$tmp/config.h" "$ac_file" \
6908 || as_fn_error "could not create $ac_file" "$LINENO" 5
6911 $as_echo "/* $configure_input */" \
6912 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
6913 || as_fn_error "could not create -" "$LINENO" 5
6917 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6918 $as_echo "$as_me: executing $ac_file commands" >&6;}
6923 case $ac_file$ac_mode in
6924 "default":C) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;;
6932 ac_clean_files=$ac_clean_files_save
6934 test $ac_write_fail = 0 ||
6935 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6938 # configure is writing to config.log, and then calls config.status.
6939 # config.status does its own redirection, appending to config.log.
6940 # Unfortunately, on DOS this fails, as config.log is still kept open
6941 # by configure, so config.status won't be able to
write to it
; its
6942 # output is simply discarded. So we exec the FD to /dev/null,
6943 # effectively closing config.log, so it can be properly (re)opened and
6944 # appended to by config.status. When coming back to configure, we
6945 # need to make the FD available again.
6946 if test "$no_create" != yes; then
6948 ac_config_status_args
=
6949 test "$silent" = yes &&
6950 ac_config_status_args
="$ac_config_status_args --quiet"
6952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6955 # would make configure fail if this is the last instruction.
6956 $ac_cs_success || as_fn_exit $?
6958 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6960 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}