2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for gas 2.26.51.
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
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
558 PACKAGE_TARNAME='gas'
559 PACKAGE_VERSION='2.26.51'
560 PACKAGE_STRING='gas 2.26.51'
564 ac_unique_file="as.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 ac_subst_vars='am__EXEEXT_FALSE
612 MAINTAINER_MODE_FALSE
681 INSTALL_STRIP_PROGRAM
742 program_transform_name
755 enable_option_checking
756 enable_dependency_tracking
767 enable_compressed_debug_sections
768 enable_x86_relax_relocations
769 enable_elf_stt_common
771 enable_build_warnings
773 enable_maintainer_mode
776 ac_precious_vars='build_alias
789 # Initialize some variables set by options.
791 ac_init_version=false
792 ac_unrecognized_opts=
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
905 eval enable_$ac_useropt=no ;;
907 -docdir | --docdir | --docdi | --doc | --do)
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
931 eval enable_$ac_useropt=\$ac_optarg ;;
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
946 -help | --help | --hel | --he | -h)
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
962 htmldir=$ac_optarg ;;
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
976 -libdir | --libdir | --libdi | --libd)
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
988 -localedir | --localedir | --localedi | --localed | --locale)
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1067 -psdir | --psdir | --psdi | --psd | --ps)
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1080 sbindir=$ac_optarg ;;
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1091 sharedstatedir=$ac_optarg ;;
1093 -site | --site | --sit)
1095 -site=* | --site=* | --sit=*)
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=\$ac_optarg ;;
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1151 eval with_$ac_useropt=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) as_fn_error "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information."
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error "missing argument to $ac_option"
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1204 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1222 # Be sure to have absolute directory names.
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1227 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 as_fn_error "working directory cannot be determined"
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 as_fn_error "pwd does not report name of working directory"
1262 # Find the source files, if location was not specified.
1263 if test -z "$srcdir"; then
1264 ac_srcdir_defaulted=yes
1265 # Try the directory containing this script, then the parent directory.
1266 ac_confdir=`$as_dirname -- "$as_myself" ||
1267 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1268 X"$as_myself" : 'X\(//\)[^/]' \| \
1269 X"$as_myself" : 'X\(//\)$' \| \
1270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1271 $as_echo X"$as_myself" |
1272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1294 ac_srcdir_defaulted=no
1296 if test ! -r "$srcdir/$ac_unique_file"; then
1297 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1298 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1302 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1304 # When building in place, set srcdir=.
1305 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 # Remove unnecessary trailing slashes from srcdir.
1309 # Double slashes in file names in object file debugging info
1310 # mess up M-x gdb in Emacs.
1312 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 for ac_var in $ac_precious_vars; do
1315 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_env_${ac_var}_value=\$${ac_var}
1317 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 # Report the --help message.
1324 if test "$ac_init_help" = "long"; then
1325 # Omit some internal or obsolete options to make the list less imposing.
1326 # This message is too long to be a string in the A/UX 3.1 sh.
1328 \`configure' configures gas 2.26.51 to adapt to many kinds of systems.
1330 Usage: $0 [OPTION]... [VAR=VALUE]...
1332 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1333 VAR=VALUE. See below for descriptions of some of the useful variables.
1335 Defaults for the options are specified in brackets.
1338 -h, --help display this help and exit
1339 --help=short display options specific to this package
1340 --help=recursive display the short help of all the included packages
1341 -V, --version display version information and exit
1342 -q, --quiet, --silent do not print \`checking...' messages
1343 --cache-file=FILE cache test results in FILE [disabled]
1344 -C, --config-cache alias for \`--cache-file=config.cache'
1345 -n, --no-create do not create output files
1346 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1348 Installation directories:
1349 --prefix=PREFIX install architecture-independent files in PREFIX
1350 [$ac_default_prefix]
1351 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 By default, \`make install' will install all the files in
1355 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1356 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1357 for instance \`--prefix=\$HOME'.
1359 For better control, use the options below.
1361 Fine tuning of the installation directories:
1362 --bindir=DIR user executables [EPREFIX/bin]
1363 --sbindir=DIR system admin executables [EPREFIX/sbin]
1364 --libexecdir=DIR program executables [EPREFIX/libexec]
1365 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1366 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1367 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1368 --libdir=DIR object code libraries [EPREFIX/lib]
1369 --includedir=DIR C header files [PREFIX/include]
1370 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1371 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1372 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1373 --infodir=DIR info documentation [DATAROOTDIR/info]
1374 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1375 --mandir=DIR man documentation [DATAROOTDIR/man]
1376 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
1377 --htmldir=DIR html documentation [DOCDIR]
1378 --dvidir=DIR dvi documentation [DOCDIR]
1379 --pdfdir=DIR pdf documentation [DOCDIR]
1380 --psdir=DIR ps documentation [DOCDIR]
1386 --program-prefix=PREFIX prepend PREFIX to installed program names
1387 --program-suffix=SUFFIX append SUFFIX to installed program names
1388 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1391 --build=BUILD configure for building on BUILD [guessed]
1392 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1393 --target=TARGET configure for building compilers for TARGET [HOST]
1397 if test -n "$ac_init_help"; then
1398 case $ac_init_help in
1399 short | recursive ) echo "Configuration of gas 2.26.51:";;
1404 --disable-option-checking ignore unrecognized --enable/--with options
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --disable-dependency-tracking speeds up one-time build
1408 --enable-dependency-tracking do not reject slow dependency extractors
1409 --enable-shared[=PKGS] build shared libraries [default=yes]
1410 --enable-static[=PKGS] build static libraries [default=yes]
1411 --enable-fast-install[=PKGS]
1412 optimize for fast installation [default=yes]
1413 --disable-libtool-lock avoid locking (might break parallel builds)
1414 --enable-plugins Enable support for plugins
1415 --disable-largefile omit support for large files
1416 --enable-targets alternative target configurations besides the primary
1417 --enable-checking enable run-time checks
1418 --enable-compressed-debug-sections={all,gas,none}
1419 compress debug sections by default
1420 --enable-x86-relax-relocations
1421 generate x86 relax relocations by default
1422 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1424 --enable-werror treat compile warnings as errors
1425 --enable-build-warnings enable build-time compiler warnings
1426 --disable-nls do not use Native Language Support
1427 --enable-maintainer-mode enable make rules and dependencies not useful
1428 (and sometimes confusing) to the casual installer
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-system-zlib use installed libz
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1447 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1448 the first program found out of: `bison -y', `byacc', `yacc'.
1449 YFLAGS The list of arguments that will be passed by default to $YACC.
1450 This script will default YFLAGS to the empty string to avoid a
1451 default value of `-d' given by some make applications.
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 Report bugs to the package provider.
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1486 .) # We are building in place.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1519 gas configure 2.26.51
1520 generated by GNU Autoconf 2.64
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569 } # ac_fn_c_try_compile
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 } # ac_fn_c_try_link
1617 # ac_fn_c_try_cpp LINENO
1618 # ----------------------
1619 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632 if test -s conftest.err; then
1633 grep -v '^ *+' conftest.err >conftest.er1
1634 cat conftest.er1 >&5
1635 mv -f conftest.er1 conftest.err
1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638 test $ac_status = 0; } >/dev/null && {
1639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1640 test ! -s conftest.err
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1649 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1657 # the include files in INCLUDES and setting the cache variable VAR
1659 ac_fn_c_check_header_mongrel ()
1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666 $as_echo_n "(cached) " >&6
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1672 # Is the header compilable?
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1674 $as_echo_n "checking $2 usability... " >&6; }
1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681 ac_header_compiler=yes
1683 ac_header_compiler=no
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1687 $as_echo "$ac_header_compiler" >&6; }
1689 # Is the header present?
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1691 $as_echo_n "checking $2 presence... " >&6; }
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1696 if ac_fn_c_try_cpp "$LINENO"; then :
1697 ac_header_preproc=yes
1699 ac_header_preproc=no
1701 rm -f conftest.err conftest.$ac_ext
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1703 $as_echo "$ac_header_preproc" >&6; }
1705 # So? What about this header?
1706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1709 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1715 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1717 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1719 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1721 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1723 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1727 $as_echo_n "checking for $2... " >&6; }
1728 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1729 $as_echo_n "(cached) " >&6
1731 eval "$3=\$ac_header_compiler"
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739 } # ac_fn_c_check_header_mongrel
1741 # ac_fn_c_try_run LINENO
1742 # ----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1744 # that executables *can* be run.
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>&5
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1759 { { case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_try") 2>&5
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; }; }; then :
1771 $as_echo "$as_me: program exited with status $ac_status" >&5
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1775 ac_retval=$ac_status
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1784 # -------------------------------------------------------
1785 # Tests whether HEADER exists and can be compiled using the include files in
1786 # INCLUDES, setting the cache variable VAR accordingly.
1787 ac_fn_c_check_header_compile ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793 $as_echo_n "(cached) " >&6
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1800 if ac_fn_c_try_compile "$LINENO"; then :
1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_check_header_compile
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1823 $as_echo_n "(cached) " >&6
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1837 # include <limits.h>
1839 # include <assert.h>
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1866 if ac_fn_c_try_link "$LINENO"; then :
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 } # ac_fn_c_check_func
1881 # ac_fn_c_check_decl LINENO SYMBOL VAR
1882 # ------------------------------------
1883 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1884 ac_fn_c_check_decl ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 as_decl_name=`echo $2|sed 's/ *(.*//'`
1888 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1890 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892 $as_echo_n "(cached) " >&6
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1900 #ifndef $as_decl_name
1902 (void) $as_decl_use;
1904 (void) $as_decl_name;
1912 if ac_fn_c_try_compile "$LINENO"; then :
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 } # ac_fn_c_check_decl
1925 cat >config.log <<_ACEOF
1926 This file contains any messages produced by compilers while
1927 running configure, to aid debugging if configure makes a mistake.
1929 It was created by gas $as_me 2.26.51, which was
1930 generated by GNU Autoconf 2.64. Invocation command line was
1942 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1943 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1944 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1945 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1946 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1948 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1949 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1951 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1952 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1953 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1954 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1955 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1956 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1957 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 $as_echo "PATH: $as_dir"
1982 # Keep a trace of the command line.
1983 # Strip out --no-create and --no-recursion so they do not pile up.
1984 # Strip out --silent because we don't want to record it for future runs.
1985 # Also quote any args containing shell meta-characters.
1986 # Make two passes to allow for proper duplicate-argument suppression.
1990 ac_must_keep_next=false
1996 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1997 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1998 | -silent | --silent | --silen | --sile | --sil)
2001 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2004 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2006 as_fn_append ac_configure_args1 " '$ac_arg'"
2007 if test $ac_must_keep_next = true; then
2008 ac_must_keep_next=false # Got value, back to normal.
2011 *=* | --config-cache | -C | -disable-* | --disable-* \
2012 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2013 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2014 | -with-* | --with-* | -without-* | --without-* | --x)
2015 case "$ac_configure_args0 " in
2016 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2019 -* ) ac_must_keep_next=true ;;
2022 as_fn_append ac_configure_args " '$ac_arg'"
2027 { ac_configure_args0=; unset ac_configure_args0;}
2028 { ac_configure_args1=; unset ac_configure_args1;}
2030 # When interrupted or exit'd, cleanup temporary files, and complete
2031 # config.log. We remove comments because anyway the quotes in there
2032 # would cause problems or look ugly.
2033 # WARNING: Use '\'' to represent an apostrophe within the trap.
2034 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2035 trap 'exit_status=$?
2036 # Save into config.log some information that might help in debugging.
2041 ## ---------------- ##
2042 ## Cache variables. ##
2043 ## ---------------- ##
2046 # The following way of writing the cache mishandles newlines in values,
2048 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2049 eval ac_val=\$$ac_var
2053 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2054 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2057 _ | IFS | as_nl) ;; #(
2058 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2059 *) { eval $ac_var=; unset $ac_var;} ;;
2064 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2065 *${as_nl}ac_space=\ *)
2067 "s/'\''/'\''\\\\'\'''\''/g;
2068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2071 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2079 ## ----------------- ##
2080 ## Output variables. ##
2081 ## ----------------- ##
2084 for ac_var in $ac_subst_vars
2086 eval ac_val=\$$ac_var
2088 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090 $as_echo "$ac_var='\''$ac_val'\''"
2094 if test -n "$ac_subst_files"; then
2096 ## ------------------- ##
2097 ## File substitutions. ##
2098 ## ------------------- ##
2101 for ac_var in $ac_subst_files
2103 eval ac_val=\$$ac_var
2105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2107 $as_echo "$ac_var='\''$ac_val'\''"
2112 if test -s confdefs.h; then
2122 test "$ac_signal" != 0 &&
2123 $as_echo "$as_me: caught signal $ac_signal"
2124 $as_echo "$as_me: exit $exit_status"
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2130 for ac_signal in 1 2 13 15; do
2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2138 $as_echo "/* confdefs.h */" > confdefs.h
2140 # Predefined preprocessor variables.
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_NAME "$PACKAGE_NAME"
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_URL "$PACKAGE_URL"
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2171 if test -n "$CONFIG_SITE"; then
2172 ac_site_file1=$CONFIG_SITE
2173 elif test "x$prefix" != xNONE; then
2174 ac_site_file1=$prefix/share/config.site
2175 ac_site_file2=$prefix/etc/config.site
2177 ac_site_file1=$ac_default_prefix/share/config.site
2178 ac_site_file2=$ac_default_prefix/etc/config.site
2180 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2182 test "x$ac_site_file" = xNONE && continue
2183 if test -r "$ac_site_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2185 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2186 sed 's/^/| /' "$ac_site_file" >&5
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special
2193 # files actually), so we avoid doing that.
2194 if test -f "$cache_file"; then
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 $as_echo "$as_me: loading cache $cache_file" >&6;}
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 $as_echo "$as_me: creating cache $cache_file" >&6;}
2208 # Check that the precious variables saved in the cache have kept the same
2210 ac_cache_corrupted=false
2211 for ac_var in $ac_precious_vars; do
2212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2213 eval ac_new_set=\$ac_env_${ac_var}_set
2214 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2215 eval ac_new_val=\$ac_env_${ac_var}_value
2216 case $ac_old_set,$ac_new_set in
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2219 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2220 ac_cache_corrupted=: ;;
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2223 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2224 ac_cache_corrupted=: ;;
2227 if test "x$ac_old_val" != "x$ac_new_val"; then
2228 # differences in whitespace do not lead to failure.
2229 ac_old_val_w=`echo x $ac_old_val`
2230 ac_new_val_w=`echo x $ac_new_val`
2231 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2233 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2234 ac_cache_corrupted=:
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2237 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2238 eval $ac_var=\$ac_old_val
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2241 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2243 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2246 # Pass precious variables to config.status.
2247 if test "$ac_new_set" = set; then
2249 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2250 *) ac_arg=$ac_var=$ac_new_val ;;
2252 case " $ac_configure_args " in
2253 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2254 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2258 if $ac_cache_corrupted; then
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2262 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2263 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2265 ## -------------------- ##
2266 ## Main body of script. ##
2267 ## -------------------- ##
2270 ac_cpp='$CPP $CPPFLAGS'
2271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2282 for ac_dir in .. "$srcdir"/..; do
2283 for ac_t in install-sh install.sh shtool; do
2284 if test -f "$ac_dir/$ac_t"; then
2286 ac_install_sh="$ac_aux_dir/$ac_t -c"
2291 if test -z "$ac_aux_dir"; then
2292 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304 # Make sure we can run config.sub.
2305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2306 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2309 $as_echo_n "checking build system type... " >&6; }
2310 if test "${ac_cv_build+set}" = set; then :
2311 $as_echo_n "(cached) " >&6
2313 ac_build_alias=$build_alias
2314 test "x$ac_build_alias" = x &&
2315 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2316 test "x$ac_build_alias" = x &&
2317 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2319 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2323 $as_echo "$ac_cv_build" >&6; }
2324 case $ac_cv_build in
2326 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2329 ac_save_IFS=$IFS; IFS='-'
2335 # Remember, the first character of IFS is used to create $*,
2336 # except with old shells:
2339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2343 $as_echo_n "checking host system type... " >&6; }
2344 if test "${ac_cv_host+set}" = set; then :
2345 $as_echo_n "(cached) " >&6
2347 if test "x$host_alias" = x; then
2348 ac_cv_host=$ac_cv_build
2350 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2351 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2356 $as_echo "$ac_cv_host" >&6; }
2359 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2362 ac_save_IFS=$IFS; IFS='-'
2368 # Remember, the first character of IFS is used to create $*,
2369 # except with old shells:
2372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2376 $as_echo_n "checking target system type... " >&6; }
2377 if test "${ac_cv_target+set}" = set; then :
2378 $as_echo_n "(cached) " >&6
2380 if test "x$target_alias" = x; then
2381 ac_cv_target=$ac_cv_host
2383 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2384 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2389 $as_echo "$ac_cv_target" >&6; }
2390 case $ac_cv_target in
2392 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2394 target=$ac_cv_target
2395 ac_save_IFS=$IFS; IFS='-'
2401 # Remember, the first character of IFS is used to create $*,
2402 # except with old shells:
2405 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2408 # The aliases save the names the user supplied, while $host etc.
2409 # will get canonicalized.
2410 test -n "$target_alias" &&
2411 test "$program_prefix$program_suffix$program_transform_name" = \
2413 program_prefix=${target_alias}-
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419 if test -n "$ac_tool_prefix"; then
2420 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2421 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2423 $as_echo_n "checking for $ac_word... " >&6; }
2424 if test "${ac_cv_prog_CC+set}" = set; then :
2425 $as_echo_n "(cached) " >&6
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2448 if test -n "$CC"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2450 $as_echo "$CC" >&6; }
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2453 $as_echo "no" >&6; }
2458 if test -z "$ac_cv_prog_CC"; then
2460 # Extract the first word of "gcc", so it can be a program name with args.
2461 set dummy gcc; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
2467 if test -n "$ac_ct_CC"; then
2468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_ac_ct_CC="gcc"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2488 if test -n "$ac_ct_CC"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2490 $as_echo "$ac_ct_CC" >&6; }
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2496 if test "x$ac_ct_CC" = x; then
2499 case $cross_compiling:$ac_tool_warned in
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2503 ac_tool_warned=yes ;;
2511 if test -z "$CC"; then
2512 if test -n "$ac_tool_prefix"; then
2513 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}cc; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if test "${ac_cv_prog_CC+set}" = set; then :
2518 $as_echo_n "(cached) " >&6
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_CC="${ac_tool_prefix}cc"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$CC"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2543 $as_echo "$CC" >&6; }
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2552 if test -z "$CC"; then
2553 # Extract the first word of "cc", so it can be a program name with args.
2554 set dummy cc; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572 ac_prog_rejected=yes
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test $ac_prog_rejected = yes; then
2584 # We found a bogon in the path, so make sure we never use it.
2585 set dummy $ac_cv_prog_CC
2587 if test $# != 0; then
2588 # We chose a different compiler from the bogus one.
2589 # However, it has the same basename, so the bogon will be chosen
2590 # first if we set CC to just the basename; use the full file name.
2592 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2598 if test -n "$CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2600 $as_echo "$CC" >&6; }
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2608 if test -z "$CC"; then
2609 if test -n "$ac_tool_prefix"; then
2610 for ac_prog in cl.exe
2612 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if test "${ac_cv_prog_CC+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2619 if test -n "$CC"; then
2620 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 if test -n "$CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2649 test -n "$CC" && break
2652 if test -z "$CC"; then
2654 for ac_prog in cl.exe
2656 # Extract the first word of "$ac_prog", so it can be a program name with args.
2657 set dummy $ac_prog; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2661 $as_echo_n "(cached) " >&6
2663 if test -n "$ac_ct_CC"; then
2664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673 ac_cv_prog_ac_ct_CC="$ac_prog"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684 if test -n "$ac_ct_CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2686 $as_echo "$ac_ct_CC" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2693 test -n "$ac_ct_CC" && break
2696 if test "x$ac_ct_CC" = x; then
2699 case $cross_compiling:$ac_tool_warned in
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2703 ac_tool_warned=yes ;;
2712 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2714 as_fn_error "no acceptable C compiler found in \$PATH
2715 See \`config.log' for more details." "$LINENO" 5; }
2717 # Provide some information about the compiler.
2718 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2721 for ac_option in --version -v -V -qversion; do
2722 { { ac_try="$ac_compiler $ac_option >&5"
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2728 $as_echo "$ac_try_echo"; } >&5
2729 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2731 if test -s conftest.err; then
2733 ... rest of stderr output deleted ...
2734 10q' conftest.err >conftest.er1
2735 cat conftest.er1 >&5
2736 rm -f conftest.er1 conftest.err
2738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2739 test $ac_status = 0; }
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743 /* end confdefs.h. */
2753 ac_clean_files_save=$ac_clean_files
2754 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2755 # Try to create an executable without -o first, disregard a.out.
2756 # It will help us diagnose broken compilers, and finding out an intuition
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2759 $as_echo_n "checking for C compiler default output file name... " >&6; }
2760 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2762 # The possible output files:
2763 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766 for ac_file in $ac_files
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 if { { ac_try="$ac_link_default"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2781 $as_echo "$ac_try_echo"; } >&5
2782 (eval "$ac_link_default") 2>&5
2784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2785 test $ac_status = 0; }; then :
2786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2789 # so that the user can short-circuit this test for compilers unknown to
2791 for ac_file in $ac_files ''
2793 test -f "$ac_file" || continue
2795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2798 # We found the default executable, but exeext='' is most
2802 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 # We set ac_cv_exeext here because the later test for it is not
2807 # safe: cross compilers may not add the suffix if given an `-o'
2808 # argument, so we may need to know it at that point already.
2809 # Even if this section looks crufty: it has the advantage of
2816 test "$ac_cv_exeext" = no && ac_cv_exeext=
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2822 $as_echo "$ac_file" >&6; }
2823 if test -z "$ac_file"; then :
2824 $as_echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2829 { as_fn_set_status 77
2830 as_fn_error "C compiler cannot create executables
2831 See \`config.log' for more details." "$LINENO" 5; }; }
2833 ac_exeext=$ac_cv_exeext
2835 # Check that the compiler produces executables we can run. If not, either
2836 # the compiler is broken, or we cross compile.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2838 $as_echo_n "checking whether the C compiler works... " >&6; }
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { { case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2847 $as_echo "$ac_try_echo"; } >&5
2848 (eval "$ac_try") 2>&5
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }; }; then
2854 if test "$cross_compiling" = maybe; then
2857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 as_fn_error "cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." "$LINENO" 5; }
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866 $as_echo "yes" >&6; }
2868 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2869 ac_clean_files=$ac_clean_files_save
2870 # Check that the compiler produces executables we can run. If not, either
2871 # the compiler is broken, or we cross compile.
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2873 $as_echo_n "checking whether we are cross compiling... " >&6; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2875 $as_echo "$cross_compiling" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2878 $as_echo_n "checking for suffix of executables... " >&6; }
2879 if { { ac_try="$ac_link"
2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882 *) ac_try_echo=$ac_try;;
2884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2885 $as_echo "$ac_try_echo"; } >&5
2886 (eval "$ac_link") 2>&5
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }; then :
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2906 as_fn_error "cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." "$LINENO" 5; }
2909 rm -f conftest$ac_cv_exeext
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2911 $as_echo "$ac_cv_exeext" >&6; }
2913 rm -f conftest.$ac_ext
2914 EXEEXT=$ac_cv_exeext
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2917 $as_echo_n "checking for suffix of object files... " >&6; }
2918 if test "${ac_cv_objext+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2932 rm -f conftest.o conftest.obj
2933 if { { ac_try="$ac_compile"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2939 $as_echo "$ac_try_echo"; } >&5
2940 (eval "$ac_compile") 2>&5
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }; then :
2944 for ac_file in conftest.o conftest.obj conftest.*; do
2945 test -f "$ac_file" || continue;
2947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2948 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2953 $as_echo "$as_me: failed program was:" >&5
2954 sed 's/^/| /' conftest.$ac_ext >&5
2956 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2957 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2958 as_fn_error "cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." "$LINENO" 5; }
2961 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2964 $as_echo "$ac_cv_objext" >&6; }
2965 OBJEXT=$ac_cv_objext
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2968 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2969 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2970 $as_echo_n "(cached) " >&6
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 /* end confdefs.h. */
2986 if ac_fn_c_try_compile "$LINENO"; then :
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2996 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2997 if test $ac_compiler_gnu = yes; then
3002 ac_test_CFLAGS=${CFLAGS+set}
3003 ac_save_CFLAGS=$CFLAGS
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3005 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3006 if test "${ac_cv_prog_cc_g+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 ac_save_c_werror_flag=$ac_c_werror_flag
3010 ac_c_werror_flag=yes
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014 /* end confdefs.h. */
3024 if ac_fn_c_try_compile "$LINENO"; then :
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3039 if ac_fn_c_try_compile "$LINENO"; then :
3042 ac_c_werror_flag=$ac_save_c_werror_flag
3044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045 /* end confdefs.h. */
3055 if ac_fn_c_try_compile "$LINENO"; then :
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_c_werror_flag=$ac_save_c_werror_flag
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3066 $as_echo "$ac_cv_prog_cc_g" >&6; }
3067 if test "$ac_test_CFLAGS" = set; then
3068 CFLAGS=$ac_save_CFLAGS
3069 elif test $ac_cv_prog_cc_g = yes; then
3070 if test "$GCC" = yes; then
3076 if test "$GCC" = yes; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3083 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3084 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3085 $as_echo_n "(cached) " >&6
3087 ac_cv_prog_cc_c89=no
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3093 #include <sys/types.h>
3094 #include <sys/stat.h>
3095 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3096 struct buf { int x; };
3097 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3098 static char *e (p, i)
3104 static char *f (char * (*g) (char **, int), char **p, ...)
3109 s = g (p, va_arg (v,int));
3114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3115 function prototypes and stuff, but not '\xHH' hex character constants.
3116 These don't provoke an error unfortunately, instead are silently treated
3117 as 'x'. The following induces an error, until -std is added to get
3118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3119 array size at least. It's necessary to write '\x00'==0 to get something
3120 that's true only with -std. */
3121 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3124 inside strings and character constants. */
3126 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3128 int test (int i, double x);
3129 struct s1 {int (*f) (int a);};
3130 struct s2 {int (*f) (double a);};
3131 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3137 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3142 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3145 CC="$ac_save_CC $ac_arg"
3146 if ac_fn_c_try_compile "$LINENO"; then :
3147 ac_cv_prog_cc_c89=$ac_arg
3149 rm -f core conftest.err conftest.$ac_objext
3150 test "x$ac_cv_prog_cc_c89" != "xno" && break
3152 rm -f conftest.$ac_ext
3157 case "x$ac_cv_prog_cc_c89" in
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3160 $as_echo "none needed" >&6; } ;;
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3163 $as_echo "unsupported" >&6; } ;;
3165 CC="$CC $ac_cv_prog_cc_c89"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3167 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3169 if test "x$ac_cv_prog_cc_c89" != xno; then :
3174 ac_cpp='$CPP $CPPFLAGS'
3175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3181 $as_echo_n "checking for library containing strerror... " >&6; }
3182 if test "${ac_cv_search_strerror+set}" = set; then :
3183 $as_echo_n "(cached) " >&6
3185 ac_func_search_save_LIBS=$LIBS
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3189 /* Override any GCC internal prototype to avoid an error.
3190 Use char because int might match the return type of a GCC
3191 builtin and then its argument prototype would still apply. */
3204 for ac_lib in '' cposix; do
3205 if test -z "$ac_lib"; then
3206 ac_res="none required"
3209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3211 if ac_fn_c_try_link "$LINENO"; then :
3212 ac_cv_search_strerror=$ac_res
3214 rm -f core conftest.err conftest.$ac_objext \
3216 if test "${ac_cv_search_strerror+set}" = set; then :
3220 if test "${ac_cv_search_strerror+set}" = set; then :
3223 ac_cv_search_strerror=no
3226 LIBS=$ac_func_search_save_LIBS
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3229 $as_echo "$ac_cv_search_strerror" >&6; }
3230 ac_res=$ac_cv_search_strerror
3231 if test "$ac_res" != no; then :
3232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3237 am__api_version='1.11'
3239 # Find a good install program. We prefer a C program (faster),
3240 # so one script is as good as another. But avoid the broken or
3241 # incompatible versions:
3242 # SysV /etc/install, /usr/sbin/install
3243 # SunOS /usr/etc/install
3244 # IRIX /sbin/install
3246 # AmigaOS /C/install, which installs bootblocks on floppy discs
3247 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3248 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3249 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3250 # OS/2's system install, which has a completely different semantic
3251 # ./install, which can be erroneously created by make from ./install.sh.
3252 # Reject install programs that cannot install multiple files.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3254 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3255 if test -z "$INSTALL"; then
3256 if test "${ac_cv_path_install+set}" = set; then :
3257 $as_echo_n "(cached) " >&6
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 # Account for people who put trailing slashes in PATH elements.
3265 case $as_dir/ in #((
3266 ./ | .// | /[cC]/* | \
3267 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3268 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3271 # OSF1 and SCO ODT 3.0 have their own names for install.
3272 # Don't use installbsd from OSF since it installs stuff as root
3274 for ac_prog in ginstall scoinst install; do
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3277 if test $ac_prog = install &&
3278 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3279 # AIX install. It has an incompatible calling convention.
3281 elif test $ac_prog = install &&
3282 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3283 # program-specific install script used by HP pwplus--don't use.
3286 rm -rf conftest.one conftest.two conftest.dir
3287 echo one > conftest.one
3288 echo two > conftest.two
3290 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3291 test -s conftest.one && test -s conftest.two &&
3292 test -s conftest.dir/conftest.one &&
3293 test -s conftest.dir/conftest.two
3295 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 rm -rf conftest.one conftest.two conftest.dir
3311 if test "${ac_cv_path_install+set}" = set; then
3312 INSTALL=$ac_cv_path_install
3314 # As a last resort, use the slow shell script. Don't cache a
3315 # value for INSTALL within a source directory, because that will
3316 # break other packages using the cache if that directory is
3317 # removed, or if the value is a relative name.
3318 INSTALL=$ac_install_sh
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3322 $as_echo "$INSTALL" >&6; }
3324 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3325 # It thinks the first close brace ends the variable substitution.
3326 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3328 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3330 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3333 $as_echo_n "checking whether build environment is sane... " >&6; }
3336 echo timestamp > conftest.file
3337 # Reject unsafe characters in $srcdir or the absolute working directory
3338 # name. Accept space and tab only in the latter.
3342 *[\\\"\#\$\&\'\`$am_lf]*)
3343 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3346 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3347 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3350 # Do `set' in a subshell so we don't clobber the current shell's
3351 # arguments. Must try -L first in case configure is actually a
3352 # symlink; some systems play weird games with the mod time of symlinks
3353 # (eg FreeBSD returns the mod time of the symlink's containing
3356 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3357 if test "$*" = "X"; then
3359 set X `ls -t "$srcdir/configure" conftest.file`
3362 if test "$*" != "X $srcdir/configure conftest.file" \
3363 && test "$*" != "X conftest.file $srcdir/configure"; then
3365 # If neither matched, then we have a broken ls. This can happen
3366 # if, for instance, CONFIG_SHELL is bash and it inherits a
3367 # broken ls alias from the environment. This has actually
3368 # happened. Such a system could not be considered "sane".
3369 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3370 alias in your environment" "$LINENO" 5
3373 test "$2" = conftest.file
3379 as_fn_error "newly created file is older than distributed files!
3380 Check your system clock" "$LINENO" 5
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3384 test "$program_prefix" != NONE &&
3385 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3386 # Use a double $ so make ignores it.
3387 test "$program_suffix" != NONE &&
3388 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3389 # Double any \ or $.
3390 # By default was `s,x,x', remove it if useless.
3391 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3392 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3394 # expand $ac_aux_dir to an absolute path
3395 am_aux_dir=`cd $ac_aux_dir && pwd`
3397 if test x"${MISSING+set}" != xset; then
3400 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3402 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3405 # Use eval to expand $SHELL
3406 if eval "$MISSING --run true"; then
3407 am_missing_run="$MISSING --run "
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3411 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3414 if test x"${install_sh}" != xset; then
3417 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3419 install_sh="\${SHELL} $am_aux_dir/install-sh"
3423 # Installed binaries are usually stripped using `strip' when the user
3424 # run `make install-strip'. However `strip' might not be the right
3425 # tool to use in cross-compilation environments, therefore Automake
3426 # will honor the `STRIP' environment variable to overrule this program.
3427 if test "$cross_compiling" != no; then
3428 if test -n "$ac_tool_prefix"; then
3429 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3430 set dummy ${ac_tool_prefix}strip; ac_word=$2
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3432 $as_echo_n "checking for $ac_word... " >&6; }
3433 if test "${ac_cv_prog_STRIP+set}" = set; then :
3434 $as_echo_n "(cached) " >&6
3436 if test -n "$STRIP"; then
3437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 test -z "$as_dir" && as_dir=.
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3446 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 STRIP=$ac_cv_prog_STRIP
3457 if test -n "$STRIP"; then
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3459 $as_echo "$STRIP" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 $as_echo "no" >&6; }
3467 if test -z "$ac_cv_prog_STRIP"; then
3469 # Extract the first word of "strip", so it can be a program name with args.
3470 set dummy strip; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3476 if test -n "$ac_ct_STRIP"; then
3477 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_ac_ct_STRIP="strip"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3496 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3497 if test -n "$ac_ct_STRIP"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3499 $as_echo "$ac_ct_STRIP" >&6; }
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3505 if test "x$ac_ct_STRIP" = x; then
3508 case $cross_compiling:$ac_tool_warned in
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512 ac_tool_warned=yes ;;
3517 STRIP="$ac_cv_prog_STRIP"
3521 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3524 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3525 if test -z "$MKDIR_P"; then
3526 if test "${ac_cv_path_mkdir+set}" = set; then :
3527 $as_echo_n "(cached) " >&6
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3533 test -z "$as_dir" && as_dir=.
3534 for ac_prog in mkdir gmkdir; do
3535 for ac_exec_ext in '' $ac_executable_extensions; do
3536 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3537 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3538 'mkdir (GNU coreutils) '* | \
3539 'mkdir (coreutils) '* | \
3540 'mkdir (fileutils) '4.1*)
3541 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3551 if test "${ac_cv_path_mkdir+set}" = set; then
3552 MKDIR_P="$ac_cv_path_mkdir -p"
3554 # As a last resort, use the slow shell script. Don't cache a
3555 # value for MKDIR_P within a source directory, because that will
3556 # break other packages using the cache if that directory is
3557 # removed, or if the value is a relative name.
3558 test -d ./--version && rmdir ./--version
3559 MKDIR_P="$ac_install_sh -d"
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3563 $as_echo "$MKDIR_P" >&6; }
3567 [\\/$]* | ?:[\\/]*) ;;
3568 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3571 for ac_prog in gawk mawk nawk awk
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_AWK+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$AWK"; then
3581 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_AWK="$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 if test -n "$AWK"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3603 $as_echo "$AWK" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$AWK" && break
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3614 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3616 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3617 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3618 $as_echo_n "(cached) " >&6
3620 cat >conftest.make <<\_ACEOF
3623 @echo '@@@%%%=$(MAKE)=@@@%%%'
3625 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3626 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3628 eval ac_cv_prog_make_${ac_make}_set=yes;;
3630 eval ac_cv_prog_make_${ac_make}_set=no;;
3634 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3636 $as_echo "yes" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3641 SET_MAKE="MAKE=${MAKE-make}"
3644 rm -rf .tst 2>/dev/null
3645 mkdir .tst 2>/dev/null
3646 if test -d .tst; then
3651 rmdir .tst 2>/dev/null
3653 DEPDIR="${am__leading_dot}deps"
3655 ac_config_commands="$ac_config_commands depfiles"
3658 am_make=${MAKE-make}
3659 cat > confinc << 'END'
3661 @echo this is the am__doit target
3664 # If we don't find an include directive, just comment out the code.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3666 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3670 # First try GNU make style include.
3671 echo "include confinc" > confmf
3672 # Ignore all kinds of additional output from `make'.
3673 case `$am_make -s -f confmf 2> /dev/null` in #(
3674 *the\ am__doit\ target*)
3680 # Now try BSD make style include.
3681 if test "$am__include" = "#"; then
3682 echo '.include "confinc"' > confmf
3683 case `$am_make -s -f confmf 2> /dev/null` in #(
3684 *the\ am__doit\ target*)
3685 am__include=.include
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3694 $as_echo "$_am_result" >&6; }
3695 rm -f confinc confmf
3697 # Check whether --enable-dependency-tracking was given.
3698 if test "${enable_dependency_tracking+set}" = set; then :
3699 enableval=$enable_dependency_tracking;
3702 if test "x$enable_dependency_tracking" != xno; then
3703 am_depcomp="$ac_aux_dir/depcomp"
3706 if test "x$enable_dependency_tracking" != xno; then
3715 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3716 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3717 # is not polluted with repeated "-I."
3718 am__isrc=' -I$(srcdir)'
3719 # test to see if srcdir already configured
3720 if test -f $srcdir/config.status; then
3721 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3725 # test whether we have cygpath
3726 if test -z "$CYGPATH_W"; then
3727 if (cygpath --version) >/dev/null 2>/dev/null; then
3728 CYGPATH_W='cygpath -w'
3735 # Define the identity of the package.
3740 cat >>confdefs.h <<_ACEOF
3741 #define PACKAGE "$PACKAGE"
3745 cat >>confdefs.h <<_ACEOF
3746 #define VERSION "$VERSION"
3749 # Some tools Automake needs.
3751 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3754 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3757 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3760 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3763 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3765 # We need awk for the "check" target. The system "awk" is bad on
3767 # Always define AMTAR for backward compatibility.
3769 AMTAR=${AMTAR-"${am_missing_run}tar"}
3771 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3776 depcc="$CC" am_compiler_list=
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781 $as_echo_n "(cached) " >&6
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named `D' -- because `-MD' means `put the output
3790 # Copy depcomp to subdir because otherwise we won't find it if we're
3791 # using a relative directory.
3792 cp "$am_depcomp" conftest.dir
3794 # We will build objects and dependencies in a subdirectory because
3795 # it helps to detect inapplicable dependency modes. For instance
3796 # both Tru64's cc and ICC support -MD to output dependencies as a
3797 # side effect of compilation, but ICC will put the dependencies in
3798 # the current directory while Tru64 will put them in the object
3802 am_cv_CC_dependencies_compiler_type=none
3803 if test "$am_compiler_list" = ""; then
3804 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3807 case " $depcc " in #(
3808 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3811 for depmode in $am_compiler_list; do
3812 # Setup a source with many dependencies, because some compilers
3813 # like to wrap large dependency lists on column 80 (with \), and
3814 # we should not choose a depcomp mode which is confused by this.
3816 # We need to recreate these files for each test, as the compiler may
3817 # overwrite some of them when testing with obscure command lines.
3818 # This happens at least with the AIX C compiler.
3820 for i in 1 2 3 4 5 6; do
3821 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823 # Solaris 8's {/usr,}/bin/sh.
3824 touch sub/conftst$i.h
3826 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3828 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829 # mode. It turns out that the SunPro C++ compiler does not properly
3830 # handle `-M -o', and we need to detect this. Also, some Intel
3831 # versions had trouble with output in subdirs
3832 am__obj=sub/conftest.${OBJEXT-o}
3833 am__minus_obj="-o $am__obj"
3836 # This depmode causes a compiler race in universal mode.
3837 test "$am__universal" = false || continue
3840 # after this tag, mechanisms are not by side-effect, so they'll
3841 # only be used when explicitly requested
3842 if test "x$enable_dependency_tracking" = xyes; then
3848 msvisualcpp | msvcmsys)
3849 # This compiler won't grok `-c -o', but also, the minuso test has
3850 # not run yet. These depmodes are late enough in the game, and
3851 # so weak that their functioning should not be impacted.
3852 am__obj=conftest.${OBJEXT-o}
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=$am__obj \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CC_dependencies_compiler_type=$depmode
3884 am_cv_CC_dependencies_compiler_type=none
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_FALSE='#'
3898 am__fastdepCC_TRUE='#'
3899 am__fastdepCC_FALSE=
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 if test -n "$CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3941 $as_echo "$CC" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3949 if test -z "$ac_cv_prog_CC"; then
3951 # Extract the first word of "gcc", so it can be a program name with args.
3952 set dummy gcc; ac_word=$2
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954 $as_echo_n "checking for $ac_word... " >&6; }
3955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3956 $as_echo_n "(cached) " >&6
3958 if test -n "$ac_ct_CC"; then
3959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_prog_ac_ct_CC="gcc"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3979 if test -n "$ac_ct_CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3981 $as_echo "$ac_ct_CC" >&6; }
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984 $as_echo "no" >&6; }
3987 if test "x$ac_ct_CC" = x; then
3990 case $cross_compiling:$ac_tool_warned in
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3994 ac_tool_warned=yes ;;
4002 if test -z "$CC"; then
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}cc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if test "${ac_cv_prog_CC+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_prog_CC="${ac_tool_prefix}cc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4043 if test -z "$CC"; then
4044 # Extract the first word of "cc", so it can be a program name with args.
4045 set dummy cc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if test "${ac_cv_prog_CC+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$CC"; then
4052 ac_cv_prog_CC="$CC" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4063 ac_prog_rejected=yes
4067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 if test $ac_prog_rejected = yes; then
4075 # We found a bogon in the path, so make sure we never use it.
4076 set dummy $ac_cv_prog_CC
4078 if test $# != 0; then
4079 # We chose a different compiler from the bogus one.
4080 # However, it has the same basename, so the bogon will be chosen
4081 # first if we set CC to just the basename; use the full file name.
4083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4089 if test -n "$CC"; then
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4091 $as_echo "$CC" >&6; }
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4099 if test -z "$CC"; then
4100 if test -n "$ac_tool_prefix"; then
4101 for ac_prog in cl.exe
4103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_CC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
4110 if test -n "$CC"; then
4111 ac_cv_prog_CC="$CC" # Let the user override the test.
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 test -z "$as_dir" && as_dir=.
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 if test -n "$CC"; then
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4133 $as_echo "$CC" >&6; }
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4140 test -n "$CC" && break
4143 if test -z "$CC"; then
4145 for ac_prog in cl.exe
4147 # Extract the first word of "$ac_prog", so it can be a program name with args.
4148 set dummy $ac_prog; ac_word=$2
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4150 $as_echo_n "checking for $ac_word... " >&6; }
4151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4154 if test -n "$ac_ct_CC"; then
4155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 for ac_exec_ext in '' $ac_executable_extensions; do
4163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4164 ac_cv_prog_ac_ct_CC="$ac_prog"
4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4175 if test -n "$ac_ct_CC"; then
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4177 $as_echo "$ac_ct_CC" >&6; }
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4180 $as_echo "no" >&6; }
4184 test -n "$ac_ct_CC" && break
4187 if test "x$ac_ct_CC" = x; then
4190 case $cross_compiling:$ac_tool_warned in
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4194 ac_tool_warned=yes ;;
4203 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4205 as_fn_error "no acceptable C compiler found in \$PATH
4206 See \`config.log' for more details." "$LINENO" 5; }
4208 # Provide some information about the compiler.
4209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4212 for ac_option in --version -v -V -qversion; do
4213 { { ac_try="$ac_compiler $ac_option >&5"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4222 if test -s conftest.err; then
4224 ... rest of stderr output deleted ...
4225 10q' conftest.err >conftest.er1
4226 cat conftest.er1 >&5
4227 rm -f conftest.er1 conftest.err
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4234 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4235 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4252 if ac_fn_c_try_compile "$LINENO"; then :
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4262 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4263 if test $ac_compiler_gnu = yes; then
4268 ac_test_CFLAGS=${CFLAGS+set}
4269 ac_save_CFLAGS=$CFLAGS
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4271 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4272 if test "${ac_cv_prog_cc_g+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
4275 ac_save_c_werror_flag=$ac_c_werror_flag
4276 ac_c_werror_flag=yes
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4290 if ac_fn_c_try_compile "$LINENO"; then :
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4305 if ac_fn_c_try_compile "$LINENO"; then :
4308 ac_c_werror_flag=$ac_save_c_werror_flag
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4321 if ac_fn_c_try_compile "$LINENO"; then :
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_c_werror_flag=$ac_save_c_werror_flag
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4332 $as_echo "$ac_cv_prog_cc_g" >&6; }
4333 if test "$ac_test_CFLAGS" = set; then
4334 CFLAGS=$ac_save_CFLAGS
4335 elif test $ac_cv_prog_cc_g = yes; then
4336 if test "$GCC" = yes; then
4342 if test "$GCC" = yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4349 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4350 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4353 ac_cv_prog_cc_c89=no
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356 /* end confdefs.h. */
4359 #include <sys/types.h>
4360 #include <sys/stat.h>
4361 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4362 struct buf { int x; };
4363 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4364 static char *e (p, i)
4370 static char *f (char * (*g) (char **, int), char **p, ...)
4375 s = g (p, va_arg (v,int));
4380 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4381 function prototypes and stuff, but not '\xHH' hex character constants.
4382 These don't provoke an error unfortunately, instead are silently treated
4383 as 'x'. The following induces an error, until -std is added to get
4384 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4385 array size at least. It's necessary to write '\x00'==0 to get something
4386 that's true only with -std. */
4387 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4389 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4390 inside strings and character constants. */
4392 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4394 int test (int i, double x);
4395 struct s1 {int (*f) (int a);};
4396 struct s2 {int (*f) (double a);};
4397 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4403 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4408 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4409 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4411 CC="$ac_save_CC $ac_arg"
4412 if ac_fn_c_try_compile "$LINENO"; then :
4413 ac_cv_prog_cc_c89=$ac_arg
4415 rm -f core conftest.err conftest.$ac_objext
4416 test "x$ac_cv_prog_cc_c89" != "xno" && break
4418 rm -f conftest.$ac_ext
4423 case "x$ac_cv_prog_cc_c89" in
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4426 $as_echo "none needed" >&6; } ;;
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4429 $as_echo "unsupported" >&6; } ;;
4431 CC="$CC $ac_cv_prog_cc_c89"
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4433 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4435 if test "x$ac_cv_prog_cc_c89" != xno; then :
4440 ac_cpp='$CPP $CPPFLAGS'
4441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446 ac_cpp='$CPP $CPPFLAGS'
4447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4451 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4452 # On Suns, sometimes $CPP names a directory.
4453 if test -n "$CPP" && test -d "$CPP"; then
4456 if test -z "$CPP"; then
4457 if test "${ac_cv_prog_CPP+set}" = set; then :
4458 $as_echo_n "(cached) " >&6
4460 # Double quotes because CPP needs to be expanded
4461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4464 for ac_c_preproc_warn_flag in '' yes
4466 # Use a header file that comes with gcc, so configuring glibc
4467 # with a fresh cross-compiler works.
4468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4469 # <limits.h> exists even on freestanding compilers.
4470 # On the NeXT, cc -E runs the code through the compiler's parser,
4471 # not just through cpp. "Syntax error" is here to catch this case.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4475 # include <limits.h>
4477 # include <assert.h>
4481 if ac_fn_c_try_cpp "$LINENO"; then :
4484 # Broken: fails on valid input.
4487 rm -f conftest.err conftest.$ac_ext
4489 # OK, works on sane cases. Now check whether nonexistent headers
4490 # can be detected and how.
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h. */
4493 #include <ac_nonexistent.h>
4495 if ac_fn_c_try_cpp "$LINENO"; then :
4496 # Broken: success on invalid input.
4499 # Passes both tests.
4503 rm -f conftest.err conftest.$ac_ext
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then :
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4521 $as_echo "$CPP" >&6; }
4523 for ac_c_preproc_warn_flag in '' yes
4525 # Use a header file that comes with gcc, so configuring glibc
4526 # with a fresh cross-compiler works.
4527 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4528 # <limits.h> exists even on freestanding compilers.
4529 # On the NeXT, cc -E runs the code through the compiler's parser,
4530 # not just through cpp. "Syntax error" is here to catch this case.
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4534 # include <limits.h>
4536 # include <assert.h>
4540 if ac_fn_c_try_cpp "$LINENO"; then :
4543 # Broken: fails on valid input.
4546 rm -f conftest.err conftest.$ac_ext
4548 # OK, works on sane cases. Now check whether nonexistent headers
4549 # can be detected and how.
4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4551 /* end confdefs.h. */
4552 #include <ac_nonexistent.h>
4554 if ac_fn_c_try_cpp "$LINENO"; then :
4555 # Broken: success on invalid input.
4558 # Passes both tests.
4562 rm -f conftest.err conftest.$ac_ext
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then :
4570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4572 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4573 See \`config.log' for more details." "$LINENO" 5; }
4577 ac_cpp='$CPP $CPPFLAGS'
4578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4584 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4585 if test "${ac_cv_path_GREP+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4588 if test -z "$GREP"; then
4589 ac_path_GREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in grep ggrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4600 # Check for GNU ac_path_GREP and select it if it is found.
4601 # Check for GNU $ac_path_GREP
4602 case `"$ac_path_GREP" --version 2>&1` in
4604 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4607 $as_echo_n 0123456789 >"conftest.in"
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 $as_echo 'GREP' >> "conftest.nl"
4614 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 as_fn_arith $ac_count + 1 && ac_count=$as_val
4617 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_GREP="$ac_path_GREP"
4620 ac_path_GREP_max=$ac_count
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 $ac_path_GREP_found && break 3
4633 if test -z "$ac_cv_path_GREP"; then
4634 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637 ac_cv_path_GREP=$GREP
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4642 $as_echo "$ac_cv_path_GREP" >&6; }
4643 GREP="$ac_cv_path_GREP"
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4647 $as_echo_n "checking for egrep... " >&6; }
4648 if test "${ac_cv_path_EGREP+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4651 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4652 then ac_cv_path_EGREP="$GREP -E"
4654 if test -z "$EGREP"; then
4655 ac_path_EGREP_found=false
4656 # Loop through the user's path and test for each of PROGNAME-LIST
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4661 test -z "$as_dir" && as_dir=.
4662 for ac_prog in egrep; do
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4665 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4666 # Check for GNU ac_path_EGREP and select it if it is found.
4667 # Check for GNU $ac_path_EGREP
4668 case `"$ac_path_EGREP" --version 2>&1` in
4670 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4673 $as_echo_n 0123456789 >"conftest.in"
4676 cat "conftest.in" "conftest.in" >"conftest.tmp"
4677 mv "conftest.tmp" "conftest.in"
4678 cp "conftest.in" "conftest.nl"
4679 $as_echo 'EGREP' >> "conftest.nl"
4680 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4681 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4682 as_fn_arith $ac_count + 1 && ac_count=$as_val
4683 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4684 # Best one so far, save it but keep looking for a better one
4685 ac_cv_path_EGREP="$ac_path_EGREP"
4686 ac_path_EGREP_max=$ac_count
4688 # 10*(2^10) chars as input seems more than enough
4689 test $ac_count -gt 10 && break
4691 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 $ac_path_EGREP_found && break 3
4699 if test -z "$ac_cv_path_EGREP"; then
4700 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4703 ac_cv_path_EGREP=$EGREP
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4709 $as_echo "$ac_cv_path_EGREP" >&6; }
4710 EGREP="$ac_cv_path_EGREP"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4714 $as_echo_n "checking for ANSI C header files... " >&6; }
4715 if test "${ac_cv_header_stdc+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 ac_cv_header_stdc=yes
4736 ac_cv_header_stdc=no
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 if test $ac_cv_header_stdc = yes; then
4741 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748 $EGREP "memchr" >/dev/null 2>&1; then :
4751 ac_cv_header_stdc=no
4757 if test $ac_cv_header_stdc = yes; then
4758 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4765 $EGREP "free" >/dev/null 2>&1; then :
4768 ac_cv_header_stdc=no
4774 if test $ac_cv_header_stdc = yes; then
4775 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4776 if test "$cross_compiling" = yes; then :
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4783 #if ((' ' & 0x0FF) == 0x020)
4784 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4785 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4787 # define ISLOWER(c) \
4788 (('a' <= (c) && (c) <= 'i') \
4789 || ('j' <= (c) && (c) <= 'r') \
4790 || ('s' <= (c) && (c) <= 'z'))
4791 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4794 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4799 for (i = 0; i < 256; i++)
4800 if (XOR (islower (i), ISLOWER (i))
4801 || toupper (i) != TOUPPER (i))
4806 if ac_fn_c_try_run "$LINENO"; then :
4809 ac_cv_header_stdc=no
4811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4812 conftest.$ac_objext conftest.beam conftest.$ac_ext
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4818 $as_echo "$ac_cv_header_stdc" >&6; }
4819 if test $ac_cv_header_stdc = yes; then
4821 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4826 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4827 inttypes.h stdint.h unistd.h
4829 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4830 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4832 eval as_val=\$$as_ac_Header
4833 if test "x$as_val" = x""yes; then :
4834 cat >>confdefs.h <<_ACEOF
4835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4844 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4845 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4852 if test "$MINIX" = yes; then
4854 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4857 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4860 $as_echo "#define _MINIX 1" >>confdefs.h
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4866 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4867 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4873 # define __EXTENSIONS__ 1
4874 $ac_includes_default
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 ac_cv_safe_to_define___extensions__=yes
4886 ac_cv_safe_to_define___extensions__=no
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4891 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4892 test $ac_cv_safe_to_define___extensions__ = yes &&
4893 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4895 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4897 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4899 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4901 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4910 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4915 macro_version='2.2.7a'
4916 macro_revision='1.3134'
4930 ltmain="$ac_aux_dir/ltmain.sh"
4932 # Backslashify metacharacters that are still active within
4933 # double-quoted strings.
4934 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4936 # Same as above, but do not quote variable references.
4937 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4939 # Sed substitution to delay expansion of an escaped shell variable in a
4940 # double_quote_subst'ed string.
4941 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4943 # Sed substitution to delay expansion of an escaped single quote.
4944 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4946 # Sed substitution to avoid accidental globbing in evaled expressions
4947 no_glob_subst='s/\*/\\\*/g'
4949 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4950 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4954 $as_echo_n "checking how to print strings... " >&6; }
4955 # Test print first, because it will be a builtin if present.
4956 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4957 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4959 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4962 # Use this function as a fallback that always works.
4963 func_fallback_echo ()
4965 eval 'cat <<_LTECHO_EOF
4969 ECHO='func_fallback_echo'
4972 # func_echo_all arg...
4973 # Invoke $ECHO with all args, space-separated.
4980 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4981 $as_echo "printf" >&6; } ;;
4982 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4983 $as_echo "print -r" >&6; } ;;
4984 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4985 $as_echo "cat" >&6; } ;;
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5002 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5003 if test "${ac_cv_path_SED+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5006 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5007 for ac_i in 1 2 3 4 5 6 7; do
5008 ac_script="$ac_script$as_nl$ac_script"
5010 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5011 { ac_script=; unset ac_script;}
5012 if test -z "$SED"; then
5013 ac_path_SED_found=false
5014 # Loop through the user's path and test for each of PROGNAME-LIST
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_prog in sed gsed; do
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5023 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5024 # Check for GNU ac_path_SED and select it if it is found.
5025 # Check for GNU $ac_path_SED
5026 case `"$ac_path_SED" --version 2>&1` in
5028 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5031 $as_echo_n 0123456789 >"conftest.in"
5034 cat "conftest.in" "conftest.in" >"conftest.tmp"
5035 mv "conftest.tmp" "conftest.in"
5036 cp "conftest.in" "conftest.nl"
5037 $as_echo '' >> "conftest.nl"
5038 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5040 as_fn_arith $ac_count + 1 && ac_count=$as_val
5041 if test $ac_count -gt ${ac_path_SED_max-0}; then
5042 # Best one so far, save it but keep looking for a better one
5043 ac_cv_path_SED="$ac_path_SED"
5044 ac_path_SED_max=$ac_count
5046 # 10*(2^10) chars as input seems more than enough
5047 test $ac_count -gt 10 && break
5049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5052 $ac_path_SED_found && break 3
5057 if test -z "$ac_cv_path_SED"; then
5058 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5066 $as_echo "$ac_cv_path_SED" >&6; }
5067 SED="$ac_cv_path_SED"
5070 test -z "$SED" && SED=sed
5071 Xsed="$SED -e 1s/^X//"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5084 $as_echo_n "checking for fgrep... " >&6; }
5085 if test "${ac_cv_path_FGREP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5088 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5089 then ac_cv_path_FGREP="$GREP -F"
5091 if test -z "$FGREP"; then
5092 ac_path_FGREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in fgrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5102 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5103 # Check for GNU ac_path_FGREP and select it if it is found.
5104 # Check for GNU $ac_path_FGREP
5105 case `"$ac_path_FGREP" --version 2>&1` in
5107 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5110 $as_echo_n 0123456789 >"conftest.in"
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'FGREP' >> "conftest.nl"
5117 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_FGREP="$ac_path_FGREP"
5123 ac_path_FGREP_max=$ac_count
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 $ac_path_FGREP_found && break 3
5136 if test -z "$ac_cv_path_FGREP"; then
5137 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5140 ac_cv_path_FGREP=$FGREP
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5146 $as_echo "$ac_cv_path_FGREP" >&6; }
5147 FGREP="$ac_cv_path_FGREP"
5150 test -z "$GREP" && GREP=grep
5170 # Check whether --with-gnu-ld was given.
5171 if test "${with_gnu_ld+set}" = set; then :
5172 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5178 if test "$GCC" = yes; then
5179 # Check if gcc -print-prog-name=ld gives a path.
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5181 $as_echo_n "checking for ld used by $CC... " >&6; }
5184 # gcc leaves a trailing carriage return which upsets mingw
5185 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5187 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5190 # Accept absolute paths.
5192 re_direlt='/[^/][^/]*/\.\./'
5193 # Canonicalize the pathname of ld
5194 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5195 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5196 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5198 test -z "$LD" && LD="$ac_prog"
5201 # If it fails, then pretend we aren't using GCC.
5205 # If it is relative, then search for the first ld in PATH.
5209 elif test "$with_gnu_ld" = yes; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5211 $as_echo_n "checking for GNU ld... " >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5214 $as_echo_n "checking for non-GNU ld... " >&6; }
5216 if test "${lt_cv_path_LD+set}" = set; then :
5217 $as_echo_n "(cached) " >&6
5219 if test -z "$LD"; then
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH; do
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 lt_cv_path_LD="$ac_dir/$ac_prog"
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some variants of GNU ld only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test "$with_gnu_ld" != no && break
5234 test "$with_gnu_ld" != yes && break
5241 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5246 if test -n "$LD"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5248 $as_echo "$LD" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5253 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5255 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5256 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5259 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5260 case `$LD -v 2>&1 </dev/null` in
5261 *GNU* | *'with BFD'*)
5262 lt_cv_prog_gnu_ld=yes
5265 lt_cv_prog_gnu_ld=no
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5270 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5271 with_gnu_ld=$lt_cv_prog_gnu_ld
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5282 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5283 if test "${lt_cv_path_NM+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5286 if test -n "$NM"; then
5287 # Let the user override the test.
5290 lt_nm_to_check="${ac_tool_prefix}nm"
5291 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5292 lt_nm_to_check="$lt_nm_to_check nm"
5294 for lt_tmp_nm in $lt_nm_to_check; do
5295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5296 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5298 test -z "$ac_dir" && ac_dir=.
5299 tmp_nm="$ac_dir/$lt_tmp_nm"
5300 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5301 # Check to see if the nm accepts a BSD-compat flag.
5302 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5303 # nm: unknown option "B" ignored
5304 # Tru64's nm complains that /dev/null is an invalid object file
5305 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5306 */dev/null* | *'Invalid file or object type'*)
5307 lt_cv_path_NM="$tmp_nm -B"
5311 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5313 lt_cv_path_NM="$tmp_nm -p"
5317 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5318 continue # so that we can try to find one that supports BSD flags
5327 : ${lt_cv_path_NM=no}
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5331 $as_echo "$lt_cv_path_NM" >&6; }
5332 if test "$lt_cv_path_NM" != "no"; then
5335 # Didn't find any BSD compatible name lister, look for dumpbin.
5336 if test -n "$DUMPBIN"; then :
5337 # Let the user override the test.
5339 if test -n "$ac_tool_prefix"; then
5340 for ac_prog in dumpbin "link -dump"
5342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5349 if test -n "$DUMPBIN"; then
5350 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 DUMPBIN=$ac_cv_prog_DUMPBIN
5370 if test -n "$DUMPBIN"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5372 $as_echo "$DUMPBIN" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5379 test -n "$DUMPBIN" && break
5382 if test -z "$DUMPBIN"; then
5383 ac_ct_DUMPBIN=$DUMPBIN
5384 for ac_prog in dumpbin "link -dump"
5386 # Extract the first word of "$ac_prog", so it can be a program name with args.
5387 set dummy $ac_prog; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5393 if test -n "$ac_ct_DUMPBIN"; then
5394 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5414 if test -n "$ac_ct_DUMPBIN"; then
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5416 $as_echo "$ac_ct_DUMPBIN" >&6; }
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5423 test -n "$ac_ct_DUMPBIN" && break
5426 if test "x$ac_ct_DUMPBIN" = x; then
5429 case $cross_compiling:$ac_tool_warned in
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5433 ac_tool_warned=yes ;;
5435 DUMPBIN=$ac_ct_DUMPBIN
5439 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5441 DUMPBIN="$DUMPBIN -symbols"
5449 if test "$DUMPBIN" != ":"; then
5453 test -z "$NM" && NM=nm
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5461 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5462 if test "${lt_cv_nm_interface+set}" = set; then :
5463 $as_echo_n "(cached) " >&6
5465 lt_cv_nm_interface="BSD nm"
5466 echo "int some_variable = 0;" > conftest.$ac_ext
5467 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5468 (eval "$ac_compile" 2>conftest.err)
5469 cat conftest.err >&5
5470 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5471 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5472 cat conftest.err >&5
5473 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5474 cat conftest.out >&5
5475 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5476 lt_cv_nm_interface="MS dumpbin"
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5481 $as_echo "$lt_cv_nm_interface" >&6; }
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5484 $as_echo_n "checking whether ln -s works... " >&6; }
5486 if test "$LN_S" = "ln -s"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5488 $as_echo "yes" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5491 $as_echo "no, using $LN_S" >&6; }
5494 # find the maximum length of command line arguments
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5496 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5497 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5505 # On DJGPP, this test can blow up pretty badly due to problems in libc
5506 # (any single argument exceeding 2000 bytes causes a buffer overrun
5507 # during glob expansion). Even if it were fixed, the result of this
5508 # check would be larger than it should be.
5509 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5513 # Under GNU Hurd, this test is not required because there is
5514 # no limit to the length of command line arguments.
5515 # Libtool will interpret -1 as no limit whatsoever
5516 lt_cv_sys_max_cmd_len=-1;
5519 cygwin* | mingw* | cegcc*)
5520 # On Win9x/ME, this test blows up -- it succeeds, but takes
5521 # about 5 minutes as the teststring grows exponentially.
5522 # Worse, since 9x/ME are not pre-emptively multitasking,
5523 # you end up with a "frozen" computer, even though with patience
5524 # the test eventually succeeds (with a max line length of 256k).
5525 # Instead, let's just punt: use the minimum linelength reported by
5526 # all of the supported platforms: 8192 (on NT/2K/XP).
5527 lt_cv_sys_max_cmd_len=8192;
5531 # On MiNT this can take a long time and run out of memory.
5532 lt_cv_sys_max_cmd_len=8192;
5536 # On AmigaOS with pdksh, this test takes hours, literally.
5537 # So we just punt and use a minimum line length of 8192.
5538 lt_cv_sys_max_cmd_len=8192;
5541 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5542 # This has been around since 386BSD, at least. Likely further.
5543 if test -x /sbin/sysctl; then
5544 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5545 elif test -x /usr/sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5548 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5550 # And add a safety zone
5551 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5556 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5557 lt_cv_sys_max_cmd_len=196608
5561 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5562 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5563 # nice to cause kernel panics so lets avoid the loop below.
5564 # First set a reasonable default.
5565 lt_cv_sys_max_cmd_len=16384
5567 if test -x /sbin/sysconfig; then
5568 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5569 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5574 lt_cv_sys_max_cmd_len=102400
5576 sysv5* | sco5v6* | sysv4.2uw2*)
5577 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5578 if test -n "$kargmax"; then
5579 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5581 lt_cv_sys_max_cmd_len=32768
5585 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5586 if test -n "$lt_cv_sys_max_cmd_len"; then
5587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5590 # Make teststring a little bigger before we do anything with it.
5591 # a 1K string should be a reasonable start.
5592 for i in 1 2 3 4 5 6 7 8 ; do
5593 teststring=$teststring$teststring
5595 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5596 # If test is not a shell built-in, we'll probably end up computing a
5597 # maximum length that is only half of the actual maximum length, but
5599 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5600 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5601 test $i != 17 # 1/2 MB should be enough
5604 teststring=$teststring$teststring
5606 # Only check the string length outside the loop.
5607 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5609 # Add a significant safety factor because C++ compilers can tack on
5610 # massive amounts of additional arguments before passing them to the
5611 # linker. It appears as though 1/2 is a usable value.
5612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5619 if test -n $lt_cv_sys_max_cmd_len ; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5621 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5624 $as_echo "none" >&6; }
5626 max_cmd_len=$lt_cv_sys_max_cmd_len
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5638 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5639 # Try some XSI features
5642 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5644 && eval 'test $(( 1 + 1 )) -eq 2 \
5645 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5648 $as_echo "$xsi_shell" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5652 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5654 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5656 && lt_shell_append=yes
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5658 $as_echo "$lt_shell_append" >&6; }
5661 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5671 # test EBCDIC or ASCII
5672 case `echo X|tr X '\101'` in
5673 A) # ASCII based system
5674 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5675 lt_SP2NL='tr \040 \012'
5676 lt_NL2SP='tr \015\012 \040\040'
5678 *) # EBCDIC based system
5679 lt_SP2NL='tr \100 \n'
5680 lt_NL2SP='tr \r\n \100\100'
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5693 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5694 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5697 lt_cv_ld_reload_flag='-r'
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5700 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5701 reload_flag=$lt_cv_ld_reload_flag
5702 case $reload_flag in
5704 *) reload_flag=" $reload_flag" ;;
5706 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5709 if test "$GCC" = yes; then
5710 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5712 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5725 if test -n "$ac_tool_prefix"; then
5726 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5727 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5733 if test -n "$OBJDUMP"; then
5734 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5753 OBJDUMP=$ac_cv_prog_OBJDUMP
5754 if test -n "$OBJDUMP"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5756 $as_echo "$OBJDUMP" >&6; }
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5764 if test -z "$ac_cv_prog_OBJDUMP"; then
5765 ac_ct_OBJDUMP=$OBJDUMP
5766 # Extract the first word of "objdump", so it can be a program name with args.
5767 set dummy objdump; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5773 if test -n "$ac_ct_OBJDUMP"; then
5774 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5794 if test -n "$ac_ct_OBJDUMP"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5796 $as_echo "$ac_ct_OBJDUMP" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5802 if test "x$ac_ct_OBJDUMP" = x; then
5805 case $cross_compiling:$ac_tool_warned in
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5809 ac_tool_warned=yes ;;
5811 OBJDUMP=$ac_ct_OBJDUMP
5814 OBJDUMP="$ac_cv_prog_OBJDUMP"
5817 test -z "$OBJDUMP" && OBJDUMP=objdump
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5828 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5829 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5832 lt_cv_file_magic_cmd='$MAGIC_CMD'
5833 lt_cv_file_magic_test_file=
5834 lt_cv_deplibs_check_method='unknown'
5835 # Need to set the preceding variable on all platforms that support
5836 # interlibrary dependencies.
5837 # 'none' -- dependencies not supported.
5838 # `unknown' -- same as none, but documents that we really don't know.
5839 # 'pass_all' -- all dependencies passed with no checks.
5840 # 'test_compile' -- check by making test program.
5841 # 'file_magic [[regex]]' -- check by looking for files in library path
5842 # which responds to the $file_magic_cmd with a given extended regex.
5843 # If you have `file' or equivalent on your system and you're not sure
5844 # whether `pass_all' will *always* work, you probably want this one.
5848 lt_cv_deplibs_check_method=pass_all
5852 lt_cv_deplibs_check_method=pass_all
5856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5857 lt_cv_file_magic_cmd='/usr/bin/file -L'
5858 lt_cv_file_magic_test_file=/shlib/libc.so
5862 # func_win32_libid is a shell function defined in ltmain.sh
5863 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5864 lt_cv_file_magic_cmd='func_win32_libid'
5868 # Base MSYS/MinGW do not provide the 'file' command needed by
5869 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5870 # unless we find 'file', for example because we are cross-compiling.
5871 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5872 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5873 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5874 lt_cv_file_magic_cmd='func_win32_libid'
5876 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5877 lt_cv_file_magic_cmd='$OBJDUMP -f'
5882 # use the weaker test based on 'objdump'. See mingw*.
5883 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5884 lt_cv_file_magic_cmd='$OBJDUMP -f'
5887 darwin* | rhapsody*)
5888 lt_cv_deplibs_check_method=pass_all
5891 freebsd* | dragonfly*)
5892 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5895 # Not sure whether the presence of OpenBSD here was a mistake.
5896 # Let's accept both of them until this is cleared up.
5897 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5898 lt_cv_file_magic_cmd=/usr/bin/file
5899 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5903 lt_cv_deplibs_check_method=pass_all
5908 lt_cv_deplibs_check_method=pass_all
5912 lt_cv_deplibs_check_method=pass_all
5915 hpux10.20* | hpux11*)
5916 lt_cv_file_magic_cmd=/usr/bin/file
5919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5920 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5924 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5927 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5928 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5934 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5938 irix5* | irix6* | nonstopux*)
5940 *-32|*"-32 ") libmagic=32-bit;;
5941 *-n32|*"-n32 ") libmagic=N32;;
5942 *-64|*"-64 ") libmagic=64-bit;;
5943 *) libmagic=never-match;;
5945 lt_cv_deplibs_check_method=pass_all
5948 # This must be Linux ELF.
5949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5950 lt_cv_deplibs_check_method=pass_all
5954 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5955 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5963 lt_cv_file_magic_cmd=/usr/bin/file
5964 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5968 lt_cv_deplibs_check_method=pass_all
5972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5973 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5975 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5979 osf3* | osf4* | osf5*)
5980 lt_cv_deplibs_check_method=pass_all
5984 lt_cv_deplibs_check_method=pass_all
5988 lt_cv_deplibs_check_method=pass_all
5991 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5992 lt_cv_deplibs_check_method=pass_all
5996 case $host_vendor in
5998 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6002 lt_cv_deplibs_check_method=pass_all
6005 lt_cv_file_magic_cmd='/bin/file'
6006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6009 lt_cv_file_magic_cmd='/bin/file'
6010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6011 lt_cv_file_magic_test_file=/lib/libc.so
6014 lt_cv_deplibs_check_method=pass_all
6017 lt_cv_deplibs_check_method=pass_all
6023 lt_cv_deplibs_check_method=pass_all
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6029 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6030 file_magic_cmd=$lt_cv_file_magic_cmd
6031 deplibs_check_method=$lt_cv_deplibs_check_method
6032 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6045 if test -n "$ac_tool_prefix"; then
6046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6047 set dummy ${ac_tool_prefix}ar; ac_word=$2
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6049 $as_echo_n "checking for $ac_word... " >&6; }
6050 if test "${ac_cv_prog_AR+set}" = set; then :
6051 $as_echo_n "(cached) " >&6
6053 if test -n "$AR"; then
6054 ac_cv_prog_AR="$AR" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_AR="${ac_tool_prefix}ar"
6064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 if test -n "$AR"; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6076 $as_echo "$AR" >&6; }
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6079 $as_echo "no" >&6; }
6084 if test -z "$ac_cv_prog_AR"; then
6086 # Extract the first word of "ar", so it can be a program name with args.
6087 set dummy ar; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089 $as_echo_n "checking for $ac_word... " >&6; }
6090 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6093 if test -n "$ac_ct_AR"; then
6094 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103 ac_cv_prog_ac_ct_AR="ar"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6113 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6114 if test -n "$ac_ct_AR"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6116 $as_echo "$ac_ct_AR" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119 $as_echo "no" >&6; }
6122 if test "x$ac_ct_AR" = x; then
6125 case $cross_compiling:$ac_tool_warned in
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6129 ac_tool_warned=yes ;;
6137 test -z "$AR" && AR=ar
6138 test -z "$AR_FLAGS" && AR_FLAGS=cru
6150 if test -n "$ac_tool_prefix"; then
6151 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6152 set dummy ${ac_tool_prefix}strip; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if test "${ac_cv_prog_STRIP+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6158 if test -n "$STRIP"; then
6159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 STRIP=$ac_cv_prog_STRIP
6179 if test -n "$STRIP"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6181 $as_echo "$STRIP" >&6; }
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6189 if test -z "$ac_cv_prog_STRIP"; then
6191 # Extract the first word of "strip", so it can be a program name with args.
6192 set dummy strip; ac_word=$2
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194 $as_echo_n "checking for $ac_word... " >&6; }
6195 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6198 if test -n "$ac_ct_STRIP"; then
6199 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
6207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_prog_ac_ct_STRIP="strip"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6219 if test -n "$ac_ct_STRIP"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6221 $as_echo "$ac_ct_STRIP" >&6; }
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 $as_echo "no" >&6; }
6227 if test "x$ac_ct_STRIP" = x; then
6230 case $cross_compiling:$ac_tool_warned in
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6234 ac_tool_warned=yes ;;
6239 STRIP="$ac_cv_prog_STRIP"
6242 test -z "$STRIP" && STRIP=:
6249 if test -n "$ac_tool_prefix"; then
6250 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6251 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6257 if test -n "$RANLIB"; then
6258 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 RANLIB=$ac_cv_prog_RANLIB
6278 if test -n "$RANLIB"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6280 $as_echo "$RANLIB" >&6; }
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6288 if test -z "$ac_cv_prog_RANLIB"; then
6289 ac_ct_RANLIB=$RANLIB
6290 # Extract the first word of "ranlib", so it can be a program name with args.
6291 set dummy ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6295 $as_echo_n "(cached) " >&6
6297 if test -n "$ac_ct_RANLIB"; then
6298 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_ac_ct_RANLIB="ranlib"
6308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6318 if test -n "$ac_ct_RANLIB"; then
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6320 $as_echo "$ac_ct_RANLIB" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6326 if test "x$ac_ct_RANLIB" = x; then
6329 case $cross_compiling:$ac_tool_warned in
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333 ac_tool_warned=yes ;;
6335 RANLIB=$ac_ct_RANLIB
6338 RANLIB="$ac_cv_prog_RANLIB"
6341 test -z "$RANLIB" && RANLIB=:
6348 # Determine commands to create old-style static archives.
6349 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6350 old_postinstall_cmds='chmod 644 $oldlib'
6351 old_postuninstall_cmds=
6353 if test -n "$RANLIB"; then
6356 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6359 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6362 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6367 lock_old_archive_extraction=yes ;;
6369 lock_old_archive_extraction=no ;;
6410 # If no C compiler was specified, use CC.
6413 # If no C compiler flags were specified, use CFLAGS.
6414 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6416 # Allow CC to be a program name with arguments.
6420 # Check for command to grab the raw symbol name followed by C symbol from nm.
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6422 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6423 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6424 $as_echo_n "(cached) " >&6
6427 # These are sane defaults that work on at least a few old systems.
6428 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6430 # Character class describing NM global symbol codes.
6431 symcode='[BCDEGRST]'
6433 # Regexp to match symbols that can be accessed directly from C.
6434 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6436 # Define system-specific variables.
6441 cygwin* | mingw* | pw32* | cegcc*)
6442 symcode='[ABCDGISTW]'
6445 if test "$host_cpu" = ia64; then
6446 symcode='[ABCDEGRST]'
6450 symcode='[BCDEGRST]'
6453 symcode='[BCDEGQRST]'
6464 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6472 # If we're using GNU nm, then use its standard symbol codes.
6473 case `$NM -V 2>&1` in
6474 *GNU* | *'with BFD'*)
6475 symcode='[ABCDGIRSTW]' ;;
6478 # Transform an extracted symbol line into a proper C declaration.
6479 # Some systems (esp. on ia64) link data and code symbols differently,
6480 # so use this general approach.
6481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6483 # Transform an extracted symbol line into symbol name and symbol address
6484 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6485 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6487 # Handle CRLF in mingw tool chain
6491 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6495 # Try without a prefix underscore, then with it.
6496 for ac_symprfx in "" "_"; do
6498 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6499 symxfrm="\\1 $ac_symprfx\\2 \\2"
6501 # Write the raw and C identifiers.
6502 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6503 # Fake it for dumpbin and say T for any non-static function
6504 # and D for any global variable.
6505 # Also find C++ and __fastcall symbols from MSVC++,
6506 # which start with @ or ?.
6507 lt_cv_sys_global_symbol_pipe="$AWK '"\
6508 " {last_section=section; section=\$ 3};"\
6509 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6510 " \$ 0!~/External *\|/{next};"\
6511 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6512 " {if(hide[section]) next};"\
6513 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6514 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6515 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6516 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6517 " ' prfx=^$ac_symprfx"
6519 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6522 # Check to see that the pipe works correctly.
6526 cat > conftest.$ac_ext <<_LT_EOF
6531 void nm_test_func(void);
6532 void nm_test_func(void){}
6536 int main(){nm_test_var='a';nm_test_func();return(0);}
6539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6540 (eval $ac_compile) 2>&5
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; then
6544 # Now try to grab the symbols.
6546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6547 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6550 test $ac_status = 0; } && test -s "$nlist"; then
6551 # Try sorting and uniquifying the output.
6552 if sort "$nlist" | uniq > "$nlist"T; then
6553 mv -f "$nlist"T "$nlist"
6558 # Make sure that we snagged all the symbols we need.
6559 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6560 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6561 cat <<_LT_EOF > conftest.$ac_ext
6567 # Now generate the symbol file.
6568 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6570 cat <<_LT_EOF >> conftest.$ac_ext
6572 /* The mapping between symbol names and symbols. */
6577 lt__PROGRAM__LTX_preloaded_symbols[] =
6579 { "@PROGRAM@", (void *) 0 },
6581 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6582 cat <<\_LT_EOF >> conftest.$ac_ext
6586 /* This works around a problem in FreeBSD linker */
6587 #ifdef FREEBSD_WORKAROUND
6588 static const void *lt_preloaded_setup() {
6589 return lt__PROGRAM__LTX_preloaded_symbols;
6597 # Now try linking the two files.
6598 mv conftest.$ac_objext conftstm.$ac_objext
6599 lt_save_LIBS="$LIBS"
6600 lt_save_CFLAGS="$CFLAGS"
6601 LIBS="conftstm.$ac_objext"
6602 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6604 (eval $ac_link) 2>&5
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6610 LIBS="$lt_save_LIBS"
6611 CFLAGS="$lt_save_CFLAGS"
6613 echo "cannot find nm_test_func in $nlist" >&5
6616 echo "cannot find nm_test_var in $nlist" >&5
6619 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6622 echo "$progname: failed program was:" >&5
6623 cat conftest.$ac_ext >&5
6625 rm -rf conftest* conftst*
6627 # Do not use the global_symbol_pipe unless it works.
6628 if test "$pipe_works" = yes; then
6631 lt_cv_sys_global_symbol_pipe=
6637 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6638 lt_cv_sys_global_symbol_to_cdecl=
6640 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6642 $as_echo "failed" >&6; }
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6645 $as_echo "ok" >&6; }
6669 # Check whether --enable-libtool-lock was given.
6670 if test "${enable_libtool_lock+set}" = set; then :
6671 enableval=$enable_libtool_lock;
6674 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6676 # Some flags need to be propagated to the compiler or linker for good
6680 # Find out which ABI we are using.
6681 echo 'int i;' > conftest.$ac_ext
6682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6683 (eval $ac_compile) 2>&5
6685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6686 test $ac_status = 0; }; then
6687 case `/usr/bin/file conftest.$ac_objext` in
6699 # Find out which ABI we are using.
6700 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6702 (eval $ac_compile) 2>&5
6704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705 test $ac_status = 0; }; then
6706 if test "$lt_cv_prog_gnu_ld" = yes; then
6707 case `/usr/bin/file conftest.$ac_objext` in
6709 LD="${LD-ld} -melf32bsmip"
6712 LD="${LD-ld} -melf32bmipn32"
6715 LD="${LD-ld} -melf64bmip"
6719 case `/usr/bin/file conftest.$ac_objext` in
6735 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6736 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6737 # Find out which ABI we are using.
6738 echo 'int i;' > conftest.$ac_ext
6739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6740 (eval $ac_compile) 2>&5
6742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6743 test $ac_status = 0; }; then
6744 case `/usr/bin/file conftest.o` in
6747 x86_64-*kfreebsd*-gnu)
6748 LD="${LD-ld} -m elf_i386_fbsd"
6751 case `/usr/bin/file conftest.o` in
6753 LD="${LD-ld} -m elf32_x86_64"
6756 LD="${LD-ld} -m elf_i386"
6760 powerpc64le-*linux*)
6761 LD="${LD-ld} -m elf32lppclinux"
6764 LD="${LD-ld} -m elf32ppclinux"
6767 LD="${LD-ld} -m elf_s390"
6770 LD="${LD-ld} -m elf32_sparc"
6776 x86_64-*kfreebsd*-gnu)
6777 LD="${LD-ld} -m elf_x86_64_fbsd"
6780 LD="${LD-ld} -m elf_x86_64"
6783 LD="${LD-ld} -m elf64lppc"
6786 LD="${LD-ld} -m elf64ppc"
6788 s390*-*linux*|s390*-*tpf*)
6789 LD="${LD-ld} -m elf64_s390"
6792 LD="${LD-ld} -m elf64_sparc"
6802 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6803 SAVE_CFLAGS="$CFLAGS"
6804 CFLAGS="$CFLAGS -belf"
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6806 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6807 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6811 ac_cpp='$CPP $CPPFLAGS'
6812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6817 /* end confdefs.h. */
6827 if ac_fn_c_try_link "$LINENO"; then :
6828 lt_cv_cc_needs_belf=yes
6830 lt_cv_cc_needs_belf=no
6832 rm -f core conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
6835 ac_cpp='$CPP $CPPFLAGS'
6836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6842 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6843 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6844 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6845 CFLAGS="$SAVE_CFLAGS"
6849 # Find out which ABI we are using.
6850 echo 'int i;' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 case `/usr/bin/file conftest.o` in
6858 case $lt_cv_prog_gnu_ld in
6859 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6861 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6873 need_locks="$enable_libtool_lock"
6877 rhapsody* | darwin*)
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6880 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
6886 if test -n "$DSYMUTIL"; then
6887 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6906 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6907 if test -n "$DSYMUTIL"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6909 $as_echo "$DSYMUTIL" >&6; }
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6917 if test -z "$ac_cv_prog_DSYMUTIL"; then
6918 ac_ct_DSYMUTIL=$DSYMUTIL
6919 # Extract the first word of "dsymutil", so it can be a program name with args.
6920 set dummy dsymutil; ac_word=$2
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 $as_echo_n "checking for $ac_word... " >&6; }
6923 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6924 $as_echo_n "(cached) " >&6
6926 if test -n "$ac_ct_DSYMUTIL"; then
6927 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6947 if test -n "$ac_ct_DSYMUTIL"; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6949 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6952 $as_echo "no" >&6; }
6955 if test "x$ac_ct_DSYMUTIL" = x; then
6958 case $cross_compiling:$ac_tool_warned in
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6962 ac_tool_warned=yes ;;
6964 DSYMUTIL=$ac_ct_DSYMUTIL
6967 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6970 if test -n "$ac_tool_prefix"; then
6971 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6972 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6978 if test -n "$NMEDIT"; then
6979 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998 NMEDIT=$ac_cv_prog_NMEDIT
6999 if test -n "$NMEDIT"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7001 $as_echo "$NMEDIT" >&6; }
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7009 if test -z "$ac_cv_prog_NMEDIT"; then
7010 ac_ct_NMEDIT=$NMEDIT
7011 # Extract the first word of "nmedit", so it can be a program name with args.
7012 set dummy nmedit; ac_word=$2
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7014 $as_echo_n "checking for $ac_word... " >&6; }
7015 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7016 $as_echo_n "(cached) " >&6
7018 if test -n "$ac_ct_NMEDIT"; then
7019 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 test -z "$as_dir" && as_dir=.
7026 for ac_exec_ext in '' $ac_executable_extensions; do
7027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7028 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7039 if test -n "$ac_ct_NMEDIT"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7041 $as_echo "$ac_ct_NMEDIT" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7047 if test "x$ac_ct_NMEDIT" = x; then
7050 case $cross_compiling:$ac_tool_warned in
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7054 ac_tool_warned=yes ;;
7056 NMEDIT=$ac_ct_NMEDIT
7059 NMEDIT="$ac_cv_prog_NMEDIT"
7062 if test -n "$ac_tool_prefix"; then
7063 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_prog_LIPO+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7070 if test -n "$LIPO"; then
7071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 LIPO=$ac_cv_prog_LIPO
7091 if test -n "$LIPO"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7093 $as_echo "$LIPO" >&6; }
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7101 if test -z "$ac_cv_prog_LIPO"; then
7103 # Extract the first word of "lipo", so it can be a program name with args.
7104 set dummy lipo; ac_word=$2
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7106 $as_echo_n "checking for $ac_word... " >&6; }
7107 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7108 $as_echo_n "(cached) " >&6
7110 if test -n "$ac_ct_LIPO"; then
7111 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_ac_ct_LIPO="lipo"
7121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7130 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7131 if test -n "$ac_ct_LIPO"; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7133 $as_echo "$ac_ct_LIPO" >&6; }
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7139 if test "x$ac_ct_LIPO" = x; then
7142 case $cross_compiling:$ac_tool_warned in
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7146 ac_tool_warned=yes ;;
7151 LIPO="$ac_cv_prog_LIPO"
7154 if test -n "$ac_tool_prefix"; then
7155 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}otool; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7160 $as_echo_n "(cached) " >&6
7162 if test -n "$OTOOL"; then
7163 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 OTOOL=$ac_cv_prog_OTOOL
7183 if test -n "$OTOOL"; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7185 $as_echo "$OTOOL" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7193 if test -z "$ac_cv_prog_OTOOL"; then
7195 # Extract the first word of "otool", so it can be a program name with args.
7196 set dummy otool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7202 if test -n "$ac_ct_OTOOL"; then
7203 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_prog_ac_ct_OTOOL="otool"
7213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7223 if test -n "$ac_ct_OTOOL"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7225 $as_echo "$ac_ct_OTOOL" >&6; }
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7231 if test "x$ac_ct_OTOOL" = x; then
7234 case $cross_compiling:$ac_tool_warned in
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7243 OTOOL="$ac_cv_prog_OTOOL"
7246 if test -n "$ac_tool_prefix"; then
7247 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7252 $as_echo_n "(cached) " >&6
7254 if test -n "$OTOOL64"; then
7255 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 test -z "$as_dir" && as_dir=.
7262 for ac_exec_ext in '' $ac_executable_extensions; do
7263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 OTOOL64=$ac_cv_prog_OTOOL64
7275 if test -n "$OTOOL64"; then
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7277 $as_echo "$OTOOL64" >&6; }
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7285 if test -z "$ac_cv_prog_OTOOL64"; then
7286 ac_ct_OTOOL64=$OTOOL64
7287 # Extract the first word of "otool64", so it can be a program name with args.
7288 set dummy otool64; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7294 if test -n "$ac_ct_OTOOL64"; then
7295 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_prog_ac_ct_OTOOL64="otool64"
7305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7315 if test -n "$ac_ct_OTOOL64"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7317 $as_echo "$ac_ct_OTOOL64" >&6; }
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7323 if test "x$ac_ct_OTOOL64" = x; then
7326 case $cross_compiling:$ac_tool_warned in
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7332 OTOOL64=$ac_ct_OTOOL64
7335 OTOOL64="$ac_cv_prog_OTOOL64"
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7365 $as_echo_n "checking for -single_module linker flag... " >&6; }
7366 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7369 lt_cv_apple_cc_single_mod=no
7370 if test -z "${LT_MULTI_MODULE}"; then
7371 # By default we will add the -single_module flag. You can override
7372 # by either setting the environment variable LT_MULTI_MODULE
7373 # non-empty at configure time, or by adding -multi_module to the
7375 rm -rf libconftest.dylib*
7376 echo "int foo(void){return 1;}" > conftest.c
7377 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7378 -dynamiclib -Wl,-single_module conftest.c" >&5
7379 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7380 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7382 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7383 lt_cv_apple_cc_single_mod=yes
7385 cat conftest.err >&5
7387 rm -rf libconftest.dylib*
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7392 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7394 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7395 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7398 lt_cv_ld_exported_symbols_list=no
7399 save_LDFLAGS=$LDFLAGS
7400 echo "_main" > conftest.sym
7401 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7413 if ac_fn_c_try_link "$LINENO"; then :
7414 lt_cv_ld_exported_symbols_list=yes
7416 lt_cv_ld_exported_symbols_list=no
7418 rm -f core conftest.err conftest.$ac_objext \
7419 conftest$ac_exeext conftest.$ac_ext
7420 LDFLAGS="$save_LDFLAGS"
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7424 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7426 $as_echo_n "checking for -force_load linker flag... " >&6; }
7427 if test "${lt_cv_ld_force_load+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7430 lt_cv_ld_force_load=no
7431 cat > conftest.c << _LT_EOF
7432 int forced_loaded() { return 2;}
7434 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7435 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7436 echo "$AR cru libconftest.a conftest.o" >&5
7437 $AR cru libconftest.a conftest.o 2>&5
7438 cat > conftest.c << _LT_EOF
7439 int main() { return 0;}
7441 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7442 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7444 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7445 lt_cv_ld_force_load=yes
7447 cat conftest.err >&5
7449 rm -f conftest.err libconftest.a conftest conftest.c
7450 rm -rf conftest.dSYM
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7454 $as_echo "$lt_cv_ld_force_load" >&6; }
7456 rhapsody* | darwin1.[012])
7457 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7459 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7460 darwin*) # darwin 5.x on
7461 # if running on 10.5 or later, the deployment target defaults
7462 # to the OS version, if on x86, and 10.4, the deployment
7463 # target defaults to 10.4. Don't you love it?
7464 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7465 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7468 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7470 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7474 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7475 _lt_dar_single_mod='$single_module'
7477 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7478 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7480 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7482 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7483 _lt_dsymutil='~$DSYMUTIL $lib || :'
7490 for ac_header in dlfcn.h
7492 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7494 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7495 cat >>confdefs.h <<_ACEOF
7496 #define HAVE_DLFCN_H 1
7517 # Check whether --enable-shared was given.
7518 if test "${enable_shared+set}" = set; then :
7519 enableval=$enable_shared; p=${PACKAGE-default}
7521 yes) enable_shared=yes ;;
7522 no) enable_shared=no ;;
7525 # Look at the argument we got. We use all the common list separators.
7526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527 for pkg in $enableval; do
7529 if test "X$pkg" = "X$p"; then
7548 # Check whether --enable-static was given.
7549 if test "${enable_static+set}" = set; then :
7550 enableval=$enable_static; p=${PACKAGE-default}
7552 yes) enable_static=yes ;;
7553 no) enable_static=no ;;
7556 # Look at the argument we got. We use all the common list separators.
7557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7558 for pkg in $enableval; do
7560 if test "X$pkg" = "X$p"; then
7580 # Check whether --with-pic was given.
7581 if test "${with_pic+set}" = set; then :
7582 withval=$with_pic; pic_mode="$withval"
7588 test -z "$pic_mode" && pic_mode=default
7596 # Check whether --enable-fast-install was given.
7597 if test "${enable_fast_install+set}" = set; then :
7598 enableval=$enable_fast_install; p=${PACKAGE-default}
7600 yes) enable_fast_install=yes ;;
7601 no) enable_fast_install=no ;;
7603 enable_fast_install=no
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for pkg in $enableval; do
7608 if test "X$pkg" = "X$p"; then
7609 enable_fast_install=yes
7616 enable_fast_install=yes
7629 # This can be used to rebuild libtool when needed
7630 LIBTOOL_DEPS="$ltmain"
7632 # Always use our own libtool.
7633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7660 test -z "$LN_S" && LN_S="ln -s"
7675 if test -n "${ZSH_VERSION+set}" ; then
7676 setopt NO_GLOB_SUBST
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7680 $as_echo_n "checking for objdir... " >&6; }
7681 if test "${lt_cv_objdir+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7684 rm -f .libs 2>/dev/null
7685 mkdir .libs 2>/dev/null
7686 if test -d .libs; then
7689 # MS-DOS does not allow filenames that begin with a dot.
7692 rmdir .libs 2>/dev/null
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7695 $as_echo "$lt_cv_objdir" >&6; }
7696 objdir=$lt_cv_objdir
7702 cat >>confdefs.h <<_ACEOF
7703 #define LT_OBJDIR "$lt_cv_objdir/"
7711 # AIX sometimes has problems with the GCC collect2 program. For some
7712 # reason, if we set the COLLECT_NAMES environment variable, the problems
7713 # vanish in a puff of smoke.
7714 if test "X${COLLECT_NAMES+set}" != Xset; then
7716 export COLLECT_NAMES
7723 can_build_shared=yes
7725 # All known linkers require a `.a' archive for static linking (except MSVC,
7726 # which needs '.lib').
7729 with_gnu_ld="$lt_cv_prog_gnu_ld"
7732 old_CFLAGS="$CFLAGS"
7734 # Set sane defaults for various variables
7735 test -z "$CC" && CC=cc
7736 test -z "$LTCC" && LTCC=$CC
7737 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7738 test -z "$LD" && LD=ld
7739 test -z "$ac_objext" && ac_objext=o
7741 for cc_temp in $compiler""; do
7743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7749 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7752 # Only perform the check for file, if the check method requires it
7753 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7754 case $deplibs_check_method in
7756 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7758 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7764 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7767 lt_save_MAGIC_CMD="$MAGIC_CMD"
7768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770 for ac_dir in $ac_dummy; do
7772 test -z "$ac_dir" && ac_dir=.
7773 if test -f $ac_dir/${ac_tool_prefix}file; then
7774 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7775 if test -n "$file_magic_test_file"; then
7776 case $deplibs_check_method in
7778 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781 $EGREP "$file_magic_regex" > /dev/null; then
7786 *** Warning: the command libtool uses to detect shared libraries,
7787 *** $file_magic_cmd, produces output that libtool cannot recognize.
7788 *** The result is that libtool may fail to recognize shared libraries
7789 *** as such. This will affect the creation of libtool libraries that
7790 *** depend on shared libraries, but programs linked with such libtool
7791 *** libraries will work regardless of this problem. Nevertheless, you
7792 *** may want to report the problem to your system manager and/or to
7793 *** bug-libtool@gnu.org
7803 MAGIC_CMD="$lt_save_MAGIC_CMD"
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if test -n "$MAGIC_CMD"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811 $as_echo "$MAGIC_CMD" >&6; }
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7821 if test -z "$lt_cv_path_MAGIC_CMD"; then
7822 if test -n "$ac_tool_prefix"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7824 $as_echo_n "checking for file... " >&6; }
7825 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
7830 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7833 lt_save_MAGIC_CMD="$MAGIC_CMD"
7834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7835 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7836 for ac_dir in $ac_dummy; do
7838 test -z "$ac_dir" && ac_dir=.
7839 if test -f $ac_dir/file; then
7840 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7841 if test -n "$file_magic_test_file"; then
7842 case $deplibs_check_method in
7844 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7845 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7846 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7847 $EGREP "$file_magic_regex" > /dev/null; then
7852 *** Warning: the command libtool uses to detect shared libraries,
7853 *** $file_magic_cmd, produces output that libtool cannot recognize.
7854 *** The result is that libtool may fail to recognize shared libraries
7855 *** as such. This will affect the creation of libtool libraries that
7856 *** depend on shared libraries, but programs linked with such libtool
7857 *** libraries will work regardless of this problem. Nevertheless, you
7858 *** may want to report the problem to your system manager and/or to
7859 *** bug-libtool@gnu.org
7869 MAGIC_CMD="$lt_save_MAGIC_CMD"
7874 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7875 if test -n "$MAGIC_CMD"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7877 $as_echo "$MAGIC_CMD" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7893 # Use C for the default configuration in the libtool script
7897 ac_cpp='$CPP $CPPFLAGS'
7898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903 # Source file extension for C test sources.
7906 # Object file extension for compiled C test sources.
7910 # Code to be used in simple compile tests
7911 lt_simple_compile_test_code="int some_variable = 0;"
7913 # Code to be used in simple link tests
7914 lt_simple_link_test_code='int main(){return(0);}'
7922 # If no C compiler was specified, use CC.
7925 # If no C compiler flags were specified, use CFLAGS.
7926 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7928 # Allow CC to be a program name with arguments.
7931 # Save the default compiler, since it gets overwritten when the other
7932 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7933 compiler_DEFAULT=$CC
7935 # save warnings/boilerplate of simple test code
7936 ac_outfile=conftest.$ac_objext
7937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7939 _lt_compiler_boilerplate=`cat conftest.err`
7942 ac_outfile=conftest.$ac_objext
7943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7945 _lt_linker_boilerplate=`cat conftest.err`
7950 ## There is no encapsulation within the following macros, do not change
7951 ## the running order or otherwise move them around unless you know exactly
7952 ## what you are doing...
7953 if test -n "$compiler"; then
7955 lt_prog_compiler_no_builtin_flag=
7957 if test "$GCC" = yes; then
7958 case $cc_basename in
7960 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7962 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7966 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7968 $as_echo_n "(cached) " >&6
7970 lt_cv_prog_compiler_rtti_exceptions=no
7971 ac_outfile=conftest.$ac_objext
7972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973 lt_compiler_flag="-fno-rtti -fno-exceptions"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 # The option is referenced via a variable to avoid confusing sed.
7979 lt_compile=`echo "$ac_compile" | $SED \
7980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982 -e 's:$: $lt_compiler_flag:'`
7983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7984 (eval "$lt_compile" 2>conftest.err)
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 if (exit $ac_status) && test -s "$ac_outfile"; then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings other than the usual output.
7991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_rtti_exceptions=yes
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8001 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8004 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8016 lt_prog_compiler_wl=
8017 lt_prog_compiler_pic=
8018 lt_prog_compiler_static=
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8021 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8023 if test "$GCC" = yes; then
8024 lt_prog_compiler_wl='-Wl,'
8025 lt_prog_compiler_static='-static'
8029 # All AIX code is PIC.
8030 if test "$host_cpu" = ia64; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static='-Bstatic'
8034 lt_prog_compiler_pic='-fPIC'
8040 # see comment about AmigaOS4 .so support
8041 lt_prog_compiler_pic='-fPIC'
8044 # FIXME: we need at least 68020 code to build shared libraries, but
8045 # adding the `-m68020' flag to GCC prevents building anything better,
8047 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8052 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8053 # PIC is the default for these OSes.
8056 mingw* | cygwin* | pw32* | os2* | cegcc*)
8057 # This hack is so that the source file can tell whether it is being
8058 # built for inclusion in a dll (and should export symbols for example).
8059 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8060 # (--disable-auto-import) libraries
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8064 darwin* | rhapsody*)
8065 # PIC is the default on this platform
8066 # Common symbols not allowed in MH_DYLIB files
8067 lt_prog_compiler_pic='-fno-common'
8071 # PIC is the default for Haiku.
8072 # The "-static" flag exists, but is broken.
8073 lt_prog_compiler_static=
8077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8079 # sets the default TLS model and affects inlining.
8085 lt_prog_compiler_pic='-fPIC'
8091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8092 # Instead, we relocate shared libraries at runtime.
8096 # Just because we use GCC doesn't mean we suddenly get shared libraries
8097 # on systems that don't support them.
8098 lt_prog_compiler_can_build_shared=no
8103 # QNX uses GNU C++, but need to define -shared option too, otherwise
8105 lt_prog_compiler_pic='-fPIC -shared'
8109 if test -d /usr/nec; then
8110 lt_prog_compiler_pic=-Kconform_pic
8115 lt_prog_compiler_pic='-fPIC'
8119 case $cc_basename in
8120 nvcc*) # Cuda Compiler Driver 2.2
8121 lt_prog_compiler_wl='-Xlinker '
8122 lt_prog_compiler_pic='-Xcompiler -fPIC'
8126 # PORTME Check for flag to pass linker flags through the system compiler.
8129 lt_prog_compiler_wl='-Wl,'
8130 if test "$host_cpu" = ia64; then
8131 # AIX 5 now supports IA64 processor
8132 lt_prog_compiler_static='-Bstatic'
8134 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8138 mingw* | cygwin* | pw32* | os2* | cegcc*)
8139 # This hack is so that the source file can tell whether it is being
8140 # built for inclusion in a dll (and should export symbols for example).
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
8144 hpux9* | hpux10* | hpux11*)
8145 lt_prog_compiler_wl='-Wl,'
8146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8153 lt_prog_compiler_pic='+Z'
8156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8157 lt_prog_compiler_static='${wl}-a ${wl}archive'
8160 irix5* | irix6* | nonstopux*)
8161 lt_prog_compiler_wl='-Wl,'
8162 # PIC (with -KPIC) is the default.
8163 lt_prog_compiler_static='-non_shared'
8166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8167 case $cc_basename in
8168 # old Intel for x86_64 which still supported -KPIC.
8170 lt_prog_compiler_wl='-Wl,'
8171 lt_prog_compiler_pic='-KPIC'
8172 lt_prog_compiler_static='-static'
8174 # icc used to be incompatible with GCC.
8175 # ICC 10 doesn't accept -KPIC any more.
8177 lt_prog_compiler_wl='-Wl,'
8178 lt_prog_compiler_pic='-fPIC'
8179 lt_prog_compiler_static='-static'
8181 # Lahey Fortran 8.1.
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='--shared'
8185 lt_prog_compiler_static='--static'
8187 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8188 # Portland Group compilers (*not* the Pentium gcc compiler,
8189 # which looks to be a dead project)
8190 lt_prog_compiler_wl='-Wl,'
8191 lt_prog_compiler_pic='-fpic'
8192 lt_prog_compiler_static='-Bstatic'
8195 lt_prog_compiler_wl='-Wl,'
8196 # All Alpha code is PIC.
8197 lt_prog_compiler_static='-non_shared'
8199 xl* | bgxl* | bgf* | mpixl*)
8200 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8201 lt_prog_compiler_wl='-Wl,'
8202 lt_prog_compiler_pic='-qpic'
8203 lt_prog_compiler_static='-qstaticlink'
8206 case `$CC -V 2>&1 | sed 5q` in
8207 *Sun\ F* | *Sun*Fortran*)
8208 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8209 lt_prog_compiler_pic='-KPIC'
8210 lt_prog_compiler_static='-Bstatic'
8211 lt_prog_compiler_wl=''
8215 lt_prog_compiler_pic='-KPIC'
8216 lt_prog_compiler_static='-Bstatic'
8217 lt_prog_compiler_wl='-Wl,'
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8230 # QNX uses GNU C++, but need to define -shared option too, otherwise
8232 lt_prog_compiler_pic='-fPIC -shared'
8235 osf3* | osf4* | osf5*)
8236 lt_prog_compiler_wl='-Wl,'
8237 # All OSF/1 code is PIC.
8238 lt_prog_compiler_static='-non_shared'
8242 lt_prog_compiler_static='-non_shared'
8246 lt_prog_compiler_pic='-KPIC'
8247 lt_prog_compiler_static='-Bstatic'
8248 case $cc_basename in
8250 lt_prog_compiler_wl='-Qoption ld ';;
8252 lt_prog_compiler_wl='-Wl,';;
8257 lt_prog_compiler_wl='-Qoption ld '
8258 lt_prog_compiler_pic='-PIC'
8259 lt_prog_compiler_static='-Bstatic'
8262 sysv4 | sysv4.2uw2* | sysv4.3*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='-KPIC'
8265 lt_prog_compiler_static='-Bstatic'
8269 if test -d /usr/nec ;then
8270 lt_prog_compiler_pic='-Kconform_pic'
8271 lt_prog_compiler_static='-Bstatic'
8275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276 lt_prog_compiler_wl='-Wl,'
8277 lt_prog_compiler_pic='-KPIC'
8278 lt_prog_compiler_static='-Bstatic'
8282 lt_prog_compiler_wl='-Wl,'
8283 lt_prog_compiler_can_build_shared=no
8287 lt_prog_compiler_pic='-pic'
8288 lt_prog_compiler_static='-Bstatic'
8292 lt_prog_compiler_can_build_shared=no
8298 # For platforms which do not support PIC, -DPIC is meaningless:
8300 lt_prog_compiler_pic=
8303 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8307 $as_echo "$lt_prog_compiler_pic" >&6; }
8315 # Check to make sure the PIC flag actually works.
8317 if test -n "$lt_prog_compiler_pic"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8319 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8320 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8323 lt_cv_prog_compiler_pic_works=no
8324 ac_outfile=conftest.$ac_objext
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8327 # Insert the option either (1) after the last *FLAGS variable, or
8328 # (2) before a word containing "conftest.", or (3) at the end.
8329 # Note that $ac_compile itself does not contain backslashes and begins
8330 # with a dollar sign (not a hyphen), so the echo should work correctly.
8331 # The option is referenced via a variable to avoid confusing sed.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8337 (eval "$lt_compile" 2>conftest.err)
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 if (exit $ac_status) && test -s "$ac_outfile"; then
8342 # The compiler can only warn and ignore the option if not recognized
8343 # So say no if there are warnings other than the usual output.
8344 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8345 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8346 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8347 lt_cv_prog_compiler_pic_works=yes
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8354 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8356 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8357 case $lt_prog_compiler_pic in
8359 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8362 lt_prog_compiler_pic=
8363 lt_prog_compiler_can_build_shared=no
8374 # Check to make sure the static flag actually works.
8376 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8379 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8382 lt_cv_prog_compiler_static_works=no
8383 save_LDFLAGS="$LDFLAGS"
8384 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387 # The linker can only warn and ignore the option if not recognized
8388 # So say no if there are warnings
8389 if test -s conftest.err; then
8390 # Append any errors to the config.log.
8391 cat conftest.err 1>&5
8392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394 if diff conftest.exp conftest.er2 >/dev/null; then
8395 lt_cv_prog_compiler_static_works=yes
8398 lt_cv_prog_compiler_static_works=yes
8402 LDFLAGS="$save_LDFLAGS"
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8406 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8408 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8411 lt_prog_compiler_static=
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8422 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8425 lt_cv_prog_compiler_c_o=no
8426 $RM -r conftest 2>/dev/null
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8432 lt_compiler_flag="-o out/conftest2.$ac_objext"
8433 # Insert the option either (1) after the last *FLAGS variable, or
8434 # (2) before a word containing "conftest.", or (3) at the end.
8435 # Note that $ac_compile itself does not contain backslashes and begins
8436 # with a dollar sign (not a hyphen), so the echo should work correctly.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442 (eval "$lt_compile" 2>out/conftest.err)
8444 cat out/conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8448 # The compiler can only warn and ignore the option if not recognized
8449 # So say no if there are warnings
8450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8453 lt_cv_prog_compiler_c_o=yes
8458 # SGI C++ compiler will create directory out/ii_files/ for
8459 # template instantiation
8460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8461 $RM out/* && rmdir out
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8468 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8476 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8477 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
8480 lt_cv_prog_compiler_c_o=no
8481 $RM -r conftest 2>/dev/null
8485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8487 lt_compiler_flag="-o out/conftest2.$ac_objext"
8488 # Insert the option either (1) after the last *FLAGS variable, or
8489 # (2) before a word containing "conftest.", or (3) at the end.
8490 # Note that $ac_compile itself does not contain backslashes and begins
8491 # with a dollar sign (not a hyphen), so the echo should work correctly.
8492 lt_compile=`echo "$ac_compile" | $SED \
8493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8495 -e 's:$: $lt_compiler_flag:'`
8496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8497 (eval "$lt_compile" 2>out/conftest.err)
8499 cat out/conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8503 # The compiler can only warn and ignore the option if not recognized
8504 # So say no if there are warnings
8505 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8506 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8507 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8508 lt_cv_prog_compiler_c_o=yes
8513 # SGI C++ compiler will create directory out/ii_files/ for
8514 # template instantiation
8515 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8516 $RM out/* && rmdir out
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8523 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8528 hard_links="nottested"
8529 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8530 # do not overwrite the value of need_locks provided by the user
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8532 $as_echo_n "checking if we can lock with hard links... " >&6; }
8535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8537 ln conftest.a conftest.b 2>&5 || hard_links=no
8538 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8540 $as_echo "$hard_links" >&6; }
8541 if test "$hard_links" = no; then
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8543 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8556 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8559 allow_undefined_flag=
8560 always_export_symbols=no
8562 archive_expsym_cmds=
8563 compiler_needs_object=no
8564 enable_shared_with_static_runtimes=no
8565 export_dynamic_flag_spec=
8566 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8567 hardcode_automatic=no
8569 hardcode_direct_absolute=no
8570 hardcode_libdir_flag_spec=
8571 hardcode_libdir_flag_spec_ld=
8572 hardcode_libdir_separator=
8574 hardcode_shlibpath_var=unsupported
8576 link_all_deplibs=unknown
8579 old_archive_from_new_cmds=
8580 old_archive_from_expsyms_cmds=
8581 thread_safe_flag_spec=
8582 whole_archive_flag_spec=
8583 # include_expsyms should be a list of space-separated symbols to be *always*
8584 # included in the symbol list
8586 # exclude_expsyms can be an extended regexp of symbols to exclude
8587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8589 # as well as any symbol that contains `d'.
8590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8592 # platforms (ab)use it in PIC code, but their linkers get confused if
8593 # the symbol is explicitly referenced. Since portable code cannot
8594 # rely on this symbol name, it's probably fine to never include it in
8595 # preloaded symbol tables.
8596 # Exclude shared library initialization/finalization symbols.
8597 extract_expsyms_cmds=
8600 cygwin* | mingw* | pw32* | cegcc*)
8601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8602 # When not using gcc, we currently assume that we are using
8603 # Microsoft Visual C++.
8604 if test "$GCC" != yes; then
8609 # we just hope/assume this is gcc and not c89 (= MSVC++)
8619 # On some targets, GNU ld is compatible enough with the native linker
8620 # that we're better off using the native interface for both.
8621 lt_use_gnu_ld_interface=no
8622 if test "$with_gnu_ld" = yes; then
8625 # The AIX port of GNU ld has always aspired to compatibility
8626 # with the native linker. However, as the warning in the GNU ld
8627 # block says, versions before 2.19.5* couldn't really create working
8628 # shared libraries, regardless of the interface used.
8629 case `$LD -v 2>&1` in
8630 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8631 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8632 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8634 lt_use_gnu_ld_interface=yes
8639 lt_use_gnu_ld_interface=yes
8644 if test "$lt_use_gnu_ld_interface" = yes; then
8645 # If archive_cmds runs LD, not CC, wlarc should be empty
8648 # Set some defaults for GNU ld with shared library support. These
8649 # are reset later if shared libraries are not supported. Putting them
8650 # here allows them to be overridden if necessary.
8651 runpath_var=LD_RUN_PATH
8652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8653 export_dynamic_flag_spec='${wl}--export-dynamic'
8654 # ancient GNU ld didn't support --whole-archive et. al.
8655 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8656 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8658 whole_archive_flag_spec=
8660 supports_anon_versioning=no
8661 case `$LD -v 2>&1` in
8662 *GNU\ gold*) supports_anon_versioning=yes ;;
8663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8666 *\ 2.11.*) ;; # other 2.11 versions
8667 *) supports_anon_versioning=yes ;;
8670 # See if GNU ld supports shared libraries.
8673 # On AIX/PPC, the GNU linker is very broken
8674 if test "$host_cpu" != ia64; then
8678 *** Warning: the GNU linker, at least up to release 2.19, is reported
8679 *** to be unable to reliably create shared libraries on AIX.
8680 *** Therefore, libtool is disabling shared libraries support. If you
8681 *** really care for shared libraries, you may want to install binutils
8682 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8683 *** You will then need to restart the configuration process.
8692 # see comment about AmigaOS4 .so support
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds=''
8697 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8698 hardcode_libdir_flag_spec='-L$libdir'
8699 hardcode_minus_L=yes
8705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8706 allow_undefined_flag=unsupported
8707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8708 # support --undefined. This deserves some investigation. FIXME
8709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8715 cygwin* | mingw* | pw32* | cegcc*)
8716 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8717 # as there is no search path for DLLs.
8718 hardcode_libdir_flag_spec='-L$libdir'
8719 export_dynamic_flag_spec='${wl}--export-all-symbols'
8720 allow_undefined_flag=unsupported
8721 always_export_symbols=no
8722 enable_shared_with_static_runtimes=yes
8723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727 # If the export-symbols file already is a .def file (1st line
8728 # is EXPORTS), use it as is; otherwise, prepend...
8729 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730 cp $export_symbols $output_objdir/$soname.def;
8732 echo EXPORTS > $output_objdir/$soname.def;
8733 cat $export_symbols >> $output_objdir/$soname.def;
8735 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8742 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743 link_all_deplibs=yes
8748 hardcode_shlibpath_var=no
8749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750 export_dynamic_flag_spec='${wl}-E'
8751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8752 # Instead, shared libraries are loaded at an image base (0x10000000 by
8753 # default) and relocated if they conflict, which is a slow very memory
8754 # consuming and fragmenting process. To avoid this, we pick a random,
8755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8758 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8761 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8763 if test "$host_os" = linux-dietlibc; then
8764 case $cc_basename in
8765 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8768 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8769 && test "$tmp_diet" = no
8771 tmp_addflag=' $pic_flag'
8772 tmp_sharedflag='-shared'
8773 case $cc_basename,$host_cpu in
8774 pgcc*) # Portland Group C compiler
8775 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8776 tmp_addflag=' $pic_flag'
8778 pgf77* | pgf90* | pgf95* | pgfortran*)
8779 # Portland Group f77 and f90 compilers
8780 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8781 tmp_addflag=' $pic_flag -Mnomain' ;;
8782 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8783 tmp_addflag=' -i_dynamic' ;;
8784 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8785 tmp_addflag=' -i_dynamic -nofor_main' ;;
8786 ifc* | ifort*) # Intel Fortran compiler
8787 tmp_addflag=' -nofor_main' ;;
8788 lf95*) # Lahey Fortran 8.1
8789 whole_archive_flag_spec=
8790 tmp_sharedflag='--shared' ;;
8791 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8792 tmp_sharedflag='-qmkshrobj'
8794 nvcc*) # Cuda Compiler Driver 2.2
8795 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8796 compiler_needs_object=yes
8799 case `$CC -V 2>&1 | sed 5q` in
8800 *Sun\ C*) # Sun C 5.9
8801 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8802 compiler_needs_object=yes
8803 tmp_sharedflag='-G' ;;
8804 *Sun\ F*) # Sun Fortran 8.3
8805 tmp_sharedflag='-G' ;;
8807 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809 if test "x$supports_anon_versioning" = xyes; then
8810 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8811 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8812 echo "local: *; };" >> $output_objdir/$libname.ver~
8813 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8816 case $cc_basename in
8817 xlf* | bgf* | bgxlf* | mpixlf*)
8818 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8819 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8820 hardcode_libdir_flag_spec=
8821 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8822 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8823 if test "x$supports_anon_versioning" = xyes; then
8824 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8826 echo "local: *; };" >> $output_objdir/$libname.ver~
8827 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8841 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8847 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8851 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8852 *** create shared libraries on Solaris systems. Therefore, libtool
8853 *** is disabling shared libraries support. We urge you to upgrade GNU
8854 *** binutils to release 2.9.1 or newer. Another option is to modify
8855 *** your PATH or compiler configuration so that the native linker is
8856 *** used, and then restart.
8859 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8868 case `$LD -v 2>&1` in
8869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8873 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8874 *** reliably create shared libraries on SCO systems. Therefore, libtool
8875 *** is disabling shared libraries support. We urge you to upgrade GNU
8876 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8877 *** your PATH or compiler configuration so that the native linker is
8878 *** used, and then restart.
8883 # For security reasons, it is highly recommended that you always
8884 # use absolute paths for naming shared libraries, and exclude the
8885 # DT_RUNPATH tag from executables and libraries. But doing so
8886 # requires that you compile everything twice, which is a pain.
8887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8899 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8902 hardcode_shlibpath_var=no
8906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8915 if test "$ld_shlibs" = no; then
8917 hardcode_libdir_flag_spec=
8918 export_dynamic_flag_spec=
8919 whole_archive_flag_spec=
8922 # PORTME fill in a description of your system's linker (not GNU ld)
8925 allow_undefined_flag=unsupported
8926 always_export_symbols=yes
8927 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8928 # Note: this linker hardcodes the directories in LIBPATH if there
8929 # are no directories specified by -L.
8930 hardcode_minus_L=yes
8931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8932 # Neither direct hardcoding nor static linking is supported with a
8934 hardcode_direct=unsupported
8939 if test "$host_cpu" = ia64; then
8940 # On IA64, the linker does run time linking by default, so we don't
8941 # have to do anything special.
8942 aix_use_runtimelinking=no
8943 exp_sym_flag='-Bexport'
8946 # If we're using GNU nm, then we don't want the "-C" option.
8947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8948 # Also, AIX nm treats weak defined symbols like other global
8949 # defined symbols, whereas GNU nm marks them as "W".
8950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8951 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8953 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8955 aix_use_runtimelinking=no
8957 # Test if we are trying to use run time linking or normal
8958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8959 # need to do runtime linking.
8960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8961 for ld_flag in $LDFLAGS; do
8962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8963 aix_use_runtimelinking=yes
8970 exp_sym_flag='-bexport'
8971 no_entry_flag='-bnoentry'
8974 # When large executables or shared objects are built, AIX ld can
8975 # have problems creating the table of contents. If linking a library
8976 # or program results in "error TOC overflow" add -mminimal-toc to
8977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8982 hardcode_direct_absolute=yes
8983 hardcode_libdir_separator=':'
8984 link_all_deplibs=yes
8985 file_list_spec='${wl}-f,'
8987 if test "$GCC" = yes; then
8988 case $host_os in aix4.[012]|aix4.[012].*)
8989 # We only want to do this on AIX 4.2 and lower, the check
8990 # below for broken collect2 doesn't work under 4.3+
8991 collect2name=`${CC} -print-prog-name=collect2`
8992 if test -f "$collect2name" &&
8993 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8995 # We have reworked collect2
8998 # We have old collect2
8999 hardcode_direct=unsupported
9000 # It fails to find uninstalled libraries when the uninstalled
9001 # path is not listed in the libpath. Setting hardcode_minus_L
9002 # to unsupported forces relinking
9003 hardcode_minus_L=yes
9004 hardcode_libdir_flag_spec='-L$libdir'
9005 hardcode_libdir_separator=
9009 shared_flag='-shared'
9010 if test "$aix_use_runtimelinking" = yes; then
9011 shared_flag="$shared_flag "'${wl}-G'
9015 if test "$host_cpu" = ia64; then
9016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9017 # chokes on -Wl,-G. The following line is correct:
9020 if test "$aix_use_runtimelinking" = yes; then
9021 shared_flag='${wl}-G'
9023 shared_flag='${wl}-bM:SRE'
9028 export_dynamic_flag_spec='${wl}-bexpall'
9029 # It seems that -bexpall does not export symbols beginning with
9030 # underscore (_), so it is better to generate a list of symbols to export.
9031 always_export_symbols=yes
9032 if test "$aix_use_runtimelinking" = yes; then
9033 # Warning - without using the other runtime loading flags (-brtl),
9034 # -berok will link without error, but may produce a broken library.
9035 allow_undefined_flag='-berok'
9036 # Determine the default libpath from the value encoded in an
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9049 if ac_fn_c_try_link "$LINENO"; then :
9051 lt_aix_libpath_sed='
9052 /Import File Strings/,/^$/ {
9058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9059 # Check for a 64-bit object if we didn't find anything.
9060 if test -z "$aix_libpath"; then
9061 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9064 rm -f core conftest.err conftest.$ac_objext \
9065 conftest$ac_exeext conftest.$ac_ext
9066 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9068 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9069 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9071 if test "$host_cpu" = ia64; then
9072 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9073 allow_undefined_flag="-z nodefs"
9074 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9076 # Determine the default libpath from the value encoded in an
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9089 if ac_fn_c_try_link "$LINENO"; then :
9091 lt_aix_libpath_sed='
9092 /Import File Strings/,/^$/ {
9098 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9099 # Check for a 64-bit object if we didn't find anything.
9100 if test -z "$aix_libpath"; then
9101 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9109 # Warning - without using the other run time loading flags,
9110 # -berok will link without error, but may produce a broken library.
9111 no_undefined_flag=' ${wl}-bernotok'
9112 allow_undefined_flag=' ${wl}-berok'
9113 if test "$with_gnu_ld" = yes; then
9114 # We only use this code for GNU lds that support --whole-archive.
9115 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9117 # Exported symbols can be pulled into shared objects from archives
9118 whole_archive_flag_spec='$convenience'
9120 archive_cmds_need_lc=yes
9121 # This is similar to how AIX traditionally builds its shared libraries.
9122 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9130 # see comment about AmigaOS4 .so support
9131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds=''
9135 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9136 hardcode_libdir_flag_spec='-L$libdir'
9137 hardcode_minus_L=yes
9143 export_dynamic_flag_spec=-rdynamic
9146 cygwin* | mingw* | pw32* | cegcc*)
9147 # When not using gcc, we currently assume that we are using
9148 # Microsoft Visual C++.
9149 # hardcode_libdir_flag_spec is actually meaningless, as there is
9150 # no search path for DLLs.
9151 hardcode_libdir_flag_spec=' '
9152 allow_undefined_flag=unsupported
9153 # Tell ltmain to make .lib files, not .a files.
9155 # Tell ltmain to make .dll files, not .so files.
9157 # FIXME: Setting linknames here is a bad hack.
9158 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9159 # The linker will automatically build a .lib file if we build a DLL.
9160 old_archive_from_new_cmds='true'
9161 # FIXME: Should let the user specify the lib program.
9162 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9163 fix_srcfile_path='`cygpath -w "$srcfile"`'
9164 enable_shared_with_static_runtimes=yes
9167 darwin* | rhapsody*)
9170 archive_cmds_need_lc=no
9172 hardcode_automatic=yes
9173 hardcode_shlibpath_var=unsupported
9174 if test "$lt_cv_ld_force_load" = "yes"; then
9175 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9177 whole_archive_flag_spec=''
9179 link_all_deplibs=yes
9180 allow_undefined_flag="$_lt_dar_allow_undefined"
9181 case $cc_basename in
9182 ifort*) _lt_dar_can_shared=yes ;;
9183 *) _lt_dar_can_shared=$GCC ;;
9185 if test "$_lt_dar_can_shared" = "yes"; then
9186 output_verbose_link_cmd=func_echo_all
9187 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9188 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9189 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9190 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 hardcode_shlibpath_var=no
9204 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9205 # support. Future versions do this automatically, but an explicit c++rt0.o
9206 # does not break anything, and helps significantly (at the cost of a little
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9210 hardcode_libdir_flag_spec='-R$libdir'
9212 hardcode_shlibpath_var=no
9215 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9217 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9219 hardcode_minus_L=yes
9220 hardcode_shlibpath_var=no
9223 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9224 freebsd* | dragonfly*)
9225 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9226 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_shlibpath_var=no
9232 if test "$GCC" = yes; then
9233 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9235 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_separator=:
9241 # hardcode_minus_L: Not really in the search PATH,
9242 # but as the default location of the library.
9243 hardcode_minus_L=yes
9244 export_dynamic_flag_spec='${wl}-E'
9248 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9249 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9253 if test "$with_gnu_ld" = no; then
9254 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9255 hardcode_libdir_flag_spec_ld='+b $libdir'
9256 hardcode_libdir_separator=:
9258 hardcode_direct_absolute=yes
9259 export_dynamic_flag_spec='${wl}-E'
9260 # hardcode_minus_L: Not really in the search PATH,
9261 # but as the default location of the library.
9262 hardcode_minus_L=yes
9267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9276 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9282 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9289 # Older versions of the 11.00 compiler do not understand -b yet
9290 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9292 $as_echo_n "checking if $CC understands -b... " >&6; }
9293 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9296 lt_cv_prog_compiler__b=no
9297 save_LDFLAGS="$LDFLAGS"
9298 LDFLAGS="$LDFLAGS -b"
9299 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9300 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9301 # The linker can only warn and ignore the option if not recognized
9302 # So say no if there are warnings
9303 if test -s conftest.err; then
9304 # Append any errors to the config.log.
9305 cat conftest.err 1>&5
9306 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9308 if diff conftest.exp conftest.er2 >/dev/null; then
9309 lt_cv_prog_compiler__b=yes
9312 lt_cv_prog_compiler__b=yes
9316 LDFLAGS="$save_LDFLAGS"
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9320 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9322 if test x"$lt_cv_prog_compiler__b" = xyes; then
9323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9325 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9331 if test "$with_gnu_ld" = no; then
9332 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9333 hardcode_libdir_separator=:
9338 hardcode_shlibpath_var=no
9342 hardcode_direct_absolute=yes
9343 export_dynamic_flag_spec='${wl}-E'
9345 # hardcode_minus_L: Not really in the search PATH,
9346 # but as the default location of the library.
9347 hardcode_minus_L=yes
9353 irix5* | irix6* | nonstopux*)
9354 if test "$GCC" = yes; then
9355 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9356 # Try to use the -exported_symbol ld option, if it does not
9357 # work, assume that -exports_file does not work either and
9358 # implicitly export all symbols.
9359 save_LDFLAGS="$LDFLAGS"
9360 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9365 if ac_fn_c_try_link "$LINENO"; then :
9366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LDFLAGS="$save_LDFLAGS"
9373 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9374 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9376 archive_cmds_need_lc='no'
9377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378 hardcode_libdir_separator=:
9380 link_all_deplibs=yes
9384 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9387 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9389 hardcode_libdir_flag_spec='-R$libdir'
9391 hardcode_shlibpath_var=no
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398 hardcode_libdir_separator=:
9399 hardcode_shlibpath_var=no
9406 if test -f /usr/libexec/ld.so; then
9408 hardcode_shlibpath_var=no
9409 hardcode_direct_absolute=yes
9410 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9414 export_dynamic_flag_spec='${wl}-E'
9417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9419 hardcode_libdir_flag_spec='-R$libdir'
9422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9433 hardcode_libdir_flag_spec='-L$libdir'
9434 hardcode_minus_L=yes
9435 allow_undefined_flag=unsupported
9436 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9437 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9441 if test "$GCC" = yes; then
9442 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9443 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9445 allow_undefined_flag=' -expect_unresolved \*'
9446 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9448 archive_cmds_need_lc='no'
9449 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9450 hardcode_libdir_separator=:
9453 osf4* | osf5*) # as osf3* with the addition of -msym flag
9454 if test "$GCC" = yes; then
9455 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9456 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9459 allow_undefined_flag=' -expect_unresolved \*'
9460 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9461 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9462 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9464 # Both c and cxx compiler support -rpath directly
9465 hardcode_libdir_flag_spec='-rpath $libdir'
9467 archive_cmds_need_lc='no'
9468 hardcode_libdir_separator=:
9472 no_undefined_flag=' -z defs'
9473 if test "$GCC" = yes; then
9475 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9477 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9479 case `$CC -V 2>&1` in
9482 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9484 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9488 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9490 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9494 hardcode_libdir_flag_spec='-R$libdir'
9495 hardcode_shlibpath_var=no
9497 solaris2.[0-5] | solaris2.[0-5].*) ;;
9499 # The compiler driver will combine and reorder linker options,
9500 # but understands `-z linker_flag'. GCC discards it without `$wl',
9501 # but is careful enough not to reorder.
9502 # Supported since Solaris 2.6 (maybe 2.5.1?)
9503 if test "$GCC" = yes; then
9504 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9506 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9510 link_all_deplibs=yes
9514 if test "x$host_vendor" = xsequent; then
9515 # Use $CC to link under sequent, because it throws in some extra .o
9516 # files that make .init and .fini sections work.
9517 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9521 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9524 hardcode_shlibpath_var=no
9528 case $host_vendor in
9530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9531 hardcode_direct=yes # is this really true???
9534 ## LD is ld it makes a PLAMLIB
9535 ## CC just makes a GrossModule.
9536 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9537 reload_cmds='$CC -r -o $output$reload_objs'
9541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9545 runpath_var='LD_RUN_PATH'
9546 hardcode_shlibpath_var=no
9550 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9551 hardcode_shlibpath_var=no
9552 export_dynamic_flag_spec='-Bexport'
9556 if test -d /usr/nec; then
9557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_shlibpath_var=no
9559 runpath_var=LD_RUN_PATH
9560 hardcode_runpath_var=yes
9565 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9566 no_undefined_flag='${wl}-z,text'
9567 archive_cmds_need_lc=no
9568 hardcode_shlibpath_var=no
9569 runpath_var='LD_RUN_PATH'
9571 if test "$GCC" = yes; then
9572 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9573 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9575 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 sysv5* | sco3.2v5* | sco5v6*)
9581 # Note: We can NOT use -z defs as we might desire, because we do not
9582 # link with -lc, and that would cause any symbols used from libc to
9583 # always be unresolved, which means just about no library would
9584 # ever link correctly. If we're not using GNU ld we use -z text
9585 # though, which does catch some bad symbols but isn't as heavy-handed
9587 no_undefined_flag='${wl}-z,text'
9588 allow_undefined_flag='${wl}-z,nodefs'
9589 archive_cmds_need_lc=no
9590 hardcode_shlibpath_var=no
9591 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9592 hardcode_libdir_separator=':'
9593 link_all_deplibs=yes
9594 export_dynamic_flag_spec='${wl}-Bexport'
9595 runpath_var='LD_RUN_PATH'
9597 if test "$GCC" = yes; then
9598 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9601 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9607 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608 hardcode_libdir_flag_spec='-L$libdir'
9609 hardcode_shlibpath_var=no
9617 if test x$host_vendor = xsni; then
9619 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9620 export_dynamic_flag_spec='${wl}-Blargedynsym'
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9627 $as_echo "$ld_shlibs" >&6; }
9628 test "$ld_shlibs" = no && can_build_shared=no
9630 with_gnu_ld=$with_gnu_ld
9647 # Do we need to explicitly link libc?
9649 case "x$archive_cmds_need_lc" in
9651 # Assume -lc should be added
9652 archive_cmds_need_lc=yes
9654 if test "$enable_shared" = yes && test "$GCC" = yes; then
9655 case $archive_cmds in
9657 # FIXME: we may have to deal with multi-command sequences.
9660 # Test whether the compiler implicitly links with -lc since on some
9661 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9662 # to ld, don't add -lc before -lgcc.
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9664 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9665 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9671 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9672 (eval $ac_compile) 2>&5
9674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9675 test $ac_status = 0; } 2>conftest.err; then
9678 libobjs=conftest.$ac_objext
9680 wl=$lt_prog_compiler_wl
9681 pic_flag=$lt_prog_compiler_pic
9687 lt_save_allow_undefined_flag=$allow_undefined_flag
9688 allow_undefined_flag=
9689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9690 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9693 test $ac_status = 0; }
9695 lt_cv_archive_cmds_need_lc=no
9697 lt_cv_archive_cmds_need_lc=yes
9699 allow_undefined_flag=$lt_save_allow_undefined_flag
9701 cat conftest.err 1>&5
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9707 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9708 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9872 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9874 if test "$GCC" = yes; then
9876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9877 *) lt_awk_arg="/^libraries:/" ;;
9880 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9881 *) lt_sed_strip_eq="s,=/,/,g" ;;
9883 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9884 case $lt_search_path_spec in
9886 # if the path contains ";" then we assume it to be the separator
9887 # otherwise default to the standard path separator (i.e. ":") - it is
9888 # assumed that no part of a normal pathname contains ";" but that should
9889 # okay in the real world where ";" in dirpaths is itself problematic.
9890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9893 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9896 # Ok, now we have the path, separated by spaces, we can step through it
9897 # and add multilib dir if necessary.
9898 lt_tmp_lt_search_path_spec=
9899 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9900 for lt_sys_path in $lt_search_path_spec; do
9901 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9904 test -d "$lt_sys_path" && \
9905 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9908 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9909 BEGIN {RS=" "; FS="/|\n";} {
9912 for (lt_i = NF; lt_i > 0; lt_i--) {
9913 if ($lt_i != "" && $lt_i != ".") {
9914 if ($lt_i == "..") {
9917 if (lt_count == 0) {
9918 lt_foo="/" $lt_i lt_foo;
9925 if (lt_foo != "") { lt_freq[lt_foo]++; }
9926 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9928 # AWK program above erroneously prepends '/' to C:/dos/paths
9931 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9932 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9934 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9939 libname_spec='lib$name'
9947 shlibpath_overrides_runpath=unknown
9949 dynamic_linker="$host_os ld.so"
9950 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9951 need_lib_prefix=unknown
9952 hardcode_into_libs=no
9954 # when you set need_version to no, make sure it does not cause -set_version
9955 # flags to be left without arguments
9956 need_version=unknown
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9962 shlibpath_var=LIBPATH
9964 # AIX 3 has no versioning support, so we append a major version to the name.
9965 soname_spec='${libname}${release}${shared_ext}$major'
9972 hardcode_into_libs=yes
9973 if test "$host_cpu" = ia64; then
9974 # AIX 5 supports IA64
9975 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9976 shlibpath_var=LD_LIBRARY_PATH
9978 # With GCC up to 2.95.x, collect2 would create an import file
9979 # for dependence libraries. The import file would start with
9980 # the line `#! .'. This would cause the generated library to
9981 # depend on `.', always an invalid library. This was fixed in
9982 # development snapshots of GCC prior to 3.0.
9984 aix4 | aix4.[01] | aix4.[01].*)
9985 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9987 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9994 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9995 # soname into executable. Probably we can add versioning support to
9996 # collect2, so additional links can be useful in future.
9997 if test "$aix_use_runtimelinking" = yes; then
9998 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9999 # instead of lib<name>.a to let people know that these are not
10000 # typical AIX shared libraries.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 # We preserve .a as extension for shared libraries through AIX4.2
10004 # and later when we are not doing run time linking.
10005 library_names_spec='${libname}${release}.a $libname.a'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10008 shlibpath_var=LIBPATH
10015 # Since July 2007 AmigaOS4 officially supports .so libraries.
10016 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10020 library_names_spec='$libname.ixlibrary $libname.a'
10021 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10022 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10028 library_names_spec='${libname}${shared_ext}'
10029 dynamic_linker="$host_os ld.so"
10030 shlibpath_var=LIBRARY_PATH
10036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037 soname_spec='${libname}${release}${shared_ext}$major'
10038 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10041 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10042 # the default ld.so.conf also contains /usr/contrib/lib and
10043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10044 # libtool to hard-code these into programs
10047 cygwin* | mingw* | pw32* | cegcc*)
10048 version_type=windows
10053 case $GCC,$host_os in
10054 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10055 library_names_spec='$libname.dll.a'
10056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10057 postinstall_cmds='base_file=`basename \${file}`~
10058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10059 dldir=$destdir/`dirname \$dlpath`~
10060 test -d \$dldir || mkdir -p \$dldir~
10061 $install_prog $dir/$dlname \$dldir/$dlname~
10062 chmod a+x \$dldir/$dlname~
10063 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10064 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10066 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10067 dlpath=$dir/\$dldll~
10069 shlibpath_overrides_runpath=yes
10073 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10074 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10076 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10079 # MinGW DLLs use traditional 'lib' prefix
10080 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10083 # pw32 DLLs use 'pw' prefix rather than 'lib'
10084 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10090 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10093 dynamic_linker='Win32 ld.exe'
10094 # FIXME: first we should search . and the directory the executable is in
10098 darwin* | rhapsody*)
10099 dynamic_linker="$host_os dyld"
10100 version_type=darwin
10103 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10104 soname_spec='${libname}${release}${major}$shared_ext'
10105 shlibpath_overrides_runpath=yes
10106 shlibpath_var=DYLD_LIBRARY_PATH
10107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10109 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10110 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10118 soname_spec='${libname}${release}${shared_ext}$major'
10119 shlibpath_var=LD_LIBRARY_PATH
10122 freebsd* | dragonfly*)
10123 # DragonFly does not have aout. When/if they implement a new
10124 # versioning mechanism, adjust this.
10125 if test -x /usr/bin/objformat; then
10126 objformat=`/usr/bin/objformat`
10129 freebsd[23].*) objformat=aout ;;
10130 *) objformat=elf ;;
10133 version_type=freebsd-$objformat
10134 case $version_type in
10136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10145 shlibpath_var=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath=yes
10150 freebsd3.[01]* | freebsdelf3.[01]*)
10151 shlibpath_overrides_runpath=yes
10152 hardcode_into_libs=yes
10154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10156 shlibpath_overrides_runpath=no
10157 hardcode_into_libs=yes
10159 *) # from 4.6 on, and DragonFly
10160 shlibpath_overrides_runpath=yes
10161 hardcode_into_libs=yes
10170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10171 soname_spec='${libname}${release}${shared_ext}$major'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 hardcode_into_libs=yes
10180 dynamic_linker="$host_os runtime_loader"
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LIBRARY_PATH
10184 shlibpath_overrides_runpath=yes
10185 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10186 hardcode_into_libs=yes
10189 hpux9* | hpux10* | hpux11*)
10190 # Give a soname corresponding to the major version so that dld.sl refuses to
10191 # link against other versions.
10198 hardcode_into_libs=yes
10199 dynamic_linker="$host_os dld.so"
10200 shlibpath_var=LD_LIBRARY_PATH
10201 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 if test "X$HPUX_IA64_MODE" = X32; then
10205 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10207 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10213 hardcode_into_libs=yes
10214 dynamic_linker="$host_os dld.sl"
10215 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10216 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10220 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10224 dynamic_linker="$host_os dld.sl"
10225 shlibpath_var=SHLIB_PATH
10226 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10231 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10232 postinstall_cmds='chmod 555 $lib'
10233 # or fails outright, so override atomically:
10234 install_override_mode=555
10241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242 soname_spec='${libname}${release}${shared_ext}$major'
10243 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=no
10246 hardcode_into_libs=yes
10249 irix5* | irix6* | nonstopux*)
10251 nonstopux*) version_type=nonstopux ;;
10253 if test "$lt_cv_prog_gnu_ld" = yes; then
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10264 irix5* | nonstopux*)
10265 libsuff= shlibsuff=
10268 case $LD in # libtool.m4 will add one of these switches to LD
10269 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270 libsuff= shlibsuff= libmagic=32-bit;;
10271 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272 libsuff=32 shlibsuff=N32 libmagic=N32;;
10273 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275 *) libsuff= shlibsuff= libmagic=never-match;;
10279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283 hardcode_into_libs=yes
10286 # No shared lib support for Linux oldld, aout, or coff.
10287 linux*oldld* | linux*aout* | linux*coff*)
10291 # This must be Linux ELF.
10292 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 soname_spec='${libname}${release}${shared_ext}$major'
10298 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299 shlibpath_var=LD_LIBRARY_PATH
10300 shlibpath_overrides_runpath=no
10302 # Some binutils ld are patched to set DT_RUNPATH
10303 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
10306 lt_cv_shlibpath_overrides_runpath=no
10307 save_LDFLAGS=$LDFLAGS
10308 save_libdir=$libdir
10309 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10310 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10312 /* end confdefs.h. */
10322 if ac_fn_c_try_link "$LINENO"; then :
10323 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10324 lt_cv_shlibpath_overrides_runpath=yes
10327 rm -f core conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LDFLAGS=$save_LDFLAGS
10330 libdir=$save_libdir
10334 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10336 # This implies no fast_install, which is unacceptable.
10337 # Some rework will be needed to allow for fast_install
10338 # before this can be enabled.
10339 hardcode_into_libs=yes
10341 # Append ld.so.conf contents to the search path
10342 if test -f /etc/ld.so.conf; then
10343 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10344 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10347 # We used to test for /lib/ld.so.1 and disable shared libraries on
10348 # powerpc, because MkLinux only supported shared libraries with the
10349 # GNU dynamic linker. Since this was broken with cross compilers,
10350 # most powerpc-linux boxes support dynamic linking these days and
10351 # people can always --disable-shared, the test was removed, and we
10352 # assume the GNU/Linux dynamic linker is in use.
10353 dynamic_linker='GNU/Linux ld.so'
10360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10363 dynamic_linker='NetBSD (a.out) ld.so'
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 dynamic_linker='NetBSD ld.elf_so'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10371 hardcode_into_libs=yes
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec='${libname}${release}${shared_ext}$major'
10387 shlibpath_var=LD_LIBRARY_PATH
10388 shlibpath_overrides_runpath=no
10389 hardcode_into_libs=yes
10390 dynamic_linker='ldqnx.so'
10395 sys_lib_dlsearch_path_spec="/usr/lib"
10397 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10399 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10400 *) need_version=no ;;
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10404 shlibpath_var=LD_LIBRARY_PATH
10405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10407 openbsd2.[89] | openbsd2.[89].*)
10408 shlibpath_overrides_runpath=no
10411 shlibpath_overrides_runpath=yes
10415 shlibpath_overrides_runpath=yes
10420 libname_spec='$name'
10423 library_names_spec='$libname${shared_ext} $libname.a'
10424 dynamic_linker='OS/2 ld.exe'
10425 shlibpath_var=LIBPATH
10428 osf3* | osf4* | osf5*)
10432 soname_spec='${libname}${release}${shared_ext}$major'
10433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10452 # ldd complains unless libraries are executable
10453 postinstall_cmds='chmod +x $lib'
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 if test "$with_gnu_ld" = yes; then
10470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LD_LIBRARY_PATH
10473 case $host_vendor in
10475 shlibpath_overrides_runpath=no
10477 runpath_var=LD_RUN_PATH
10485 shlibpath_overrides_runpath=no
10486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10492 if test -d /usr/nec ;then
10494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10495 soname_spec='$libname${shared_ext}.$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10501 version_type=freebsd-elf
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10505 soname_spec='${libname}${release}${shared_ext}$major'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 hardcode_into_libs=yes
10509 if test "$with_gnu_ld" = yes; then
10510 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10519 sys_lib_dlsearch_path_spec='/usr/lib'
10523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 shlibpath_overrides_runpath=no
10530 hardcode_into_libs=yes
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10536 soname_spec='${libname}${release}${shared_ext}$major'
10537 shlibpath_var=LD_LIBRARY_PATH
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10545 $as_echo "$dynamic_linker" >&6; }
10546 test "$dynamic_linker" = no && can_build_shared=no
10548 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10549 if test "$GCC" = yes; then
10550 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10553 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10554 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10556 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10557 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10652 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10654 if test -n "$hardcode_libdir_flag_spec" ||
10655 test -n "$runpath_var" ||
10656 test "X$hardcode_automatic" = "Xyes" ; then
10658 # We can hardcode non-existent directories.
10659 if test "$hardcode_direct" != no &&
10660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10661 # have to relink, otherwise we might link with an installed library
10662 # when we should be linking with a yet-to-be-installed one
10663 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10664 test "$hardcode_minus_L" != no; then
10665 # Linking always hardcodes the temporary library directory.
10666 hardcode_action=relink
10668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10669 hardcode_action=immediate
10672 # We cannot hardcode anything, or else we can only hardcode existing
10674 hardcode_action=unsupported
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10677 $as_echo "$hardcode_action" >&6; }
10679 if test "$hardcode_action" = relink ||
10680 test "$inherit_rpath" = yes; then
10681 # Fast installation is not supported
10682 enable_fast_install=no
10683 elif test "$shlibpath_overrides_runpath" = yes ||
10684 test "$enable_shared" = no; then
10685 # Fast installation is not necessary
10686 enable_fast_install=needless
10694 if test "x$enable_dlopen" != xyes; then
10695 enable_dlopen=unknown
10696 enable_dlopen_self=unknown
10697 enable_dlopen_self_static=unknown
10704 lt_cv_dlopen="load_add_on"
10706 lt_cv_dlopen_self=yes
10709 mingw* | pw32* | cegcc*)
10710 lt_cv_dlopen="LoadLibrary"
10715 lt_cv_dlopen="dlopen"
10720 # if libdl is installed we need to link against it
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
10726 ac_check_lib_save_LIBS=$LIBS
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10731 /* Override any GCC internal prototype to avoid an error.
10732 Use char because int might match the return type of a GCC
10733 builtin and then its argument prototype would still apply. */
10746 if ac_fn_c_try_link "$LINENO"; then :
10747 ac_cv_lib_dl_dlopen=yes
10749 ac_cv_lib_dl_dlopen=no
10751 rm -f core conftest.err conftest.$ac_objext \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LIBS=$ac_check_lib_save_LIBS
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10757 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10758 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10761 lt_cv_dlopen="dyld"
10763 lt_cv_dlopen_self=yes
10770 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10771 if test "x$ac_cv_func_shl_load" = x""yes; then :
10772 lt_cv_dlopen="shl_load"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10775 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10776 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10777 $as_echo_n "(cached) " >&6
10779 ac_check_lib_save_LIBS=$LIBS
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10794 return shl_load ();
10799 if ac_fn_c_try_link "$LINENO"; then :
10800 ac_cv_lib_dld_shl_load=yes
10802 ac_cv_lib_dld_shl_load=no
10804 rm -f core conftest.err conftest.$ac_objext \
10805 conftest$ac_exeext conftest.$ac_ext
10806 LIBS=$ac_check_lib_save_LIBS
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10809 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10810 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10811 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10813 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10814 if test "x$ac_cv_func_dlopen" = x""yes; then :
10815 lt_cv_dlopen="dlopen"
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10818 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10819 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10822 ac_check_lib_save_LIBS=$LIBS
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10827 /* Override any GCC internal prototype to avoid an error.
10828 Use char because int might match the return type of a GCC
10829 builtin and then its argument prototype would still apply. */
10842 if ac_fn_c_try_link "$LINENO"; then :
10843 ac_cv_lib_dl_dlopen=yes
10845 ac_cv_lib_dl_dlopen=no
10847 rm -f core conftest.err conftest.$ac_objext \
10848 conftest$ac_exeext conftest.$ac_ext
10849 LIBS=$ac_check_lib_save_LIBS
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10852 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10853 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10854 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10857 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10858 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10859 $as_echo_n "(cached) " >&6
10861 ac_check_lib_save_LIBS=$LIBS
10862 LIBS="-lsvld $LIBS"
10863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10864 /* end confdefs.h. */
10866 /* Override any GCC internal prototype to avoid an error.
10867 Use char because int might match the return type of a GCC
10868 builtin and then its argument prototype would still apply. */
10881 if ac_fn_c_try_link "$LINENO"; then :
10882 ac_cv_lib_svld_dlopen=yes
10884 ac_cv_lib_svld_dlopen=no
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 LIBS=$ac_check_lib_save_LIBS
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10891 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10892 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10896 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10897 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10898 $as_echo_n "(cached) " >&6
10900 ac_check_lib_save_LIBS=$LIBS
10902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10903 /* end confdefs.h. */
10905 /* Override any GCC internal prototype to avoid an error.
10906 Use char because int might match the return type of a GCC
10907 builtin and then its argument prototype would still apply. */
10915 return dld_link ();
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 ac_cv_lib_dld_dld_link=yes
10923 ac_cv_lib_dld_dld_link=no
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LIBS=$ac_check_lib_save_LIBS
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10930 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10931 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10932 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10953 if test "x$lt_cv_dlopen" != xno; then
10959 case $lt_cv_dlopen in
10961 save_CPPFLAGS="$CPPFLAGS"
10962 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10964 save_LDFLAGS="$LDFLAGS"
10965 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10968 LIBS="$lt_cv_dlopen_libs $LIBS"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10971 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10972 if test "${lt_cv_dlopen_self+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
10975 if test "$cross_compiling" = yes; then :
10976 lt_cv_dlopen_self=cross
10978 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10979 lt_status=$lt_dlunknown
10980 cat > conftest.$ac_ext <<_LT_EOF
10981 #line 10981 "configure"
10982 #include "confdefs.h"
10991 # define LT_DLGLOBAL RTLD_GLOBAL
10994 # define LT_DLGLOBAL DL_GLOBAL
10996 # define LT_DLGLOBAL 0
11000 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11001 find out it does not work in some platform. */
11002 #ifndef LT_DLLAZY_OR_NOW
11004 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11007 # define LT_DLLAZY_OR_NOW DL_LAZY
11010 # define LT_DLLAZY_OR_NOW RTLD_NOW
11013 # define LT_DLLAZY_OR_NOW DL_NOW
11015 # define LT_DLLAZY_OR_NOW 0
11022 /* When -fvisbility=hidden is used, assume the code has been annotated
11023 correspondingly for the symbols needed. */
11024 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11025 void fnord () __attribute__((visibility("default")));
11028 void fnord () { int i=42; }
11031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11032 int status = $lt_dlunknown;
11036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11039 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11040 else puts (dlerror ());
11042 /* dlclose (self); */
11050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11051 (eval $ac_link) 2>&5
11053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11054 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11055 (./conftest; exit; ) >&5 2>/dev/null
11057 case x$lt_status in
11058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11063 # compilation failed
11064 lt_cv_dlopen_self=no
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11072 $as_echo "$lt_cv_dlopen_self" >&6; }
11074 if test "x$lt_cv_dlopen_self" = xyes; then
11075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11077 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11078 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11079 $as_echo_n "(cached) " >&6
11081 if test "$cross_compiling" = yes; then :
11082 lt_cv_dlopen_self_static=cross
11084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11085 lt_status=$lt_dlunknown
11086 cat > conftest.$ac_ext <<_LT_EOF
11087 #line 11087 "configure"
11088 #include "confdefs.h"
11097 # define LT_DLGLOBAL RTLD_GLOBAL
11100 # define LT_DLGLOBAL DL_GLOBAL
11102 # define LT_DLGLOBAL 0
11106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11107 find out it does not work in some platform. */
11108 #ifndef LT_DLLAZY_OR_NOW
11110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11113 # define LT_DLLAZY_OR_NOW DL_LAZY
11116 # define LT_DLLAZY_OR_NOW RTLD_NOW
11119 # define LT_DLLAZY_OR_NOW DL_NOW
11121 # define LT_DLLAZY_OR_NOW 0
11128 /* When -fvisbility=hidden is used, assume the code has been annotated
11129 correspondingly for the symbols needed. */
11130 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11131 void fnord () __attribute__((visibility("default")));
11134 void fnord () { int i=42; }
11137 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11138 int status = $lt_dlunknown;
11142 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11145 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11146 else puts (dlerror ());
11148 /* dlclose (self); */
11156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11157 (eval $ac_link) 2>&5
11159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11160 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11161 (./conftest; exit; ) >&5 2>/dev/null
11163 case x$lt_status in
11164 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11165 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11166 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11169 # compilation failed
11170 lt_cv_dlopen_self_static=no
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11178 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11181 CPPFLAGS="$save_CPPFLAGS"
11182 LDFLAGS="$save_LDFLAGS"
11187 case $lt_cv_dlopen_self in
11188 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11189 *) enable_dlopen_self=unknown ;;
11192 case $lt_cv_dlopen_self_static in
11193 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11194 *) enable_dlopen_self_static=unknown ;;
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11217 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11218 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11222 $as_echo "yes" >&6; }
11224 # FIXME - insert some real tests, host_os isn't really good enough
11227 if test -n "$STRIP" ; then
11228 striplib="$STRIP -x"
11229 old_striplib="$STRIP -S"
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11231 $as_echo "yes" >&6; }
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234 $as_echo "no" >&6; }
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11239 $as_echo "no" >&6; }
11255 # Report which library types will actually be built
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11257 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11259 $as_echo "$can_build_shared" >&6; }
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11262 $as_echo_n "checking whether to build shared libraries... " >&6; }
11263 test "$can_build_shared" = "no" && enable_shared=no
11265 # On AIX, shared libraries and static libraries use the same namespace, and
11266 # are all built from PIC.
11269 test "$enable_shared" = yes && enable_static=no
11270 if test -n "$RANLIB"; then
11271 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11272 postinstall_cmds='$RANLIB $lib'
11277 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11278 test "$enable_shared" = yes && enable_static=no
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11283 $as_echo "$enable_shared" >&6; }
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11286 $as_echo_n "checking whether to build static libraries... " >&6; }
11287 # Make sure either enable_shared or enable_static is yes.
11288 test "$enable_shared" = yes || enable_static=yes
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11290 $as_echo "$enable_static" >&6; }
11297 ac_cpp='$CPP $CPPFLAGS'
11298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11316 ac_config_commands="$ac_config_commands libtool"
11321 # Only expand once:
11325 # The tests for host and target for $enable_largefile require
11330 # As the $enable_largefile decision depends on --enable-plugins we must set it
11331 # even in directories otherwise not depending on the $plugins option.
11335 for ac_header in dlfcn.h
11337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11340 cat >>confdefs.h <<_ACEOF
11341 #define HAVE_DLFCN_H 1
11348 for ac_header in windows.h
11350 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11352 if test "x$ac_cv_header_windows_h" = x""yes; then :
11353 cat >>confdefs.h <<_ACEOF
11354 #define HAVE_WINDOWS_H 1
11362 # Check whether --enable-plugins was given.
11363 if test "${enable_plugins+set}" = set; then :
11364 enableval=$enable_plugins; case "${enableval}" in
11367 if test "$maybe_plugins" != "yes" ; then
11368 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11372 plugins=$maybe_plugins
11376 if test "$plugins" = "yes"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11378 $as_echo_n "checking for library containing dlopen... " >&6; }
11379 if test "${ac_cv_search_dlopen+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11382 ac_func_search_save_LIBS=$LIBS
11383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11384 /* end confdefs.h. */
11386 /* Override any GCC internal prototype to avoid an error.
11387 Use char because int might match the return type of a GCC
11388 builtin and then its argument prototype would still apply. */
11401 for ac_lib in '' dl; do
11402 if test -z "$ac_lib"; then
11403 ac_res="none required"
11406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_search_dlopen=$ac_res
11411 rm -f core conftest.err conftest.$ac_objext \
11413 if test "${ac_cv_search_dlopen+set}" = set; then :
11417 if test "${ac_cv_search_dlopen+set}" = set; then :
11420 ac_cv_search_dlopen=no
11422 rm conftest.$ac_ext
11423 LIBS=$ac_func_search_save_LIBS
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11426 $as_echo "$ac_cv_search_dlopen" >&6; }
11427 ac_res=$ac_cv_search_dlopen
11428 if test "$ac_res" != no; then :
11429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11437 sparc-*-solaris*|i[3-7]86-*-solaris*)
11438 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11439 # are mutually exclusive; and without procfs support, the bfd/ elf module
11440 # cannot provide certain routines such as elfcore_write_prpsinfo
11441 # or elfcore_write_prstatus. So unless the user explicitly requested
11442 # large-file support through the --enable-largefile switch, disable
11443 # large-file support in favor of procfs support.
11444 test "${target}" = "${host}" -a "x$plugins" = xno \
11445 && : ${enable_largefile="no"}
11449 # Check whether --enable-largefile was given.
11450 if test "${enable_largefile+set}" = set; then :
11451 enableval=$enable_largefile;
11454 if test "$enable_largefile" != no; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11457 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11458 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11459 $as_echo_n "(cached) " >&6
11461 ac_cv_sys_largefile_CC=no
11462 if test "$GCC" != yes; then
11465 # IRIX 6.2 and later do not support large files by default,
11466 # so use the C compiler's -n32 option if that helps.
11467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11468 /* end confdefs.h. */
11469 #include <sys/types.h>
11470 /* Check that off_t can represent 2**63 - 1 correctly.
11471 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11472 since some C++ compilers masquerading as C compilers
11473 incorrectly reject 9223372036854775807. */
11474 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11475 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11476 && LARGE_OFF_T % 2147483647 == 1)
11486 if ac_fn_c_try_compile "$LINENO"; then :
11489 rm -f core conftest.err conftest.$ac_objext
11491 if ac_fn_c_try_compile "$LINENO"; then :
11492 ac_cv_sys_largefile_CC=' -n32'; break
11494 rm -f core conftest.err conftest.$ac_objext
11498 rm -f conftest.$ac_ext
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11502 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11503 if test "$ac_cv_sys_largefile_CC" != no; then
11504 CC=$CC$ac_cv_sys_largefile_CC
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11508 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11509 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515 #include <sys/types.h>
11516 /* Check that off_t can represent 2**63 - 1 correctly.
11517 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11518 since some C++ compilers masquerading as C compilers
11519 incorrectly reject 9223372036854775807. */
11520 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11521 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11522 && LARGE_OFF_T % 2147483647 == 1)
11532 if ac_fn_c_try_compile "$LINENO"; then :
11533 ac_cv_sys_file_offset_bits=no; break
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11538 #define _FILE_OFFSET_BITS 64
11539 #include <sys/types.h>
11540 /* Check that off_t can represent 2**63 - 1 correctly.
11541 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11542 since some C++ compilers masquerading as C compilers
11543 incorrectly reject 9223372036854775807. */
11544 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11545 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11546 && LARGE_OFF_T % 2147483647 == 1)
11556 if ac_fn_c_try_compile "$LINENO"; then :
11557 ac_cv_sys_file_offset_bits=64; break
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 ac_cv_sys_file_offset_bits=unknown
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11565 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11566 case $ac_cv_sys_file_offset_bits in #(
11569 cat >>confdefs.h <<_ACEOF
11570 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11575 if test $ac_cv_sys_file_offset_bits = unknown; then
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11577 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11578 if test "${ac_cv_sys_large_files+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h. */
11584 #include <sys/types.h>
11585 /* Check that off_t can represent 2**63 - 1 correctly.
11586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11587 since some C++ compilers masquerading as C compilers
11588 incorrectly reject 9223372036854775807. */
11589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11591 && LARGE_OFF_T % 2147483647 == 1)
11601 if ac_fn_c_try_compile "$LINENO"; then :
11602 ac_cv_sys_large_files=no; break
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 #define _LARGE_FILES 1
11608 #include <sys/types.h>
11609 /* Check that off_t can represent 2**63 - 1 correctly.
11610 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11611 since some C++ compilers masquerading as C compilers
11612 incorrectly reject 9223372036854775807. */
11613 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11614 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11615 && LARGE_OFF_T % 2147483647 == 1)
11625 if ac_fn_c_try_compile "$LINENO"; then :
11626 ac_cv_sys_large_files=1; break
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 ac_cv_sys_large_files=unknown
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11634 $as_echo "$ac_cv_sys_large_files" >&6; }
11635 case $ac_cv_sys_large_files in #(
11638 cat >>confdefs.h <<_ACEOF
11639 #define _LARGE_FILES $ac_cv_sys_large_files
11649 # Check whether --enable-targets was given.
11650 if test "${enable_targets+set}" = set; then :
11651 enableval=$enable_targets; case "${enableval}" in
11652 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
11654 no) enable_targets= ;;
11655 *) enable_targets=$enableval ;;
11660 if grep '^RELEASE=y' ${srcdir}/../bfd/Makefile.am >/dev/null 2>/dev/null ; then
11663 # Check whether --enable-checking was given.
11664 if test "${enable_checking+set}" = set; then :
11665 enableval=$enable_checking; case "${enableval}" in
11666 no|none) ac_checking= ;;
11667 *) ac_checking=yes ;;
11670 if test x$ac_checking != x ; then
11672 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11677 # Decide the default method for compressing debug sections.
11678 ac_default_compressed_debug_sections=unset
11679 # Provide a configure time option to override our default.
11680 # Check whether --enable-compressed_debug_sections was given.
11681 if test "${enable_compressed_debug_sections+set}" = set; then :
11682 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
11683 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
11684 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
11685 *) ac_default_compressed_debug_sections=unset ;;
11690 # Decide if x86 assembler should generate relax relocations.
11691 ac_default_x86_relax_relocations=unset
11692 # Provide a configure time option to override our default.
11693 # Check whether --enable-x86_relax_relocations was given.
11694 if test "${enable_x86_relax_relocations+set}" = set; then :
11695 enableval=$enable_x86_relax_relocations; case "${enableval}" in
11696 no) ac_default_x86_relax_relocations=0 ;;
11700 # Decide if ELF assembler should generate common symbols with the
11702 ac_default_elf_stt_common=unset
11703 # Provide a configure time option to override our default.
11704 # Check whether --enable-elf_stt_common was given.
11705 if test "${enable_elf_stt_common+set}" = set; then :
11706 enableval=$enable_elf_stt_common; case "${enableval}" in
11707 yes) ac_default_elf_stt_common=1 ;;
11714 # Set the 'development' global.
11715 . $srcdir/../bfd/development.sh
11717 # Default set of GCC warnings to enable.
11718 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
11720 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11726 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
11729 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
11734 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
11735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736 /* end confdefs.h. */
11739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
11743 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
11749 # Check whether --enable-werror was given.
11750 if test "${enable_werror+set}" = set; then :
11751 enableval=$enable_werror; case "${enableval}" in
11752 yes | y) ERROR_ON_WARNING="yes" ;;
11753 no | n) ERROR_ON_WARNING="no" ;;
11754 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
11759 # Disable -Wformat by default when using gcc on mingw
11762 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11763 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
11769 # Enable -Werror by default when using gcc. Turn it off for releases.
11770 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
11771 ERROR_ON_WARNING=yes
11775 if test "${ERROR_ON_WARNING}" = yes ; then
11776 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
11777 NO_WERROR="-Wno-error"
11780 if test "${GCC}" = yes ; then
11781 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
11784 # Check whether --enable-build-warnings was given.
11785 if test "${enable_build_warnings+set}" = set; then :
11786 enableval=$enable_build_warnings; case "${enableval}" in
11787 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
11788 no) if test "${GCC}" = yes ; then
11791 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11792 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
11793 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11794 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
11795 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11800 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
11801 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
11808 # Generate a header file
11809 ac_config_headers="$ac_config_headers config.h:config.in"
11815 # If we are on a DOS filesystem, we must use gdb.ini rather than
11818 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
11820 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
11825 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
11831 #We need this for the host. BOUT header is in host order.
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11833 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11834 if test "${ac_cv_c_bigendian+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11837 ac_cv_c_bigendian=unknown
11838 # See if we're dealing with a universal compiler.
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11840 /* end confdefs.h. */
11841 #ifndef __APPLE_CC__
11842 not a universal capable compiler
11847 if ac_fn_c_try_compile "$LINENO"; then :
11849 # Check for potential -arch flags. It is not universal unless
11850 # there are at least two -arch flags with different values.
11853 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11854 if test -n "$ac_prev"; then
11856 i?86 | x86_64 | ppc | ppc64)
11857 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11860 ac_cv_c_bigendian=universal
11866 elif test "x$ac_word" = "x-arch"; then
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 if test $ac_cv_c_bigendian = unknown; then
11873 # See if sys/param.h defines the BYTE_ORDER macro.
11874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875 /* end confdefs.h. */
11876 #include <sys/types.h>
11877 #include <sys/param.h>
11882 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11883 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11885 bogus endian macros
11892 if ac_fn_c_try_compile "$LINENO"; then :
11893 # It does; now see whether it defined to BIG_ENDIAN or not.
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <sys/types.h>
11897 #include <sys/param.h>
11902 #if BYTE_ORDER != BIG_ENDIAN
11910 if ac_fn_c_try_compile "$LINENO"; then :
11911 ac_cv_c_bigendian=yes
11913 ac_cv_c_bigendian=no
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11919 if test $ac_cv_c_bigendian = unknown; then
11920 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11923 #include <limits.h>
11928 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11929 bogus endian macros
11936 if ac_fn_c_try_compile "$LINENO"; then :
11937 # It does; now see whether it defined to _BIG_ENDIAN or not.
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940 #include <limits.h>
11945 #ifndef _BIG_ENDIAN
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954 ac_cv_c_bigendian=yes
11956 ac_cv_c_bigendian=no
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11962 if test $ac_cv_c_bigendian = unknown; then
11963 # Compile a test program.
11964 if test "$cross_compiling" = yes; then :
11965 # Try to guess by grepping values from an object file.
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 short int ascii_mm[] =
11969 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11970 short int ascii_ii[] =
11971 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11972 int use_ascii (int i) {
11973 return ascii_mm[i] + ascii_ii[i];
11975 short int ebcdic_ii[] =
11976 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11977 short int ebcdic_mm[] =
11978 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11979 int use_ebcdic (int i) {
11980 return ebcdic_mm[i] + ebcdic_ii[i];
11987 return use_ascii (foo) == use_ebcdic (foo);
11992 if ac_fn_c_try_compile "$LINENO"; then :
11993 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11994 ac_cv_c_bigendian=yes
11996 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11997 if test "$ac_cv_c_bigendian" = unknown; then
11998 ac_cv_c_bigendian=no
12000 # finding both strings is unlikely to happen, but who knows?
12001 ac_cv_c_bigendian=unknown
12005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12008 /* end confdefs.h. */
12009 $ac_includes_default
12014 /* Are we little or big endian? From Harbison&Steele. */
12018 char c[sizeof (long int)];
12021 return u.c[sizeof (long int) - 1] == 1;
12027 if ac_fn_c_try_run "$LINENO"; then :
12028 ac_cv_c_bigendian=no
12030 ac_cv_c_bigendian=yes
12032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12033 conftest.$ac_objext conftest.beam conftest.$ac_ext
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12039 $as_echo "$ac_cv_c_bigendian" >&6; }
12040 case $ac_cv_c_bigendian in #(
12042 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12048 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12052 as_fn_error "unknown endianness
12053 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12059 # Makefile target for installing gas in $(tooldir)/bin.
12060 install_tooldir=install-exec-tooldir
12064 if test -n "$enable_targets" ; then
12065 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12066 if test $t = "all"; then
12070 result=`$ac_config_sub $t 2>/dev/null`
12071 if test -n "$result" ; then
12072 canon_targets="$canon_targets $result"
12074 # # Permit "all", etc. We don't support it yet though.
12075 # canon_targets="$canon_targets $t"
12078 _gas_uniq_list="$canon_targets"
12079 _gas_uniq_newlist=""
12080 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12081 case $_gas_uniq_i in
12082 _gas_uniq_dummy) ;;
12083 *) case " $_gas_uniq_newlist " in
12084 *" $_gas_uniq_i "*) ;;
12085 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12089 canon_targets=$_gas_uniq_newlist
12095 for this_target in $target $canon_targets ; do
12097 targ=${this_target}
12098 . ${srcdir}/configure.tgt
12100 case ${target_cpu} in
12103 cat >>confdefs.h <<_ACEOF
12104 #define DEFAULT_CRIS_ARCH $arch
12110 if test ${this_target} = $target ; then
12111 target_cpu_type=${cpu_type}
12112 elif test ${target_cpu_type} != ${cpu_type} ; then
12116 generic_target=${cpu_type}-${target_vendor}-${target_os}
12117 case ${generic_target} in
12119 if test ${this_target} = $target; then
12121 $as_echo "#define SCO_ELF 1" >>confdefs.h
12126 i386-*-msdosdjgpp* \
12128 | i386-go32-rtems*)
12130 $as_echo "#define STRICTCOFF 1" >>confdefs.h
12135 | x86_64-*-solaris2 \
12136 | i386-*-solaris2.[0-9] \
12137 | i386-*-solaris2.1[01] \
12138 | x86_64-*-solaris2.1[01])
12139 if test ${this_target} = $target \
12140 && test ${ac_default_x86_relax_relocations} = unset; then
12141 ac_default_x86_relax_relocations=0
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&5
12147 $as_echo "$as_me: WARNING: GAS support for ${generic_target} is preliminary and a work in progress" >&2;}
12155 $as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
12159 if test ${this_target} = $target; then
12161 $as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
12164 if test x${endian} = xbig; then
12165 as_fn_error "Solaris must be configured little endian" "$LINENO" 5
12171 $as_echo "#define TARGET_SYMBIAN 1" >>confdefs.h
12176 if test ${this_target} = $target ; then
12178 if test x${endian} = xbig; then
12180 elif test x${endian} = xlittle; then
12183 if test x${endian_def} != x; then
12185 cat >>confdefs.h <<_ACEOF
12186 #define TARGET_BYTES_BIG_ENDIAN $endian_def
12192 # Other random stuff.
12194 case ${cpu_type} in
12196 # Set mips_cpu to the name of the default CPU.
12197 case ${target_cpu} in
12198 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12201 mipsisa32 | mipsisa32el)
12204 mipsisa32r2 | mipsisa32r2el)
12207 mipsisa32r3 | mipsisa32r3el)
12210 mipsisa32r5 | mipsisa32r5el)
12213 mipsisa32r6 | mipsisa32r6el)
12216 mipsisa64 | mipsisa64el)
12219 mipsisa64r2 | mipsisa64r2el)
12222 mipsisa64r3 | mipsisa64r3el)
12225 mipsisa64r5 | mipsisa64r5el)
12228 mipsisa64r6 | mipsisa64r6el)
12231 mipstx39 | mipstx39el)
12234 mips64vr | mips64vrel)
12237 mipsisa32r2* | mipsisa64r2*)
12238 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12240 mipsisa32r6* | mipsisa64r6*)
12241 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12243 mips64* | mipsisa64* | mipsisa32*)
12244 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12247 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12250 as_fn_error "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
12253 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12254 # binaries. It's a GNU extension that some OSes don't understand.
12257 use_e_mips_abi_o32=0
12260 use_e_mips_abi_o32=1
12263 # Decide whether to generate 32-bit or 64-bit code by default.
12264 # Used to resolve -march=from-abi when an embedded ABI is selected.
12266 mips64*-*-* | mipsisa64*-*-*)
12267 mips_default_64bit=1
12270 mips_default_64bit=0
12273 # Decide which ABI to target by default.
12275 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* | mips64*-kfreebsd*-gnu)
12276 mips_default_abi=N32_ABI
12278 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
12279 mips_default_abi=O32_ABI
12282 mips_default_abi=N64_ABI
12285 mips_default_abi=NO_ABI
12289 cat >>confdefs.h <<_ACEOF
12290 #define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
12294 cat >>confdefs.h <<_ACEOF
12295 #define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
12299 cat >>confdefs.h <<_ACEOF
12300 #define MIPS_DEFAULT_64BIT $mips_default_64bit
12304 cat >>confdefs.h <<_ACEOF
12305 #define MIPS_DEFAULT_ABI $mips_default_abi
12311 # Do we need the opcodes library?
12312 case ${cpu_type} in
12319 case "${enable_shared}" in
12320 yes) shared_opcodes=true ;;
12321 *opcodes*) shared_opcodes=true ;;
12322 *) shared_opcodes=false ;;
12327 # Any other special object files needed ?
12328 case ${cpu_type} in
12331 echo ${extra_objects} | grep -s "bfin-parse.o"
12332 if test $? -ne 0 ; then
12333 extra_objects="$extra_objects bfin-parse.o"
12336 echo ${extra_objects} | grep -s "bfin-lex-wrapper.o"
12337 if test $? -ne 0 ; then
12338 extra_objects="$extra_objects bfin-lex-wrapper.o"
12342 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
12353 case ${extra_objects} in
12355 *) extra_objects="$extra_objects m68k-parse.o" ;;
12364 echo ${extra_objects} | grep -s "itbl-parse.o"
12365 if test $? -ne 0 ; then
12366 extra_objects="$extra_objects itbl-parse.o"
12369 echo ${extra_objects} | grep -s "itbl-lex-wrapper.o"
12370 if test $? -ne 0 ; then
12371 extra_objects="$extra_objects itbl-lex-wrapper.o"
12374 echo ${extra_objects} | grep -s "itbl-ops.o"
12375 if test $? -ne 0 ; then
12376 extra_objects="$extra_objects itbl-ops.o"
12385 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
12386 # based on arch_name.
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12388 $as_echo_n "checking for default configuration of --with-arch... " >&6; }
12389 if test "x${with_arch}" != x; then
12390 case ${with_arch} in
12391 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
12393 cat >>confdefs.h <<_ACEOF
12394 #define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12399 as_fn_error "This kind of arch name does *NOT* exist!" "$LINENO" 5
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12404 $as_echo "$with_arch" >&6; }
12406 # Decide features one by one.
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
12408 $as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
12409 if test "x${enable_dx_regs}" = xyes; then
12411 $as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12415 $as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12419 $as_echo "$enable_dx_regs" >&6; }
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
12422 $as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
12423 if test "x${enable_perf_ext}" = xno; then
12425 $as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12429 $as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12433 $as_echo "$enable_perf_ext" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
12436 $as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
12437 if test "x${enable_perf_ext2}" = xno; then
12439 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12443 $as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12447 $as_echo "$enable_perf_ext2" >&6; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
12450 $as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
12451 if test "x${enable_string_ext}" = xno; then
12453 $as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12457 $as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12461 $as_echo "$enable_string_ext" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
12464 $as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
12465 if test "x${enable_audio_ext}" = xno; then
12467 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12471 $as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12475 $as_echo "$enable_audio_ext" >&6; }
12478 i386 | s390 | sparc)
12479 if test $this_target = $target ; then
12481 cat >>confdefs.h <<_ACEOF
12482 #define DEFAULT_ARCH "${arch}"
12489 echo ${extra_objects} | grep -s "rl78-parse.o"
12490 if test $? -ne 0 ; then
12491 extra_objects="$extra_objects rl78-parse.o"
12496 echo ${extra_objects} | grep -s "rx-parse.o"
12497 if test $? -ne 0 ; then
12498 extra_objects="$extra_objects rx-parse.o"
12511 echo ${extra_objects} | grep -s "xtensa-relax.o"
12512 if test $? -ne 0 ; then
12513 extra_objects="$extra_objects xtensa-relax.o"
12521 if test $using_cgen = yes ; then
12522 case "x${extra_objects}" in
12524 *) extra_objects="$extra_objects cgen.o" ;;
12528 # See if we really can support this configuration with the emulation code.
12530 if test $this_target = $target ; then
12536 vms) extra_objects="$extra_objects te-vms.o" ;;
12539 # From target name and format, produce a list of supported emulations.
12541 case ${generic_target}-${fmt} in
12542 mips-*-*-*) case "$endian" in
12543 big) emulation="mipsbelf mipslelf mipself" ;;
12544 *) emulation="mipslelf mipsbelf mipself" ;;
12546 # i386-pc-pe-coff != i386-pc-coff.
12548 # Uncommenting the next line will turn on support for i386 AOUT
12549 # for the default linux configuration
12550 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
12552 i386-*-aout) emulation="i386aout" ;;
12553 i386-*-coff) emulation="i386coff" ;;
12554 i386-*-elf) emulation="i386elf" ;;
12556 # Always all formats. The first stated emulation becomes the default.
12557 cris-*-*aout*) emulation="crisaout criself" ;;
12558 cris-*-*) emulation="criself crisaout" ;;
12561 emulations="$emulations $emulation"
12565 if test ${ac_default_x86_relax_relocations} = unset; then
12566 ac_default_x86_relax_relocations=1
12569 cat >>confdefs.h <<_ACEOF
12570 #define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
12574 if test ${ac_default_elf_stt_common} = unset; then
12575 ac_default_elf_stt_common=0
12578 cat >>confdefs.h <<_ACEOF
12579 #define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
12583 if test x$ac_default_compressed_debug_sections = xyes ; then
12585 $as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
12589 # Turn on all targets if possible
12590 if test ${all_targets} = "yes"; then
12591 case ${target_cpu_type} in
12593 case ${obj_format} in
12595 emulations="$emulations i386coff i386elf"
12598 emulations="$emulations i386aout i386elf"
12601 emulations="$emulations i386aout i386coff"
12606 case ${obj_format} in
12608 emulations="$emulations i386coff i386elf"
12611 emulations="$emulations i386aout i386elf"
12614 emulations="$emulations i386aout i386coff"
12621 # PE code has way too many macros tweaking behaviour
12623 pe*) emulations="" ;;
12626 # Assign floating point type. Most processors with FP support
12627 # IEEE FP. On those that don't support FP at all, usually IEEE
12629 case ${target_cpu} in
12630 vax | pdp11 ) atof=vax ;;
12634 case "${obj_format}" in
12635 "") as_fn_error "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
12638 # Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
12640 if test $using_cgen = yes ; then
12641 case ${target_cpu} in
12643 cgen_cpu_prefix=or1k ;;
12644 *) cgen_cpu_prefix=${target_cpu} ;;
12648 $as_echo "#define USING_CGEN 1" >>confdefs.h
12653 if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
12654 as_fn_error "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
12657 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
12658 as_fn_error "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
12661 # Some COFF configurations want these random other flags set.
12662 case ${obj_format} in
12664 case ${target_cpu_type} in
12666 $as_echo "#define I386COFF 1" >>confdefs.h
12669 $as_echo "#define M68KCOFF 1" >>confdefs.h
12672 $as_echo "#define M88KCOFF 1" >>confdefs.h
12675 $as_echo "#define I386COFF 1" >>confdefs.h
12681 # Getting this done right is going to be a bitch. Each configuration specified
12682 # with --enable-targets=... should be checked for environment, format, cpu
12685 # For each configuration, the necessary object file support code must be linked
12686 # in. This might be only one, it might be up to four. The necessary emulation
12687 # code needs to be provided, too.
12689 # And then there's "--enable-targets=all"....
12691 # For now, just always do it for MIPS ELF configurations. Sigh.
12693 formats="${obj_format}"
12696 _gas_uniq_list="$emulations"
12697 _gas_uniq_newlist=""
12698 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12699 case $_gas_uniq_i in
12700 _gas_uniq_dummy) ;;
12701 *) case " $_gas_uniq_newlist " in
12702 *" $_gas_uniq_i "*) ;;
12703 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12707 emulations=$_gas_uniq_newlist
12709 for em in . $emulations ; do
12712 mipsbelf | mipslelf | mipself)
12713 fmt=elf file=mipself ;;
12715 fmt=coff file=$em ;;
12717 fmt=aout file=$em ;;
12719 fmt=elf file=$em ;;
12721 formats="$formats $fmt"
12722 emfiles="$emfiles e-$file.o"
12723 EMULATIONS="$EMULATIONS &$em,"
12725 _gas_uniq_list="$formats"
12726 _gas_uniq_newlist=""
12727 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12728 case $_gas_uniq_i in
12729 _gas_uniq_dummy) ;;
12730 *) case " $_gas_uniq_newlist " in
12731 *" $_gas_uniq_i "*) ;;
12732 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12736 formats=$_gas_uniq_newlist
12738 _gas_uniq_list="$emfiles"
12739 _gas_uniq_newlist=""
12740 for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12741 case $_gas_uniq_i in
12742 _gas_uniq_dummy) ;;
12743 *) case " $_gas_uniq_newlist " in
12744 *" $_gas_uniq_i "*) ;;
12745 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12749 emfiles=$_gas_uniq_newlist
12751 if test `set . $formats ; shift ; echo $#` -gt 1 ; then
12752 for fmt in $formats ; do
12755 $as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
12758 $as_echo "#define OBJ_MAYBE_BOUT 1" >>confdefs.h
12761 $as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
12764 $as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
12767 $as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
12770 $as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
12773 $as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
12776 extra_objects="$extra_objects obj-$fmt.o"
12780 if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
12781 DEFAULT_EMULATION=`set . $emulations ; echo $2`
12782 # e-mipself has more than one emulation per file, e-i386* has just one at the
12783 # moment. If only one emulation is specified, then don't define
12784 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
12785 case "${obj_format}${emfiles}" in
12786 multi* | *mipself*)
12787 extra_objects="$extra_objects $emfiles"
12789 $as_echo "#define USE_EMULATIONS 1" >>confdefs.h
12795 cat >>confdefs.h <<_ACEOF
12796 #define EMULATIONS $EMULATIONS
12800 cat >>confdefs.h <<_ACEOF
12801 #define DEFAULT_EMULATION "$DEFAULT_EMULATION"
12805 reject_dev_configs=yes
12807 case ${reject_dev_configs}-${dev} in
12809 as_fn_error "GAS does not support the ${generic_target} configuration." "$LINENO" 5
12819 # do we need the opcodes library?
12820 case "${need_opcodes}" in
12822 OPCODES_LIB=../opcodes/libopcodes.la
12829 cat >>confdefs.h <<_ACEOF
12830 #define TARGET_ALIAS "${target_alias}"
12834 cat >>confdefs.h <<_ACEOF
12835 #define TARGET_CANONICAL "${target}"
12839 cat >>confdefs.h <<_ACEOF
12840 #define TARGET_CPU "${target_cpu}"
12844 cat >>confdefs.h <<_ACEOF
12845 #define TARGET_VENDOR "${target_vendor}"
12849 cat >>confdefs.h <<_ACEOF
12850 #define TARGET_OS "${target_os}"
12854 for ac_prog in 'bison -y' byacc
12856 # Extract the first word of "$ac_prog", so it can be a program name with args.
12857 set dummy $ac_prog; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859 $as_echo_n "checking for $ac_word... " >&6; }
12860 if test "${ac_cv_prog_YACC+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12863 if test -n "$YACC"; then
12864 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12873 ac_cv_prog_YACC="$ac_prog"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12883 YACC=$ac_cv_prog_YACC
12884 if test -n "$YACC"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12886 $as_echo "$YACC" >&6; }
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889 $as_echo "no" >&6; }
12893 test -n "$YACC" && break
12895 test -n "$YACC" || YACC="yacc"
12897 for ac_prog in flex lex
12899 # Extract the first word of "$ac_prog", so it can be a program name with args.
12900 set dummy $ac_prog; ac_word=$2
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12902 $as_echo_n "checking for $ac_word... " >&6; }
12903 if test "${ac_cv_prog_LEX+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12906 if test -n "$LEX"; then
12907 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12910 for as_dir in $PATH
12913 test -z "$as_dir" && as_dir=.
12914 for ac_exec_ext in '' $ac_executable_extensions; do
12915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12916 ac_cv_prog_LEX="$ac_prog"
12917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12926 LEX=$ac_cv_prog_LEX
12927 if test -n "$LEX"; then
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12929 $as_echo "$LEX" >&6; }
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12932 $as_echo "no" >&6; }
12936 test -n "$LEX" && break
12938 test -n "$LEX" || LEX=":"
12942 *) cat >conftest.l <<_ACEOF
12948 e { yyless (input () != 0); }
12949 f { unput (yytext[0]); }
12950 . { BEGIN INITIAL; }
12952 #ifdef YYTEXT_POINTER
12953 extern char *yytext;
12958 return ! yylex () + ! yywrap ();
12961 { { ac_try="$LEX conftest.l"
12962 case "(($ac_try" in
12963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964 *) ac_try_echo=$ac_try;;
12966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12967 $as_echo "$ac_try_echo"; } >&5
12968 (eval "$LEX conftest.l") 2>&5
12970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12971 test $ac_status = 0; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12973 $as_echo_n "checking lex output file root... " >&6; }
12974 if test "${ac_cv_prog_lex_root+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12978 if test -f lex.yy.c; then
12979 ac_cv_prog_lex_root=lex.yy
12980 elif test -f lexyy.c; then
12981 ac_cv_prog_lex_root=lexyy
12983 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12987 $as_echo "$ac_cv_prog_lex_root" >&6; }
12988 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12990 if test -z "${LEXLIB+set}"; then
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12992 $as_echo_n "checking lex library... " >&6; }
12993 if test "${ac_cv_lib_lex+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12998 ac_cv_lib_lex='none needed'
12999 for ac_lib in '' -lfl -ll; do
13000 LIBS="$ac_lib $ac_save_LIBS"
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003 `cat $LEX_OUTPUT_ROOT.c`
13005 if ac_fn_c_try_link "$LINENO"; then :
13006 ac_cv_lib_lex=$ac_lib
13008 rm -f core conftest.err conftest.$ac_objext \
13009 conftest$ac_exeext conftest.$ac_ext
13010 test "$ac_cv_lib_lex" != 'none needed' && break
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13016 $as_echo "$ac_cv_lib_lex" >&6; }
13017 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13022 $as_echo_n "checking whether yytext is a pointer... " >&6; }
13023 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13026 # POSIX says lex can declare yytext either as a pointer or an array; the
13027 # default is implementation-dependent. Figure out which it is, since
13028 # not all implementations provide the %pointer and %array declarations.
13029 ac_cv_prog_lex_yytext_pointer=no
13031 LIBS="$LEXLIB $ac_save_LIBS"
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13034 #define YYTEXT_POINTER 1
13035 `cat $LEX_OUTPUT_ROOT.c`
13037 if ac_fn_c_try_link "$LINENO"; then :
13038 ac_cv_prog_lex_yytext_pointer=yes
13040 rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13046 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
13047 if test $ac_cv_prog_lex_yytext_pointer = yes; then
13049 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
13052 rm -f conftest.l $LEX_OUTPUT_ROOT.c
13055 if test "$LEX" = :; then
13056 LEX=${am_missing_run}flex
13059 ALL_LINGUAS="fr tr es rw id ru fi ja zh_CN"
13060 # If we haven't got the data from the intl directory,
13061 # assume NLS is disabled.
13070 if test -f ../intl/config.intl; then
13071 . ../intl/config.intl
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13074 $as_echo_n "checking whether NLS is requested... " >&6; }
13075 if test x"$USE_NLS" != xyes; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13080 $as_echo "yes" >&6; }
13082 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13086 $as_echo_n "checking for catalogs to be installed... " >&6; }
13087 # Look for .po and .gmo files in the source directory.
13090 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13091 # If there aren't any .gmo files the shell will give us the
13092 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13094 case "$cat" in *\**)
13097 # The quadruple backslash is collapsed to a double backslash
13098 # by the backticks, then collapsed again by the double quotes,
13099 # leaving us with one backslash in the sed expression (right
13100 # before the dot that mustn't act as a wildcard).
13101 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13102 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13103 # The user is allowed to set LINGUAS to a list of languages to
13104 # install catalogs for. If it's empty that means "all of them."
13105 if test "x$LINGUAS" = x; then
13106 CATALOGS="$CATALOGS $cat"
13107 XLINGUAS="$XLINGUAS $lang"
13109 case "$LINGUAS" in *$lang*)
13110 CATALOGS="$CATALOGS $cat"
13111 XLINGUAS="$XLINGUAS $lang"
13116 LINGUAS="$XLINGUAS"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13118 $as_echo "$LINGUAS" >&6; }
13132 if test -n "$ac_aux_dir"; then
13133 case "$ac_aux_dir" in
13134 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13135 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13138 if test -z "$MKINSTALLDIRS"; then
13139 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13145 $as_echo_n "checking whether NLS is requested... " >&6; }
13146 # Check whether --enable-nls was given.
13147 if test "${enable_nls+set}" = set; then :
13148 enableval=$enable_nls; USE_NLS=$enableval
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13154 $as_echo "$USE_NLS" >&6; }
13161 # Prepare PATH_SEPARATOR.
13162 # The user is always right.
13163 if test "${PATH_SEPARATOR+set}" != set; then
13164 echo "#! /bin/sh" >conf$$.sh
13165 echo "exit 0" >>conf$$.sh
13167 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13175 # Find out how to test for executable files. Don't use a zero-byte file,
13176 # as systems may use methods other than mode bits to determine executability.
13177 cat >conf$$.file <<_ASEOF
13181 chmod +x conf$$.file
13182 if test -x conf$$.file >/dev/null 2>&1; then
13183 ac_executable_p="test -x"
13185 ac_executable_p="test -f"
13189 # Extract the first word of "msgfmt", so it can be a program name with args.
13190 set dummy msgfmt; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if test "${ac_cv_path_MSGFMT+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13198 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13201 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13202 for ac_dir in $PATH; do
13204 test -z "$ac_dir" && ac_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13207 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13208 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13209 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13216 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13220 MSGFMT="$ac_cv_path_MSGFMT"
13221 if test "$MSGFMT" != ":"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13223 $as_echo "$MSGFMT" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13229 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13230 set dummy gmsgfmt; ac_word=$2
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232 $as_echo_n "checking for $ac_word... " >&6; }
13233 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
13234 $as_echo_n "(cached) " >&6
13238 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13256 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13260 GMSGFMT=$ac_cv_path_GMSGFMT
13261 if test -n "$GMSGFMT"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13263 $as_echo "$GMSGFMT" >&6; }
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13272 # Prepare PATH_SEPARATOR.
13273 # The user is always right.
13274 if test "${PATH_SEPARATOR+set}" != set; then
13275 echo "#! /bin/sh" >conf$$.sh
13276 echo "exit 0" >>conf$$.sh
13278 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13286 # Find out how to test for executable files. Don't use a zero-byte file,
13287 # as systems may use methods other than mode bits to determine executability.
13288 cat >conf$$.file <<_ASEOF
13292 chmod +x conf$$.file
13293 if test -x conf$$.file >/dev/null 2>&1; then
13294 ac_executable_p="test -x"
13296 ac_executable_p="test -f"
13300 # Extract the first word of "xgettext", so it can be a program name with args.
13301 set dummy xgettext; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13303 $as_echo_n "checking for $ac_word... " >&6; }
13304 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13307 case "$XGETTEXT" in
13309 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13312 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13313 for ac_dir in $PATH; do
13315 test -z "$ac_dir" && ac_dir=.
13316 for ac_exec_ext in '' $ac_executable_extensions; do
13317 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13318 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13319 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13320 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13327 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13331 XGETTEXT="$ac_cv_path_XGETTEXT"
13332 if test "$XGETTEXT" != ":"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13334 $as_echo "$XGETTEXT" >&6; }
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13343 # Prepare PATH_SEPARATOR.
13344 # The user is always right.
13345 if test "${PATH_SEPARATOR+set}" != set; then
13346 echo "#! /bin/sh" >conf$$.sh
13347 echo "exit 0" >>conf$$.sh
13349 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13357 # Find out how to test for executable files. Don't use a zero-byte file,
13358 # as systems may use methods other than mode bits to determine executability.
13359 cat >conf$$.file <<_ASEOF
13363 chmod +x conf$$.file
13364 if test -x conf$$.file >/dev/null 2>&1; then
13365 ac_executable_p="test -x"
13367 ac_executable_p="test -f"
13371 # Extract the first word of "msgmerge", so it can be a program name with args.
13372 set dummy msgmerge; ac_word=$2
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374 $as_echo_n "checking for $ac_word... " >&6; }
13375 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
13378 case "$MSGMERGE" in
13380 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13383 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13384 for ac_dir in $PATH; do
13386 test -z "$ac_dir" && ac_dir=.
13387 for ac_exec_ext in '' $ac_executable_extensions; do
13388 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13389 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13390 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13397 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13401 MSGMERGE="$ac_cv_path_MSGMERGE"
13402 if test "$MSGMERGE" != ":"; then
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13404 $as_echo "$MSGMERGE" >&6; }
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13407 $as_echo "no" >&6; }
13411 if test "$GMSGFMT" != ":"; then
13412 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
13413 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13416 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
13418 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
13423 if test "$XGETTEXT" != ":"; then
13424 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13425 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
13429 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
13435 ac_config_commands="$ac_config_commands default-1"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13441 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13442 # Check whether --enable-maintainer-mode was given.
13443 if test "${enable_maintainer_mode+set}" = set; then :
13444 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13446 USE_MAINTAINER_MODE=no
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13450 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13451 if test $USE_MAINTAINER_MODE = yes; then
13452 MAINTAINER_MODE_TRUE=
13453 MAINTAINER_MODE_FALSE='#'
13455 MAINTAINER_MODE_TRUE='#'
13456 MAINTAINER_MODE_FALSE=
13459 MAINT=$MAINTAINER_MODE_TRUE
13463 GENINSRC_NEVER_TRUE=
13464 GENINSRC_NEVER_FALSE='#'
13466 GENINSRC_NEVER_TRUE='#'
13467 GENINSRC_NEVER_FALSE=
13472 for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
13474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13476 eval as_val=\$$as_ac_Header
13477 if test "x$as_val" = x""yes; then :
13478 cat >>confdefs.h <<_ACEOF
13479 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13487 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13488 if test "${gcc_cv_header_string+set}" = set; then :
13489 $as_echo_n "(cached) " >&6
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493 #include <string.h>
13494 #include <strings.h>
13503 if ac_fn_c_try_compile "$LINENO"; then :
13504 gcc_cv_header_string=yes
13506 gcc_cv_header_string=no
13508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13511 $as_echo "$gcc_cv_header_string" >&6; }
13512 if test $gcc_cv_header_string = yes; then
13514 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13519 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
13520 # people who are not cross-compiling but are compiling cross-assemblers.
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
13522 $as_echo_n "checking whether compiling a cross-assembler... " >&6; }
13523 if test "${host}" = "${target}"; then
13528 $as_echo "#define CROSS_COMPILE 1" >>confdefs.h
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
13532 $as_echo "$cross_gas" >&6; }
13534 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13535 # for constant arguments. Useless!
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13537 $as_echo_n "checking for working alloca.h... " >&6; }
13538 if test "${ac_cv_working_alloca_h+set}" = set; then :
13539 $as_echo_n "(cached) " >&6
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <alloca.h>
13547 char *p = (char *) alloca (2 * sizeof (int));
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 ac_cv_working_alloca_h=yes
13556 ac_cv_working_alloca_h=no
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13562 $as_echo "$ac_cv_working_alloca_h" >&6; }
13563 if test $ac_cv_working_alloca_h = yes; then
13565 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13570 $as_echo_n "checking for alloca... " >&6; }
13571 if test "${ac_cv_func_alloca_works+set}" = set; then :
13572 $as_echo_n "(cached) " >&6
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13577 # define alloca __builtin_alloca
13580 # include <malloc.h>
13581 # define alloca _alloca
13583 # ifdef HAVE_ALLOCA_H
13584 # include <alloca.h>
13589 # ifndef alloca /* predefined by HP cc +Olibcalls */
13600 char *p = (char *) alloca (1);
13606 if ac_fn_c_try_link "$LINENO"; then :
13607 ac_cv_func_alloca_works=yes
13609 ac_cv_func_alloca_works=no
13611 rm -f core conftest.err conftest.$ac_objext \
13612 conftest$ac_exeext conftest.$ac_ext
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13615 $as_echo "$ac_cv_func_alloca_works" >&6; }
13617 if test $ac_cv_func_alloca_works = yes; then
13619 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13622 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13623 # that cause trouble. Some versions do not even contain alloca or
13624 # contain a buggy version. If you still want to use their alloca,
13625 # use ar to extract alloca.o from them instead of compiling alloca.c.
13627 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13629 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13633 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13634 if test "${ac_cv_os_cray+set}" = set; then :
13635 $as_echo_n "(cached) " >&6
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 #if defined CRAY && ! defined CRAY2
13646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13647 $EGREP "webecray" >/dev/null 2>&1; then :
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13656 $as_echo "$ac_cv_os_cray" >&6; }
13657 if test $ac_cv_os_cray = yes; then
13658 for ac_func in _getb67 GETB67 getb67; do
13659 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13660 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13661 eval as_val=\$$as_ac_var
13662 if test "x$as_val" = x""yes; then :
13664 cat >>confdefs.h <<_ACEOF
13665 #define CRAY_STACKSEG_END $ac_func
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13675 $as_echo_n "checking stack direction for C alloca... " >&6; }
13676 if test "${ac_cv_c_stack_direction+set}" = set; then :
13677 $as_echo_n "(cached) " >&6
13679 if test "$cross_compiling" = yes; then :
13680 ac_cv_c_stack_direction=0
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13684 $ac_includes_default
13686 find_stack_direction ()
13688 static char *addr = 0;
13693 return find_stack_direction ();
13696 return (&dummy > addr) ? 1 : -1;
13702 return find_stack_direction () < 0;
13705 if ac_fn_c_try_run "$LINENO"; then :
13706 ac_cv_c_stack_direction=1
13708 ac_cv_c_stack_direction=-1
13710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13711 conftest.$ac_objext conftest.beam conftest.$ac_ext
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13716 $as_echo "$ac_cv_c_stack_direction" >&6; }
13717 cat >>confdefs.h <<_ACEOF
13718 #define STACK_DIRECTION $ac_cv_c_stack_direction
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13725 $as_echo_n "checking for inline... " >&6; }
13726 if test "${ac_cv_c_inline+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13730 for ac_kw in inline __inline__ __inline; do
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 #ifndef __cplusplus
13735 static $ac_kw foo_t static_foo () {return 0; }
13736 $ac_kw foo_t foo () {return 0; }
13740 if ac_fn_c_try_compile "$LINENO"; then :
13741 ac_cv_c_inline=$ac_kw
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 test "$ac_cv_c_inline" != no && break
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13749 $as_echo "$ac_cv_c_inline" >&6; }
13751 case $ac_cv_c_inline in
13754 case $ac_cv_c_inline in
13756 *) ac_val=$ac_cv_c_inline;;
13758 cat >>confdefs.h <<_ACEOF
13759 #ifndef __cplusplus
13760 #define inline $ac_val
13767 # VMS doesn't have unlink.
13768 for ac_func in unlink remove
13770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13771 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13772 eval as_val=\$$as_ac_var
13773 if test "x$as_val" = x""yes; then :
13774 cat >>confdefs.h <<_ACEOF
13775 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13781 for ac_func in sbrk setlocale
13783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13785 eval as_val=\$$as_ac_var
13786 if test "x$as_val" = x""yes; then :
13787 cat >>confdefs.h <<_ACEOF
13788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
13797 $as_echo_n "checking for LC_MESSAGES... " >&6; }
13798 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
13799 $as_echo_n "(cached) " >&6
13801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13802 /* end confdefs.h. */
13803 #include <locale.h>
13812 if ac_fn_c_try_link "$LINENO"; then :
13813 am_cv_val_LC_MESSAGES=yes
13815 am_cv_val_LC_MESSAGES=no
13817 rm -f core conftest.err conftest.$ac_objext \
13818 conftest$ac_exeext conftest.$ac_ext
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
13821 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
13822 if test $am_cv_val_LC_MESSAGES = yes; then
13824 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
13829 # do we need the math library?
13830 case "${need_libm}" in
13834 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13835 # These system don't have libm, or don't need it
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13839 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13840 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13843 ac_check_lib_save_LIBS=$LIBS
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13854 char _mwvalidcheckl ();
13858 return _mwvalidcheckl ();
13863 if ac_fn_c_try_link "$LINENO"; then :
13864 ac_cv_lib_mw__mwvalidcheckl=yes
13866 ac_cv_lib_mw__mwvalidcheckl=no
13868 rm -f core conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_check_lib_save_LIBS
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13873 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13874 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13879 $as_echo_n "checking for cos in -lm... " >&6; }
13880 if test "${ac_cv_lib_m_cos+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13883 ac_check_lib_save_LIBS=$LIBS
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h. */
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13903 if ac_fn_c_try_link "$LINENO"; then :
13904 ac_cv_lib_m_cos=yes
13908 rm -f core conftest.err conftest.$ac_objext \
13909 conftest$ac_exeext conftest.$ac_ext
13910 LIBS=$ac_check_lib_save_LIBS
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13913 $as_echo "$ac_cv_lib_m_cos" >&6; }
13914 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13921 $as_echo_n "checking for cos in -lm... " >&6; }
13922 if test "${ac_cv_lib_m_cos+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13925 ac_check_lib_save_LIBS=$LIBS
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_lib_m_cos=yes
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13955 $as_echo "$ac_cv_lib_m_cos" >&6; }
13956 if test "x$ac_cv_lib_m_cos" = x""yes; then :
13968 # Some non-ANSI preprocessors botch requoting inside strings. That's bad
13969 # enough, but on some of those systems, the assert macro relies on requoting
13970 # working properly!
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
13972 $as_echo_n "checking for working assert macro... " >&6; }
13973 if test "${gas_cv_assert_ok+set}" = set; then :
13974 $as_echo_n "(cached) " >&6
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 #include <assert.h>
13984 /* check for requoting problems */
13985 static int a, b, c, d;
13987 assert (!strcmp(s, "foo bar baz quux"));
13988 /* check for newline handling */
13996 if ac_fn_c_try_link "$LINENO"; then :
13997 gas_cv_assert_ok=yes
13999 gas_cv_assert_ok=no
14001 rm -f core conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14005 $as_echo "$gas_cv_assert_ok" >&6; }
14006 test $gas_cv_assert_ok = yes ||
14007 $as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
14011 # On some systems, the system header files may not declare malloc, realloc,
14012 # and free. There are places where gas needs these functions to have been
14013 # declared -- such as when taking their addresses.
14015 #ifdef HAVE_MEMORY_H
14016 #include <memory.h>
14018 #ifdef HAVE_STRING_H
14019 #include <string.h>
14021 #ifdef HAVE_STRINGS_H
14022 #include <strings.h>
14025 #ifdef HAVE_STDLIB_H
14026 #include <stdlib.h>
14028 #ifdef HAVE_UNISTD_H
14029 #include <unistd.h>
14033 # Does errno.h declare errno, or do we have to add a separate declaration
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14037 $as_echo_n "checking whether declaration is required for errno... " >&6; }
14038 if test "${gas_cv_decl_needed_errno+set}" = set; then :
14039 $as_echo_n "(cached) " >&6
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14044 #ifdef HAVE_ERRNO_H
14060 if ac_fn_c_try_link "$LINENO"; then :
14061 gas_cv_decl_needed_errno=no
14063 gas_cv_decl_needed_errno=yes
14065 rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14069 $as_echo "$gas_cv_decl_needed_errno" >&6; }
14070 if test $gas_cv_decl_needed_errno = yes; then
14072 $as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14078 $as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
14079 if test "${gas_cv_decl_getopt_unistd_h+set}" = set; then :
14080 $as_echo_n "(cached) " >&6
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14084 #include <unistd.h>
14088 extern int getopt (int, char *const*, const char *);
14093 if ac_fn_c_try_compile "$LINENO"; then :
14094 gas_cv_decl_getopt_unistd_h=yes
14096 gas_cv_decl_getopt_unistd_h=no
14098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14102 $as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
14103 if test $gas_cv_decl_getopt_unistd_h = yes; then
14105 $as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14111 $as_echo_n "checking whether declaration is required for environ... " >&6; }
14112 if test "${gas_cv_decl_needed_environ+set}" = set; then :
14113 $as_echo_n "(cached) " >&6
14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14116 /* end confdefs.h. */
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 gas_cv_decl_needed_environ=no
14133 gas_cv_decl_needed_environ=yes
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14139 $as_echo "$gas_cv_decl_needed_environ" >&6; }
14140 if test $gas_cv_decl_needed_environ = yes; then
14142 $as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14148 $as_echo_n "checking whether declaration is required for ffs... " >&6; }
14149 if test "${gas_cv_decl_needed_ffs+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14159 typedef int (*f)(int);
14167 if ac_fn_c_try_link "$LINENO"; then :
14168 gas_cv_decl_needed_ffs=no
14170 gas_cv_decl_needed_ffs=yes
14172 rm -f core conftest.err conftest.$ac_objext \
14173 conftest$ac_exeext conftest.$ac_ext
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14176 $as_echo "$gas_cv_decl_needed_ffs" >&6; }
14177 if test $gas_cv_decl_needed_ffs = yes; then
14179 $as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14185 $as_echo_n "checking whether declaration is required for free... " >&6; }
14186 if test "${gas_cv_decl_needed_free+set}" = set; then :
14187 $as_echo_n "(cached) " >&6
14189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h. */
14196 typedef void (*f)();
14204 if ac_fn_c_try_link "$LINENO"; then :
14205 gas_cv_decl_needed_free=no
14207 gas_cv_decl_needed_free=yes
14209 rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14213 $as_echo "$gas_cv_decl_needed_free" >&6; }
14214 if test $gas_cv_decl_needed_free = yes; then
14216 $as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14222 $as_echo_n "checking whether declaration is required for malloc... " >&6; }
14223 if test "${gas_cv_decl_needed_malloc+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14233 typedef char *(*f)();
14241 if ac_fn_c_try_link "$LINENO"; then :
14242 gas_cv_decl_needed_malloc=no
14244 gas_cv_decl_needed_malloc=yes
14246 rm -f core conftest.err conftest.$ac_objext \
14247 conftest$ac_exeext conftest.$ac_ext
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14250 $as_echo "$gas_cv_decl_needed_malloc" >&6; }
14251 if test $gas_cv_decl_needed_malloc = yes; then
14253 $as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14259 $as_echo_n "checking whether declaration is required for sbrk... " >&6; }
14260 if test "${gas_cv_decl_needed_sbrk+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14270 typedef char *(*f)();
14278 if ac_fn_c_try_link "$LINENO"; then :
14279 gas_cv_decl_needed_sbrk=no
14281 gas_cv_decl_needed_sbrk=yes
14283 rm -f core conftest.err conftest.$ac_objext \
14284 conftest$ac_exeext conftest.$ac_ext
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14287 $as_echo "$gas_cv_decl_needed_sbrk" >&6; }
14288 if test $gas_cv_decl_needed_sbrk = yes; then
14290 $as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14296 $as_echo_n "checking whether declaration is required for strstr... " >&6; }
14297 if test "${gas_cv_decl_needed_strstr+set}" = set; then :
14298 $as_echo_n "(cached) " >&6
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14307 typedef char *(*f)();
14315 if ac_fn_c_try_link "$LINENO"; then :
14316 gas_cv_decl_needed_strstr=no
14318 gas_cv_decl_needed_strstr=yes
14320 rm -f core conftest.err conftest.$ac_objext \
14321 conftest$ac_exeext conftest.$ac_ext
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14324 $as_echo "$gas_cv_decl_needed_strstr" >&6; }
14325 if test $gas_cv_decl_needed_strstr = yes; then
14327 $as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
14332 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
14333 if test "x$ac_cv_have_decl_free" = x""yes; then :
14339 cat >>confdefs.h <<_ACEOF
14340 #define HAVE_DECL_FREE $ac_have_decl
14342 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14343 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_DECL_GETENV $ac_have_decl
14352 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
14353 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
14359 cat >>confdefs.h <<_ACEOF
14360 #define HAVE_DECL_MALLOC $ac_have_decl
14362 ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
14363 if test "x$ac_cv_have_decl_mempcpy" = x""yes; then :
14369 cat >>confdefs.h <<_ACEOF
14370 #define HAVE_DECL_MEMPCPY $ac_have_decl
14372 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
14373 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
14379 cat >>confdefs.h <<_ACEOF
14380 #define HAVE_DECL_REALLOC $ac_have_decl
14382 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
14383 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_DECL_STPCPY $ac_have_decl
14392 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
14393 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define HAVE_DECL_STRSTR $ac_have_decl
14402 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14403 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14409 cat >>confdefs.h <<_ACEOF
14410 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14412 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
14413 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_DECL_ASPRINTF $ac_have_decl
14426 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
14428 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
14432 # Link in zlib if we can. This allows us to write compressed debug sections.
14434 # Use the system's zlib library.
14435 zlibdir="-L\$(top_builddir)/../zlib"
14436 zlibinc="-I\$(top_srcdir)/../zlib"
14438 # Check whether --with-system-zlib was given.
14439 if test "${with_system_zlib+set}" = set; then :
14440 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14451 # Support for VMS timestamps via cross compile
14453 if test "$ac_cv_header_time_h" = yes; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
14455 $as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
14456 if test "${gas_cv_have_time_type_member_tm_gmtoff+set}" = set; then :
14457 $as_echo_n "(cached) " >&6
14459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14460 /* end confdefs.h. */
14462 #define _BSD_SOURCE 1
14467 struct tm avar; void* aref = (void*) &avar.tm_gmtoff
14472 if ac_fn_c_try_compile "$LINENO"; then :
14473 gas_cv_have_time_type_member_tm_gmtoff=yes
14475 gas_cv_have_time_type_member_tm_gmtoff=no
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
14483 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
14487 $as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
14491 if test "$ac_cv_header_sys_stat_h" = yes; then
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
14493 $as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
14494 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+set}" = set; then :
14495 $as_echo_n "(cached) " >&6
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14500 #define _BSD_SOURCE 1
14501 #include <sys/stat.h>
14505 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
14510 if ac_fn_c_try_compile "$LINENO"; then :
14511 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
14513 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14519 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
14521 $as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
14525 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
14528 $as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
14529 if test "${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14535 #define _BSD_SOURCE 1
14536 #include <sys/stat.h>
14540 struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
14545 if ac_fn_c_try_compile "$LINENO"; then :
14546 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
14548 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
14556 $as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
14560 $as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
14572 ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
14574 ac_config_commands="$ac_config_commands default"
14577 cat >confcache <<\_ACEOF
14578 # This file is a shell script that caches the results of configure
14579 # tests run on this system so they can be shared between configure
14580 # scripts and configure runs, see configure's option --config-cache.
14581 # It is not useful on other systems. If it contains results you don't
14582 # want to keep, you may remove or edit it.
14584 # config.status only pays attention to the cache file if you give it
14585 # the --recheck option to rerun configure.
14587 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14588 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14589 # following values.
14593 # The following way of writing the cache mishandles newlines in values,
14594 # but we know of no workaround that is simple, portable, and efficient.
14595 # So, we kill variables containing newlines.
14596 # Ultrix sh set writes to stderr and can't be redirected directly,
14597 # and sets the high bit in the cache file unless we assign to the vars.
14599 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14600 eval ac_val=\$$ac_var
14604 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14605 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14608 _ | IFS | as_nl) ;; #(
14609 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14610 *) { eval $ac_var=; unset $ac_var;} ;;
14616 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14617 *${as_nl}ac_space=\ *)
14618 # `set' does not quote correctly, so add quotes: double-quote
14619 # substitution turns \\\\ into \\, and sed turns \\ into \.
14622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14625 # `set' quotes correctly as required by POSIX, so do not add quotes.
14626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14635 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14637 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14639 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14640 if test -w "$cache_file"; then
14641 test "x$cache_file" != "x/dev/null" &&
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14643 $as_echo "$as_me: updating cache $cache_file" >&6;}
14644 cat confcache >$cache_file
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14647 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14652 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14653 # Let make expand exec_prefix.
14654 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14656 DEFS=-DHAVE_CONFIG_H
14660 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14661 # 1. Remove the extension, and $U if already installed.
14662 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14663 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14664 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14665 # will be set to the directory where LIBOBJS objects are built.
14666 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14667 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14669 LIBOBJS=$ac_libobjs
14671 LTLIBOBJS=$ac_ltlibobjs
14674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14675 as_fn_error "conditional \"AMDEP\" was never defined.
14676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14679 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682 if test -n "$EXEEXT"; then
14684 am__EXEEXT_FALSE='#'
14686 am__EXEEXT_TRUE='#'
14691 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14692 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14695 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
14696 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
14697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14700 : ${CONFIG_STATUS=./config.status}
14702 ac_clean_files_save=$ac_clean_files
14703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14709 # Generated by $as_me.
14710 # Run this file to recreate the current configuration.
14711 # Compiler output produced by configure, useful for debugging
14712 # configure, is in config.log if it exists.
14715 ac_cs_recheck=false
14718 SHELL=\${CONFIG_SHELL-$SHELL}
14721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14722 ## -------------------- ##
14723 ## M4sh Initialization. ##
14724 ## -------------------- ##
14726 # Be more Bourne compatible
14727 DUALCASE=1; export DUALCASE # for MKS sh
14728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14731 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14732 # is contrary to our usage. Disable this feature.
14733 alias -g '${1+"$@"}'='"$@"'
14734 setopt NO_GLOB_SUBST
14736 case `(set -o) 2>/dev/null` in #(
14748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14752 # Prefer a ksh shell builtin over an external printf program on Solaris,
14753 # but without wasting forks for bash or zsh.
14754 if test -z "$BASH_VERSION$ZSH_VERSION" \
14755 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14756 as_echo='print -r --'
14757 as_echo_n='print -rn --'
14758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14759 as_echo='printf %s\n'
14760 as_echo_n='printf %s'
14762 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14763 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14764 as_echo_n='/usr/ucb/echo -n'
14766 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14767 as_echo_n_body='eval
14771 expr "X$arg" : "X\\(.*\\)$as_nl";
14772 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14774 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14776 export as_echo_n_body
14777 as_echo_n='sh -c $as_echo_n_body as_echo'
14779 export as_echo_body
14780 as_echo='sh -c $as_echo_body as_echo'
14783 # The user is always right.
14784 if test "${PATH_SEPARATOR+set}" != set; then
14786 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14787 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14794 # We need space, tab and new line, in precisely that order. Quoting is
14795 # there to prevent editors from complaining about space-tab.
14796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14797 # splitting by setting IFS to empty value.)
14800 # Find who we are. Look in the path if we contain no directory separator.
14802 *[\\/]* ) as_myself=$0 ;;
14803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14807 test -z "$as_dir" && as_dir=.
14808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14814 # We did not find ourselves, most probably we were run as `sh COMMAND'
14815 # in which case we are not to be found in the path.
14816 if test "x$as_myself" = x; then
14819 if test ! -f "$as_myself"; then
14820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14824 # Unset variables that we do not need and which cause bugs (e.g. in
14825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14826 # suppresses any "Segmentation fault" message there. '((' could
14827 # trigger a bug in pdksh 5.2.14.
14828 for as_var in BASH_ENV ENV MAIL MAILPATH
14829 do eval test x\${$as_var+set} = xset \
14830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14846 # as_fn_error ERROR [LINENO LOG_FD]
14847 # ---------------------------------
14848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14850 # script with status $?, using 1 if that was 0.
14853 as_status=$?; test $as_status -eq 0 && as_status=1
14855 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14858 $as_echo "$as_me: error: $1" >&2
14859 as_fn_exit $as_status
14863 # as_fn_set_status STATUS
14864 # -----------------------
14865 # Set $? to STATUS, without forking.
14866 as_fn_set_status ()
14869 } # as_fn_set_status
14871 # as_fn_exit STATUS
14872 # -----------------
14873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14877 as_fn_set_status $1
14883 # Portably unset VAR.
14886 { eval $1=; unset $1;}
14888 as_unset=as_fn_unset
14889 # as_fn_append VAR VALUE
14890 # ----------------------
14891 # Append the text in VALUE to the end of the definition contained in VAR. Take
14892 # advantage of any shell optimizations that allow amortized linear growth over
14893 # repeated appends, instead of the typical quadratic growth present in naive
14895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14896 eval 'as_fn_append ()
14907 # as_fn_arith ARG...
14908 # ------------------
14909 # Perform arithmetic evaluation on the ARGs, and store the result in the
14910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14911 # must be portable across $(()) and expr.
14912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14913 eval 'as_fn_arith ()
14920 as_val=`expr "$@" || test $? -eq 1`
14925 if expr a : '\(a\)' >/dev/null 2>&1 &&
14926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14933 as_basename=basename
14938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14944 as_me=`$as_basename -- "$0" ||
14945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14946 X"$0" : 'X\(//\)$' \| \
14947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14949 sed '/^.*\/\([^/][^/]*\)\/*$/{
14963 # Avoid depending upon Character Ranges.
14964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14967 as_cr_digits='0123456789'
14968 as_cr_alnum=$as_cr_Letters$as_cr_digits
14970 ECHO_C= ECHO_N= ECHO_T=
14971 case `echo -n x` in #(((((
14973 case `echo 'xy\c'` in
14974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14983 rm -f conf$$ conf$$.exe conf$$.file
14984 if test -d conf$$.dir; then
14985 rm -f conf$$.dir/conf$$.file
14988 mkdir conf$$.dir 2>/dev/null
14990 if (echo >conf$$.file) 2>/dev/null; then
14991 if ln -s conf$$.file conf$$ 2>/dev/null; then
14993 # ... but there are two gotchas:
14994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14996 # In both cases, we have to default to `cp -p'.
14997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14999 elif ln conf$$.file conf$$ 2>/dev/null; then
15007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15008 rmdir conf$$.dir 2>/dev/null
15013 # Create "$as_dir" as a directory, including parents if necessary.
15018 -*) as_dir=./$as_dir;;
15020 test -d "$as_dir" || eval $as_mkdir_p || {
15024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15025 *) as_qdir=$as_dir;;
15027 as_dirs="'$as_qdir' $as_dirs"
15028 as_dir=`$as_dirname -- "$as_dir" ||
15029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15030 X"$as_dir" : 'X\(//\)[^/]' \| \
15031 X"$as_dir" : 'X\(//\)$' \| \
15032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15033 $as_echo X"$as_dir" |
15034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15038 /^X\(\/\/\)[^/].*/{
15051 test -d "$as_dir" && break
15053 test -z "$as_dirs" || eval "mkdir $as_dirs"
15054 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15058 if mkdir -p . 2>/dev/null; then
15059 as_mkdir_p='mkdir -p "$as_dir"'
15061 test -d ./-p && rmdir ./-p
15065 if test -x / >/dev/null 2>&1; then
15066 as_test_x='test -x'
15068 if ls -dL / >/dev/null 2>&1; then
15075 if test -d "$1"; then
15081 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15082 ???[sx]*):;;*)false;;esac;fi
15086 as_executable_p=$as_test_x
15088 # Sed expression to map a string onto a valid CPP name.
15089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15091 # Sed expression to map a string onto a valid variable name.
15092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15096 ## ----------------------------------- ##
15097 ## Main body of $CONFIG_STATUS script. ##
15098 ## ----------------------------------- ##
15100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15103 # Save the log message, to keep $0 and so on meaningful, and to
15104 # report actual input values of CONFIG_FILES etc. instead of their
15105 # values after options handling.
15107 This file was extended by gas $as_me 2.26.51, which was
15108 generated by GNU Autoconf 2.64. Invocation command line was
15110 CONFIG_FILES = $CONFIG_FILES
15111 CONFIG_HEADERS = $CONFIG_HEADERS
15112 CONFIG_LINKS = $CONFIG_LINKS
15113 CONFIG_COMMANDS = $CONFIG_COMMANDS
15116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15121 case $ac_config_files in *"
15122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15125 case $ac_config_headers in *"
15126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131 # Files that config.status was made for.
15132 config_files="$ac_config_files"
15133 config_headers="$ac_config_headers"
15134 config_commands="$ac_config_commands"
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15140 \`$as_me' instantiates files and other configuration actions
15141 from templates according to the current configuration. Unless the files
15142 and actions are specified as TAGs, all are instantiated by default.
15144 Usage: $0 [OPTION]... [TAG]...
15146 -h, --help print this help, then exit
15147 -V, --version print version number and configuration settings, then exit
15148 -q, --quiet, --silent
15149 do not print progress messages
15150 -d, --debug don't remove temporary files
15151 --recheck update $as_me by reconfiguring in the same conditions
15152 --file=FILE[:TEMPLATE]
15153 instantiate the configuration file FILE
15154 --header=FILE[:TEMPLATE]
15155 instantiate the configuration header FILE
15157 Configuration files:
15160 Configuration headers:
15163 Configuration commands:
15166 Report bugs to the package provider."
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15171 gas config.status 2.26.51
15172 configured by $0, generated by GNU Autoconf 2.64,
15173 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15175 Copyright (C) 2009 Free Software Foundation, Inc.
15176 This config.status script is free software; the Free Software Foundation
15177 gives unlimited permission to copy, distribute and modify it."
15184 test -n "\$AWK" || AWK=awk
15187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188 # The default lists apply if the user does not specify any file.
15194 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15195 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15206 # Handling of the options.
15207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210 $as_echo "$ac_cs_version"; exit ;;
15211 --debug | --debu | --deb | --de | --d | -d )
15213 --file | --fil | --fi | --f )
15216 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15218 as_fn_append CONFIG_FILES " '$ac_optarg'"
15219 ac_need_defaults=false;;
15220 --header | --heade | --head | --hea )
15223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15225 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15226 ac_need_defaults=false;;
15228 # Conflict between --help and --header
15229 as_fn_error "ambiguous option: \`$1'
15230 Try \`$0 --help' for more information.";;
15231 --help | --hel | -h )
15232 $as_echo "$ac_cs_usage"; exit ;;
15233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15237 # This is an error.
15238 -*) as_fn_error "unrecognized option: \`$1'
15239 Try \`$0 --help' for more information." ;;
15241 *) as_fn_append ac_config_targets " $1"
15242 ac_need_defaults=false ;;
15248 ac_configure_extra_args=
15250 if $ac_cs_silent; then
15252 ac_configure_extra_args="$ac_configure_extra_args --silent"
15256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257 if \$ac_cs_recheck; then
15258 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15261 CONFIG_SHELL='$SHELL'
15262 export CONFIG_SHELL
15267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15272 ## Running $as_me. ##
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15282 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15285 # The HP-UX ksh and POSIX shell print the target directory to stdout
15286 # if CDPATH is set.
15287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15289 sed_quote_subst='$sed_quote_subst'
15290 double_quote_subst='$double_quote_subst'
15291 delay_variable_subst='$delay_variable_subst'
15292 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15293 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15294 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15297 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15298 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15299 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15300 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15301 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15302 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15303 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15304 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15305 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15312 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15313 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15314 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15315 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15316 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15317 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15318 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15319 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15320 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15321 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15322 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15323 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15324 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15325 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15326 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15327 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15328 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15329 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15330 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15331 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15332 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15333 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15334 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15335 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15336 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15337 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15338 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15339 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15340 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15344 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15345 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15349 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15350 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15351 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15352 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15353 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15354 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15355 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15356 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15357 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15358 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15359 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15360 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15361 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15362 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15363 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15364 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15365 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15366 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15367 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15368 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15369 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15370 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15371 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15372 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15381 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15382 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15383 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15384 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15385 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15386 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15405 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15414 LTCFLAGS='$LTCFLAGS'
15415 compiler='$compiler_DEFAULT'
15417 # A function that is used when there is no print builtin or printf.
15418 func_fallback_echo ()
15420 eval 'cat <<_LTECHO_EOF
15425 # Quote evaled strings.
15439 deplibs_check_method \
15448 lt_cv_sys_global_symbol_pipe \
15449 lt_cv_sys_global_symbol_to_cdecl \
15450 lt_cv_sys_global_symbol_to_c_name_address \
15451 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15452 lt_prog_compiler_no_builtin_flag \
15453 lt_prog_compiler_wl \
15454 lt_prog_compiler_pic \
15455 lt_prog_compiler_static \
15456 lt_cv_prog_compiler_c_o \
15464 export_dynamic_flag_spec \
15465 whole_archive_flag_spec \
15466 compiler_needs_object \
15468 allow_undefined_flag \
15469 no_undefined_flag \
15470 hardcode_libdir_flag_spec \
15471 hardcode_libdir_flag_spec_ld \
15472 hardcode_libdir_separator \
15477 variables_saved_for_relink \
15479 library_names_spec \
15481 install_override_mode \
15485 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15486 *[\\\\\\\`\\"\\\$]*)
15487 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15490 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15495 # Double-quote double-evaled strings.
15496 for var in reload_cmds \
15497 old_postinstall_cmds \
15498 old_postuninstall_cmds \
15500 extract_expsyms_cmds \
15501 old_archive_from_new_cmds \
15502 old_archive_from_expsyms_cmds \
15504 archive_expsym_cmds \
15506 module_expsym_cmds \
15507 export_symbols_cmds \
15510 postuninstall_cmds \
15512 sys_lib_search_path_spec \
15513 sys_lib_dlsearch_path_spec; do
15514 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15515 *[\\\\\\\`\\"\\\$]*)
15516 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15519 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15524 ac_aux_dir='$ac_aux_dir'
15525 xsi_shell='$xsi_shell'
15526 lt_shell_append='$lt_shell_append'
15528 # See if we are running on zsh, and set the options which allow our
15529 # commands through without removal of \ escapes INIT.
15530 if test -n "\${ZSH_VERSION+set}" ; then
15531 setopt NO_GLOB_SUBST
15537 TIMESTAMP='$TIMESTAMP'
15543 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15544 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
15546 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15547 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15548 LINGUAS="${LINGUAS-%UNSET%}"
15550 target_cpu_type=${target_cpu_type}
15551 cgen_cpu_prefix=${cgen_cpu_prefix}
15552 obj_format=${obj_format}
15557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 # Handling of arguments.
15560 for ac_config_target in $ac_config_targets
15562 case $ac_config_target in
15563 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15564 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15565 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
15566 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
15567 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
15568 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15569 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15570 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15571 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
15572 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15574 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15579 # If the user did not use the arguments to specify the items to instantiate,
15580 # then the envvar interface is used. Set only those that are not.
15581 # We use the long form for the default assignment because of an extremely
15582 # bizarre bug on SunOS 4.1.3.
15583 if $ac_need_defaults; then
15584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15589 # Have a temporary directory for convenience. Make it in the build tree
15590 # simply because there is no reason against having it here, and in addition,
15591 # creating and moving files from /tmp can sometimes cause problems.
15592 # Hook for its removal unless debugging.
15593 # Note that there is a small window in which the directory will not be cleaned:
15594 # after its creation but before its name has been assigned to `$tmp'.
15598 trap 'exit_status=$?
15599 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15601 trap 'as_fn_exit 1' 1 2 13 15
15603 # Create a (secure) tmp directory for tmp files.
15606 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15607 test -n "$tmp" && test -d "$tmp"
15610 tmp=./conf$$-$RANDOM
15611 (umask 077 && mkdir "$tmp")
15612 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15614 # Set up the scripts for CONFIG_FILES section.
15615 # No need to generate them if there are no CONFIG_FILES.
15616 # This happens for instance with `./config.status config.h'.
15617 if test -n "$CONFIG_FILES"; then
15620 ac_cr=`echo X | tr X '\015'`
15621 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15622 # But we know of no other shell where ac_cr would be empty at this
15623 # point, so we can use a bashism as a fallback.
15624 if test "x$ac_cr" = x; then
15625 eval ac_cr=\$\'\\r\'
15627 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15628 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15631 ac_cs_awk_cr=$ac_cr
15634 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15639 echo "cat >conf$$subs.awk <<_ACEOF" &&
15640 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15642 } >conf$$subs.sh ||
15643 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15644 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15646 for ac_last_try in false false false false false :; do
15647 . ./conf$$subs.sh ||
15648 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15650 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15651 if test $ac_delim_n = $ac_delim_num; then
15653 elif $ac_last_try; then
15654 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15659 rm -f conf$$subs.sh
15661 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15662 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15666 s/^/S["/; s/!.*/"]=/
15676 s/\(.\{148\}\).*/\1/
15678 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15690 s/\(.\{148\}\).*/\1/
15692 s/["\\]/\\&/g; s/^/"/; s/$/"/
15696 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15701 ' <conf$$subs.awk | sed '
15706 ' >>$CONFIG_STATUS || ac_write_fail=1
15707 rm -f conf$$subs.awk
15708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15710 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15711 for (key in S) S_is_set[key] = 1
15717 nfields = split(line, field, "@")
15719 len = length(field[1])
15720 for (i = 2; i < nfields; i++) {
15722 keylen = length(key)
15723 if (S_is_set[key]) {
15725 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15726 len += length(value) + length(field[++i])
15737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15738 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15739 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15742 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15743 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15746 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15747 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15748 # trailing colons and then remove the whole line if VPATH becomes empty
15749 # (actually we leave an empty line to preserve line numbers).
15750 if test "x$srcdir" = x.; then
15751 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15752 s/:*\$(srcdir):*/:/
15753 s/:*\${srcdir}:*/:/
15755 s/^\([^=]*=[ ]*\):*/\1/
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 fi # test -n "$CONFIG_FILES"
15764 # Set up the scripts for CONFIG_HEADERS section.
15765 # No need to generate them if there are no CONFIG_HEADERS.
15766 # This happens for instance with `./config.status Makefile'.
15767 if test -n "$CONFIG_HEADERS"; then
15768 cat >"$tmp/defines.awk" <<\_ACAWK ||
15772 # Transform confdefs.h into an awk script `defines.awk', embedded as
15773 # here-document in config.status, that substitutes the proper values into
15774 # config.h.in to produce config.h.
15776 # Create a delimiter string that does not exist in confdefs.h, to ease
15777 # handling of long lines.
15779 for ac_last_try in false false :; do
15780 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15781 if test -z "$ac_t"; then
15783 elif $ac_last_try; then
15784 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15790 # For the awk script, D is an array of macro values keyed by name,
15791 # likewise P contains macro parameters if any. Preserve backslash
15792 # newline sequences.
15794 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15796 s/.\{148\}/&'"$ac_delim"'/g
15799 s/^[ ]*#[ ]*define[ ][ ]*/ /
15806 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15808 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15812 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15813 D["\1"]=" \3\\\\\\n"\\/p
15815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15820 s/.\{148\}/&'"$ac_delim"'/g
15825 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15828 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15830 ' <confdefs.h | sed '
15831 s/'"$ac_delim"'/"\\\
15832 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15835 for (key in D) D_is_set[key] = 1
15838 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15840 split(line, arg, " ")
15841 if (arg[1] == "#") {
15845 defundef = substr(arg[1], 2)
15848 split(mac1, mac2, "(") #)
15850 prefix = substr(line, 1, index(line, defundef) - 1)
15851 if (D_is_set[macro]) {
15852 # Preserve the white space surrounding the "#".
15853 print prefix "define", macro P[macro] D[macro]
15856 # Replace #undef with comments. This is necessary, for example,
15857 # in the case of _POSIX_SOURCE, which is predefined and required
15858 # on some systems where configure will not decide to define it.
15859 if (defundef == "undef") {
15860 print "/*", prefix defundef, macro, "*/"
15868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15869 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15870 fi # test -n "$CONFIG_HEADERS"
15873 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15878 :[FHLC]) ac_mode=$ac_tag; continue;;
15880 case $ac_mode$ac_tag in
15882 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15883 :[FH]-) ac_tag=-:-;;
15884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15901 -) ac_f="$tmp/stdin";;
15902 *) # Look for the file first in the build tree, then in the source tree
15903 # (if the path is not absolute). The absolute path cannot be DOS-style,
15904 # because $ac_f cannot contain `:'.
15908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15910 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15913 as_fn_append ac_file_inputs " '$ac_f'"
15916 # Let's still pretend it is `configure' which instantiates (i.e., don't
15917 # use $as_me), people would be surprised to read:
15918 # /* config.h. Generated by config.status. */
15919 configure_input='Generated from '`
15920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15922 if test x"$ac_file" != x-; then
15923 configure_input="$ac_file. $configure_input"
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15925 $as_echo "$as_me: creating $ac_file" >&6;}
15927 # Neutralize special characters interpreted by sed in replacement strings.
15928 case $configure_input in #(
15929 *\&* | *\|* | *\\* )
15930 ac_sed_conf_input=`$as_echo "$configure_input" |
15931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15932 *) ac_sed_conf_input=$configure_input;;
15936 *:-:* | *:-) cat >"$tmp/stdin" \
15937 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15942 ac_dir=`$as_dirname -- "$ac_file" ||
15943 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15944 X"$ac_file" : 'X\(//\)[^/]' \| \
15945 X"$ac_file" : 'X\(//\)$' \| \
15946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15947 $as_echo X"$ac_file" |
15948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15952 /^X\(\/\/\)[^/].*/{
15965 as_dir="$ac_dir"; as_fn_mkdir_p
15969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15972 # A ".." for each directory in $ac_dir_suffix.
15973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15974 case $ac_top_builddir_sub in
15975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15979 ac_abs_top_builddir=$ac_pwd
15980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15981 # for backward compatibility:
15982 ac_top_builddir=$ac_top_build_prefix
15985 .) # We are building in place.
15987 ac_top_srcdir=$ac_top_builddir_sub
15988 ac_abs_top_srcdir=$ac_pwd ;;
15989 [\\/]* | ?:[\\/]* ) # Absolute name.
15990 ac_srcdir=$srcdir$ac_dir_suffix;
15991 ac_top_srcdir=$srcdir
15992 ac_abs_top_srcdir=$srcdir ;;
15993 *) # Relative name.
15994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15995 ac_top_srcdir=$ac_top_build_prefix$srcdir
15996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16011 ac_MKDIR_P=$MKDIR_P
16013 [\\/$]* | ?:[\\/]* ) ;;
16014 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16019 # If the template does not know about datarootdir, expand it.
16020 # FIXME: This hack should be removed a few years after 2.60.
16021 ac_datarootdir_hack=; ac_datarootdir_seen=
16032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16033 *datarootdir*) ac_datarootdir_seen=yes;;
16034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16039 ac_datarootdir_hack='
16040 s&@datadir@&$datadir&g
16041 s&@docdir@&$docdir&g
16042 s&@infodir@&$infodir&g
16043 s&@localedir@&$localedir&g
16044 s&@mandir@&$mandir&g
16045 s&\\\${datarootdir}&$datarootdir&g' ;;
16049 # Neutralize VPATH when `$srcdir' = `.'.
16050 # Shell code in configure.ac might set extrasub.
16051 # FIXME: do we really want to maintain this feature?
16052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16053 ac_sed_extra="$ac_vpsub
16056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16059 s|@configure_input@|$ac_sed_conf_input|;t t
16060 s&@top_builddir@&$ac_top_builddir_sub&;t t
16061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16062 s&@srcdir@&$ac_srcdir&;t t
16063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16064 s&@top_srcdir@&$ac_top_srcdir&;t t
16065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16066 s&@builddir@&$ac_builddir&;t t
16067 s&@abs_builddir@&$ac_abs_builddir&;t t
16068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16069 s&@INSTALL@&$ac_INSTALL&;t t
16070 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16071 $ac_datarootdir_hack
16073 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16074 || as_fn_error "could not create $ac_file" "$LINENO" 5
16076 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16077 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16078 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16080 which seems to be undefined. Please make sure it is defined." >&5
16081 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16082 which seems to be undefined. Please make sure it is defined." >&2;}
16086 -) cat "$tmp/out" && rm -f "$tmp/out";;
16087 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16089 || as_fn_error "could not create $ac_file" "$LINENO" 5
16095 if test x"$ac_file" != x-; then
16097 $as_echo "/* $configure_input */" \
16098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16099 } >"$tmp/config.h" \
16100 || as_fn_error "could not create $ac_file" "$LINENO" 5
16101 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16103 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16106 mv "$tmp/config.h" "$ac_file" \
16107 || as_fn_error "could not create $ac_file" "$LINENO" 5
16110 $as_echo "/* $configure_input */" \
16111 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16112 || as_fn_error "could not create -" "$LINENO" 5
16114 # Compute "$ac_file"'s index in $config_headers.
16117 for _am_header in $config_headers :; do
16118 case $_am_header in
16119 $_am_arg | $_am_arg:* )
16122 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16125 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16126 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16127 X"$_am_arg" : 'X\(//\)[^/]' \| \
16128 X"$_am_arg" : 'X\(//\)$' \| \
16129 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16130 $as_echo X"$_am_arg" |
16131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16135 /^X\(\/\/\)[^/].*/{
16147 s/.*/./; q'`/stamp-h$_am_stamp_count
16150 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16151 $as_echo "$as_me: executing $ac_file commands" >&6;}
16156 case $ac_file$ac_mode in
16157 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16158 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16159 # are listed without --file. Let's play safe and only enable the eval
16160 # if we detect the quoting.
16161 case $CONFIG_FILES in
16162 *\'*) eval set x "$CONFIG_FILES" ;;
16163 *) set x $CONFIG_FILES ;;
16168 # Strip MF so we end up with the name of the file.
16169 mf=`echo "$mf" | sed -e 's/:.*$//'`
16170 # Check whether this is an Automake generated Makefile or not.
16171 # We used to match only the files named `Makefile.in', but
16172 # some people rename them; so instead we look at the file content.
16173 # Grep'ing the first line is not enough: some people post-process
16174 # each Makefile.in and add a new line on top of each file to say so.
16175 # Grep'ing the whole file is not good either: AIX grep has a line
16176 # limit of 2048, but all sed's we know have understand at least 4000.
16177 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16178 dirpart=`$as_dirname -- "$mf" ||
16179 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16180 X"$mf" : 'X\(//\)[^/]' \| \
16181 X"$mf" : 'X\(//\)$' \| \
16182 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16188 /^X\(\/\/\)[^/].*/{
16204 # Extract the definition of DEPDIR, am__include, and am__quote
16205 # from the Makefile without running `make'.
16206 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16207 test -z "$DEPDIR" && continue
16208 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16209 test -z "am__include" && continue
16210 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16211 # When using ansi2knr, U may be empty or an underscore; expand it
16212 U=`sed -n 's/^U = //p' < "$mf"`
16213 # Find all dependency output files, they are included files with
16214 # $(DEPDIR) in their names. We invoke sed twice because it is the
16215 # simplest approach to changing $(DEPDIR) to its actual value in the
16217 for file in `sed -n "
16218 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16219 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16220 # Make sure the directory exists.
16221 test -f "$dirpart/$file" && continue
16222 fdir=`$as_dirname -- "$file" ||
16223 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$file" : 'X\(//\)[^/]' \| \
16225 X"$file" : 'X\(//\)$' \| \
16226 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16227 $as_echo X"$file" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16232 /^X\(\/\/\)[^/].*/{
16245 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16246 # echo "creating $dirpart/$file"
16247 echo '# dummy' > "$dirpart/$file"
16254 # See if we are running on zsh, and set the options which allow our
16255 # commands through without removal of \ escapes.
16256 if test -n "${ZSH_VERSION+set}" ; then
16257 setopt NO_GLOB_SUBST
16260 cfgfile="${ofile}T"
16261 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16264 cat <<_LT_EOF >> "$cfgfile"
16267 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16268 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16269 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16270 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16272 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16273 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16274 # Written by Gordon Matzigkeit, 1996
16276 # This file is part of GNU Libtool.
16278 # GNU Libtool is free software; you can redistribute it and/or
16279 # modify it under the terms of the GNU General Public License as
16280 # published by the Free Software Foundation; either version 2 of
16281 # the License, or (at your option) any later version.
16283 # As a special exception to the GNU General Public License,
16284 # if you distribute this file as part of a program or library that
16285 # is built using GNU Libtool, you may include this file under the
16286 # same distribution terms that you use for the rest of that program.
16288 # GNU Libtool is distributed in the hope that it will be useful,
16289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16291 # GNU General Public License for more details.
16293 # You should have received a copy of the GNU General Public License
16294 # along with GNU Libtool; see the file COPYING. If not, a copy
16295 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16296 # obtained by writing to the Free Software Foundation, Inc.,
16297 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16300 # The names of the tagged configurations supported by this script.
16303 # ### BEGIN LIBTOOL CONFIG
16305 # Which release of libtool.m4 was used?
16306 macro_version=$macro_version
16307 macro_revision=$macro_revision
16309 # Whether or not to build shared libraries.
16310 build_libtool_libs=$enable_shared
16312 # Whether or not to build static libraries.
16313 build_old_libs=$enable_static
16315 # What type of objects to build.
16318 # Whether or not to optimize for fast installation.
16319 fast_install=$enable_fast_install
16321 # Shell to use when invoking shell scripts.
16324 # An echo program that protects backslashes.
16328 host_alias=$host_alias
16332 # The build system.
16333 build_alias=$build_alias
16337 # A sed program that does not truncate output.
16340 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16341 Xsed="\$SED -e 1s/^X//"
16343 # A grep program that handles long lines.
16349 # A literal string matcher.
16352 # A BSD- or MS-compatible name lister.
16355 # Whether we need soft or hard links.
16358 # What is the maximum length of a command?
16359 max_cmd_len=$max_cmd_len
16361 # Object file suffix (normally "o").
16364 # Executable file suffix (normally "").
16367 # whether the shell understands "unset".
16370 # turn spaces into newlines.
16373 # turn newlines into spaces.
16376 # An object symbol dumper.
16377 OBJDUMP=$lt_OBJDUMP
16379 # Method to check whether dependent libraries are shared objects.
16380 deplibs_check_method=$lt_deplibs_check_method
16382 # Command to use when deplibs_check_method == "file_magic".
16383 file_magic_cmd=$lt_file_magic_cmd
16387 AR_FLAGS=$lt_AR_FLAGS
16389 # A symbol stripping program.
16392 # Commands used to install an old-style archive.
16394 old_postinstall_cmds=$lt_old_postinstall_cmds
16395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16397 # Whether to use a lock for old archive extraction.
16398 lock_old_archive_extraction=$lock_old_archive_extraction
16403 # LTCC compiler flags.
16404 LTCFLAGS=$lt_CFLAGS
16406 # Take the output of nm and produce a listing of raw symbols and C names.
16407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16409 # Transform the output of nm in a proper C declaration.
16410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16412 # Transform the output of nm in a C name address pair.
16413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16415 # Transform the output of nm in a C name address pair when lib prefix is needed.
16416 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16418 # The name of the directory that contains temporary libtool files.
16421 # Used to examine libraries when file_magic_cmd begins with "file".
16422 MAGIC_CMD=$MAGIC_CMD
16424 # Must we lock files when doing compilation?
16425 need_locks=$lt_need_locks
16427 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16428 DSYMUTIL=$lt_DSYMUTIL
16430 # Tool to change global to local symbols on Mac OS X.
16433 # Tool to manipulate fat objects and archives on Mac OS X.
16436 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16439 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16440 OTOOL64=$lt_OTOOL64
16442 # Old archive suffix (normally "a").
16445 # Shared library suffix (normally ".so").
16446 shrext_cmds=$lt_shrext_cmds
16448 # The commands to extract the exported symbol list from a shared archive.
16449 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16451 # Variables whose values should be saved in libtool wrapper scripts and
16452 # restored at link time.
16453 variables_saved_for_relink=$lt_variables_saved_for_relink
16455 # Do we need the "lib" prefix for modules?
16456 need_lib_prefix=$need_lib_prefix
16458 # Do we need a version for libraries?
16459 need_version=$need_version
16461 # Library versioning type.
16462 version_type=$version_type
16464 # Shared library runtime path variable.
16465 runpath_var=$runpath_var
16467 # Shared library path variable.
16468 shlibpath_var=$shlibpath_var
16470 # Is shlibpath searched before the hard-coded library search path?
16471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16473 # Format of library name prefix.
16474 libname_spec=$lt_libname_spec
16476 # List of archive names. First name is the real one, the rest are links.
16477 # The last name is the one that the linker finds with -lNAME
16478 library_names_spec=$lt_library_names_spec
16480 # The coded name of the library, if different from the real name.
16481 soname_spec=$lt_soname_spec
16483 # Permission mode override for installation of shared libraries.
16484 install_override_mode=$lt_install_override_mode
16486 # Command to use after installation of a shared archive.
16487 postinstall_cmds=$lt_postinstall_cmds
16489 # Command to use after uninstallation of a shared archive.
16490 postuninstall_cmds=$lt_postuninstall_cmds
16492 # Commands used to finish a libtool library installation in a directory.
16493 finish_cmds=$lt_finish_cmds
16495 # As "finish_cmds", except a single script fragment to be evaled but
16497 finish_eval=$lt_finish_eval
16499 # Whether we should hardcode library paths into libraries.
16500 hardcode_into_libs=$hardcode_into_libs
16502 # Compile-time system search path for libraries.
16503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16505 # Run-time system search path for libraries.
16506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16508 # Whether dlopen is supported.
16509 dlopen_support=$enable_dlopen
16511 # Whether dlopen of programs is supported.
16512 dlopen_self=$enable_dlopen_self
16514 # Whether dlopen of statically linked programs is supported.
16515 dlopen_self_static=$enable_dlopen_self_static
16517 # Commands to strip libraries.
16518 old_striplib=$lt_old_striplib
16519 striplib=$lt_striplib
16522 # The linker used to build libraries.
16525 # How to create reloadable object files.
16526 reload_flag=$lt_reload_flag
16527 reload_cmds=$lt_reload_cmds
16529 # Commands used to build an old-style archive.
16530 old_archive_cmds=$lt_old_archive_cmds
16532 # A language specific compiler.
16535 # Is the compiler the GNU compiler?
16538 # Compiler flag to turn off builtin functions.
16539 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16541 # How to pass a linker flag through the compiler.
16542 wl=$lt_lt_prog_compiler_wl
16544 # Additional compiler flags for building library objects.
16545 pic_flag=$lt_lt_prog_compiler_pic
16547 # Compiler flag to prevent dynamic linking.
16548 link_static_flag=$lt_lt_prog_compiler_static
16550 # Does compiler simultaneously support -c and -o options?
16551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16553 # Whether or not to add -lc for building shared libraries.
16554 build_libtool_need_lc=$archive_cmds_need_lc
16556 # Whether or not to disallow shared libs when runtime libs are static.
16557 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16559 # Compiler flag to allow reflexive dlopens.
16560 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16562 # Compiler flag to generate shared objects directly from archives.
16563 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16565 # Whether the compiler copes with passing no objects directly.
16566 compiler_needs_object=$lt_compiler_needs_object
16568 # Create an old-style archive from a shared archive.
16569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16571 # Create a temporary old-style archive to link instead of a shared archive.
16572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16574 # Commands used to build a shared archive.
16575 archive_cmds=$lt_archive_cmds
16576 archive_expsym_cmds=$lt_archive_expsym_cmds
16578 # Commands used to build a loadable module if different from building
16579 # a shared archive.
16580 module_cmds=$lt_module_cmds
16581 module_expsym_cmds=$lt_module_expsym_cmds
16583 # Whether we are building with GNU ld or not.
16584 with_gnu_ld=$lt_with_gnu_ld
16586 # Flag that allows shared libraries with undefined symbols to be built.
16587 allow_undefined_flag=$lt_allow_undefined_flag
16589 # Flag that enforces no undefined symbols.
16590 no_undefined_flag=$lt_no_undefined_flag
16592 # Flag to hardcode \$libdir into a binary during linking.
16593 # This must work even if \$libdir does not exist
16594 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16596 # If ld is used when linking, flag to hardcode \$libdir into a binary
16597 # during linking. This must work even if \$libdir does not exist.
16598 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16600 # Whether we need a single "-rpath" flag with a separated argument.
16601 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16603 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16604 # DIR into the resulting binary.
16605 hardcode_direct=$hardcode_direct
16607 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16608 # DIR into the resulting binary and the resulting library dependency is
16609 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16610 # library is relocated.
16611 hardcode_direct_absolute=$hardcode_direct_absolute
16613 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16614 # into the resulting binary.
16615 hardcode_minus_L=$hardcode_minus_L
16617 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16618 # into the resulting binary.
16619 hardcode_shlibpath_var=$hardcode_shlibpath_var
16621 # Set to "yes" if building a shared library automatically hardcodes DIR
16622 # into the library and all subsequent libraries and executables linked
16624 hardcode_automatic=$hardcode_automatic
16626 # Set to yes if linker adds runtime paths of dependent libraries
16627 # to runtime path list.
16628 inherit_rpath=$inherit_rpath
16630 # Whether libtool must link a program against all its dependency libraries.
16631 link_all_deplibs=$link_all_deplibs
16633 # Fix the shell variable \$srcfile for the compiler.
16634 fix_srcfile_path=$lt_fix_srcfile_path
16636 # Set to "yes" if exported symbols are required.
16637 always_export_symbols=$always_export_symbols
16639 # The commands to list exported symbols.
16640 export_symbols_cmds=$lt_export_symbols_cmds
16642 # Symbols that should not be listed in the preloaded symbols.
16643 exclude_expsyms=$lt_exclude_expsyms
16645 # Symbols that must always be exported.
16646 include_expsyms=$lt_include_expsyms
16648 # Commands necessary for linking programs (against libraries) with templates.
16649 prelink_cmds=$lt_prelink_cmds
16651 # Specify filename containing input files.
16652 file_list_spec=$lt_file_list_spec
16654 # How to hardcode a shared library path into an executable.
16655 hardcode_action=$hardcode_action
16657 # ### END LIBTOOL CONFIG
16663 cat <<\_LT_EOF >> "$cfgfile"
16664 # AIX sometimes has problems with the GCC collect2 program. For some
16665 # reason, if we set the COLLECT_NAMES environment variable, the problems
16666 # vanish in a puff of smoke.
16667 if test "X${COLLECT_NAMES+set}" != Xset; then
16669 export COLLECT_NAMES
16676 ltmain="$ac_aux_dir/ltmain.sh"
16679 # We use sed instead of cat because bash on DJGPP gets confused if
16680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16681 # text mode, it properly converts lines to CR/LF. This bash problem
16682 # is reportedly fixed, but why not run on old versions too?
16683 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16684 || (rm -f "$cfgfile"; exit 1)
16688 cat << \_LT_EOF >> "$cfgfile"
16690 # func_dirname file append nondir_replacement
16691 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16692 # otherwise set result to NONDIR_REPLACEMENT.
16696 */*) func_dirname_result="${1%/*}${2}" ;;
16697 * ) func_dirname_result="${3}" ;;
16701 # func_basename file
16704 func_basename_result="${1##*/}"
16707 # func_dirname_and_basename file append nondir_replacement
16708 # perform func_basename and func_dirname in a single function
16710 # dirname: Compute the dirname of FILE. If nonempty,
16711 # add APPEND to the result, otherwise set result
16712 # to NONDIR_REPLACEMENT.
16713 # value returned in "$func_dirname_result"
16714 # basename: Compute filename of FILE.
16715 # value retuned in "$func_basename_result"
16716 # Implementation must be kept synchronized with func_dirname
16717 # and func_basename. For efficiency, we do not delegate to
16718 # those functions but instead duplicate the functionality here.
16719 func_dirname_and_basename ()
16722 */*) func_dirname_result="${1%/*}${2}" ;;
16723 * ) func_dirname_result="${3}" ;;
16725 func_basename_result="${1##*/}"
16728 # func_stripname prefix suffix name
16729 # strip PREFIX and SUFFIX off of NAME.
16730 # PREFIX and SUFFIX must not contain globbing or regex special
16731 # characters, hashes, percent signs, but SUFFIX may contain a leading
16732 # dot (in which case that matches only a dot).
16735 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16736 # positional parameters, so assign one to ordinary parameter first.
16737 func_stripname_result=${3}
16738 func_stripname_result=${func_stripname_result#"${1}"}
16739 func_stripname_result=${func_stripname_result%"${2}"}
16745 func_opt_split_opt=${1%%=*}
16746 func_opt_split_arg=${1#*=}
16753 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16754 *) func_lo2o_result=${1} ;;
16758 # func_xform libobj-or-source
16761 func_xform_result=${1%.*}.lo
16764 # func_arith arithmetic-term...
16767 func_arith_result=$(( $* ))
16771 # STRING may not start with a hyphen.
16774 func_len_result=${#1}
16779 *) # Bourne compatible functions.
16780 cat << \_LT_EOF >> "$cfgfile"
16782 # func_dirname file append nondir_replacement
16783 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16784 # otherwise set result to NONDIR_REPLACEMENT.
16787 # Extract subdirectory from the argument.
16788 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16789 if test "X$func_dirname_result" = "X${1}"; then
16790 func_dirname_result="${3}"
16792 func_dirname_result="$func_dirname_result${2}"
16796 # func_basename file
16799 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16803 # func_stripname prefix suffix name
16804 # strip PREFIX and SUFFIX off of NAME.
16805 # PREFIX and SUFFIX must not contain globbing or regex special
16806 # characters, hashes, percent signs, but SUFFIX may contain a leading
16807 # dot (in which case that matches only a dot).
16808 # func_strip_suffix prefix name
16812 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16813 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16818 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16819 my_sed_long_arg='1s/^-[^=]*=//'
16824 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16825 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16831 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16834 # func_xform libobj-or-source
16837 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16840 # func_arith arithmetic-term...
16843 func_arith_result=`expr "$@"`
16847 # STRING may not start with a hyphen.
16850 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16856 case $lt_shell_append in
16858 cat << \_LT_EOF >> "$cfgfile"
16860 # func_append var value
16861 # Append VALUE to the end of shell variable VAR.
16869 cat << \_LT_EOF >> "$cfgfile"
16871 # func_append var value
16872 # Append VALUE to the end of shell variable VAR.
16883 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16884 || (rm -f "$cfgfile"; exit 1)
16886 mv -f "$cfgfile" "$ofile" ||
16887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16892 for ac_file in $CONFIG_FILES; do
16893 # Support "outfile[:infile[:infile...]]"
16895 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16897 # PO directories have a Makefile.in generated from Makefile.in.in.
16898 case "$ac_file" in */Makefile.in)
16899 # Adjust a relative srcdir.
16900 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16901 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
16902 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16903 # In autoconf-2.13 it is called $ac_given_srcdir.
16904 # In autoconf-2.50 it is called $srcdir.
16905 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16906 case "$ac_given_srcdir" in
16907 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16908 /*) top_srcdir="$ac_given_srcdir" ;;
16909 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16911 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16912 rm -f "$ac_dir/POTFILES"
16913 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16914 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16915 POMAKEFILEDEPS="POTFILES.in"
16916 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
16917 # on $ac_dir but don't depend on user-specified configuration
16919 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16920 # The LINGUAS file contains the set of available languages.
16921 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16922 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
16924 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16925 # Hide the ALL_LINGUAS assigment from automake.
16926 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16927 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16929 # The set of available languages was given in configure.ac.
16930 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16932 case "$ac_given_srcdir" in
16934 *) srcdirpre='$(srcdir)/' ;;
16940 for lang in $ALL_LINGUAS; do
16941 POFILES="$POFILES $srcdirpre$lang.po"
16942 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16943 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16944 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16946 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16947 # environment variable.
16949 if test -n "$ALL_LINGUAS"; then
16950 for presentlang in $ALL_LINGUAS; do
16952 if test "%UNSET%" != "$LINGUAS"; then
16953 desiredlanguages="$LINGUAS"
16955 desiredlanguages="$ALL_LINGUAS"
16957 for desiredlang in $desiredlanguages; do
16958 # Use the presentlang catalog if desiredlang is
16959 # a. equal to presentlang, or
16960 # b. a variant of presentlang (because in this case,
16961 # presentlang can be used as a fallback for messages
16962 # which are not translated in the desiredlang catalog).
16963 case "$desiredlang" in
16964 "$presentlang"*) useit=yes;;
16967 if test $useit = yes; then
16968 INST_LINGUAS="$INST_LINGUAS $presentlang"
16973 if test -n "$INST_LINGUAS"; then
16974 for lang in $INST_LINGUAS; do
16975 CATALOGS="$CATALOGS $lang.gmo"
16978 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16979 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16980 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16981 if test -f "$f"; then
16983 *.orig | *.bak | *~) ;;
16984 *) cat "$f" >> "$ac_dir/Makefile" ;;
16992 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
16993 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
16994 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
16995 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
16996 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
16997 if test "x$cgen_cpu_prefix" != x ; then
16998 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
17007 ac_clean_files=$ac_clean_files_save
17009 test $ac_write_fail = 0 ||
17010 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17013 # configure is writing to config.log, and then calls config.status.
17014 # config.status does its own redirection, appending to config.log.
17015 # Unfortunately, on DOS this fails, as config.log is still kept open
17016 # by configure, so config.status won't be able to write to it; its
17017 # output is simply discarded. So we exec the FD to /dev/null,
17018 # effectively closing config.log, so it can be properly (re)opened and
17019 # appended to by config.status. When coming back to configure, we
17020 # need to make the FD available again.
17021 if test "$no_create" != yes; then
17023 ac_config_status_args=
17024 test "$silent" = yes &&
17025 ac_config_status_args="$ac_config_status_args --quiet"
17027 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17029 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17030 # would make configure fail if this is the last instruction.
17031 $ac_cs_success || as_fn_exit $?
17033 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17035 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}